From 988d5d6e8962c2e599bf5de216428b580edc5063 Mon Sep 17 00:00:00 2001 From: Owl Bot Date: Sat, 13 Jan 2024 01:13:14 +0000 Subject: [PATCH 1/2] docs: update documentation for UpdateSecurityHealthAnalyticsCustomModule update_mask field --- docs: Add description --- chore: update go_package and Go importpath PiperOrigin-RevId: 597960211 Source-Link: https://github.com/googleapis/googleapis/commit/5a5e3d62e215153ad2b077d075766400ea691c57 Source-Link: https://github.com/googleapis/googleapis-gen/commit/d02cc580379bd23f398d77ec04ff6beb18341ed2 Copy-Tag: eyJwIjoiamF2YS1zZWN1cml0eWNlbnRlcm1hbmFnZW1lbnQvLk93bEJvdC55YW1sIiwiaCI6ImQwMmNjNTgwMzc5YmQyM2YzOThkNzdlYzA0ZmY2YmViMTgzNDFlZDIifQ== --- .../v1/SecurityCenterManagementGrpc.java | 3331 --------------- ...entThreatDetectionCustomModuleRequest.java | 757 ---- ...ityHealthAnalyticsCustomModuleRequest.java | 758 ---- ...ityHealthAnalyticsCustomModuleRequest.java | 705 ---- ...AnalyticsCustomModuleRequestOrBuilder.java | 54 - ...tThreatDetectionCustomModulesResponse.java | 1302 ------ ...tectionCustomModulesResponseOrBuilder.java | 118 - ...yHealthAnalyticsCustomModulesResponse.java | 1310 ------ ...alyticsCustomModulesResponseOrBuilder.java | 118 - ...tThreatDetectionCustomModulesResponse.java | 1329 ------ ...tectionCustomModulesResponseOrBuilder.java | 119 - ...yHealthAnalyticsCustomModulesResponse.java | 1337 ------ ...alyticsCustomModulesResponseOrBuilder.java | 119 - ...tectionCustomModulesResponseOrBuilder.java | 118 - ...alyticsCustomModulesResponseOrBuilder.java | 118 - .../v1/SecurityCenterManagementProto.java | 1181 ------ ...nalyticsCustomModuleResponseOrBuilder.java | 70 - ...ityHealthAnalyticsCustomModuleRequest.java | 1270 ------ ...AnalyticsCustomModuleRequestOrBuilder.java | 137 - ...ntThreatDetectionCustomModuleResponse.java | 3644 ----------------- ...etectionCustomModuleResponseOrBuilder.java | 103 - .../v1/SecurityCenterManagementClient.java | 8 +- .../v1/SecurityCenterManagementSettings.java | 1 + .../v1/gapic_metadata.json | 0 .../v1/package-info.java | 0 ...curityCenterManagementCallableFactory.java | 0 .../GrpcSecurityCenterManagementStub.java | 1 + ...curityCenterManagementCallableFactory.java | 0 .../HttpJsonSecurityCenterManagementStub.java | 0 .../v1/stub/SecurityCenterManagementStub.java | 0 .../SecurityCenterManagementStubSettings.java | 0 .../reflect-config.json | 0 .../v1/MockLocations.java | 0 .../v1/MockLocationsImpl.java | 0 .../v1/MockSecurityCenterManagement.java | 0 .../v1/MockSecurityCenterManagementImpl.java | 0 ...ityCenterManagementClientHttpJsonTest.java | 0 .../SecurityCenterManagementClientTest.java | 0 .../v1/SecurityCenterManagementGrpc.java | 1929 +++++++++ ...entThreatDetectionCustomModuleRequest.java | 719 ++-- ...DetectionCustomModuleRequestOrBuilder.java | 64 +- ...ityHealthAnalyticsCustomModuleRequest.java | 730 ++-- ...AnalyticsCustomModuleRequestOrBuilder.java | 64 +- .../v1/CustomConfig.java | 2783 +++++-------- .../v1/CustomConfigOrBuilder.java | 104 +- ...entThreatDetectionCustomModuleRequest.java | 532 +-- ...DetectionCustomModuleRequestOrBuilder.java | 38 +- ...ityHealthAnalyticsCustomModuleRequest.java | 539 +-- ...AnalyticsCustomModuleRequestOrBuilder.java | 38 +- ...ctiveEventThreatDetectionCustomModule.java | 943 ++--- ...eEventThreatDetectionCustomModuleName.java | 0 ...tThreatDetectionCustomModuleOrBuilder.java | 80 +- ...veSecurityHealthAnalyticsCustomModule.java | 885 ++-- ...curityHealthAnalyticsCustomModuleName.java | 0 ...yHealthAnalyticsCustomModuleOrBuilder.java | 74 +- .../v1/EventThreatDetectionCustomModule.java | 1216 ++---- .../EventThreatDetectionCustomModuleName.java | 0 ...tThreatDetectionCustomModuleOrBuilder.java | 122 +- .../v1/FolderLocationName.java | 0 ...entThreatDetectionCustomModuleRequest.java | 619 +++ ...DetectionCustomModuleRequestOrBuilder.java | 35 +- ...ityHealthAnalyticsCustomModuleRequest.java | 619 +++ ...AnalyticsCustomModuleRequestOrBuilder.java | 35 +- ...entThreatDetectionCustomModuleRequest.java | 488 +-- ...DetectionCustomModuleRequestOrBuilder.java | 35 +- ...ityHealthAnalyticsCustomModuleRequest.java | 577 +++ ...AnalyticsCustomModuleRequestOrBuilder.java | 29 + ...ntThreatDetectionCustomModulesRequest.java | 616 +-- ...etectionCustomModulesRequestOrBuilder.java | 47 +- ...tThreatDetectionCustomModulesResponse.java | 1025 +++++ ...tectionCustomModulesResponseOrBuilder.java | 73 + ...tyHealthAnalyticsCustomModulesRequest.java | 617 +-- ...nalyticsCustomModulesRequestOrBuilder.java | 47 +- ...yHealthAnalyticsCustomModulesResponse.java | 1025 +++++ ...alyticsCustomModulesResponseOrBuilder.java | 73 + ...ntThreatDetectionCustomModulesRequest.java | 616 +-- ...etectionCustomModulesRequestOrBuilder.java | 47 +- ...tThreatDetectionCustomModulesResponse.java | 1025 +++++ ...tectionCustomModulesResponseOrBuilder.java | 73 + ...tyHealthAnalyticsCustomModulesRequest.java | 616 +-- ...nalyticsCustomModulesRequestOrBuilder.java | 47 +- ...yHealthAnalyticsCustomModulesResponse.java | 1025 +++++ ...alyticsCustomModulesResponseOrBuilder.java | 73 + ...ntThreatDetectionCustomModulesRequest.java | 598 +-- ...etectionCustomModulesRequestOrBuilder.java | 47 +- ...tThreatDetectionCustomModulesResponse.java | 789 ++-- ...tectionCustomModulesResponseOrBuilder.java | 73 + ...tyHealthAnalyticsCustomModulesRequest.java | 606 +-- ...nalyticsCustomModulesRequestOrBuilder.java | 47 +- ...yHealthAnalyticsCustomModulesResponse.java | 806 ++-- ...alyticsCustomModulesResponseOrBuilder.java | 73 + .../v1/LocationName.java | 0 .../v1/OrganizationLocationName.java | 0 .../v1/SecurityCenterManagementProto.java | 1084 +++++ .../SecurityHealthAnalyticsCustomModule.java | 1164 ++---- ...curityHealthAnalyticsCustomModuleName.java | 0 ...yHealthAnalyticsCustomModuleOrBuilder.java | 116 +- ...ityHealthAnalyticsCustomModuleRequest.java | 1614 +++----- ...AnalyticsCustomModuleRequestOrBuilder.java | 75 +- ...tyHealthAnalyticsCustomModuleResponse.java | 1387 +++---- ...nalyticsCustomModuleResponseOrBuilder.java | 36 + .../v1/SimulatedFinding.java | 1397 +++---- .../v1/SimulatedFindingOrBuilder.java | 126 +- ...entThreatDetectionCustomModuleRequest.java | 747 ++-- ...DetectionCustomModuleRequestOrBuilder.java | 64 +- ...ityHealthAnalyticsCustomModuleRequest.java | 1014 +++++ ...AnalyticsCustomModuleRequestOrBuilder.java | 88 + ...entThreatDetectionCustomModuleRequest.java | 647 ++- ...DetectionCustomModuleRequestOrBuilder.java | 53 +- ...ntThreatDetectionCustomModuleResponse.java | 2853 +++++++++++++ ...etectionCustomModuleResponseOrBuilder.java | 58 + .../v1/security_center_management.proto | 9 +- .../SyncCreateSetCredentialsProvider.java | 0 .../SyncCreateSetCredentialsProvider1.java | 0 .../create/SyncCreateSetEndpoint.java | 0 ...reateEventThreatDetectionCustomModule.java | 0 ...reateEventThreatDetectionCustomModule.java | 0 ...nnameEventthreatdetectioncustommodule.java | 0 ...nnameEventthreatdetectioncustommodule.java | 0 ...nnameEventthreatdetectioncustommodule.java | 0 ...tringEventthreatdetectioncustommodule.java | 0 ...teSecurityHealthAnalyticsCustomModule.java | 0 ...teSecurityHealthAnalyticsCustomModule.java | 0 ...meSecurityhealthanalyticscustommodule.java | 0 ...meSecurityhealthanalyticscustommodule.java | 0 ...meSecurityhealthanalyticscustommodule.java | 0 ...ngSecurityhealthanalyticscustommodule.java | 0 ...eleteEventThreatDetectionCustomModule.java | 0 ...eleteEventThreatDetectionCustomModule.java | 0 ...eEventthreatdetectioncustommodulename.java | 0 ...ventThreatDetectionCustomModuleString.java | 0 ...teSecurityHealthAnalyticsCustomModule.java | 0 ...teSecurityHealthAnalyticsCustomModule.java | 0 ...curityhealthanalyticscustommodulename.java | 0 ...rityHealthAnalyticsCustomModuleString.java | 0 ...ctiveEventThreatDetectionCustomModule.java | 0 ...ctiveEventThreatDetectionCustomModule.java | 0 ...eeventthreatdetectioncustommodulename.java | 0 ...ventThreatDetectionCustomModuleString.java | 0 ...veSecurityHealthAnalyticsCustomModule.java | 0 ...veSecurityHealthAnalyticsCustomModule.java | 0 ...curityhealthanalyticscustommodulename.java | 0 ...rityHealthAnalyticsCustomModuleString.java | 0 ...ncGetEventThreatDetectionCustomModule.java | 0 ...ncGetEventThreatDetectionCustomModule.java | 0 ...eEventthreatdetectioncustommodulename.java | 0 ...ventThreatDetectionCustomModuleString.java | 0 .../getlocation/AsyncGetLocation.java | 0 .../getlocation/SyncGetLocation.java | 0 ...etSecurityHealthAnalyticsCustomModule.java | 0 ...etSecurityHealthAnalyticsCustomModule.java | 0 ...curityhealthanalyticscustommodulename.java | 0 ...rityHealthAnalyticsCustomModuleString.java | 0 ...dantEventThreatDetectionCustomModules.java | 0 ...ventThreatDetectionCustomModulesPaged.java | 0 ...dantEventThreatDetectionCustomModules.java | 0 ...ectionCustomModulesFolderlocationname.java | 0 ...eatDetectionCustomModulesLocationname.java | 0 ...CustomModulesOrganizationlocationname.java | 0 ...entThreatDetectionCustomModulesString.java | 0 ...tSecurityHealthAnalyticsCustomModules.java | 0 ...rityHealthAnalyticsCustomModulesPaged.java | 0 ...tSecurityHealthAnalyticsCustomModules.java | 0 ...lyticsCustomModulesFolderlocationname.java | 0 ...lthAnalyticsCustomModulesLocationname.java | 0 ...CustomModulesOrganizationlocationname.java | 0 ...ityHealthAnalyticsCustomModulesString.java | 0 ...tiveEventThreatDetectionCustomModules.java | 0 ...ventThreatDetectionCustomModulesPaged.java | 0 ...tiveEventThreatDetectionCustomModules.java | 0 ...ectionCustomModulesFolderlocationname.java | 0 ...eatDetectionCustomModulesLocationname.java | 0 ...CustomModulesOrganizationlocationname.java | 0 ...entThreatDetectionCustomModulesString.java | 0 ...eSecurityHealthAnalyticsCustomModules.java | 0 ...rityHealthAnalyticsCustomModulesPaged.java | 0 ...eSecurityHealthAnalyticsCustomModules.java | 0 ...lyticsCustomModulesFolderlocationname.java | 0 ...lthAnalyticsCustomModulesLocationname.java | 0 ...CustomModulesOrganizationlocationname.java | 0 ...ityHealthAnalyticsCustomModulesString.java | 0 ...ListEventThreatDetectionCustomModules.java | 0 ...ventThreatDetectionCustomModulesPaged.java | 0 ...ListEventThreatDetectionCustomModules.java | 0 ...ectionCustomModulesFolderlocationname.java | 0 ...eatDetectionCustomModulesLocationname.java | 0 ...CustomModulesOrganizationlocationname.java | 0 ...entThreatDetectionCustomModulesString.java | 0 .../listlocations/AsyncListLocations.java | 0 .../AsyncListLocationsPaged.java | 0 .../listlocations/SyncListLocations.java | 0 ...tSecurityHealthAnalyticsCustomModules.java | 0 ...rityHealthAnalyticsCustomModulesPaged.java | 0 ...tSecurityHealthAnalyticsCustomModules.java | 0 ...lyticsCustomModulesFolderlocationname.java | 0 ...lthAnalyticsCustomModulesLocationname.java | 0 ...CustomModulesOrganizationlocationname.java | 0 ...ityHealthAnalyticsCustomModulesString.java | 0 ...teSecurityHealthAnalyticsCustomModule.java | 0 ...teSecurityHealthAnalyticsCustomModule.java | 0 ...scustommodulerequestsimulatedresource.java | 0 ...pdateEventThreatDetectionCustomModule.java | 0 ...pdateEventThreatDetectionCustomModule.java | 0 ...tthreatdetectioncustommoduleFieldmask.java | 0 ...teSecurityHealthAnalyticsCustomModule.java | 0 ...teSecurityHealthAnalyticsCustomModule.java | 0 ...yhealthanalyticscustommoduleFieldmask.java | 0 ...idateEventThreatDetectionCustomModule.java | 0 ...idateEventThreatDetectionCustomModule.java | 0 ...veSecurityHealthAnalyticsCustomModule.java | 0 ...veSecurityHealthAnalyticsCustomModule.java | 0 211 files changed, 21106 insertions(+), 32815 deletions(-) delete mode 100644 java-securitycentermanagement/grpc-google-cloud-securitycentermanagement-v1/src/main/java/com/google/cloud/securitycentermanagement/v1/SecurityCenterManagementGrpc.java delete mode 100644 java-securitycentermanagement/proto-google-cloud-securitycentermanagement-v1/src/main/java/com/google/cloud/securitycentermanagement/v1/GetEffectiveEventThreatDetectionCustomModuleRequest.java delete mode 100644 java-securitycentermanagement/proto-google-cloud-securitycentermanagement-v1/src/main/java/com/google/cloud/securitycentermanagement/v1/GetEffectiveSecurityHealthAnalyticsCustomModuleRequest.java delete mode 100644 java-securitycentermanagement/proto-google-cloud-securitycentermanagement-v1/src/main/java/com/google/cloud/securitycentermanagement/v1/GetSecurityHealthAnalyticsCustomModuleRequest.java delete mode 100644 java-securitycentermanagement/proto-google-cloud-securitycentermanagement-v1/src/main/java/com/google/cloud/securitycentermanagement/v1/GetSecurityHealthAnalyticsCustomModuleRequestOrBuilder.java delete mode 100644 java-securitycentermanagement/proto-google-cloud-securitycentermanagement-v1/src/main/java/com/google/cloud/securitycentermanagement/v1/ListDescendantEventThreatDetectionCustomModulesResponse.java delete mode 100644 java-securitycentermanagement/proto-google-cloud-securitycentermanagement-v1/src/main/java/com/google/cloud/securitycentermanagement/v1/ListDescendantEventThreatDetectionCustomModulesResponseOrBuilder.java delete mode 100644 java-securitycentermanagement/proto-google-cloud-securitycentermanagement-v1/src/main/java/com/google/cloud/securitycentermanagement/v1/ListDescendantSecurityHealthAnalyticsCustomModulesResponse.java delete mode 100644 java-securitycentermanagement/proto-google-cloud-securitycentermanagement-v1/src/main/java/com/google/cloud/securitycentermanagement/v1/ListDescendantSecurityHealthAnalyticsCustomModulesResponseOrBuilder.java delete mode 100644 java-securitycentermanagement/proto-google-cloud-securitycentermanagement-v1/src/main/java/com/google/cloud/securitycentermanagement/v1/ListEffectiveEventThreatDetectionCustomModulesResponse.java delete mode 100644 java-securitycentermanagement/proto-google-cloud-securitycentermanagement-v1/src/main/java/com/google/cloud/securitycentermanagement/v1/ListEffectiveEventThreatDetectionCustomModulesResponseOrBuilder.java delete mode 100644 java-securitycentermanagement/proto-google-cloud-securitycentermanagement-v1/src/main/java/com/google/cloud/securitycentermanagement/v1/ListEffectiveSecurityHealthAnalyticsCustomModulesResponse.java delete mode 100644 java-securitycentermanagement/proto-google-cloud-securitycentermanagement-v1/src/main/java/com/google/cloud/securitycentermanagement/v1/ListEffectiveSecurityHealthAnalyticsCustomModulesResponseOrBuilder.java delete mode 100644 java-securitycentermanagement/proto-google-cloud-securitycentermanagement-v1/src/main/java/com/google/cloud/securitycentermanagement/v1/ListEventThreatDetectionCustomModulesResponseOrBuilder.java delete mode 100644 java-securitycentermanagement/proto-google-cloud-securitycentermanagement-v1/src/main/java/com/google/cloud/securitycentermanagement/v1/ListSecurityHealthAnalyticsCustomModulesResponseOrBuilder.java delete mode 100644 java-securitycentermanagement/proto-google-cloud-securitycentermanagement-v1/src/main/java/com/google/cloud/securitycentermanagement/v1/SecurityCenterManagementProto.java delete mode 100644 java-securitycentermanagement/proto-google-cloud-securitycentermanagement-v1/src/main/java/com/google/cloud/securitycentermanagement/v1/SimulateSecurityHealthAnalyticsCustomModuleResponseOrBuilder.java delete mode 100644 java-securitycentermanagement/proto-google-cloud-securitycentermanagement-v1/src/main/java/com/google/cloud/securitycentermanagement/v1/UpdateSecurityHealthAnalyticsCustomModuleRequest.java delete mode 100644 java-securitycentermanagement/proto-google-cloud-securitycentermanagement-v1/src/main/java/com/google/cloud/securitycentermanagement/v1/UpdateSecurityHealthAnalyticsCustomModuleRequestOrBuilder.java delete mode 100644 java-securitycentermanagement/proto-google-cloud-securitycentermanagement-v1/src/main/java/com/google/cloud/securitycentermanagement/v1/ValidateEventThreatDetectionCustomModuleResponse.java delete mode 100644 java-securitycentermanagement/proto-google-cloud-securitycentermanagement-v1/src/main/java/com/google/cloud/securitycentermanagement/v1/ValidateEventThreatDetectionCustomModuleResponseOrBuilder.java rename {java-securitycentermanagement => owl-bot-staging/java-securitycentermanagement/v1}/google-cloud-securitycentermanagement/src/main/java/com/google/cloud/securitycentermanagement/v1/SecurityCenterManagementClient.java (99%) rename {java-securitycentermanagement => owl-bot-staging/java-securitycentermanagement/v1}/google-cloud-securitycentermanagement/src/main/java/com/google/cloud/securitycentermanagement/v1/SecurityCenterManagementSettings.java (99%) rename {java-securitycentermanagement => owl-bot-staging/java-securitycentermanagement/v1}/google-cloud-securitycentermanagement/src/main/java/com/google/cloud/securitycentermanagement/v1/gapic_metadata.json (100%) rename {java-securitycentermanagement => owl-bot-staging/java-securitycentermanagement/v1}/google-cloud-securitycentermanagement/src/main/java/com/google/cloud/securitycentermanagement/v1/package-info.java (100%) rename {java-securitycentermanagement => owl-bot-staging/java-securitycentermanagement/v1}/google-cloud-securitycentermanagement/src/main/java/com/google/cloud/securitycentermanagement/v1/stub/GrpcSecurityCenterManagementCallableFactory.java (100%) rename {java-securitycentermanagement => owl-bot-staging/java-securitycentermanagement/v1}/google-cloud-securitycentermanagement/src/main/java/com/google/cloud/securitycentermanagement/v1/stub/GrpcSecurityCenterManagementStub.java (99%) rename {java-securitycentermanagement => owl-bot-staging/java-securitycentermanagement/v1}/google-cloud-securitycentermanagement/src/main/java/com/google/cloud/securitycentermanagement/v1/stub/HttpJsonSecurityCenterManagementCallableFactory.java (100%) rename {java-securitycentermanagement => owl-bot-staging/java-securitycentermanagement/v1}/google-cloud-securitycentermanagement/src/main/java/com/google/cloud/securitycentermanagement/v1/stub/HttpJsonSecurityCenterManagementStub.java (100%) rename {java-securitycentermanagement => owl-bot-staging/java-securitycentermanagement/v1}/google-cloud-securitycentermanagement/src/main/java/com/google/cloud/securitycentermanagement/v1/stub/SecurityCenterManagementStub.java (100%) rename {java-securitycentermanagement => owl-bot-staging/java-securitycentermanagement/v1}/google-cloud-securitycentermanagement/src/main/java/com/google/cloud/securitycentermanagement/v1/stub/SecurityCenterManagementStubSettings.java (100%) rename {java-securitycentermanagement => owl-bot-staging/java-securitycentermanagement/v1}/google-cloud-securitycentermanagement/src/main/resources/META-INF/native-image/com.google.cloud.securitycentermanagement.v1/reflect-config.json (100%) rename {java-securitycentermanagement => owl-bot-staging/java-securitycentermanagement/v1}/google-cloud-securitycentermanagement/src/test/java/com/google/cloud/securitycentermanagement/v1/MockLocations.java (100%) rename {java-securitycentermanagement => owl-bot-staging/java-securitycentermanagement/v1}/google-cloud-securitycentermanagement/src/test/java/com/google/cloud/securitycentermanagement/v1/MockLocationsImpl.java (100%) rename {java-securitycentermanagement => owl-bot-staging/java-securitycentermanagement/v1}/google-cloud-securitycentermanagement/src/test/java/com/google/cloud/securitycentermanagement/v1/MockSecurityCenterManagement.java (100%) rename {java-securitycentermanagement => owl-bot-staging/java-securitycentermanagement/v1}/google-cloud-securitycentermanagement/src/test/java/com/google/cloud/securitycentermanagement/v1/MockSecurityCenterManagementImpl.java (100%) rename {java-securitycentermanagement => owl-bot-staging/java-securitycentermanagement/v1}/google-cloud-securitycentermanagement/src/test/java/com/google/cloud/securitycentermanagement/v1/SecurityCenterManagementClientHttpJsonTest.java (100%) rename {java-securitycentermanagement => owl-bot-staging/java-securitycentermanagement/v1}/google-cloud-securitycentermanagement/src/test/java/com/google/cloud/securitycentermanagement/v1/SecurityCenterManagementClientTest.java (100%) create mode 100644 owl-bot-staging/java-securitycentermanagement/v1/grpc-google-cloud-securitycentermanagement-v1/src/main/java/com/google/cloud/securitycentermanagement/v1/SecurityCenterManagementGrpc.java rename {java-securitycentermanagement => owl-bot-staging/java-securitycentermanagement/v1}/proto-google-cloud-securitycentermanagement-v1/src/main/java/com/google/cloud/securitycentermanagement/v1/CreateEventThreatDetectionCustomModuleRequest.java (52%) rename {java-securitycentermanagement => owl-bot-staging/java-securitycentermanagement/v1}/proto-google-cloud-securitycentermanagement-v1/src/main/java/com/google/cloud/securitycentermanagement/v1/CreateEventThreatDetectionCustomModuleRequestOrBuilder.java (59%) rename {java-securitycentermanagement => owl-bot-staging/java-securitycentermanagement/v1}/proto-google-cloud-securitycentermanagement-v1/src/main/java/com/google/cloud/securitycentermanagement/v1/CreateSecurityHealthAnalyticsCustomModuleRequest.java (50%) rename {java-securitycentermanagement => owl-bot-staging/java-securitycentermanagement/v1}/proto-google-cloud-securitycentermanagement-v1/src/main/java/com/google/cloud/securitycentermanagement/v1/CreateSecurityHealthAnalyticsCustomModuleRequestOrBuilder.java (56%) rename {java-securitycentermanagement => owl-bot-staging/java-securitycentermanagement/v1}/proto-google-cloud-securitycentermanagement-v1/src/main/java/com/google/cloud/securitycentermanagement/v1/CustomConfig.java (62%) rename {java-securitycentermanagement => owl-bot-staging/java-securitycentermanagement/v1}/proto-google-cloud-securitycentermanagement-v1/src/main/java/com/google/cloud/securitycentermanagement/v1/CustomConfigOrBuilder.java (68%) rename {java-securitycentermanagement => owl-bot-staging/java-securitycentermanagement/v1}/proto-google-cloud-securitycentermanagement-v1/src/main/java/com/google/cloud/securitycentermanagement/v1/DeleteEventThreatDetectionCustomModuleRequest.java (54%) rename {java-securitycentermanagement => owl-bot-staging/java-securitycentermanagement/v1}/proto-google-cloud-securitycentermanagement-v1/src/main/java/com/google/cloud/securitycentermanagement/v1/DeleteEventThreatDetectionCustomModuleRequestOrBuilder.java (69%) rename {java-securitycentermanagement => owl-bot-staging/java-securitycentermanagement/v1}/proto-google-cloud-securitycentermanagement-v1/src/main/java/com/google/cloud/securitycentermanagement/v1/DeleteSecurityHealthAnalyticsCustomModuleRequest.java (54%) rename {java-securitycentermanagement => owl-bot-staging/java-securitycentermanagement/v1}/proto-google-cloud-securitycentermanagement-v1/src/main/java/com/google/cloud/securitycentermanagement/v1/DeleteSecurityHealthAnalyticsCustomModuleRequestOrBuilder.java (69%) rename {java-securitycentermanagement => owl-bot-staging/java-securitycentermanagement/v1}/proto-google-cloud-securitycentermanagement-v1/src/main/java/com/google/cloud/securitycentermanagement/v1/EffectiveEventThreatDetectionCustomModule.java (64%) rename {java-securitycentermanagement => owl-bot-staging/java-securitycentermanagement/v1}/proto-google-cloud-securitycentermanagement-v1/src/main/java/com/google/cloud/securitycentermanagement/v1/EffectiveEventThreatDetectionCustomModuleName.java (100%) rename {java-securitycentermanagement => owl-bot-staging/java-securitycentermanagement/v1}/proto-google-cloud-securitycentermanagement-v1/src/main/java/com/google/cloud/securitycentermanagement/v1/EffectiveEventThreatDetectionCustomModuleOrBuilder.java (75%) rename {java-securitycentermanagement => owl-bot-staging/java-securitycentermanagement/v1}/proto-google-cloud-securitycentermanagement-v1/src/main/java/com/google/cloud/securitycentermanagement/v1/EffectiveSecurityHealthAnalyticsCustomModule.java (58%) rename {java-securitycentermanagement => owl-bot-staging/java-securitycentermanagement/v1}/proto-google-cloud-securitycentermanagement-v1/src/main/java/com/google/cloud/securitycentermanagement/v1/EffectiveSecurityHealthAnalyticsCustomModuleName.java (100%) rename {java-securitycentermanagement => owl-bot-staging/java-securitycentermanagement/v1}/proto-google-cloud-securitycentermanagement-v1/src/main/java/com/google/cloud/securitycentermanagement/v1/EffectiveSecurityHealthAnalyticsCustomModuleOrBuilder.java (67%) rename {java-securitycentermanagement => owl-bot-staging/java-securitycentermanagement/v1}/proto-google-cloud-securitycentermanagement-v1/src/main/java/com/google/cloud/securitycentermanagement/v1/EventThreatDetectionCustomModule.java (68%) rename {java-securitycentermanagement => owl-bot-staging/java-securitycentermanagement/v1}/proto-google-cloud-securitycentermanagement-v1/src/main/java/com/google/cloud/securitycentermanagement/v1/EventThreatDetectionCustomModuleName.java (100%) rename {java-securitycentermanagement => owl-bot-staging/java-securitycentermanagement/v1}/proto-google-cloud-securitycentermanagement-v1/src/main/java/com/google/cloud/securitycentermanagement/v1/EventThreatDetectionCustomModuleOrBuilder.java (75%) rename {java-securitycentermanagement => owl-bot-staging/java-securitycentermanagement/v1}/proto-google-cloud-securitycentermanagement-v1/src/main/java/com/google/cloud/securitycentermanagement/v1/FolderLocationName.java (100%) create mode 100644 owl-bot-staging/java-securitycentermanagement/v1/proto-google-cloud-securitycentermanagement-v1/src/main/java/com/google/cloud/securitycentermanagement/v1/GetEffectiveEventThreatDetectionCustomModuleRequest.java rename {java-securitycentermanagement => owl-bot-staging/java-securitycentermanagement/v1}/proto-google-cloud-securitycentermanagement-v1/src/main/java/com/google/cloud/securitycentermanagement/v1/GetEffectiveEventThreatDetectionCustomModuleRequestOrBuilder.java (63%) create mode 100644 owl-bot-staging/java-securitycentermanagement/v1/proto-google-cloud-securitycentermanagement-v1/src/main/java/com/google/cloud/securitycentermanagement/v1/GetEffectiveSecurityHealthAnalyticsCustomModuleRequest.java rename {java-securitycentermanagement => owl-bot-staging/java-securitycentermanagement/v1}/proto-google-cloud-securitycentermanagement-v1/src/main/java/com/google/cloud/securitycentermanagement/v1/GetEffectiveSecurityHealthAnalyticsCustomModuleRequestOrBuilder.java (60%) rename {java-securitycentermanagement => owl-bot-staging/java-securitycentermanagement/v1}/proto-google-cloud-securitycentermanagement-v1/src/main/java/com/google/cloud/securitycentermanagement/v1/GetEventThreatDetectionCustomModuleRequest.java (51%) rename {java-securitycentermanagement => owl-bot-staging/java-securitycentermanagement/v1}/proto-google-cloud-securitycentermanagement-v1/src/main/java/com/google/cloud/securitycentermanagement/v1/GetEventThreatDetectionCustomModuleRequestOrBuilder.java (62%) create mode 100644 owl-bot-staging/java-securitycentermanagement/v1/proto-google-cloud-securitycentermanagement-v1/src/main/java/com/google/cloud/securitycentermanagement/v1/GetSecurityHealthAnalyticsCustomModuleRequest.java create mode 100644 owl-bot-staging/java-securitycentermanagement/v1/proto-google-cloud-securitycentermanagement-v1/src/main/java/com/google/cloud/securitycentermanagement/v1/GetSecurityHealthAnalyticsCustomModuleRequestOrBuilder.java rename {java-securitycentermanagement => owl-bot-staging/java-securitycentermanagement/v1}/proto-google-cloud-securitycentermanagement-v1/src/main/java/com/google/cloud/securitycentermanagement/v1/ListDescendantEventThreatDetectionCustomModulesRequest.java (52%) rename {java-securitycentermanagement => owl-bot-staging/java-securitycentermanagement/v1}/proto-google-cloud-securitycentermanagement-v1/src/main/java/com/google/cloud/securitycentermanagement/v1/ListDescendantEventThreatDetectionCustomModulesRequestOrBuilder.java (65%) create mode 100644 owl-bot-staging/java-securitycentermanagement/v1/proto-google-cloud-securitycentermanagement-v1/src/main/java/com/google/cloud/securitycentermanagement/v1/ListDescendantEventThreatDetectionCustomModulesResponse.java create mode 100644 owl-bot-staging/java-securitycentermanagement/v1/proto-google-cloud-securitycentermanagement-v1/src/main/java/com/google/cloud/securitycentermanagement/v1/ListDescendantEventThreatDetectionCustomModulesResponseOrBuilder.java rename {java-securitycentermanagement => owl-bot-staging/java-securitycentermanagement/v1}/proto-google-cloud-securitycentermanagement-v1/src/main/java/com/google/cloud/securitycentermanagement/v1/ListDescendantSecurityHealthAnalyticsCustomModulesRequest.java (51%) rename {java-securitycentermanagement => owl-bot-staging/java-securitycentermanagement/v1}/proto-google-cloud-securitycentermanagement-v1/src/main/java/com/google/cloud/securitycentermanagement/v1/ListDescendantSecurityHealthAnalyticsCustomModulesRequestOrBuilder.java (63%) create mode 100644 owl-bot-staging/java-securitycentermanagement/v1/proto-google-cloud-securitycentermanagement-v1/src/main/java/com/google/cloud/securitycentermanagement/v1/ListDescendantSecurityHealthAnalyticsCustomModulesResponse.java create mode 100644 owl-bot-staging/java-securitycentermanagement/v1/proto-google-cloud-securitycentermanagement-v1/src/main/java/com/google/cloud/securitycentermanagement/v1/ListDescendantSecurityHealthAnalyticsCustomModulesResponseOrBuilder.java rename {java-securitycentermanagement => owl-bot-staging/java-securitycentermanagement/v1}/proto-google-cloud-securitycentermanagement-v1/src/main/java/com/google/cloud/securitycentermanagement/v1/ListEffectiveEventThreatDetectionCustomModulesRequest.java (52%) rename {java-securitycentermanagement => owl-bot-staging/java-securitycentermanagement/v1}/proto-google-cloud-securitycentermanagement-v1/src/main/java/com/google/cloud/securitycentermanagement/v1/ListEffectiveEventThreatDetectionCustomModulesRequestOrBuilder.java (64%) create mode 100644 owl-bot-staging/java-securitycentermanagement/v1/proto-google-cloud-securitycentermanagement-v1/src/main/java/com/google/cloud/securitycentermanagement/v1/ListEffectiveEventThreatDetectionCustomModulesResponse.java create mode 100644 owl-bot-staging/java-securitycentermanagement/v1/proto-google-cloud-securitycentermanagement-v1/src/main/java/com/google/cloud/securitycentermanagement/v1/ListEffectiveEventThreatDetectionCustomModulesResponseOrBuilder.java rename {java-securitycentermanagement => owl-bot-staging/java-securitycentermanagement/v1}/proto-google-cloud-securitycentermanagement-v1/src/main/java/com/google/cloud/securitycentermanagement/v1/ListEffectiveSecurityHealthAnalyticsCustomModulesRequest.java (52%) rename {java-securitycentermanagement => owl-bot-staging/java-securitycentermanagement/v1}/proto-google-cloud-securitycentermanagement-v1/src/main/java/com/google/cloud/securitycentermanagement/v1/ListEffectiveSecurityHealthAnalyticsCustomModulesRequestOrBuilder.java (64%) create mode 100644 owl-bot-staging/java-securitycentermanagement/v1/proto-google-cloud-securitycentermanagement-v1/src/main/java/com/google/cloud/securitycentermanagement/v1/ListEffectiveSecurityHealthAnalyticsCustomModulesResponse.java create mode 100644 owl-bot-staging/java-securitycentermanagement/v1/proto-google-cloud-securitycentermanagement-v1/src/main/java/com/google/cloud/securitycentermanagement/v1/ListEffectiveSecurityHealthAnalyticsCustomModulesResponseOrBuilder.java rename {java-securitycentermanagement => owl-bot-staging/java-securitycentermanagement/v1}/proto-google-cloud-securitycentermanagement-v1/src/main/java/com/google/cloud/securitycentermanagement/v1/ListEventThreatDetectionCustomModulesRequest.java (57%) rename {java-securitycentermanagement => owl-bot-staging/java-securitycentermanagement/v1}/proto-google-cloud-securitycentermanagement-v1/src/main/java/com/google/cloud/securitycentermanagement/v1/ListEventThreatDetectionCustomModulesRequestOrBuilder.java (69%) rename {java-securitycentermanagement => owl-bot-staging/java-securitycentermanagement/v1}/proto-google-cloud-securitycentermanagement-v1/src/main/java/com/google/cloud/securitycentermanagement/v1/ListEventThreatDetectionCustomModulesResponse.java (50%) create mode 100644 owl-bot-staging/java-securitycentermanagement/v1/proto-google-cloud-securitycentermanagement-v1/src/main/java/com/google/cloud/securitycentermanagement/v1/ListEventThreatDetectionCustomModulesResponseOrBuilder.java rename {java-securitycentermanagement => owl-bot-staging/java-securitycentermanagement/v1}/proto-google-cloud-securitycentermanagement-v1/src/main/java/com/google/cloud/securitycentermanagement/v1/ListSecurityHealthAnalyticsCustomModulesRequest.java (53%) rename {java-securitycentermanagement => owl-bot-staging/java-securitycentermanagement/v1}/proto-google-cloud-securitycentermanagement-v1/src/main/java/com/google/cloud/securitycentermanagement/v1/ListSecurityHealthAnalyticsCustomModulesRequestOrBuilder.java (63%) rename {java-securitycentermanagement => owl-bot-staging/java-securitycentermanagement/v1}/proto-google-cloud-securitycentermanagement-v1/src/main/java/com/google/cloud/securitycentermanagement/v1/ListSecurityHealthAnalyticsCustomModulesResponse.java (50%) create mode 100644 owl-bot-staging/java-securitycentermanagement/v1/proto-google-cloud-securitycentermanagement-v1/src/main/java/com/google/cloud/securitycentermanagement/v1/ListSecurityHealthAnalyticsCustomModulesResponseOrBuilder.java rename {java-securitycentermanagement => owl-bot-staging/java-securitycentermanagement/v1}/proto-google-cloud-securitycentermanagement-v1/src/main/java/com/google/cloud/securitycentermanagement/v1/LocationName.java (100%) rename {java-securitycentermanagement => owl-bot-staging/java-securitycentermanagement/v1}/proto-google-cloud-securitycentermanagement-v1/src/main/java/com/google/cloud/securitycentermanagement/v1/OrganizationLocationName.java (100%) create mode 100644 owl-bot-staging/java-securitycentermanagement/v1/proto-google-cloud-securitycentermanagement-v1/src/main/java/com/google/cloud/securitycentermanagement/v1/SecurityCenterManagementProto.java rename {java-securitycentermanagement => owl-bot-staging/java-securitycentermanagement/v1}/proto-google-cloud-securitycentermanagement-v1/src/main/java/com/google/cloud/securitycentermanagement/v1/SecurityHealthAnalyticsCustomModule.java (64%) rename {java-securitycentermanagement => owl-bot-staging/java-securitycentermanagement/v1}/proto-google-cloud-securitycentermanagement-v1/src/main/java/com/google/cloud/securitycentermanagement/v1/SecurityHealthAnalyticsCustomModuleName.java (100%) rename {java-securitycentermanagement => owl-bot-staging/java-securitycentermanagement/v1}/proto-google-cloud-securitycentermanagement-v1/src/main/java/com/google/cloud/securitycentermanagement/v1/SecurityHealthAnalyticsCustomModuleOrBuilder.java (70%) rename {java-securitycentermanagement => owl-bot-staging/java-securitycentermanagement/v1}/proto-google-cloud-securitycentermanagement-v1/src/main/java/com/google/cloud/securitycentermanagement/v1/SimulateSecurityHealthAnalyticsCustomModuleRequest.java (53%) rename {java-securitycentermanagement => owl-bot-staging/java-securitycentermanagement/v1}/proto-google-cloud-securitycentermanagement-v1/src/main/java/com/google/cloud/securitycentermanagement/v1/SimulateSecurityHealthAnalyticsCustomModuleRequestOrBuilder.java (55%) rename {java-securitycentermanagement => owl-bot-staging/java-securitycentermanagement/v1}/proto-google-cloud-securitycentermanagement-v1/src/main/java/com/google/cloud/securitycentermanagement/v1/SimulateSecurityHealthAnalyticsCustomModuleResponse.java (53%) create mode 100644 owl-bot-staging/java-securitycentermanagement/v1/proto-google-cloud-securitycentermanagement-v1/src/main/java/com/google/cloud/securitycentermanagement/v1/SimulateSecurityHealthAnalyticsCustomModuleResponseOrBuilder.java rename {java-securitycentermanagement => owl-bot-staging/java-securitycentermanagement/v1}/proto-google-cloud-securitycentermanagement-v1/src/main/java/com/google/cloud/securitycentermanagement/v1/SimulatedFinding.java (73%) rename {java-securitycentermanagement => owl-bot-staging/java-securitycentermanagement/v1}/proto-google-cloud-securitycentermanagement-v1/src/main/java/com/google/cloud/securitycentermanagement/v1/SimulatedFindingOrBuilder.java (81%) rename {java-securitycentermanagement => owl-bot-staging/java-securitycentermanagement/v1}/proto-google-cloud-securitycentermanagement-v1/src/main/java/com/google/cloud/securitycentermanagement/v1/UpdateEventThreatDetectionCustomModuleRequest.java (56%) rename {java-securitycentermanagement => owl-bot-staging/java-securitycentermanagement/v1}/proto-google-cloud-securitycentermanagement-v1/src/main/java/com/google/cloud/securitycentermanagement/v1/UpdateEventThreatDetectionCustomModuleRequestOrBuilder.java (67%) create mode 100644 owl-bot-staging/java-securitycentermanagement/v1/proto-google-cloud-securitycentermanagement-v1/src/main/java/com/google/cloud/securitycentermanagement/v1/UpdateSecurityHealthAnalyticsCustomModuleRequest.java create mode 100644 owl-bot-staging/java-securitycentermanagement/v1/proto-google-cloud-securitycentermanagement-v1/src/main/java/com/google/cloud/securitycentermanagement/v1/UpdateSecurityHealthAnalyticsCustomModuleRequestOrBuilder.java rename {java-securitycentermanagement => owl-bot-staging/java-securitycentermanagement/v1}/proto-google-cloud-securitycentermanagement-v1/src/main/java/com/google/cloud/securitycentermanagement/v1/ValidateEventThreatDetectionCustomModuleRequest.java (54%) rename {java-securitycentermanagement => owl-bot-staging/java-securitycentermanagement/v1}/proto-google-cloud-securitycentermanagement-v1/src/main/java/com/google/cloud/securitycentermanagement/v1/ValidateEventThreatDetectionCustomModuleRequestOrBuilder.java (63%) create mode 100644 owl-bot-staging/java-securitycentermanagement/v1/proto-google-cloud-securitycentermanagement-v1/src/main/java/com/google/cloud/securitycentermanagement/v1/ValidateEventThreatDetectionCustomModuleResponse.java create mode 100644 owl-bot-staging/java-securitycentermanagement/v1/proto-google-cloud-securitycentermanagement-v1/src/main/java/com/google/cloud/securitycentermanagement/v1/ValidateEventThreatDetectionCustomModuleResponseOrBuilder.java rename {java-securitycentermanagement => owl-bot-staging/java-securitycentermanagement/v1}/proto-google-cloud-securitycentermanagement-v1/src/main/proto/google/cloud/securitycentermanagement/v1/security_center_management.proto (99%) rename {java-securitycentermanagement => owl-bot-staging/java-securitycentermanagement/v1}/samples/snippets/generated/com/google/cloud/securitycentermanagement/v1/securitycentermanagement/create/SyncCreateSetCredentialsProvider.java (100%) rename {java-securitycentermanagement => owl-bot-staging/java-securitycentermanagement/v1}/samples/snippets/generated/com/google/cloud/securitycentermanagement/v1/securitycentermanagement/create/SyncCreateSetCredentialsProvider1.java (100%) rename {java-securitycentermanagement => owl-bot-staging/java-securitycentermanagement/v1}/samples/snippets/generated/com/google/cloud/securitycentermanagement/v1/securitycentermanagement/create/SyncCreateSetEndpoint.java (100%) rename {java-securitycentermanagement => owl-bot-staging/java-securitycentermanagement/v1}/samples/snippets/generated/com/google/cloud/securitycentermanagement/v1/securitycentermanagement/createeventthreatdetectioncustommodule/AsyncCreateEventThreatDetectionCustomModule.java (100%) rename {java-securitycentermanagement => owl-bot-staging/java-securitycentermanagement/v1}/samples/snippets/generated/com/google/cloud/securitycentermanagement/v1/securitycentermanagement/createeventthreatdetectioncustommodule/SyncCreateEventThreatDetectionCustomModule.java (100%) rename {java-securitycentermanagement => owl-bot-staging/java-securitycentermanagement/v1}/samples/snippets/generated/com/google/cloud/securitycentermanagement/v1/securitycentermanagement/createeventthreatdetectioncustommodule/SyncCreateEventThreatDetectionCustomModuleFolderlocationnameEventthreatdetectioncustommodule.java (100%) rename {java-securitycentermanagement => owl-bot-staging/java-securitycentermanagement/v1}/samples/snippets/generated/com/google/cloud/securitycentermanagement/v1/securitycentermanagement/createeventthreatdetectioncustommodule/SyncCreateEventThreatDetectionCustomModuleLocationnameEventthreatdetectioncustommodule.java (100%) rename {java-securitycentermanagement => owl-bot-staging/java-securitycentermanagement/v1}/samples/snippets/generated/com/google/cloud/securitycentermanagement/v1/securitycentermanagement/createeventthreatdetectioncustommodule/SyncCreateEventThreatDetectionCustomModuleOrganizationlocationnameEventthreatdetectioncustommodule.java (100%) rename {java-securitycentermanagement => owl-bot-staging/java-securitycentermanagement/v1}/samples/snippets/generated/com/google/cloud/securitycentermanagement/v1/securitycentermanagement/createeventthreatdetectioncustommodule/SyncCreateEventThreatDetectionCustomModuleStringEventthreatdetectioncustommodule.java (100%) rename {java-securitycentermanagement => owl-bot-staging/java-securitycentermanagement/v1}/samples/snippets/generated/com/google/cloud/securitycentermanagement/v1/securitycentermanagement/createsecurityhealthanalyticscustommodule/AsyncCreateSecurityHealthAnalyticsCustomModule.java (100%) rename {java-securitycentermanagement => owl-bot-staging/java-securitycentermanagement/v1}/samples/snippets/generated/com/google/cloud/securitycentermanagement/v1/securitycentermanagement/createsecurityhealthanalyticscustommodule/SyncCreateSecurityHealthAnalyticsCustomModule.java (100%) rename {java-securitycentermanagement => owl-bot-staging/java-securitycentermanagement/v1}/samples/snippets/generated/com/google/cloud/securitycentermanagement/v1/securitycentermanagement/createsecurityhealthanalyticscustommodule/SyncCreateSecurityHealthAnalyticsCustomModuleFolderlocationnameSecurityhealthanalyticscustommodule.java (100%) rename {java-securitycentermanagement => owl-bot-staging/java-securitycentermanagement/v1}/samples/snippets/generated/com/google/cloud/securitycentermanagement/v1/securitycentermanagement/createsecurityhealthanalyticscustommodule/SyncCreateSecurityHealthAnalyticsCustomModuleLocationnameSecurityhealthanalyticscustommodule.java (100%) rename {java-securitycentermanagement => owl-bot-staging/java-securitycentermanagement/v1}/samples/snippets/generated/com/google/cloud/securitycentermanagement/v1/securitycentermanagement/createsecurityhealthanalyticscustommodule/SyncCreateSecurityHealthAnalyticsCustomModuleOrganizationlocationnameSecurityhealthanalyticscustommodule.java (100%) rename {java-securitycentermanagement => owl-bot-staging/java-securitycentermanagement/v1}/samples/snippets/generated/com/google/cloud/securitycentermanagement/v1/securitycentermanagement/createsecurityhealthanalyticscustommodule/SyncCreateSecurityHealthAnalyticsCustomModuleStringSecurityhealthanalyticscustommodule.java (100%) rename {java-securitycentermanagement => owl-bot-staging/java-securitycentermanagement/v1}/samples/snippets/generated/com/google/cloud/securitycentermanagement/v1/securitycentermanagement/deleteeventthreatdetectioncustommodule/AsyncDeleteEventThreatDetectionCustomModule.java (100%) rename {java-securitycentermanagement => owl-bot-staging/java-securitycentermanagement/v1}/samples/snippets/generated/com/google/cloud/securitycentermanagement/v1/securitycentermanagement/deleteeventthreatdetectioncustommodule/SyncDeleteEventThreatDetectionCustomModule.java (100%) rename {java-securitycentermanagement => owl-bot-staging/java-securitycentermanagement/v1}/samples/snippets/generated/com/google/cloud/securitycentermanagement/v1/securitycentermanagement/deleteeventthreatdetectioncustommodule/SyncDeleteEventThreatDetectionCustomModuleEventthreatdetectioncustommodulename.java (100%) rename {java-securitycentermanagement => owl-bot-staging/java-securitycentermanagement/v1}/samples/snippets/generated/com/google/cloud/securitycentermanagement/v1/securitycentermanagement/deleteeventthreatdetectioncustommodule/SyncDeleteEventThreatDetectionCustomModuleString.java (100%) rename {java-securitycentermanagement => owl-bot-staging/java-securitycentermanagement/v1}/samples/snippets/generated/com/google/cloud/securitycentermanagement/v1/securitycentermanagement/deletesecurityhealthanalyticscustommodule/AsyncDeleteSecurityHealthAnalyticsCustomModule.java (100%) rename {java-securitycentermanagement => owl-bot-staging/java-securitycentermanagement/v1}/samples/snippets/generated/com/google/cloud/securitycentermanagement/v1/securitycentermanagement/deletesecurityhealthanalyticscustommodule/SyncDeleteSecurityHealthAnalyticsCustomModule.java (100%) rename {java-securitycentermanagement => owl-bot-staging/java-securitycentermanagement/v1}/samples/snippets/generated/com/google/cloud/securitycentermanagement/v1/securitycentermanagement/deletesecurityhealthanalyticscustommodule/SyncDeleteSecurityHealthAnalyticsCustomModuleSecurityhealthanalyticscustommodulename.java (100%) rename {java-securitycentermanagement => owl-bot-staging/java-securitycentermanagement/v1}/samples/snippets/generated/com/google/cloud/securitycentermanagement/v1/securitycentermanagement/deletesecurityhealthanalyticscustommodule/SyncDeleteSecurityHealthAnalyticsCustomModuleString.java (100%) rename {java-securitycentermanagement => owl-bot-staging/java-securitycentermanagement/v1}/samples/snippets/generated/com/google/cloud/securitycentermanagement/v1/securitycentermanagement/geteffectiveeventthreatdetectioncustommodule/AsyncGetEffectiveEventThreatDetectionCustomModule.java (100%) rename {java-securitycentermanagement => owl-bot-staging/java-securitycentermanagement/v1}/samples/snippets/generated/com/google/cloud/securitycentermanagement/v1/securitycentermanagement/geteffectiveeventthreatdetectioncustommodule/SyncGetEffectiveEventThreatDetectionCustomModule.java (100%) rename {java-securitycentermanagement => owl-bot-staging/java-securitycentermanagement/v1}/samples/snippets/generated/com/google/cloud/securitycentermanagement/v1/securitycentermanagement/geteffectiveeventthreatdetectioncustommodule/SyncGetEffectiveEventThreatDetectionCustomModuleEffectiveeventthreatdetectioncustommodulename.java (100%) rename {java-securitycentermanagement => owl-bot-staging/java-securitycentermanagement/v1}/samples/snippets/generated/com/google/cloud/securitycentermanagement/v1/securitycentermanagement/geteffectiveeventthreatdetectioncustommodule/SyncGetEffectiveEventThreatDetectionCustomModuleString.java (100%) rename {java-securitycentermanagement => owl-bot-staging/java-securitycentermanagement/v1}/samples/snippets/generated/com/google/cloud/securitycentermanagement/v1/securitycentermanagement/geteffectivesecurityhealthanalyticscustommodule/AsyncGetEffectiveSecurityHealthAnalyticsCustomModule.java (100%) rename {java-securitycentermanagement => owl-bot-staging/java-securitycentermanagement/v1}/samples/snippets/generated/com/google/cloud/securitycentermanagement/v1/securitycentermanagement/geteffectivesecurityhealthanalyticscustommodule/SyncGetEffectiveSecurityHealthAnalyticsCustomModule.java (100%) rename {java-securitycentermanagement => owl-bot-staging/java-securitycentermanagement/v1}/samples/snippets/generated/com/google/cloud/securitycentermanagement/v1/securitycentermanagement/geteffectivesecurityhealthanalyticscustommodule/SyncGetEffectiveSecurityHealthAnalyticsCustomModuleEffectivesecurityhealthanalyticscustommodulename.java (100%) rename {java-securitycentermanagement => owl-bot-staging/java-securitycentermanagement/v1}/samples/snippets/generated/com/google/cloud/securitycentermanagement/v1/securitycentermanagement/geteffectivesecurityhealthanalyticscustommodule/SyncGetEffectiveSecurityHealthAnalyticsCustomModuleString.java (100%) rename {java-securitycentermanagement => owl-bot-staging/java-securitycentermanagement/v1}/samples/snippets/generated/com/google/cloud/securitycentermanagement/v1/securitycentermanagement/geteventthreatdetectioncustommodule/AsyncGetEventThreatDetectionCustomModule.java (100%) rename {java-securitycentermanagement => owl-bot-staging/java-securitycentermanagement/v1}/samples/snippets/generated/com/google/cloud/securitycentermanagement/v1/securitycentermanagement/geteventthreatdetectioncustommodule/SyncGetEventThreatDetectionCustomModule.java (100%) rename {java-securitycentermanagement => owl-bot-staging/java-securitycentermanagement/v1}/samples/snippets/generated/com/google/cloud/securitycentermanagement/v1/securitycentermanagement/geteventthreatdetectioncustommodule/SyncGetEventThreatDetectionCustomModuleEventthreatdetectioncustommodulename.java (100%) rename {java-securitycentermanagement => owl-bot-staging/java-securitycentermanagement/v1}/samples/snippets/generated/com/google/cloud/securitycentermanagement/v1/securitycentermanagement/geteventthreatdetectioncustommodule/SyncGetEventThreatDetectionCustomModuleString.java (100%) rename {java-securitycentermanagement => owl-bot-staging/java-securitycentermanagement/v1}/samples/snippets/generated/com/google/cloud/securitycentermanagement/v1/securitycentermanagement/getlocation/AsyncGetLocation.java (100%) rename {java-securitycentermanagement => owl-bot-staging/java-securitycentermanagement/v1}/samples/snippets/generated/com/google/cloud/securitycentermanagement/v1/securitycentermanagement/getlocation/SyncGetLocation.java (100%) rename {java-securitycentermanagement => owl-bot-staging/java-securitycentermanagement/v1}/samples/snippets/generated/com/google/cloud/securitycentermanagement/v1/securitycentermanagement/getsecurityhealthanalyticscustommodule/AsyncGetSecurityHealthAnalyticsCustomModule.java (100%) rename {java-securitycentermanagement => owl-bot-staging/java-securitycentermanagement/v1}/samples/snippets/generated/com/google/cloud/securitycentermanagement/v1/securitycentermanagement/getsecurityhealthanalyticscustommodule/SyncGetSecurityHealthAnalyticsCustomModule.java (100%) rename {java-securitycentermanagement => owl-bot-staging/java-securitycentermanagement/v1}/samples/snippets/generated/com/google/cloud/securitycentermanagement/v1/securitycentermanagement/getsecurityhealthanalyticscustommodule/SyncGetSecurityHealthAnalyticsCustomModuleSecurityhealthanalyticscustommodulename.java (100%) rename {java-securitycentermanagement => owl-bot-staging/java-securitycentermanagement/v1}/samples/snippets/generated/com/google/cloud/securitycentermanagement/v1/securitycentermanagement/getsecurityhealthanalyticscustommodule/SyncGetSecurityHealthAnalyticsCustomModuleString.java (100%) rename {java-securitycentermanagement => owl-bot-staging/java-securitycentermanagement/v1}/samples/snippets/generated/com/google/cloud/securitycentermanagement/v1/securitycentermanagement/listdescendanteventthreatdetectioncustommodules/AsyncListDescendantEventThreatDetectionCustomModules.java (100%) rename {java-securitycentermanagement => owl-bot-staging/java-securitycentermanagement/v1}/samples/snippets/generated/com/google/cloud/securitycentermanagement/v1/securitycentermanagement/listdescendanteventthreatdetectioncustommodules/AsyncListDescendantEventThreatDetectionCustomModulesPaged.java (100%) rename {java-securitycentermanagement => owl-bot-staging/java-securitycentermanagement/v1}/samples/snippets/generated/com/google/cloud/securitycentermanagement/v1/securitycentermanagement/listdescendanteventthreatdetectioncustommodules/SyncListDescendantEventThreatDetectionCustomModules.java (100%) rename {java-securitycentermanagement => owl-bot-staging/java-securitycentermanagement/v1}/samples/snippets/generated/com/google/cloud/securitycentermanagement/v1/securitycentermanagement/listdescendanteventthreatdetectioncustommodules/SyncListDescendantEventThreatDetectionCustomModulesFolderlocationname.java (100%) rename {java-securitycentermanagement => owl-bot-staging/java-securitycentermanagement/v1}/samples/snippets/generated/com/google/cloud/securitycentermanagement/v1/securitycentermanagement/listdescendanteventthreatdetectioncustommodules/SyncListDescendantEventThreatDetectionCustomModulesLocationname.java (100%) rename {java-securitycentermanagement => owl-bot-staging/java-securitycentermanagement/v1}/samples/snippets/generated/com/google/cloud/securitycentermanagement/v1/securitycentermanagement/listdescendanteventthreatdetectioncustommodules/SyncListDescendantEventThreatDetectionCustomModulesOrganizationlocationname.java (100%) rename {java-securitycentermanagement => owl-bot-staging/java-securitycentermanagement/v1}/samples/snippets/generated/com/google/cloud/securitycentermanagement/v1/securitycentermanagement/listdescendanteventthreatdetectioncustommodules/SyncListDescendantEventThreatDetectionCustomModulesString.java (100%) rename {java-securitycentermanagement => owl-bot-staging/java-securitycentermanagement/v1}/samples/snippets/generated/com/google/cloud/securitycentermanagement/v1/securitycentermanagement/listdescendantsecurityhealthanalyticscustommodules/AsyncListDescendantSecurityHealthAnalyticsCustomModules.java (100%) rename {java-securitycentermanagement => owl-bot-staging/java-securitycentermanagement/v1}/samples/snippets/generated/com/google/cloud/securitycentermanagement/v1/securitycentermanagement/listdescendantsecurityhealthanalyticscustommodules/AsyncListDescendantSecurityHealthAnalyticsCustomModulesPaged.java (100%) rename {java-securitycentermanagement => owl-bot-staging/java-securitycentermanagement/v1}/samples/snippets/generated/com/google/cloud/securitycentermanagement/v1/securitycentermanagement/listdescendantsecurityhealthanalyticscustommodules/SyncListDescendantSecurityHealthAnalyticsCustomModules.java (100%) rename {java-securitycentermanagement => owl-bot-staging/java-securitycentermanagement/v1}/samples/snippets/generated/com/google/cloud/securitycentermanagement/v1/securitycentermanagement/listdescendantsecurityhealthanalyticscustommodules/SyncListDescendantSecurityHealthAnalyticsCustomModulesFolderlocationname.java (100%) rename {java-securitycentermanagement => owl-bot-staging/java-securitycentermanagement/v1}/samples/snippets/generated/com/google/cloud/securitycentermanagement/v1/securitycentermanagement/listdescendantsecurityhealthanalyticscustommodules/SyncListDescendantSecurityHealthAnalyticsCustomModulesLocationname.java (100%) rename {java-securitycentermanagement => owl-bot-staging/java-securitycentermanagement/v1}/samples/snippets/generated/com/google/cloud/securitycentermanagement/v1/securitycentermanagement/listdescendantsecurityhealthanalyticscustommodules/SyncListDescendantSecurityHealthAnalyticsCustomModulesOrganizationlocationname.java (100%) rename {java-securitycentermanagement => owl-bot-staging/java-securitycentermanagement/v1}/samples/snippets/generated/com/google/cloud/securitycentermanagement/v1/securitycentermanagement/listdescendantsecurityhealthanalyticscustommodules/SyncListDescendantSecurityHealthAnalyticsCustomModulesString.java (100%) rename {java-securitycentermanagement => owl-bot-staging/java-securitycentermanagement/v1}/samples/snippets/generated/com/google/cloud/securitycentermanagement/v1/securitycentermanagement/listeffectiveeventthreatdetectioncustommodules/AsyncListEffectiveEventThreatDetectionCustomModules.java (100%) rename {java-securitycentermanagement => owl-bot-staging/java-securitycentermanagement/v1}/samples/snippets/generated/com/google/cloud/securitycentermanagement/v1/securitycentermanagement/listeffectiveeventthreatdetectioncustommodules/AsyncListEffectiveEventThreatDetectionCustomModulesPaged.java (100%) rename {java-securitycentermanagement => owl-bot-staging/java-securitycentermanagement/v1}/samples/snippets/generated/com/google/cloud/securitycentermanagement/v1/securitycentermanagement/listeffectiveeventthreatdetectioncustommodules/SyncListEffectiveEventThreatDetectionCustomModules.java (100%) rename {java-securitycentermanagement => owl-bot-staging/java-securitycentermanagement/v1}/samples/snippets/generated/com/google/cloud/securitycentermanagement/v1/securitycentermanagement/listeffectiveeventthreatdetectioncustommodules/SyncListEffectiveEventThreatDetectionCustomModulesFolderlocationname.java (100%) rename {java-securitycentermanagement => owl-bot-staging/java-securitycentermanagement/v1}/samples/snippets/generated/com/google/cloud/securitycentermanagement/v1/securitycentermanagement/listeffectiveeventthreatdetectioncustommodules/SyncListEffectiveEventThreatDetectionCustomModulesLocationname.java (100%) rename {java-securitycentermanagement => owl-bot-staging/java-securitycentermanagement/v1}/samples/snippets/generated/com/google/cloud/securitycentermanagement/v1/securitycentermanagement/listeffectiveeventthreatdetectioncustommodules/SyncListEffectiveEventThreatDetectionCustomModulesOrganizationlocationname.java (100%) rename {java-securitycentermanagement => owl-bot-staging/java-securitycentermanagement/v1}/samples/snippets/generated/com/google/cloud/securitycentermanagement/v1/securitycentermanagement/listeffectiveeventthreatdetectioncustommodules/SyncListEffectiveEventThreatDetectionCustomModulesString.java (100%) rename {java-securitycentermanagement => owl-bot-staging/java-securitycentermanagement/v1}/samples/snippets/generated/com/google/cloud/securitycentermanagement/v1/securitycentermanagement/listeffectivesecurityhealthanalyticscustommodules/AsyncListEffectiveSecurityHealthAnalyticsCustomModules.java (100%) rename {java-securitycentermanagement => owl-bot-staging/java-securitycentermanagement/v1}/samples/snippets/generated/com/google/cloud/securitycentermanagement/v1/securitycentermanagement/listeffectivesecurityhealthanalyticscustommodules/AsyncListEffectiveSecurityHealthAnalyticsCustomModulesPaged.java (100%) rename {java-securitycentermanagement => owl-bot-staging/java-securitycentermanagement/v1}/samples/snippets/generated/com/google/cloud/securitycentermanagement/v1/securitycentermanagement/listeffectivesecurityhealthanalyticscustommodules/SyncListEffectiveSecurityHealthAnalyticsCustomModules.java (100%) rename {java-securitycentermanagement => owl-bot-staging/java-securitycentermanagement/v1}/samples/snippets/generated/com/google/cloud/securitycentermanagement/v1/securitycentermanagement/listeffectivesecurityhealthanalyticscustommodules/SyncListEffectiveSecurityHealthAnalyticsCustomModulesFolderlocationname.java (100%) rename {java-securitycentermanagement => owl-bot-staging/java-securitycentermanagement/v1}/samples/snippets/generated/com/google/cloud/securitycentermanagement/v1/securitycentermanagement/listeffectivesecurityhealthanalyticscustommodules/SyncListEffectiveSecurityHealthAnalyticsCustomModulesLocationname.java (100%) rename {java-securitycentermanagement => owl-bot-staging/java-securitycentermanagement/v1}/samples/snippets/generated/com/google/cloud/securitycentermanagement/v1/securitycentermanagement/listeffectivesecurityhealthanalyticscustommodules/SyncListEffectiveSecurityHealthAnalyticsCustomModulesOrganizationlocationname.java (100%) rename {java-securitycentermanagement => owl-bot-staging/java-securitycentermanagement/v1}/samples/snippets/generated/com/google/cloud/securitycentermanagement/v1/securitycentermanagement/listeffectivesecurityhealthanalyticscustommodules/SyncListEffectiveSecurityHealthAnalyticsCustomModulesString.java (100%) rename {java-securitycentermanagement => owl-bot-staging/java-securitycentermanagement/v1}/samples/snippets/generated/com/google/cloud/securitycentermanagement/v1/securitycentermanagement/listeventthreatdetectioncustommodules/AsyncListEventThreatDetectionCustomModules.java (100%) rename {java-securitycentermanagement => owl-bot-staging/java-securitycentermanagement/v1}/samples/snippets/generated/com/google/cloud/securitycentermanagement/v1/securitycentermanagement/listeventthreatdetectioncustommodules/AsyncListEventThreatDetectionCustomModulesPaged.java (100%) rename {java-securitycentermanagement => owl-bot-staging/java-securitycentermanagement/v1}/samples/snippets/generated/com/google/cloud/securitycentermanagement/v1/securitycentermanagement/listeventthreatdetectioncustommodules/SyncListEventThreatDetectionCustomModules.java (100%) rename {java-securitycentermanagement => owl-bot-staging/java-securitycentermanagement/v1}/samples/snippets/generated/com/google/cloud/securitycentermanagement/v1/securitycentermanagement/listeventthreatdetectioncustommodules/SyncListEventThreatDetectionCustomModulesFolderlocationname.java (100%) rename {java-securitycentermanagement => owl-bot-staging/java-securitycentermanagement/v1}/samples/snippets/generated/com/google/cloud/securitycentermanagement/v1/securitycentermanagement/listeventthreatdetectioncustommodules/SyncListEventThreatDetectionCustomModulesLocationname.java (100%) rename {java-securitycentermanagement => owl-bot-staging/java-securitycentermanagement/v1}/samples/snippets/generated/com/google/cloud/securitycentermanagement/v1/securitycentermanagement/listeventthreatdetectioncustommodules/SyncListEventThreatDetectionCustomModulesOrganizationlocationname.java (100%) rename {java-securitycentermanagement => owl-bot-staging/java-securitycentermanagement/v1}/samples/snippets/generated/com/google/cloud/securitycentermanagement/v1/securitycentermanagement/listeventthreatdetectioncustommodules/SyncListEventThreatDetectionCustomModulesString.java (100%) rename {java-securitycentermanagement => owl-bot-staging/java-securitycentermanagement/v1}/samples/snippets/generated/com/google/cloud/securitycentermanagement/v1/securitycentermanagement/listlocations/AsyncListLocations.java (100%) rename {java-securitycentermanagement => owl-bot-staging/java-securitycentermanagement/v1}/samples/snippets/generated/com/google/cloud/securitycentermanagement/v1/securitycentermanagement/listlocations/AsyncListLocationsPaged.java (100%) rename {java-securitycentermanagement => owl-bot-staging/java-securitycentermanagement/v1}/samples/snippets/generated/com/google/cloud/securitycentermanagement/v1/securitycentermanagement/listlocations/SyncListLocations.java (100%) rename {java-securitycentermanagement => owl-bot-staging/java-securitycentermanagement/v1}/samples/snippets/generated/com/google/cloud/securitycentermanagement/v1/securitycentermanagement/listsecurityhealthanalyticscustommodules/AsyncListSecurityHealthAnalyticsCustomModules.java (100%) rename {java-securitycentermanagement => owl-bot-staging/java-securitycentermanagement/v1}/samples/snippets/generated/com/google/cloud/securitycentermanagement/v1/securitycentermanagement/listsecurityhealthanalyticscustommodules/AsyncListSecurityHealthAnalyticsCustomModulesPaged.java (100%) rename {java-securitycentermanagement => owl-bot-staging/java-securitycentermanagement/v1}/samples/snippets/generated/com/google/cloud/securitycentermanagement/v1/securitycentermanagement/listsecurityhealthanalyticscustommodules/SyncListSecurityHealthAnalyticsCustomModules.java (100%) rename {java-securitycentermanagement => owl-bot-staging/java-securitycentermanagement/v1}/samples/snippets/generated/com/google/cloud/securitycentermanagement/v1/securitycentermanagement/listsecurityhealthanalyticscustommodules/SyncListSecurityHealthAnalyticsCustomModulesFolderlocationname.java (100%) rename {java-securitycentermanagement => owl-bot-staging/java-securitycentermanagement/v1}/samples/snippets/generated/com/google/cloud/securitycentermanagement/v1/securitycentermanagement/listsecurityhealthanalyticscustommodules/SyncListSecurityHealthAnalyticsCustomModulesLocationname.java (100%) rename {java-securitycentermanagement => owl-bot-staging/java-securitycentermanagement/v1}/samples/snippets/generated/com/google/cloud/securitycentermanagement/v1/securitycentermanagement/listsecurityhealthanalyticscustommodules/SyncListSecurityHealthAnalyticsCustomModulesOrganizationlocationname.java (100%) rename {java-securitycentermanagement => owl-bot-staging/java-securitycentermanagement/v1}/samples/snippets/generated/com/google/cloud/securitycentermanagement/v1/securitycentermanagement/listsecurityhealthanalyticscustommodules/SyncListSecurityHealthAnalyticsCustomModulesString.java (100%) rename {java-securitycentermanagement => owl-bot-staging/java-securitycentermanagement/v1}/samples/snippets/generated/com/google/cloud/securitycentermanagement/v1/securitycentermanagement/simulatesecurityhealthanalyticscustommodule/AsyncSimulateSecurityHealthAnalyticsCustomModule.java (100%) rename {java-securitycentermanagement => owl-bot-staging/java-securitycentermanagement/v1}/samples/snippets/generated/com/google/cloud/securitycentermanagement/v1/securitycentermanagement/simulatesecurityhealthanalyticscustommodule/SyncSimulateSecurityHealthAnalyticsCustomModule.java (100%) rename {java-securitycentermanagement => owl-bot-staging/java-securitycentermanagement/v1}/samples/snippets/generated/com/google/cloud/securitycentermanagement/v1/securitycentermanagement/simulatesecurityhealthanalyticscustommodule/SyncSimulateSecurityHealthAnalyticsCustomModuleStringCustomconfigSimulatesecurityhealthanalyticscustommodulerequestsimulatedresource.java (100%) rename {java-securitycentermanagement => owl-bot-staging/java-securitycentermanagement/v1}/samples/snippets/generated/com/google/cloud/securitycentermanagement/v1/securitycentermanagement/updateeventthreatdetectioncustommodule/AsyncUpdateEventThreatDetectionCustomModule.java (100%) rename {java-securitycentermanagement => owl-bot-staging/java-securitycentermanagement/v1}/samples/snippets/generated/com/google/cloud/securitycentermanagement/v1/securitycentermanagement/updateeventthreatdetectioncustommodule/SyncUpdateEventThreatDetectionCustomModule.java (100%) rename {java-securitycentermanagement => owl-bot-staging/java-securitycentermanagement/v1}/samples/snippets/generated/com/google/cloud/securitycentermanagement/v1/securitycentermanagement/updateeventthreatdetectioncustommodule/SyncUpdateEventThreatDetectionCustomModuleEventthreatdetectioncustommoduleFieldmask.java (100%) rename {java-securitycentermanagement => owl-bot-staging/java-securitycentermanagement/v1}/samples/snippets/generated/com/google/cloud/securitycentermanagement/v1/securitycentermanagement/updatesecurityhealthanalyticscustommodule/AsyncUpdateSecurityHealthAnalyticsCustomModule.java (100%) rename {java-securitycentermanagement => owl-bot-staging/java-securitycentermanagement/v1}/samples/snippets/generated/com/google/cloud/securitycentermanagement/v1/securitycentermanagement/updatesecurityhealthanalyticscustommodule/SyncUpdateSecurityHealthAnalyticsCustomModule.java (100%) rename {java-securitycentermanagement => owl-bot-staging/java-securitycentermanagement/v1}/samples/snippets/generated/com/google/cloud/securitycentermanagement/v1/securitycentermanagement/updatesecurityhealthanalyticscustommodule/SyncUpdateSecurityHealthAnalyticsCustomModuleSecurityhealthanalyticscustommoduleFieldmask.java (100%) rename {java-securitycentermanagement => owl-bot-staging/java-securitycentermanagement/v1}/samples/snippets/generated/com/google/cloud/securitycentermanagement/v1/securitycentermanagement/validateeventthreatdetectioncustommodule/AsyncValidateEventThreatDetectionCustomModule.java (100%) rename {java-securitycentermanagement => owl-bot-staging/java-securitycentermanagement/v1}/samples/snippets/generated/com/google/cloud/securitycentermanagement/v1/securitycentermanagement/validateeventthreatdetectioncustommodule/SyncValidateEventThreatDetectionCustomModule.java (100%) rename {java-securitycentermanagement => owl-bot-staging/java-securitycentermanagement/v1}/samples/snippets/generated/com/google/cloud/securitycentermanagement/v1/securitycentermanagementsettings/geteffectivesecurityhealthanalyticscustommodule/SyncGetEffectiveSecurityHealthAnalyticsCustomModule.java (100%) rename {java-securitycentermanagement => owl-bot-staging/java-securitycentermanagement/v1}/samples/snippets/generated/com/google/cloud/securitycentermanagement/v1/stub/securitycentermanagementstubsettings/geteffectivesecurityhealthanalyticscustommodule/SyncGetEffectiveSecurityHealthAnalyticsCustomModule.java (100%) diff --git a/java-securitycentermanagement/grpc-google-cloud-securitycentermanagement-v1/src/main/java/com/google/cloud/securitycentermanagement/v1/SecurityCenterManagementGrpc.java b/java-securitycentermanagement/grpc-google-cloud-securitycentermanagement-v1/src/main/java/com/google/cloud/securitycentermanagement/v1/SecurityCenterManagementGrpc.java deleted file mode 100644 index 5d66514e01f2..000000000000 --- a/java-securitycentermanagement/grpc-google-cloud-securitycentermanagement-v1/src/main/java/com/google/cloud/securitycentermanagement/v1/SecurityCenterManagementGrpc.java +++ /dev/null @@ -1,3331 +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.securitycentermanagement.v1; - -import static io.grpc.MethodDescriptor.generateFullMethodName; - -/** - * - * - *
- * Service describing handlers for resources
- * 
- */ -@javax.annotation.Generated( - value = "by gRPC proto compiler", - comments = "Source: google/cloud/securitycentermanagement/v1/security_center_management.proto") -@io.grpc.stub.annotations.GrpcGenerated -public final class SecurityCenterManagementGrpc { - - private SecurityCenterManagementGrpc() {} - - public static final java.lang.String SERVICE_NAME = - "google.cloud.securitycentermanagement.v1.SecurityCenterManagement"; - - // Static method descriptors that strictly reflect the proto. - private static volatile io.grpc.MethodDescriptor< - com.google.cloud.securitycentermanagement.v1 - .ListEffectiveSecurityHealthAnalyticsCustomModulesRequest, - com.google.cloud.securitycentermanagement.v1 - .ListEffectiveSecurityHealthAnalyticsCustomModulesResponse> - getListEffectiveSecurityHealthAnalyticsCustomModulesMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "ListEffectiveSecurityHealthAnalyticsCustomModules", - requestType = - com.google.cloud.securitycentermanagement.v1 - .ListEffectiveSecurityHealthAnalyticsCustomModulesRequest.class, - responseType = - com.google.cloud.securitycentermanagement.v1 - .ListEffectiveSecurityHealthAnalyticsCustomModulesResponse.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.cloud.securitycentermanagement.v1 - .ListEffectiveSecurityHealthAnalyticsCustomModulesRequest, - com.google.cloud.securitycentermanagement.v1 - .ListEffectiveSecurityHealthAnalyticsCustomModulesResponse> - getListEffectiveSecurityHealthAnalyticsCustomModulesMethod() { - io.grpc.MethodDescriptor< - com.google.cloud.securitycentermanagement.v1 - .ListEffectiveSecurityHealthAnalyticsCustomModulesRequest, - com.google.cloud.securitycentermanagement.v1 - .ListEffectiveSecurityHealthAnalyticsCustomModulesResponse> - getListEffectiveSecurityHealthAnalyticsCustomModulesMethod; - if ((getListEffectiveSecurityHealthAnalyticsCustomModulesMethod = - SecurityCenterManagementGrpc.getListEffectiveSecurityHealthAnalyticsCustomModulesMethod) - == null) { - synchronized (SecurityCenterManagementGrpc.class) { - if ((getListEffectiveSecurityHealthAnalyticsCustomModulesMethod = - SecurityCenterManagementGrpc - .getListEffectiveSecurityHealthAnalyticsCustomModulesMethod) - == null) { - SecurityCenterManagementGrpc.getListEffectiveSecurityHealthAnalyticsCustomModulesMethod = - getListEffectiveSecurityHealthAnalyticsCustomModulesMethod = - io.grpc.MethodDescriptor - . - newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName( - generateFullMethodName( - SERVICE_NAME, "ListEffectiveSecurityHealthAnalyticsCustomModules")) - .setSampledToLocalTracing(true) - .setRequestMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.securitycentermanagement.v1 - .ListEffectiveSecurityHealthAnalyticsCustomModulesRequest - .getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.securitycentermanagement.v1 - .ListEffectiveSecurityHealthAnalyticsCustomModulesResponse - .getDefaultInstance())) - .setSchemaDescriptor( - new SecurityCenterManagementMethodDescriptorSupplier( - "ListEffectiveSecurityHealthAnalyticsCustomModules")) - .build(); - } - } - } - return getListEffectiveSecurityHealthAnalyticsCustomModulesMethod; - } - - private static volatile io.grpc.MethodDescriptor< - com.google.cloud.securitycentermanagement.v1 - .GetEffectiveSecurityHealthAnalyticsCustomModuleRequest, - com.google.cloud.securitycentermanagement.v1.EffectiveSecurityHealthAnalyticsCustomModule> - getGetEffectiveSecurityHealthAnalyticsCustomModuleMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "GetEffectiveSecurityHealthAnalyticsCustomModule", - requestType = - com.google.cloud.securitycentermanagement.v1 - .GetEffectiveSecurityHealthAnalyticsCustomModuleRequest.class, - responseType = - com.google.cloud.securitycentermanagement.v1.EffectiveSecurityHealthAnalyticsCustomModule - .class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.cloud.securitycentermanagement.v1 - .GetEffectiveSecurityHealthAnalyticsCustomModuleRequest, - com.google.cloud.securitycentermanagement.v1.EffectiveSecurityHealthAnalyticsCustomModule> - getGetEffectiveSecurityHealthAnalyticsCustomModuleMethod() { - io.grpc.MethodDescriptor< - com.google.cloud.securitycentermanagement.v1 - .GetEffectiveSecurityHealthAnalyticsCustomModuleRequest, - com.google.cloud.securitycentermanagement.v1 - .EffectiveSecurityHealthAnalyticsCustomModule> - getGetEffectiveSecurityHealthAnalyticsCustomModuleMethod; - if ((getGetEffectiveSecurityHealthAnalyticsCustomModuleMethod = - SecurityCenterManagementGrpc.getGetEffectiveSecurityHealthAnalyticsCustomModuleMethod) - == null) { - synchronized (SecurityCenterManagementGrpc.class) { - if ((getGetEffectiveSecurityHealthAnalyticsCustomModuleMethod = - SecurityCenterManagementGrpc - .getGetEffectiveSecurityHealthAnalyticsCustomModuleMethod) - == null) { - SecurityCenterManagementGrpc.getGetEffectiveSecurityHealthAnalyticsCustomModuleMethod = - getGetEffectiveSecurityHealthAnalyticsCustomModuleMethod = - io.grpc.MethodDescriptor - . - newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName( - generateFullMethodName( - SERVICE_NAME, "GetEffectiveSecurityHealthAnalyticsCustomModule")) - .setSampledToLocalTracing(true) - .setRequestMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.securitycentermanagement.v1 - .GetEffectiveSecurityHealthAnalyticsCustomModuleRequest - .getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.securitycentermanagement.v1 - .EffectiveSecurityHealthAnalyticsCustomModule - .getDefaultInstance())) - .setSchemaDescriptor( - new SecurityCenterManagementMethodDescriptorSupplier( - "GetEffectiveSecurityHealthAnalyticsCustomModule")) - .build(); - } - } - } - return getGetEffectiveSecurityHealthAnalyticsCustomModuleMethod; - } - - private static volatile io.grpc.MethodDescriptor< - com.google.cloud.securitycentermanagement.v1 - .ListSecurityHealthAnalyticsCustomModulesRequest, - com.google.cloud.securitycentermanagement.v1 - .ListSecurityHealthAnalyticsCustomModulesResponse> - getListSecurityHealthAnalyticsCustomModulesMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "ListSecurityHealthAnalyticsCustomModules", - requestType = - com.google.cloud.securitycentermanagement.v1 - .ListSecurityHealthAnalyticsCustomModulesRequest.class, - responseType = - com.google.cloud.securitycentermanagement.v1 - .ListSecurityHealthAnalyticsCustomModulesResponse.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.cloud.securitycentermanagement.v1 - .ListSecurityHealthAnalyticsCustomModulesRequest, - com.google.cloud.securitycentermanagement.v1 - .ListSecurityHealthAnalyticsCustomModulesResponse> - getListSecurityHealthAnalyticsCustomModulesMethod() { - io.grpc.MethodDescriptor< - com.google.cloud.securitycentermanagement.v1 - .ListSecurityHealthAnalyticsCustomModulesRequest, - com.google.cloud.securitycentermanagement.v1 - .ListSecurityHealthAnalyticsCustomModulesResponse> - getListSecurityHealthAnalyticsCustomModulesMethod; - if ((getListSecurityHealthAnalyticsCustomModulesMethod = - SecurityCenterManagementGrpc.getListSecurityHealthAnalyticsCustomModulesMethod) - == null) { - synchronized (SecurityCenterManagementGrpc.class) { - if ((getListSecurityHealthAnalyticsCustomModulesMethod = - SecurityCenterManagementGrpc.getListSecurityHealthAnalyticsCustomModulesMethod) - == null) { - SecurityCenterManagementGrpc.getListSecurityHealthAnalyticsCustomModulesMethod = - getListSecurityHealthAnalyticsCustomModulesMethod = - io.grpc.MethodDescriptor - . - newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName( - generateFullMethodName( - SERVICE_NAME, "ListSecurityHealthAnalyticsCustomModules")) - .setSampledToLocalTracing(true) - .setRequestMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.securitycentermanagement.v1 - .ListSecurityHealthAnalyticsCustomModulesRequest - .getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.securitycentermanagement.v1 - .ListSecurityHealthAnalyticsCustomModulesResponse - .getDefaultInstance())) - .setSchemaDescriptor( - new SecurityCenterManagementMethodDescriptorSupplier( - "ListSecurityHealthAnalyticsCustomModules")) - .build(); - } - } - } - return getListSecurityHealthAnalyticsCustomModulesMethod; - } - - private static volatile io.grpc.MethodDescriptor< - com.google.cloud.securitycentermanagement.v1 - .ListDescendantSecurityHealthAnalyticsCustomModulesRequest, - com.google.cloud.securitycentermanagement.v1 - .ListDescendantSecurityHealthAnalyticsCustomModulesResponse> - getListDescendantSecurityHealthAnalyticsCustomModulesMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "ListDescendantSecurityHealthAnalyticsCustomModules", - requestType = - com.google.cloud.securitycentermanagement.v1 - .ListDescendantSecurityHealthAnalyticsCustomModulesRequest.class, - responseType = - com.google.cloud.securitycentermanagement.v1 - .ListDescendantSecurityHealthAnalyticsCustomModulesResponse.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.cloud.securitycentermanagement.v1 - .ListDescendantSecurityHealthAnalyticsCustomModulesRequest, - com.google.cloud.securitycentermanagement.v1 - .ListDescendantSecurityHealthAnalyticsCustomModulesResponse> - getListDescendantSecurityHealthAnalyticsCustomModulesMethod() { - io.grpc.MethodDescriptor< - com.google.cloud.securitycentermanagement.v1 - .ListDescendantSecurityHealthAnalyticsCustomModulesRequest, - com.google.cloud.securitycentermanagement.v1 - .ListDescendantSecurityHealthAnalyticsCustomModulesResponse> - getListDescendantSecurityHealthAnalyticsCustomModulesMethod; - if ((getListDescendantSecurityHealthAnalyticsCustomModulesMethod = - SecurityCenterManagementGrpc - .getListDescendantSecurityHealthAnalyticsCustomModulesMethod) - == null) { - synchronized (SecurityCenterManagementGrpc.class) { - if ((getListDescendantSecurityHealthAnalyticsCustomModulesMethod = - SecurityCenterManagementGrpc - .getListDescendantSecurityHealthAnalyticsCustomModulesMethod) - == null) { - SecurityCenterManagementGrpc.getListDescendantSecurityHealthAnalyticsCustomModulesMethod = - getListDescendantSecurityHealthAnalyticsCustomModulesMethod = - io.grpc.MethodDescriptor - . - newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName( - generateFullMethodName( - SERVICE_NAME, "ListDescendantSecurityHealthAnalyticsCustomModules")) - .setSampledToLocalTracing(true) - .setRequestMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.securitycentermanagement.v1 - .ListDescendantSecurityHealthAnalyticsCustomModulesRequest - .getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.securitycentermanagement.v1 - .ListDescendantSecurityHealthAnalyticsCustomModulesResponse - .getDefaultInstance())) - .setSchemaDescriptor( - new SecurityCenterManagementMethodDescriptorSupplier( - "ListDescendantSecurityHealthAnalyticsCustomModules")) - .build(); - } - } - } - return getListDescendantSecurityHealthAnalyticsCustomModulesMethod; - } - - private static volatile io.grpc.MethodDescriptor< - com.google.cloud.securitycentermanagement.v1 - .GetSecurityHealthAnalyticsCustomModuleRequest, - com.google.cloud.securitycentermanagement.v1.SecurityHealthAnalyticsCustomModule> - getGetSecurityHealthAnalyticsCustomModuleMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "GetSecurityHealthAnalyticsCustomModule", - requestType = - com.google.cloud.securitycentermanagement.v1.GetSecurityHealthAnalyticsCustomModuleRequest - .class, - responseType = - com.google.cloud.securitycentermanagement.v1.SecurityHealthAnalyticsCustomModule.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.cloud.securitycentermanagement.v1 - .GetSecurityHealthAnalyticsCustomModuleRequest, - com.google.cloud.securitycentermanagement.v1.SecurityHealthAnalyticsCustomModule> - getGetSecurityHealthAnalyticsCustomModuleMethod() { - io.grpc.MethodDescriptor< - com.google.cloud.securitycentermanagement.v1 - .GetSecurityHealthAnalyticsCustomModuleRequest, - com.google.cloud.securitycentermanagement.v1.SecurityHealthAnalyticsCustomModule> - getGetSecurityHealthAnalyticsCustomModuleMethod; - if ((getGetSecurityHealthAnalyticsCustomModuleMethod = - SecurityCenterManagementGrpc.getGetSecurityHealthAnalyticsCustomModuleMethod) - == null) { - synchronized (SecurityCenterManagementGrpc.class) { - if ((getGetSecurityHealthAnalyticsCustomModuleMethod = - SecurityCenterManagementGrpc.getGetSecurityHealthAnalyticsCustomModuleMethod) - == null) { - SecurityCenterManagementGrpc.getGetSecurityHealthAnalyticsCustomModuleMethod = - getGetSecurityHealthAnalyticsCustomModuleMethod = - io.grpc.MethodDescriptor - . - newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName( - generateFullMethodName( - SERVICE_NAME, "GetSecurityHealthAnalyticsCustomModule")) - .setSampledToLocalTracing(true) - .setRequestMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.securitycentermanagement.v1 - .GetSecurityHealthAnalyticsCustomModuleRequest - .getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.securitycentermanagement.v1 - .SecurityHealthAnalyticsCustomModule.getDefaultInstance())) - .setSchemaDescriptor( - new SecurityCenterManagementMethodDescriptorSupplier( - "GetSecurityHealthAnalyticsCustomModule")) - .build(); - } - } - } - return getGetSecurityHealthAnalyticsCustomModuleMethod; - } - - private static volatile io.grpc.MethodDescriptor< - com.google.cloud.securitycentermanagement.v1 - .CreateSecurityHealthAnalyticsCustomModuleRequest, - com.google.cloud.securitycentermanagement.v1.SecurityHealthAnalyticsCustomModule> - getCreateSecurityHealthAnalyticsCustomModuleMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "CreateSecurityHealthAnalyticsCustomModule", - requestType = - com.google.cloud.securitycentermanagement.v1 - .CreateSecurityHealthAnalyticsCustomModuleRequest.class, - responseType = - com.google.cloud.securitycentermanagement.v1.SecurityHealthAnalyticsCustomModule.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.cloud.securitycentermanagement.v1 - .CreateSecurityHealthAnalyticsCustomModuleRequest, - com.google.cloud.securitycentermanagement.v1.SecurityHealthAnalyticsCustomModule> - getCreateSecurityHealthAnalyticsCustomModuleMethod() { - io.grpc.MethodDescriptor< - com.google.cloud.securitycentermanagement.v1 - .CreateSecurityHealthAnalyticsCustomModuleRequest, - com.google.cloud.securitycentermanagement.v1.SecurityHealthAnalyticsCustomModule> - getCreateSecurityHealthAnalyticsCustomModuleMethod; - if ((getCreateSecurityHealthAnalyticsCustomModuleMethod = - SecurityCenterManagementGrpc.getCreateSecurityHealthAnalyticsCustomModuleMethod) - == null) { - synchronized (SecurityCenterManagementGrpc.class) { - if ((getCreateSecurityHealthAnalyticsCustomModuleMethod = - SecurityCenterManagementGrpc.getCreateSecurityHealthAnalyticsCustomModuleMethod) - == null) { - SecurityCenterManagementGrpc.getCreateSecurityHealthAnalyticsCustomModuleMethod = - getCreateSecurityHealthAnalyticsCustomModuleMethod = - io.grpc.MethodDescriptor - . - newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName( - generateFullMethodName( - SERVICE_NAME, "CreateSecurityHealthAnalyticsCustomModule")) - .setSampledToLocalTracing(true) - .setRequestMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.securitycentermanagement.v1 - .CreateSecurityHealthAnalyticsCustomModuleRequest - .getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.securitycentermanagement.v1 - .SecurityHealthAnalyticsCustomModule.getDefaultInstance())) - .setSchemaDescriptor( - new SecurityCenterManagementMethodDescriptorSupplier( - "CreateSecurityHealthAnalyticsCustomModule")) - .build(); - } - } - } - return getCreateSecurityHealthAnalyticsCustomModuleMethod; - } - - private static volatile io.grpc.MethodDescriptor< - com.google.cloud.securitycentermanagement.v1 - .UpdateSecurityHealthAnalyticsCustomModuleRequest, - com.google.cloud.securitycentermanagement.v1.SecurityHealthAnalyticsCustomModule> - getUpdateSecurityHealthAnalyticsCustomModuleMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "UpdateSecurityHealthAnalyticsCustomModule", - requestType = - com.google.cloud.securitycentermanagement.v1 - .UpdateSecurityHealthAnalyticsCustomModuleRequest.class, - responseType = - com.google.cloud.securitycentermanagement.v1.SecurityHealthAnalyticsCustomModule.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.cloud.securitycentermanagement.v1 - .UpdateSecurityHealthAnalyticsCustomModuleRequest, - com.google.cloud.securitycentermanagement.v1.SecurityHealthAnalyticsCustomModule> - getUpdateSecurityHealthAnalyticsCustomModuleMethod() { - io.grpc.MethodDescriptor< - com.google.cloud.securitycentermanagement.v1 - .UpdateSecurityHealthAnalyticsCustomModuleRequest, - com.google.cloud.securitycentermanagement.v1.SecurityHealthAnalyticsCustomModule> - getUpdateSecurityHealthAnalyticsCustomModuleMethod; - if ((getUpdateSecurityHealthAnalyticsCustomModuleMethod = - SecurityCenterManagementGrpc.getUpdateSecurityHealthAnalyticsCustomModuleMethod) - == null) { - synchronized (SecurityCenterManagementGrpc.class) { - if ((getUpdateSecurityHealthAnalyticsCustomModuleMethod = - SecurityCenterManagementGrpc.getUpdateSecurityHealthAnalyticsCustomModuleMethod) - == null) { - SecurityCenterManagementGrpc.getUpdateSecurityHealthAnalyticsCustomModuleMethod = - getUpdateSecurityHealthAnalyticsCustomModuleMethod = - io.grpc.MethodDescriptor - . - newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName( - generateFullMethodName( - SERVICE_NAME, "UpdateSecurityHealthAnalyticsCustomModule")) - .setSampledToLocalTracing(true) - .setRequestMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.securitycentermanagement.v1 - .UpdateSecurityHealthAnalyticsCustomModuleRequest - .getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.securitycentermanagement.v1 - .SecurityHealthAnalyticsCustomModule.getDefaultInstance())) - .setSchemaDescriptor( - new SecurityCenterManagementMethodDescriptorSupplier( - "UpdateSecurityHealthAnalyticsCustomModule")) - .build(); - } - } - } - return getUpdateSecurityHealthAnalyticsCustomModuleMethod; - } - - private static volatile io.grpc.MethodDescriptor< - com.google.cloud.securitycentermanagement.v1 - .DeleteSecurityHealthAnalyticsCustomModuleRequest, - com.google.protobuf.Empty> - getDeleteSecurityHealthAnalyticsCustomModuleMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "DeleteSecurityHealthAnalyticsCustomModule", - requestType = - com.google.cloud.securitycentermanagement.v1 - .DeleteSecurityHealthAnalyticsCustomModuleRequest.class, - responseType = com.google.protobuf.Empty.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.cloud.securitycentermanagement.v1 - .DeleteSecurityHealthAnalyticsCustomModuleRequest, - com.google.protobuf.Empty> - getDeleteSecurityHealthAnalyticsCustomModuleMethod() { - io.grpc.MethodDescriptor< - com.google.cloud.securitycentermanagement.v1 - .DeleteSecurityHealthAnalyticsCustomModuleRequest, - com.google.protobuf.Empty> - getDeleteSecurityHealthAnalyticsCustomModuleMethod; - if ((getDeleteSecurityHealthAnalyticsCustomModuleMethod = - SecurityCenterManagementGrpc.getDeleteSecurityHealthAnalyticsCustomModuleMethod) - == null) { - synchronized (SecurityCenterManagementGrpc.class) { - if ((getDeleteSecurityHealthAnalyticsCustomModuleMethod = - SecurityCenterManagementGrpc.getDeleteSecurityHealthAnalyticsCustomModuleMethod) - == null) { - SecurityCenterManagementGrpc.getDeleteSecurityHealthAnalyticsCustomModuleMethod = - getDeleteSecurityHealthAnalyticsCustomModuleMethod = - io.grpc.MethodDescriptor - . - newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName( - generateFullMethodName( - SERVICE_NAME, "DeleteSecurityHealthAnalyticsCustomModule")) - .setSampledToLocalTracing(true) - .setRequestMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.securitycentermanagement.v1 - .DeleteSecurityHealthAnalyticsCustomModuleRequest - .getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.protobuf.Empty.getDefaultInstance())) - .setSchemaDescriptor( - new SecurityCenterManagementMethodDescriptorSupplier( - "DeleteSecurityHealthAnalyticsCustomModule")) - .build(); - } - } - } - return getDeleteSecurityHealthAnalyticsCustomModuleMethod; - } - - private static volatile io.grpc.MethodDescriptor< - com.google.cloud.securitycentermanagement.v1 - .SimulateSecurityHealthAnalyticsCustomModuleRequest, - com.google.cloud.securitycentermanagement.v1 - .SimulateSecurityHealthAnalyticsCustomModuleResponse> - getSimulateSecurityHealthAnalyticsCustomModuleMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "SimulateSecurityHealthAnalyticsCustomModule", - requestType = - com.google.cloud.securitycentermanagement.v1 - .SimulateSecurityHealthAnalyticsCustomModuleRequest.class, - responseType = - com.google.cloud.securitycentermanagement.v1 - .SimulateSecurityHealthAnalyticsCustomModuleResponse.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.cloud.securitycentermanagement.v1 - .SimulateSecurityHealthAnalyticsCustomModuleRequest, - com.google.cloud.securitycentermanagement.v1 - .SimulateSecurityHealthAnalyticsCustomModuleResponse> - getSimulateSecurityHealthAnalyticsCustomModuleMethod() { - io.grpc.MethodDescriptor< - com.google.cloud.securitycentermanagement.v1 - .SimulateSecurityHealthAnalyticsCustomModuleRequest, - com.google.cloud.securitycentermanagement.v1 - .SimulateSecurityHealthAnalyticsCustomModuleResponse> - getSimulateSecurityHealthAnalyticsCustomModuleMethod; - if ((getSimulateSecurityHealthAnalyticsCustomModuleMethod = - SecurityCenterManagementGrpc.getSimulateSecurityHealthAnalyticsCustomModuleMethod) - == null) { - synchronized (SecurityCenterManagementGrpc.class) { - if ((getSimulateSecurityHealthAnalyticsCustomModuleMethod = - SecurityCenterManagementGrpc.getSimulateSecurityHealthAnalyticsCustomModuleMethod) - == null) { - SecurityCenterManagementGrpc.getSimulateSecurityHealthAnalyticsCustomModuleMethod = - getSimulateSecurityHealthAnalyticsCustomModuleMethod = - io.grpc.MethodDescriptor - . - newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName( - generateFullMethodName( - SERVICE_NAME, "SimulateSecurityHealthAnalyticsCustomModule")) - .setSampledToLocalTracing(true) - .setRequestMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.securitycentermanagement.v1 - .SimulateSecurityHealthAnalyticsCustomModuleRequest - .getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.securitycentermanagement.v1 - .SimulateSecurityHealthAnalyticsCustomModuleResponse - .getDefaultInstance())) - .setSchemaDescriptor( - new SecurityCenterManagementMethodDescriptorSupplier( - "SimulateSecurityHealthAnalyticsCustomModule")) - .build(); - } - } - } - return getSimulateSecurityHealthAnalyticsCustomModuleMethod; - } - - private static volatile io.grpc.MethodDescriptor< - com.google.cloud.securitycentermanagement.v1 - .ListEffectiveEventThreatDetectionCustomModulesRequest, - com.google.cloud.securitycentermanagement.v1 - .ListEffectiveEventThreatDetectionCustomModulesResponse> - getListEffectiveEventThreatDetectionCustomModulesMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "ListEffectiveEventThreatDetectionCustomModules", - requestType = - com.google.cloud.securitycentermanagement.v1 - .ListEffectiveEventThreatDetectionCustomModulesRequest.class, - responseType = - com.google.cloud.securitycentermanagement.v1 - .ListEffectiveEventThreatDetectionCustomModulesResponse.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.cloud.securitycentermanagement.v1 - .ListEffectiveEventThreatDetectionCustomModulesRequest, - com.google.cloud.securitycentermanagement.v1 - .ListEffectiveEventThreatDetectionCustomModulesResponse> - getListEffectiveEventThreatDetectionCustomModulesMethod() { - io.grpc.MethodDescriptor< - com.google.cloud.securitycentermanagement.v1 - .ListEffectiveEventThreatDetectionCustomModulesRequest, - com.google.cloud.securitycentermanagement.v1 - .ListEffectiveEventThreatDetectionCustomModulesResponse> - getListEffectiveEventThreatDetectionCustomModulesMethod; - if ((getListEffectiveEventThreatDetectionCustomModulesMethod = - SecurityCenterManagementGrpc.getListEffectiveEventThreatDetectionCustomModulesMethod) - == null) { - synchronized (SecurityCenterManagementGrpc.class) { - if ((getListEffectiveEventThreatDetectionCustomModulesMethod = - SecurityCenterManagementGrpc - .getListEffectiveEventThreatDetectionCustomModulesMethod) - == null) { - SecurityCenterManagementGrpc.getListEffectiveEventThreatDetectionCustomModulesMethod = - getListEffectiveEventThreatDetectionCustomModulesMethod = - io.grpc.MethodDescriptor - . - newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName( - generateFullMethodName( - SERVICE_NAME, "ListEffectiveEventThreatDetectionCustomModules")) - .setSampledToLocalTracing(true) - .setRequestMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.securitycentermanagement.v1 - .ListEffectiveEventThreatDetectionCustomModulesRequest - .getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.securitycentermanagement.v1 - .ListEffectiveEventThreatDetectionCustomModulesResponse - .getDefaultInstance())) - .setSchemaDescriptor( - new SecurityCenterManagementMethodDescriptorSupplier( - "ListEffectiveEventThreatDetectionCustomModules")) - .build(); - } - } - } - return getListEffectiveEventThreatDetectionCustomModulesMethod; - } - - private static volatile io.grpc.MethodDescriptor< - com.google.cloud.securitycentermanagement.v1 - .GetEffectiveEventThreatDetectionCustomModuleRequest, - com.google.cloud.securitycentermanagement.v1.EffectiveEventThreatDetectionCustomModule> - getGetEffectiveEventThreatDetectionCustomModuleMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "GetEffectiveEventThreatDetectionCustomModule", - requestType = - com.google.cloud.securitycentermanagement.v1 - .GetEffectiveEventThreatDetectionCustomModuleRequest.class, - responseType = - com.google.cloud.securitycentermanagement.v1.EffectiveEventThreatDetectionCustomModule - .class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.cloud.securitycentermanagement.v1 - .GetEffectiveEventThreatDetectionCustomModuleRequest, - com.google.cloud.securitycentermanagement.v1.EffectiveEventThreatDetectionCustomModule> - getGetEffectiveEventThreatDetectionCustomModuleMethod() { - io.grpc.MethodDescriptor< - com.google.cloud.securitycentermanagement.v1 - .GetEffectiveEventThreatDetectionCustomModuleRequest, - com.google.cloud.securitycentermanagement.v1.EffectiveEventThreatDetectionCustomModule> - getGetEffectiveEventThreatDetectionCustomModuleMethod; - if ((getGetEffectiveEventThreatDetectionCustomModuleMethod = - SecurityCenterManagementGrpc.getGetEffectiveEventThreatDetectionCustomModuleMethod) - == null) { - synchronized (SecurityCenterManagementGrpc.class) { - if ((getGetEffectiveEventThreatDetectionCustomModuleMethod = - SecurityCenterManagementGrpc.getGetEffectiveEventThreatDetectionCustomModuleMethod) - == null) { - SecurityCenterManagementGrpc.getGetEffectiveEventThreatDetectionCustomModuleMethod = - getGetEffectiveEventThreatDetectionCustomModuleMethod = - io.grpc.MethodDescriptor - . - newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName( - generateFullMethodName( - SERVICE_NAME, "GetEffectiveEventThreatDetectionCustomModule")) - .setSampledToLocalTracing(true) - .setRequestMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.securitycentermanagement.v1 - .GetEffectiveEventThreatDetectionCustomModuleRequest - .getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.securitycentermanagement.v1 - .EffectiveEventThreatDetectionCustomModule.getDefaultInstance())) - .setSchemaDescriptor( - new SecurityCenterManagementMethodDescriptorSupplier( - "GetEffectiveEventThreatDetectionCustomModule")) - .build(); - } - } - } - return getGetEffectiveEventThreatDetectionCustomModuleMethod; - } - - private static volatile io.grpc.MethodDescriptor< - com.google.cloud.securitycentermanagement.v1.ListEventThreatDetectionCustomModulesRequest, - com.google.cloud.securitycentermanagement.v1 - .ListEventThreatDetectionCustomModulesResponse> - getListEventThreatDetectionCustomModulesMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "ListEventThreatDetectionCustomModules", - requestType = - com.google.cloud.securitycentermanagement.v1.ListEventThreatDetectionCustomModulesRequest - .class, - responseType = - com.google.cloud.securitycentermanagement.v1.ListEventThreatDetectionCustomModulesResponse - .class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.cloud.securitycentermanagement.v1.ListEventThreatDetectionCustomModulesRequest, - com.google.cloud.securitycentermanagement.v1 - .ListEventThreatDetectionCustomModulesResponse> - getListEventThreatDetectionCustomModulesMethod() { - io.grpc.MethodDescriptor< - com.google.cloud.securitycentermanagement.v1 - .ListEventThreatDetectionCustomModulesRequest, - com.google.cloud.securitycentermanagement.v1 - .ListEventThreatDetectionCustomModulesResponse> - getListEventThreatDetectionCustomModulesMethod; - if ((getListEventThreatDetectionCustomModulesMethod = - SecurityCenterManagementGrpc.getListEventThreatDetectionCustomModulesMethod) - == null) { - synchronized (SecurityCenterManagementGrpc.class) { - if ((getListEventThreatDetectionCustomModulesMethod = - SecurityCenterManagementGrpc.getListEventThreatDetectionCustomModulesMethod) - == null) { - SecurityCenterManagementGrpc.getListEventThreatDetectionCustomModulesMethod = - getListEventThreatDetectionCustomModulesMethod = - io.grpc.MethodDescriptor - . - newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName( - generateFullMethodName( - SERVICE_NAME, "ListEventThreatDetectionCustomModules")) - .setSampledToLocalTracing(true) - .setRequestMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.securitycentermanagement.v1 - .ListEventThreatDetectionCustomModulesRequest - .getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.securitycentermanagement.v1 - .ListEventThreatDetectionCustomModulesResponse - .getDefaultInstance())) - .setSchemaDescriptor( - new SecurityCenterManagementMethodDescriptorSupplier( - "ListEventThreatDetectionCustomModules")) - .build(); - } - } - } - return getListEventThreatDetectionCustomModulesMethod; - } - - private static volatile io.grpc.MethodDescriptor< - com.google.cloud.securitycentermanagement.v1 - .ListDescendantEventThreatDetectionCustomModulesRequest, - com.google.cloud.securitycentermanagement.v1 - .ListDescendantEventThreatDetectionCustomModulesResponse> - getListDescendantEventThreatDetectionCustomModulesMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "ListDescendantEventThreatDetectionCustomModules", - requestType = - com.google.cloud.securitycentermanagement.v1 - .ListDescendantEventThreatDetectionCustomModulesRequest.class, - responseType = - com.google.cloud.securitycentermanagement.v1 - .ListDescendantEventThreatDetectionCustomModulesResponse.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.cloud.securitycentermanagement.v1 - .ListDescendantEventThreatDetectionCustomModulesRequest, - com.google.cloud.securitycentermanagement.v1 - .ListDescendantEventThreatDetectionCustomModulesResponse> - getListDescendantEventThreatDetectionCustomModulesMethod() { - io.grpc.MethodDescriptor< - com.google.cloud.securitycentermanagement.v1 - .ListDescendantEventThreatDetectionCustomModulesRequest, - com.google.cloud.securitycentermanagement.v1 - .ListDescendantEventThreatDetectionCustomModulesResponse> - getListDescendantEventThreatDetectionCustomModulesMethod; - if ((getListDescendantEventThreatDetectionCustomModulesMethod = - SecurityCenterManagementGrpc.getListDescendantEventThreatDetectionCustomModulesMethod) - == null) { - synchronized (SecurityCenterManagementGrpc.class) { - if ((getListDescendantEventThreatDetectionCustomModulesMethod = - SecurityCenterManagementGrpc - .getListDescendantEventThreatDetectionCustomModulesMethod) - == null) { - SecurityCenterManagementGrpc.getListDescendantEventThreatDetectionCustomModulesMethod = - getListDescendantEventThreatDetectionCustomModulesMethod = - io.grpc.MethodDescriptor - . - newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName( - generateFullMethodName( - SERVICE_NAME, "ListDescendantEventThreatDetectionCustomModules")) - .setSampledToLocalTracing(true) - .setRequestMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.securitycentermanagement.v1 - .ListDescendantEventThreatDetectionCustomModulesRequest - .getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.securitycentermanagement.v1 - .ListDescendantEventThreatDetectionCustomModulesResponse - .getDefaultInstance())) - .setSchemaDescriptor( - new SecurityCenterManagementMethodDescriptorSupplier( - "ListDescendantEventThreatDetectionCustomModules")) - .build(); - } - } - } - return getListDescendantEventThreatDetectionCustomModulesMethod; - } - - private static volatile io.grpc.MethodDescriptor< - com.google.cloud.securitycentermanagement.v1.GetEventThreatDetectionCustomModuleRequest, - com.google.cloud.securitycentermanagement.v1.EventThreatDetectionCustomModule> - getGetEventThreatDetectionCustomModuleMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "GetEventThreatDetectionCustomModule", - requestType = - com.google.cloud.securitycentermanagement.v1.GetEventThreatDetectionCustomModuleRequest - .class, - responseType = - com.google.cloud.securitycentermanagement.v1.EventThreatDetectionCustomModule.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.cloud.securitycentermanagement.v1.GetEventThreatDetectionCustomModuleRequest, - com.google.cloud.securitycentermanagement.v1.EventThreatDetectionCustomModule> - getGetEventThreatDetectionCustomModuleMethod() { - io.grpc.MethodDescriptor< - com.google.cloud.securitycentermanagement.v1.GetEventThreatDetectionCustomModuleRequest, - com.google.cloud.securitycentermanagement.v1.EventThreatDetectionCustomModule> - getGetEventThreatDetectionCustomModuleMethod; - if ((getGetEventThreatDetectionCustomModuleMethod = - SecurityCenterManagementGrpc.getGetEventThreatDetectionCustomModuleMethod) - == null) { - synchronized (SecurityCenterManagementGrpc.class) { - if ((getGetEventThreatDetectionCustomModuleMethod = - SecurityCenterManagementGrpc.getGetEventThreatDetectionCustomModuleMethod) - == null) { - SecurityCenterManagementGrpc.getGetEventThreatDetectionCustomModuleMethod = - getGetEventThreatDetectionCustomModuleMethod = - io.grpc.MethodDescriptor - . - newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName( - generateFullMethodName( - SERVICE_NAME, "GetEventThreatDetectionCustomModule")) - .setSampledToLocalTracing(true) - .setRequestMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.securitycentermanagement.v1 - .GetEventThreatDetectionCustomModuleRequest.getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.securitycentermanagement.v1 - .EventThreatDetectionCustomModule.getDefaultInstance())) - .setSchemaDescriptor( - new SecurityCenterManagementMethodDescriptorSupplier( - "GetEventThreatDetectionCustomModule")) - .build(); - } - } - } - return getGetEventThreatDetectionCustomModuleMethod; - } - - private static volatile io.grpc.MethodDescriptor< - com.google.cloud.securitycentermanagement.v1 - .CreateEventThreatDetectionCustomModuleRequest, - com.google.cloud.securitycentermanagement.v1.EventThreatDetectionCustomModule> - getCreateEventThreatDetectionCustomModuleMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "CreateEventThreatDetectionCustomModule", - requestType = - com.google.cloud.securitycentermanagement.v1.CreateEventThreatDetectionCustomModuleRequest - .class, - responseType = - com.google.cloud.securitycentermanagement.v1.EventThreatDetectionCustomModule.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.cloud.securitycentermanagement.v1 - .CreateEventThreatDetectionCustomModuleRequest, - com.google.cloud.securitycentermanagement.v1.EventThreatDetectionCustomModule> - getCreateEventThreatDetectionCustomModuleMethod() { - io.grpc.MethodDescriptor< - com.google.cloud.securitycentermanagement.v1 - .CreateEventThreatDetectionCustomModuleRequest, - com.google.cloud.securitycentermanagement.v1.EventThreatDetectionCustomModule> - getCreateEventThreatDetectionCustomModuleMethod; - if ((getCreateEventThreatDetectionCustomModuleMethod = - SecurityCenterManagementGrpc.getCreateEventThreatDetectionCustomModuleMethod) - == null) { - synchronized (SecurityCenterManagementGrpc.class) { - if ((getCreateEventThreatDetectionCustomModuleMethod = - SecurityCenterManagementGrpc.getCreateEventThreatDetectionCustomModuleMethod) - == null) { - SecurityCenterManagementGrpc.getCreateEventThreatDetectionCustomModuleMethod = - getCreateEventThreatDetectionCustomModuleMethod = - io.grpc.MethodDescriptor - . - newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName( - generateFullMethodName( - SERVICE_NAME, "CreateEventThreatDetectionCustomModule")) - .setSampledToLocalTracing(true) - .setRequestMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.securitycentermanagement.v1 - .CreateEventThreatDetectionCustomModuleRequest - .getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.securitycentermanagement.v1 - .EventThreatDetectionCustomModule.getDefaultInstance())) - .setSchemaDescriptor( - new SecurityCenterManagementMethodDescriptorSupplier( - "CreateEventThreatDetectionCustomModule")) - .build(); - } - } - } - return getCreateEventThreatDetectionCustomModuleMethod; - } - - private static volatile io.grpc.MethodDescriptor< - com.google.cloud.securitycentermanagement.v1 - .UpdateEventThreatDetectionCustomModuleRequest, - com.google.cloud.securitycentermanagement.v1.EventThreatDetectionCustomModule> - getUpdateEventThreatDetectionCustomModuleMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "UpdateEventThreatDetectionCustomModule", - requestType = - com.google.cloud.securitycentermanagement.v1.UpdateEventThreatDetectionCustomModuleRequest - .class, - responseType = - com.google.cloud.securitycentermanagement.v1.EventThreatDetectionCustomModule.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.cloud.securitycentermanagement.v1 - .UpdateEventThreatDetectionCustomModuleRequest, - com.google.cloud.securitycentermanagement.v1.EventThreatDetectionCustomModule> - getUpdateEventThreatDetectionCustomModuleMethod() { - io.grpc.MethodDescriptor< - com.google.cloud.securitycentermanagement.v1 - .UpdateEventThreatDetectionCustomModuleRequest, - com.google.cloud.securitycentermanagement.v1.EventThreatDetectionCustomModule> - getUpdateEventThreatDetectionCustomModuleMethod; - if ((getUpdateEventThreatDetectionCustomModuleMethod = - SecurityCenterManagementGrpc.getUpdateEventThreatDetectionCustomModuleMethod) - == null) { - synchronized (SecurityCenterManagementGrpc.class) { - if ((getUpdateEventThreatDetectionCustomModuleMethod = - SecurityCenterManagementGrpc.getUpdateEventThreatDetectionCustomModuleMethod) - == null) { - SecurityCenterManagementGrpc.getUpdateEventThreatDetectionCustomModuleMethod = - getUpdateEventThreatDetectionCustomModuleMethod = - io.grpc.MethodDescriptor - . - newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName( - generateFullMethodName( - SERVICE_NAME, "UpdateEventThreatDetectionCustomModule")) - .setSampledToLocalTracing(true) - .setRequestMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.securitycentermanagement.v1 - .UpdateEventThreatDetectionCustomModuleRequest - .getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.securitycentermanagement.v1 - .EventThreatDetectionCustomModule.getDefaultInstance())) - .setSchemaDescriptor( - new SecurityCenterManagementMethodDescriptorSupplier( - "UpdateEventThreatDetectionCustomModule")) - .build(); - } - } - } - return getUpdateEventThreatDetectionCustomModuleMethod; - } - - private static volatile io.grpc.MethodDescriptor< - com.google.cloud.securitycentermanagement.v1 - .DeleteEventThreatDetectionCustomModuleRequest, - com.google.protobuf.Empty> - getDeleteEventThreatDetectionCustomModuleMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "DeleteEventThreatDetectionCustomModule", - requestType = - com.google.cloud.securitycentermanagement.v1.DeleteEventThreatDetectionCustomModuleRequest - .class, - responseType = com.google.protobuf.Empty.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.cloud.securitycentermanagement.v1 - .DeleteEventThreatDetectionCustomModuleRequest, - com.google.protobuf.Empty> - getDeleteEventThreatDetectionCustomModuleMethod() { - io.grpc.MethodDescriptor< - com.google.cloud.securitycentermanagement.v1 - .DeleteEventThreatDetectionCustomModuleRequest, - com.google.protobuf.Empty> - getDeleteEventThreatDetectionCustomModuleMethod; - if ((getDeleteEventThreatDetectionCustomModuleMethod = - SecurityCenterManagementGrpc.getDeleteEventThreatDetectionCustomModuleMethod) - == null) { - synchronized (SecurityCenterManagementGrpc.class) { - if ((getDeleteEventThreatDetectionCustomModuleMethod = - SecurityCenterManagementGrpc.getDeleteEventThreatDetectionCustomModuleMethod) - == null) { - SecurityCenterManagementGrpc.getDeleteEventThreatDetectionCustomModuleMethod = - getDeleteEventThreatDetectionCustomModuleMethod = - io.grpc.MethodDescriptor - . - newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName( - generateFullMethodName( - SERVICE_NAME, "DeleteEventThreatDetectionCustomModule")) - .setSampledToLocalTracing(true) - .setRequestMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.securitycentermanagement.v1 - .DeleteEventThreatDetectionCustomModuleRequest - .getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.protobuf.Empty.getDefaultInstance())) - .setSchemaDescriptor( - new SecurityCenterManagementMethodDescriptorSupplier( - "DeleteEventThreatDetectionCustomModule")) - .build(); - } - } - } - return getDeleteEventThreatDetectionCustomModuleMethod; - } - - private static volatile io.grpc.MethodDescriptor< - com.google.cloud.securitycentermanagement.v1 - .ValidateEventThreatDetectionCustomModuleRequest, - com.google.cloud.securitycentermanagement.v1 - .ValidateEventThreatDetectionCustomModuleResponse> - getValidateEventThreatDetectionCustomModuleMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "ValidateEventThreatDetectionCustomModule", - requestType = - com.google.cloud.securitycentermanagement.v1 - .ValidateEventThreatDetectionCustomModuleRequest.class, - responseType = - com.google.cloud.securitycentermanagement.v1 - .ValidateEventThreatDetectionCustomModuleResponse.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.cloud.securitycentermanagement.v1 - .ValidateEventThreatDetectionCustomModuleRequest, - com.google.cloud.securitycentermanagement.v1 - .ValidateEventThreatDetectionCustomModuleResponse> - getValidateEventThreatDetectionCustomModuleMethod() { - io.grpc.MethodDescriptor< - com.google.cloud.securitycentermanagement.v1 - .ValidateEventThreatDetectionCustomModuleRequest, - com.google.cloud.securitycentermanagement.v1 - .ValidateEventThreatDetectionCustomModuleResponse> - getValidateEventThreatDetectionCustomModuleMethod; - if ((getValidateEventThreatDetectionCustomModuleMethod = - SecurityCenterManagementGrpc.getValidateEventThreatDetectionCustomModuleMethod) - == null) { - synchronized (SecurityCenterManagementGrpc.class) { - if ((getValidateEventThreatDetectionCustomModuleMethod = - SecurityCenterManagementGrpc.getValidateEventThreatDetectionCustomModuleMethod) - == null) { - SecurityCenterManagementGrpc.getValidateEventThreatDetectionCustomModuleMethod = - getValidateEventThreatDetectionCustomModuleMethod = - io.grpc.MethodDescriptor - . - newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName( - generateFullMethodName( - SERVICE_NAME, "ValidateEventThreatDetectionCustomModule")) - .setSampledToLocalTracing(true) - .setRequestMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.securitycentermanagement.v1 - .ValidateEventThreatDetectionCustomModuleRequest - .getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.securitycentermanagement.v1 - .ValidateEventThreatDetectionCustomModuleResponse - .getDefaultInstance())) - .setSchemaDescriptor( - new SecurityCenterManagementMethodDescriptorSupplier( - "ValidateEventThreatDetectionCustomModule")) - .build(); - } - } - } - return getValidateEventThreatDetectionCustomModuleMethod; - } - - /** Creates a new async stub that supports all call types for the service */ - public static SecurityCenterManagementStub newStub(io.grpc.Channel channel) { - io.grpc.stub.AbstractStub.StubFactory factory = - new io.grpc.stub.AbstractStub.StubFactory() { - @java.lang.Override - public SecurityCenterManagementStub newStub( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new SecurityCenterManagementStub(channel, callOptions); - } - }; - return SecurityCenterManagementStub.newStub(factory, channel); - } - - /** - * Creates a new blocking-style stub that supports unary and streaming output calls on the service - */ - public static SecurityCenterManagementBlockingStub newBlockingStub(io.grpc.Channel channel) { - io.grpc.stub.AbstractStub.StubFactory factory = - new io.grpc.stub.AbstractStub.StubFactory() { - @java.lang.Override - public SecurityCenterManagementBlockingStub newStub( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new SecurityCenterManagementBlockingStub(channel, callOptions); - } - }; - return SecurityCenterManagementBlockingStub.newStub(factory, channel); - } - - /** Creates a new ListenableFuture-style stub that supports unary calls on the service */ - public static SecurityCenterManagementFutureStub newFutureStub(io.grpc.Channel channel) { - io.grpc.stub.AbstractStub.StubFactory factory = - new io.grpc.stub.AbstractStub.StubFactory() { - @java.lang.Override - public SecurityCenterManagementFutureStub newStub( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new SecurityCenterManagementFutureStub(channel, callOptions); - } - }; - return SecurityCenterManagementFutureStub.newStub(factory, channel); - } - - /** - * - * - *
-   * Service describing handlers for resources
-   * 
- */ - public interface AsyncService { - - /** - * - * - *
-     * Returns a list of all EffectiveSecurityHealthAnalyticsCustomModules for the
-     * given parent. This includes resident modules defined at the scope of the
-     * parent, and inherited modules, inherited from CRM ancestors (no
-     * descendants).
-     * 
- */ - default void listEffectiveSecurityHealthAnalyticsCustomModules( - com.google.cloud.securitycentermanagement.v1 - .ListEffectiveSecurityHealthAnalyticsCustomModulesRequest - request, - io.grpc.stub.StreamObserver< - com.google.cloud.securitycentermanagement.v1 - .ListEffectiveSecurityHealthAnalyticsCustomModulesResponse> - responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getListEffectiveSecurityHealthAnalyticsCustomModulesMethod(), responseObserver); - } - - /** - * - * - *
-     * Gets details of a single EffectiveSecurityHealthAnalyticsCustomModule.
-     * 
- */ - default void getEffectiveSecurityHealthAnalyticsCustomModule( - com.google.cloud.securitycentermanagement.v1 - .GetEffectiveSecurityHealthAnalyticsCustomModuleRequest - request, - io.grpc.stub.StreamObserver< - com.google.cloud.securitycentermanagement.v1 - .EffectiveSecurityHealthAnalyticsCustomModule> - responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getGetEffectiveSecurityHealthAnalyticsCustomModuleMethod(), responseObserver); - } - - /** - * - * - *
-     * Returns a list of all SecurityHealthAnalyticsCustomModules for the given
-     * parent. This includes resident modules defined at the scope of the parent,
-     * and inherited modules, inherited from CRM ancestors (no descendants).
-     * 
- */ - default void listSecurityHealthAnalyticsCustomModules( - com.google.cloud.securitycentermanagement.v1.ListSecurityHealthAnalyticsCustomModulesRequest - request, - io.grpc.stub.StreamObserver< - com.google.cloud.securitycentermanagement.v1 - .ListSecurityHealthAnalyticsCustomModulesResponse> - responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getListSecurityHealthAnalyticsCustomModulesMethod(), responseObserver); - } - - /** - * - * - *
-     * Returns a list of all resident SecurityHealthAnalyticsCustomModules under
-     * the given CRM parent and all of the parent’s CRM descendants.
-     * 
- */ - default void listDescendantSecurityHealthAnalyticsCustomModules( - com.google.cloud.securitycentermanagement.v1 - .ListDescendantSecurityHealthAnalyticsCustomModulesRequest - request, - io.grpc.stub.StreamObserver< - com.google.cloud.securitycentermanagement.v1 - .ListDescendantSecurityHealthAnalyticsCustomModulesResponse> - responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getListDescendantSecurityHealthAnalyticsCustomModulesMethod(), responseObserver); - } - - /** - * - * - *
-     * Retrieves a SecurityHealthAnalyticsCustomModule.
-     * 
- */ - default void getSecurityHealthAnalyticsCustomModule( - com.google.cloud.securitycentermanagement.v1.GetSecurityHealthAnalyticsCustomModuleRequest - request, - io.grpc.stub.StreamObserver< - com.google.cloud.securitycentermanagement.v1.SecurityHealthAnalyticsCustomModule> - responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getGetSecurityHealthAnalyticsCustomModuleMethod(), responseObserver); - } - - /** - * - * - *
-     * Creates a resident SecurityHealthAnalyticsCustomModule at the scope of the
-     * given CRM parent, and also creates inherited
-     * SecurityHealthAnalyticsCustomModules for all CRM descendants of the given
-     * parent. These modules are enabled by default.
-     * 
- */ - default void createSecurityHealthAnalyticsCustomModule( - com.google.cloud.securitycentermanagement.v1 - .CreateSecurityHealthAnalyticsCustomModuleRequest - request, - io.grpc.stub.StreamObserver< - com.google.cloud.securitycentermanagement.v1.SecurityHealthAnalyticsCustomModule> - responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getCreateSecurityHealthAnalyticsCustomModuleMethod(), responseObserver); - } - - /** - * - * - *
-     * Updates the SecurityHealthAnalyticsCustomModule under the given name based
-     * on the given update mask. Updating the enablement state is supported on
-     * both resident and inherited modules (though resident modules cannot have an
-     * enablement state of "inherited"). Updating the display name and custom
-     * config of a module is supported on resident modules only.
-     * 
- */ - default void updateSecurityHealthAnalyticsCustomModule( - com.google.cloud.securitycentermanagement.v1 - .UpdateSecurityHealthAnalyticsCustomModuleRequest - request, - io.grpc.stub.StreamObserver< - com.google.cloud.securitycentermanagement.v1.SecurityHealthAnalyticsCustomModule> - responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getUpdateSecurityHealthAnalyticsCustomModuleMethod(), responseObserver); - } - - /** - * - * - *
-     * Deletes the specified SecurityHealthAnalyticsCustomModule and all of its
-     * descendants in the CRM hierarchy. This method is only supported for
-     * resident custom modules.
-     * 
- */ - default void deleteSecurityHealthAnalyticsCustomModule( - com.google.cloud.securitycentermanagement.v1 - .DeleteSecurityHealthAnalyticsCustomModuleRequest - request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getDeleteSecurityHealthAnalyticsCustomModuleMethod(), responseObserver); - } - - /** - * - * - *
-     * Simulates a given SecurityHealthAnalyticsCustomModule and Resource.
-     * 
- */ - default void simulateSecurityHealthAnalyticsCustomModule( - com.google.cloud.securitycentermanagement.v1 - .SimulateSecurityHealthAnalyticsCustomModuleRequest - request, - io.grpc.stub.StreamObserver< - com.google.cloud.securitycentermanagement.v1 - .SimulateSecurityHealthAnalyticsCustomModuleResponse> - responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getSimulateSecurityHealthAnalyticsCustomModuleMethod(), responseObserver); - } - - /** - * - * - *
-     * Lists all effective Event Threat Detection custom modules for the
-     * given parent. This includes resident modules defined at the scope of the
-     * parent along with modules inherited from its ancestors.
-     * 
- */ - default void listEffectiveEventThreatDetectionCustomModules( - com.google.cloud.securitycentermanagement.v1 - .ListEffectiveEventThreatDetectionCustomModulesRequest - request, - io.grpc.stub.StreamObserver< - com.google.cloud.securitycentermanagement.v1 - .ListEffectiveEventThreatDetectionCustomModulesResponse> - responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getListEffectiveEventThreatDetectionCustomModulesMethod(), responseObserver); - } - - /** - * - * - *
-     * Gets an effective ETD custom module. Retrieves the effective module at the
-     * given level. The difference between an EffectiveCustomModule and a
-     * CustomModule is that the fields for an EffectiveCustomModule are computed
-     * from ancestors if needed. For example, the enablement_state for a
-     * CustomModule can be either ENABLED, DISABLED, or INHERITED. Where as the
-     * enablement_state for an EffectiveCustomModule is always computed to ENABLED
-     * or DISABLED (the effective enablement_state).
-     * 
- */ - default void getEffectiveEventThreatDetectionCustomModule( - com.google.cloud.securitycentermanagement.v1 - .GetEffectiveEventThreatDetectionCustomModuleRequest - request, - io.grpc.stub.StreamObserver< - com.google.cloud.securitycentermanagement.v1 - .EffectiveEventThreatDetectionCustomModule> - responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getGetEffectiveEventThreatDetectionCustomModuleMethod(), responseObserver); - } - - /** - * - * - *
-     * Lists all Event Threat Detection custom modules for the given
-     * Resource Manager parent. This includes resident modules defined at the
-     * scope of the parent along with modules inherited from ancestors.
-     * 
- */ - default void listEventThreatDetectionCustomModules( - com.google.cloud.securitycentermanagement.v1.ListEventThreatDetectionCustomModulesRequest - request, - io.grpc.stub.StreamObserver< - com.google.cloud.securitycentermanagement.v1 - .ListEventThreatDetectionCustomModulesResponse> - responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getListEventThreatDetectionCustomModulesMethod(), responseObserver); - } - - /** - * - * - *
-     * Lists all resident Event Threat Detection custom modules under the
-     * given Resource Manager parent and its descendants.
-     * 
- */ - default void listDescendantEventThreatDetectionCustomModules( - com.google.cloud.securitycentermanagement.v1 - .ListDescendantEventThreatDetectionCustomModulesRequest - request, - io.grpc.stub.StreamObserver< - com.google.cloud.securitycentermanagement.v1 - .ListDescendantEventThreatDetectionCustomModulesResponse> - responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getListDescendantEventThreatDetectionCustomModulesMethod(), responseObserver); - } - - /** - * - * - *
-     * Gets an Event Threat Detection custom module.
-     * 
- */ - default void getEventThreatDetectionCustomModule( - com.google.cloud.securitycentermanagement.v1.GetEventThreatDetectionCustomModuleRequest - request, - io.grpc.stub.StreamObserver< - com.google.cloud.securitycentermanagement.v1.EventThreatDetectionCustomModule> - responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getGetEventThreatDetectionCustomModuleMethod(), responseObserver); - } - - /** - * - * - *
-     * Creates a resident Event Threat Detection custom module at the scope of the
-     * given Resource Manager parent, and also creates inherited custom modules
-     * for all descendants of the given parent. These modules are enabled by
-     * default.
-     * 
- */ - default void createEventThreatDetectionCustomModule( - com.google.cloud.securitycentermanagement.v1.CreateEventThreatDetectionCustomModuleRequest - request, - io.grpc.stub.StreamObserver< - com.google.cloud.securitycentermanagement.v1.EventThreatDetectionCustomModule> - responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getCreateEventThreatDetectionCustomModuleMethod(), responseObserver); - } - - /** - * - * - *
-     * Updates the Event Threat Detection custom module with the given name based
-     * on the given update mask. Updating the enablement state is supported for
-     * both resident and inherited modules (though resident modules cannot have an
-     * enablement state of "inherited"). Updating the display name or
-     * configuration of a module is supported for resident modules only. The type
-     * of a module cannot be changed.
-     * 
- */ - default void updateEventThreatDetectionCustomModule( - com.google.cloud.securitycentermanagement.v1.UpdateEventThreatDetectionCustomModuleRequest - request, - io.grpc.stub.StreamObserver< - com.google.cloud.securitycentermanagement.v1.EventThreatDetectionCustomModule> - responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getUpdateEventThreatDetectionCustomModuleMethod(), responseObserver); - } - - /** - * - * - *
-     * Deletes the specified Event Threat Detection custom module and all of its
-     * descendants in the Resource Manager hierarchy. This method is only
-     * supported for resident custom modules.
-     * 
- */ - default void deleteEventThreatDetectionCustomModule( - com.google.cloud.securitycentermanagement.v1.DeleteEventThreatDetectionCustomModuleRequest - request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getDeleteEventThreatDetectionCustomModuleMethod(), responseObserver); - } - - /** - * - * - *
-     * Validates the given Event Threat Detection custom module.
-     * 
- */ - default void validateEventThreatDetectionCustomModule( - com.google.cloud.securitycentermanagement.v1.ValidateEventThreatDetectionCustomModuleRequest - request, - io.grpc.stub.StreamObserver< - com.google.cloud.securitycentermanagement.v1 - .ValidateEventThreatDetectionCustomModuleResponse> - responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getValidateEventThreatDetectionCustomModuleMethod(), responseObserver); - } - } - - /** - * Base class for the server implementation of the service SecurityCenterManagement. - * - *
-   * Service describing handlers for resources
-   * 
- */ - public abstract static class SecurityCenterManagementImplBase - implements io.grpc.BindableService, AsyncService { - - @java.lang.Override - public final io.grpc.ServerServiceDefinition bindService() { - return SecurityCenterManagementGrpc.bindService(this); - } - } - - /** - * A stub to allow clients to do asynchronous rpc calls to service SecurityCenterManagement. - * - *
-   * Service describing handlers for resources
-   * 
- */ - public static final class SecurityCenterManagementStub - extends io.grpc.stub.AbstractAsyncStub { - private SecurityCenterManagementStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - super(channel, callOptions); - } - - @java.lang.Override - protected SecurityCenterManagementStub build( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new SecurityCenterManagementStub(channel, callOptions); - } - - /** - * - * - *
-     * Returns a list of all EffectiveSecurityHealthAnalyticsCustomModules for the
-     * given parent. This includes resident modules defined at the scope of the
-     * parent, and inherited modules, inherited from CRM ancestors (no
-     * descendants).
-     * 
- */ - public void listEffectiveSecurityHealthAnalyticsCustomModules( - com.google.cloud.securitycentermanagement.v1 - .ListEffectiveSecurityHealthAnalyticsCustomModulesRequest - request, - io.grpc.stub.StreamObserver< - com.google.cloud.securitycentermanagement.v1 - .ListEffectiveSecurityHealthAnalyticsCustomModulesResponse> - responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel() - .newCall( - getListEffectiveSecurityHealthAnalyticsCustomModulesMethod(), getCallOptions()), - request, - responseObserver); - } - - /** - * - * - *
-     * Gets details of a single EffectiveSecurityHealthAnalyticsCustomModule.
-     * 
- */ - public void getEffectiveSecurityHealthAnalyticsCustomModule( - com.google.cloud.securitycentermanagement.v1 - .GetEffectiveSecurityHealthAnalyticsCustomModuleRequest - request, - io.grpc.stub.StreamObserver< - com.google.cloud.securitycentermanagement.v1 - .EffectiveSecurityHealthAnalyticsCustomModule> - responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel() - .newCall( - getGetEffectiveSecurityHealthAnalyticsCustomModuleMethod(), getCallOptions()), - request, - responseObserver); - } - - /** - * - * - *
-     * Returns a list of all SecurityHealthAnalyticsCustomModules for the given
-     * parent. This includes resident modules defined at the scope of the parent,
-     * and inherited modules, inherited from CRM ancestors (no descendants).
-     * 
- */ - public void listSecurityHealthAnalyticsCustomModules( - com.google.cloud.securitycentermanagement.v1.ListSecurityHealthAnalyticsCustomModulesRequest - request, - io.grpc.stub.StreamObserver< - com.google.cloud.securitycentermanagement.v1 - .ListSecurityHealthAnalyticsCustomModulesResponse> - responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel() - .newCall(getListSecurityHealthAnalyticsCustomModulesMethod(), getCallOptions()), - request, - responseObserver); - } - - /** - * - * - *
-     * Returns a list of all resident SecurityHealthAnalyticsCustomModules under
-     * the given CRM parent and all of the parent’s CRM descendants.
-     * 
- */ - public void listDescendantSecurityHealthAnalyticsCustomModules( - com.google.cloud.securitycentermanagement.v1 - .ListDescendantSecurityHealthAnalyticsCustomModulesRequest - request, - io.grpc.stub.StreamObserver< - com.google.cloud.securitycentermanagement.v1 - .ListDescendantSecurityHealthAnalyticsCustomModulesResponse> - responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel() - .newCall( - getListDescendantSecurityHealthAnalyticsCustomModulesMethod(), getCallOptions()), - request, - responseObserver); - } - - /** - * - * - *
-     * Retrieves a SecurityHealthAnalyticsCustomModule.
-     * 
- */ - public void getSecurityHealthAnalyticsCustomModule( - com.google.cloud.securitycentermanagement.v1.GetSecurityHealthAnalyticsCustomModuleRequest - request, - io.grpc.stub.StreamObserver< - com.google.cloud.securitycentermanagement.v1.SecurityHealthAnalyticsCustomModule> - responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getGetSecurityHealthAnalyticsCustomModuleMethod(), getCallOptions()), - request, - responseObserver); - } - - /** - * - * - *
-     * Creates a resident SecurityHealthAnalyticsCustomModule at the scope of the
-     * given CRM parent, and also creates inherited
-     * SecurityHealthAnalyticsCustomModules for all CRM descendants of the given
-     * parent. These modules are enabled by default.
-     * 
- */ - public void createSecurityHealthAnalyticsCustomModule( - com.google.cloud.securitycentermanagement.v1 - .CreateSecurityHealthAnalyticsCustomModuleRequest - request, - io.grpc.stub.StreamObserver< - com.google.cloud.securitycentermanagement.v1.SecurityHealthAnalyticsCustomModule> - responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel() - .newCall(getCreateSecurityHealthAnalyticsCustomModuleMethod(), getCallOptions()), - request, - responseObserver); - } - - /** - * - * - *
-     * Updates the SecurityHealthAnalyticsCustomModule under the given name based
-     * on the given update mask. Updating the enablement state is supported on
-     * both resident and inherited modules (though resident modules cannot have an
-     * enablement state of "inherited"). Updating the display name and custom
-     * config of a module is supported on resident modules only.
-     * 
- */ - public void updateSecurityHealthAnalyticsCustomModule( - com.google.cloud.securitycentermanagement.v1 - .UpdateSecurityHealthAnalyticsCustomModuleRequest - request, - io.grpc.stub.StreamObserver< - com.google.cloud.securitycentermanagement.v1.SecurityHealthAnalyticsCustomModule> - responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel() - .newCall(getUpdateSecurityHealthAnalyticsCustomModuleMethod(), getCallOptions()), - request, - responseObserver); - } - - /** - * - * - *
-     * Deletes the specified SecurityHealthAnalyticsCustomModule and all of its
-     * descendants in the CRM hierarchy. This method is only supported for
-     * resident custom modules.
-     * 
- */ - public void deleteSecurityHealthAnalyticsCustomModule( - com.google.cloud.securitycentermanagement.v1 - .DeleteSecurityHealthAnalyticsCustomModuleRequest - request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel() - .newCall(getDeleteSecurityHealthAnalyticsCustomModuleMethod(), getCallOptions()), - request, - responseObserver); - } - - /** - * - * - *
-     * Simulates a given SecurityHealthAnalyticsCustomModule and Resource.
-     * 
- */ - public void simulateSecurityHealthAnalyticsCustomModule( - com.google.cloud.securitycentermanagement.v1 - .SimulateSecurityHealthAnalyticsCustomModuleRequest - request, - io.grpc.stub.StreamObserver< - com.google.cloud.securitycentermanagement.v1 - .SimulateSecurityHealthAnalyticsCustomModuleResponse> - responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel() - .newCall(getSimulateSecurityHealthAnalyticsCustomModuleMethod(), getCallOptions()), - request, - responseObserver); - } - - /** - * - * - *
-     * Lists all effective Event Threat Detection custom modules for the
-     * given parent. This includes resident modules defined at the scope of the
-     * parent along with modules inherited from its ancestors.
-     * 
- */ - public void listEffectiveEventThreatDetectionCustomModules( - com.google.cloud.securitycentermanagement.v1 - .ListEffectiveEventThreatDetectionCustomModulesRequest - request, - io.grpc.stub.StreamObserver< - com.google.cloud.securitycentermanagement.v1 - .ListEffectiveEventThreatDetectionCustomModulesResponse> - responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel() - .newCall(getListEffectiveEventThreatDetectionCustomModulesMethod(), getCallOptions()), - request, - responseObserver); - } - - /** - * - * - *
-     * Gets an effective ETD custom module. Retrieves the effective module at the
-     * given level. The difference between an EffectiveCustomModule and a
-     * CustomModule is that the fields for an EffectiveCustomModule are computed
-     * from ancestors if needed. For example, the enablement_state for a
-     * CustomModule can be either ENABLED, DISABLED, or INHERITED. Where as the
-     * enablement_state for an EffectiveCustomModule is always computed to ENABLED
-     * or DISABLED (the effective enablement_state).
-     * 
- */ - public void getEffectiveEventThreatDetectionCustomModule( - com.google.cloud.securitycentermanagement.v1 - .GetEffectiveEventThreatDetectionCustomModuleRequest - request, - io.grpc.stub.StreamObserver< - com.google.cloud.securitycentermanagement.v1 - .EffectiveEventThreatDetectionCustomModule> - responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel() - .newCall(getGetEffectiveEventThreatDetectionCustomModuleMethod(), getCallOptions()), - request, - responseObserver); - } - - /** - * - * - *
-     * Lists all Event Threat Detection custom modules for the given
-     * Resource Manager parent. This includes resident modules defined at the
-     * scope of the parent along with modules inherited from ancestors.
-     * 
- */ - public void listEventThreatDetectionCustomModules( - com.google.cloud.securitycentermanagement.v1.ListEventThreatDetectionCustomModulesRequest - request, - io.grpc.stub.StreamObserver< - com.google.cloud.securitycentermanagement.v1 - .ListEventThreatDetectionCustomModulesResponse> - responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getListEventThreatDetectionCustomModulesMethod(), getCallOptions()), - request, - responseObserver); - } - - /** - * - * - *
-     * Lists all resident Event Threat Detection custom modules under the
-     * given Resource Manager parent and its descendants.
-     * 
- */ - public void listDescendantEventThreatDetectionCustomModules( - com.google.cloud.securitycentermanagement.v1 - .ListDescendantEventThreatDetectionCustomModulesRequest - request, - io.grpc.stub.StreamObserver< - com.google.cloud.securitycentermanagement.v1 - .ListDescendantEventThreatDetectionCustomModulesResponse> - responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel() - .newCall( - getListDescendantEventThreatDetectionCustomModulesMethod(), getCallOptions()), - request, - responseObserver); - } - - /** - * - * - *
-     * Gets an Event Threat Detection custom module.
-     * 
- */ - public void getEventThreatDetectionCustomModule( - com.google.cloud.securitycentermanagement.v1.GetEventThreatDetectionCustomModuleRequest - request, - io.grpc.stub.StreamObserver< - com.google.cloud.securitycentermanagement.v1.EventThreatDetectionCustomModule> - responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getGetEventThreatDetectionCustomModuleMethod(), getCallOptions()), - request, - responseObserver); - } - - /** - * - * - *
-     * Creates a resident Event Threat Detection custom module at the scope of the
-     * given Resource Manager parent, and also creates inherited custom modules
-     * for all descendants of the given parent. These modules are enabled by
-     * default.
-     * 
- */ - public void createEventThreatDetectionCustomModule( - com.google.cloud.securitycentermanagement.v1.CreateEventThreatDetectionCustomModuleRequest - request, - io.grpc.stub.StreamObserver< - com.google.cloud.securitycentermanagement.v1.EventThreatDetectionCustomModule> - responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getCreateEventThreatDetectionCustomModuleMethod(), getCallOptions()), - request, - responseObserver); - } - - /** - * - * - *
-     * Updates the Event Threat Detection custom module with the given name based
-     * on the given update mask. Updating the enablement state is supported for
-     * both resident and inherited modules (though resident modules cannot have an
-     * enablement state of "inherited"). Updating the display name or
-     * configuration of a module is supported for resident modules only. The type
-     * of a module cannot be changed.
-     * 
- */ - public void updateEventThreatDetectionCustomModule( - com.google.cloud.securitycentermanagement.v1.UpdateEventThreatDetectionCustomModuleRequest - request, - io.grpc.stub.StreamObserver< - com.google.cloud.securitycentermanagement.v1.EventThreatDetectionCustomModule> - responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getUpdateEventThreatDetectionCustomModuleMethod(), getCallOptions()), - request, - responseObserver); - } - - /** - * - * - *
-     * Deletes the specified Event Threat Detection custom module and all of its
-     * descendants in the Resource Manager hierarchy. This method is only
-     * supported for resident custom modules.
-     * 
- */ - public void deleteEventThreatDetectionCustomModule( - com.google.cloud.securitycentermanagement.v1.DeleteEventThreatDetectionCustomModuleRequest - request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getDeleteEventThreatDetectionCustomModuleMethod(), getCallOptions()), - request, - responseObserver); - } - - /** - * - * - *
-     * Validates the given Event Threat Detection custom module.
-     * 
- */ - public void validateEventThreatDetectionCustomModule( - com.google.cloud.securitycentermanagement.v1.ValidateEventThreatDetectionCustomModuleRequest - request, - io.grpc.stub.StreamObserver< - com.google.cloud.securitycentermanagement.v1 - .ValidateEventThreatDetectionCustomModuleResponse> - responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel() - .newCall(getValidateEventThreatDetectionCustomModuleMethod(), getCallOptions()), - request, - responseObserver); - } - } - - /** - * A stub to allow clients to do synchronous rpc calls to service SecurityCenterManagement. - * - *
-   * Service describing handlers for resources
-   * 
- */ - public static final class SecurityCenterManagementBlockingStub - extends io.grpc.stub.AbstractBlockingStub { - private SecurityCenterManagementBlockingStub( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - super(channel, callOptions); - } - - @java.lang.Override - protected SecurityCenterManagementBlockingStub build( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new SecurityCenterManagementBlockingStub(channel, callOptions); - } - - /** - * - * - *
-     * Returns a list of all EffectiveSecurityHealthAnalyticsCustomModules for the
-     * given parent. This includes resident modules defined at the scope of the
-     * parent, and inherited modules, inherited from CRM ancestors (no
-     * descendants).
-     * 
- */ - public com.google.cloud.securitycentermanagement.v1 - .ListEffectiveSecurityHealthAnalyticsCustomModulesResponse - listEffectiveSecurityHealthAnalyticsCustomModules( - com.google.cloud.securitycentermanagement.v1 - .ListEffectiveSecurityHealthAnalyticsCustomModulesRequest - request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), - getListEffectiveSecurityHealthAnalyticsCustomModulesMethod(), - getCallOptions(), - request); - } - - /** - * - * - *
-     * Gets details of a single EffectiveSecurityHealthAnalyticsCustomModule.
-     * 
- */ - public com.google.cloud.securitycentermanagement.v1.EffectiveSecurityHealthAnalyticsCustomModule - getEffectiveSecurityHealthAnalyticsCustomModule( - com.google.cloud.securitycentermanagement.v1 - .GetEffectiveSecurityHealthAnalyticsCustomModuleRequest - request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), - getGetEffectiveSecurityHealthAnalyticsCustomModuleMethod(), - getCallOptions(), - request); - } - - /** - * - * - *
-     * Returns a list of all SecurityHealthAnalyticsCustomModules for the given
-     * parent. This includes resident modules defined at the scope of the parent,
-     * and inherited modules, inherited from CRM ancestors (no descendants).
-     * 
- */ - public com.google.cloud.securitycentermanagement.v1 - .ListSecurityHealthAnalyticsCustomModulesResponse - listSecurityHealthAnalyticsCustomModules( - com.google.cloud.securitycentermanagement.v1 - .ListSecurityHealthAnalyticsCustomModulesRequest - request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), - getListSecurityHealthAnalyticsCustomModulesMethod(), - getCallOptions(), - request); - } - - /** - * - * - *
-     * Returns a list of all resident SecurityHealthAnalyticsCustomModules under
-     * the given CRM parent and all of the parent’s CRM descendants.
-     * 
- */ - public com.google.cloud.securitycentermanagement.v1 - .ListDescendantSecurityHealthAnalyticsCustomModulesResponse - listDescendantSecurityHealthAnalyticsCustomModules( - com.google.cloud.securitycentermanagement.v1 - .ListDescendantSecurityHealthAnalyticsCustomModulesRequest - request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), - getListDescendantSecurityHealthAnalyticsCustomModulesMethod(), - getCallOptions(), - request); - } - - /** - * - * - *
-     * Retrieves a SecurityHealthAnalyticsCustomModule.
-     * 
- */ - public com.google.cloud.securitycentermanagement.v1.SecurityHealthAnalyticsCustomModule - getSecurityHealthAnalyticsCustomModule( - com.google.cloud.securitycentermanagement.v1 - .GetSecurityHealthAnalyticsCustomModuleRequest - request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), - getGetSecurityHealthAnalyticsCustomModuleMethod(), - getCallOptions(), - request); - } - - /** - * - * - *
-     * Creates a resident SecurityHealthAnalyticsCustomModule at the scope of the
-     * given CRM parent, and also creates inherited
-     * SecurityHealthAnalyticsCustomModules for all CRM descendants of the given
-     * parent. These modules are enabled by default.
-     * 
- */ - public com.google.cloud.securitycentermanagement.v1.SecurityHealthAnalyticsCustomModule - createSecurityHealthAnalyticsCustomModule( - com.google.cloud.securitycentermanagement.v1 - .CreateSecurityHealthAnalyticsCustomModuleRequest - request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), - getCreateSecurityHealthAnalyticsCustomModuleMethod(), - getCallOptions(), - request); - } - - /** - * - * - *
-     * Updates the SecurityHealthAnalyticsCustomModule under the given name based
-     * on the given update mask. Updating the enablement state is supported on
-     * both resident and inherited modules (though resident modules cannot have an
-     * enablement state of "inherited"). Updating the display name and custom
-     * config of a module is supported on resident modules only.
-     * 
- */ - public com.google.cloud.securitycentermanagement.v1.SecurityHealthAnalyticsCustomModule - updateSecurityHealthAnalyticsCustomModule( - com.google.cloud.securitycentermanagement.v1 - .UpdateSecurityHealthAnalyticsCustomModuleRequest - request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), - getUpdateSecurityHealthAnalyticsCustomModuleMethod(), - getCallOptions(), - request); - } - - /** - * - * - *
-     * Deletes the specified SecurityHealthAnalyticsCustomModule and all of its
-     * descendants in the CRM hierarchy. This method is only supported for
-     * resident custom modules.
-     * 
- */ - public com.google.protobuf.Empty deleteSecurityHealthAnalyticsCustomModule( - com.google.cloud.securitycentermanagement.v1 - .DeleteSecurityHealthAnalyticsCustomModuleRequest - request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), - getDeleteSecurityHealthAnalyticsCustomModuleMethod(), - getCallOptions(), - request); - } - - /** - * - * - *
-     * Simulates a given SecurityHealthAnalyticsCustomModule and Resource.
-     * 
- */ - public com.google.cloud.securitycentermanagement.v1 - .SimulateSecurityHealthAnalyticsCustomModuleResponse - simulateSecurityHealthAnalyticsCustomModule( - com.google.cloud.securitycentermanagement.v1 - .SimulateSecurityHealthAnalyticsCustomModuleRequest - request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), - getSimulateSecurityHealthAnalyticsCustomModuleMethod(), - getCallOptions(), - request); - } - - /** - * - * - *
-     * Lists all effective Event Threat Detection custom modules for the
-     * given parent. This includes resident modules defined at the scope of the
-     * parent along with modules inherited from its ancestors.
-     * 
- */ - public com.google.cloud.securitycentermanagement.v1 - .ListEffectiveEventThreatDetectionCustomModulesResponse - listEffectiveEventThreatDetectionCustomModules( - com.google.cloud.securitycentermanagement.v1 - .ListEffectiveEventThreatDetectionCustomModulesRequest - request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), - getListEffectiveEventThreatDetectionCustomModulesMethod(), - getCallOptions(), - request); - } - - /** - * - * - *
-     * Gets an effective ETD custom module. Retrieves the effective module at the
-     * given level. The difference between an EffectiveCustomModule and a
-     * CustomModule is that the fields for an EffectiveCustomModule are computed
-     * from ancestors if needed. For example, the enablement_state for a
-     * CustomModule can be either ENABLED, DISABLED, or INHERITED. Where as the
-     * enablement_state for an EffectiveCustomModule is always computed to ENABLED
-     * or DISABLED (the effective enablement_state).
-     * 
- */ - public com.google.cloud.securitycentermanagement.v1.EffectiveEventThreatDetectionCustomModule - getEffectiveEventThreatDetectionCustomModule( - com.google.cloud.securitycentermanagement.v1 - .GetEffectiveEventThreatDetectionCustomModuleRequest - request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), - getGetEffectiveEventThreatDetectionCustomModuleMethod(), - getCallOptions(), - request); - } - - /** - * - * - *
-     * Lists all Event Threat Detection custom modules for the given
-     * Resource Manager parent. This includes resident modules defined at the
-     * scope of the parent along with modules inherited from ancestors.
-     * 
- */ - public com.google.cloud.securitycentermanagement.v1 - .ListEventThreatDetectionCustomModulesResponse - listEventThreatDetectionCustomModules( - com.google.cloud.securitycentermanagement.v1 - .ListEventThreatDetectionCustomModulesRequest - request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), - getListEventThreatDetectionCustomModulesMethod(), - getCallOptions(), - request); - } - - /** - * - * - *
-     * Lists all resident Event Threat Detection custom modules under the
-     * given Resource Manager parent and its descendants.
-     * 
- */ - public com.google.cloud.securitycentermanagement.v1 - .ListDescendantEventThreatDetectionCustomModulesResponse - listDescendantEventThreatDetectionCustomModules( - com.google.cloud.securitycentermanagement.v1 - .ListDescendantEventThreatDetectionCustomModulesRequest - request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), - getListDescendantEventThreatDetectionCustomModulesMethod(), - getCallOptions(), - request); - } - - /** - * - * - *
-     * Gets an Event Threat Detection custom module.
-     * 
- */ - public com.google.cloud.securitycentermanagement.v1.EventThreatDetectionCustomModule - getEventThreatDetectionCustomModule( - com.google.cloud.securitycentermanagement.v1.GetEventThreatDetectionCustomModuleRequest - request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getGetEventThreatDetectionCustomModuleMethod(), getCallOptions(), request); - } - - /** - * - * - *
-     * Creates a resident Event Threat Detection custom module at the scope of the
-     * given Resource Manager parent, and also creates inherited custom modules
-     * for all descendants of the given parent. These modules are enabled by
-     * default.
-     * 
- */ - public com.google.cloud.securitycentermanagement.v1.EventThreatDetectionCustomModule - createEventThreatDetectionCustomModule( - com.google.cloud.securitycentermanagement.v1 - .CreateEventThreatDetectionCustomModuleRequest - request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), - getCreateEventThreatDetectionCustomModuleMethod(), - getCallOptions(), - request); - } - - /** - * - * - *
-     * Updates the Event Threat Detection custom module with the given name based
-     * on the given update mask. Updating the enablement state is supported for
-     * both resident and inherited modules (though resident modules cannot have an
-     * enablement state of "inherited"). Updating the display name or
-     * configuration of a module is supported for resident modules only. The type
-     * of a module cannot be changed.
-     * 
- */ - public com.google.cloud.securitycentermanagement.v1.EventThreatDetectionCustomModule - updateEventThreatDetectionCustomModule( - com.google.cloud.securitycentermanagement.v1 - .UpdateEventThreatDetectionCustomModuleRequest - request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), - getUpdateEventThreatDetectionCustomModuleMethod(), - getCallOptions(), - request); - } - - /** - * - * - *
-     * Deletes the specified Event Threat Detection custom module and all of its
-     * descendants in the Resource Manager hierarchy. This method is only
-     * supported for resident custom modules.
-     * 
- */ - public com.google.protobuf.Empty deleteEventThreatDetectionCustomModule( - com.google.cloud.securitycentermanagement.v1.DeleteEventThreatDetectionCustomModuleRequest - request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), - getDeleteEventThreatDetectionCustomModuleMethod(), - getCallOptions(), - request); - } - - /** - * - * - *
-     * Validates the given Event Threat Detection custom module.
-     * 
- */ - public com.google.cloud.securitycentermanagement.v1 - .ValidateEventThreatDetectionCustomModuleResponse - validateEventThreatDetectionCustomModule( - com.google.cloud.securitycentermanagement.v1 - .ValidateEventThreatDetectionCustomModuleRequest - request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), - getValidateEventThreatDetectionCustomModuleMethod(), - getCallOptions(), - request); - } - } - - /** - * A stub to allow clients to do ListenableFuture-style rpc calls to service - * SecurityCenterManagement. - * - *
-   * Service describing handlers for resources
-   * 
- */ - public static final class SecurityCenterManagementFutureStub - extends io.grpc.stub.AbstractFutureStub { - private SecurityCenterManagementFutureStub( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - super(channel, callOptions); - } - - @java.lang.Override - protected SecurityCenterManagementFutureStub build( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new SecurityCenterManagementFutureStub(channel, callOptions); - } - - /** - * - * - *
-     * Returns a list of all EffectiveSecurityHealthAnalyticsCustomModules for the
-     * given parent. This includes resident modules defined at the scope of the
-     * parent, and inherited modules, inherited from CRM ancestors (no
-     * descendants).
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture< - com.google.cloud.securitycentermanagement.v1 - .ListEffectiveSecurityHealthAnalyticsCustomModulesResponse> - listEffectiveSecurityHealthAnalyticsCustomModules( - com.google.cloud.securitycentermanagement.v1 - .ListEffectiveSecurityHealthAnalyticsCustomModulesRequest - request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel() - .newCall( - getListEffectiveSecurityHealthAnalyticsCustomModulesMethod(), getCallOptions()), - request); - } - - /** - * - * - *
-     * Gets details of a single EffectiveSecurityHealthAnalyticsCustomModule.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture< - com.google.cloud.securitycentermanagement.v1 - .EffectiveSecurityHealthAnalyticsCustomModule> - getEffectiveSecurityHealthAnalyticsCustomModule( - com.google.cloud.securitycentermanagement.v1 - .GetEffectiveSecurityHealthAnalyticsCustomModuleRequest - request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel() - .newCall( - getGetEffectiveSecurityHealthAnalyticsCustomModuleMethod(), getCallOptions()), - request); - } - - /** - * - * - *
-     * Returns a list of all SecurityHealthAnalyticsCustomModules for the given
-     * parent. This includes resident modules defined at the scope of the parent,
-     * and inherited modules, inherited from CRM ancestors (no descendants).
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture< - com.google.cloud.securitycentermanagement.v1 - .ListSecurityHealthAnalyticsCustomModulesResponse> - listSecurityHealthAnalyticsCustomModules( - com.google.cloud.securitycentermanagement.v1 - .ListSecurityHealthAnalyticsCustomModulesRequest - request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel() - .newCall(getListSecurityHealthAnalyticsCustomModulesMethod(), getCallOptions()), - request); - } - - /** - * - * - *
-     * Returns a list of all resident SecurityHealthAnalyticsCustomModules under
-     * the given CRM parent and all of the parent’s CRM descendants.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture< - com.google.cloud.securitycentermanagement.v1 - .ListDescendantSecurityHealthAnalyticsCustomModulesResponse> - listDescendantSecurityHealthAnalyticsCustomModules( - com.google.cloud.securitycentermanagement.v1 - .ListDescendantSecurityHealthAnalyticsCustomModulesRequest - request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel() - .newCall( - getListDescendantSecurityHealthAnalyticsCustomModulesMethod(), getCallOptions()), - request); - } - - /** - * - * - *
-     * Retrieves a SecurityHealthAnalyticsCustomModule.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture< - com.google.cloud.securitycentermanagement.v1.SecurityHealthAnalyticsCustomModule> - getSecurityHealthAnalyticsCustomModule( - com.google.cloud.securitycentermanagement.v1 - .GetSecurityHealthAnalyticsCustomModuleRequest - request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getGetSecurityHealthAnalyticsCustomModuleMethod(), getCallOptions()), - request); - } - - /** - * - * - *
-     * Creates a resident SecurityHealthAnalyticsCustomModule at the scope of the
-     * given CRM parent, and also creates inherited
-     * SecurityHealthAnalyticsCustomModules for all CRM descendants of the given
-     * parent. These modules are enabled by default.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture< - com.google.cloud.securitycentermanagement.v1.SecurityHealthAnalyticsCustomModule> - createSecurityHealthAnalyticsCustomModule( - com.google.cloud.securitycentermanagement.v1 - .CreateSecurityHealthAnalyticsCustomModuleRequest - request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel() - .newCall(getCreateSecurityHealthAnalyticsCustomModuleMethod(), getCallOptions()), - request); - } - - /** - * - * - *
-     * Updates the SecurityHealthAnalyticsCustomModule under the given name based
-     * on the given update mask. Updating the enablement state is supported on
-     * both resident and inherited modules (though resident modules cannot have an
-     * enablement state of "inherited"). Updating the display name and custom
-     * config of a module is supported on resident modules only.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture< - com.google.cloud.securitycentermanagement.v1.SecurityHealthAnalyticsCustomModule> - updateSecurityHealthAnalyticsCustomModule( - com.google.cloud.securitycentermanagement.v1 - .UpdateSecurityHealthAnalyticsCustomModuleRequest - request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel() - .newCall(getUpdateSecurityHealthAnalyticsCustomModuleMethod(), getCallOptions()), - request); - } - - /** - * - * - *
-     * Deletes the specified SecurityHealthAnalyticsCustomModule and all of its
-     * descendants in the CRM hierarchy. This method is only supported for
-     * resident custom modules.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture - deleteSecurityHealthAnalyticsCustomModule( - com.google.cloud.securitycentermanagement.v1 - .DeleteSecurityHealthAnalyticsCustomModuleRequest - request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel() - .newCall(getDeleteSecurityHealthAnalyticsCustomModuleMethod(), getCallOptions()), - request); - } - - /** - * - * - *
-     * Simulates a given SecurityHealthAnalyticsCustomModule and Resource.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture< - com.google.cloud.securitycentermanagement.v1 - .SimulateSecurityHealthAnalyticsCustomModuleResponse> - simulateSecurityHealthAnalyticsCustomModule( - com.google.cloud.securitycentermanagement.v1 - .SimulateSecurityHealthAnalyticsCustomModuleRequest - request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel() - .newCall(getSimulateSecurityHealthAnalyticsCustomModuleMethod(), getCallOptions()), - request); - } - - /** - * - * - *
-     * Lists all effective Event Threat Detection custom modules for the
-     * given parent. This includes resident modules defined at the scope of the
-     * parent along with modules inherited from its ancestors.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture< - com.google.cloud.securitycentermanagement.v1 - .ListEffectiveEventThreatDetectionCustomModulesResponse> - listEffectiveEventThreatDetectionCustomModules( - com.google.cloud.securitycentermanagement.v1 - .ListEffectiveEventThreatDetectionCustomModulesRequest - request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel() - .newCall(getListEffectiveEventThreatDetectionCustomModulesMethod(), getCallOptions()), - request); - } - - /** - * - * - *
-     * Gets an effective ETD custom module. Retrieves the effective module at the
-     * given level. The difference between an EffectiveCustomModule and a
-     * CustomModule is that the fields for an EffectiveCustomModule are computed
-     * from ancestors if needed. For example, the enablement_state for a
-     * CustomModule can be either ENABLED, DISABLED, or INHERITED. Where as the
-     * enablement_state for an EffectiveCustomModule is always computed to ENABLED
-     * or DISABLED (the effective enablement_state).
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture< - com.google.cloud.securitycentermanagement.v1.EffectiveEventThreatDetectionCustomModule> - getEffectiveEventThreatDetectionCustomModule( - com.google.cloud.securitycentermanagement.v1 - .GetEffectiveEventThreatDetectionCustomModuleRequest - request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel() - .newCall(getGetEffectiveEventThreatDetectionCustomModuleMethod(), getCallOptions()), - request); - } - - /** - * - * - *
-     * Lists all Event Threat Detection custom modules for the given
-     * Resource Manager parent. This includes resident modules defined at the
-     * scope of the parent along with modules inherited from ancestors.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture< - com.google.cloud.securitycentermanagement.v1 - .ListEventThreatDetectionCustomModulesResponse> - listEventThreatDetectionCustomModules( - com.google.cloud.securitycentermanagement.v1 - .ListEventThreatDetectionCustomModulesRequest - request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getListEventThreatDetectionCustomModulesMethod(), getCallOptions()), - request); - } - - /** - * - * - *
-     * Lists all resident Event Threat Detection custom modules under the
-     * given Resource Manager parent and its descendants.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture< - com.google.cloud.securitycentermanagement.v1 - .ListDescendantEventThreatDetectionCustomModulesResponse> - listDescendantEventThreatDetectionCustomModules( - com.google.cloud.securitycentermanagement.v1 - .ListDescendantEventThreatDetectionCustomModulesRequest - request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel() - .newCall( - getListDescendantEventThreatDetectionCustomModulesMethod(), getCallOptions()), - request); - } - - /** - * - * - *
-     * Gets an Event Threat Detection custom module.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture< - com.google.cloud.securitycentermanagement.v1.EventThreatDetectionCustomModule> - getEventThreatDetectionCustomModule( - com.google.cloud.securitycentermanagement.v1.GetEventThreatDetectionCustomModuleRequest - request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getGetEventThreatDetectionCustomModuleMethod(), getCallOptions()), - request); - } - - /** - * - * - *
-     * Creates a resident Event Threat Detection custom module at the scope of the
-     * given Resource Manager parent, and also creates inherited custom modules
-     * for all descendants of the given parent. These modules are enabled by
-     * default.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture< - com.google.cloud.securitycentermanagement.v1.EventThreatDetectionCustomModule> - createEventThreatDetectionCustomModule( - com.google.cloud.securitycentermanagement.v1 - .CreateEventThreatDetectionCustomModuleRequest - request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getCreateEventThreatDetectionCustomModuleMethod(), getCallOptions()), - request); - } - - /** - * - * - *
-     * Updates the Event Threat Detection custom module with the given name based
-     * on the given update mask. Updating the enablement state is supported for
-     * both resident and inherited modules (though resident modules cannot have an
-     * enablement state of "inherited"). Updating the display name or
-     * configuration of a module is supported for resident modules only. The type
-     * of a module cannot be changed.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture< - com.google.cloud.securitycentermanagement.v1.EventThreatDetectionCustomModule> - updateEventThreatDetectionCustomModule( - com.google.cloud.securitycentermanagement.v1 - .UpdateEventThreatDetectionCustomModuleRequest - request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getUpdateEventThreatDetectionCustomModuleMethod(), getCallOptions()), - request); - } - - /** - * - * - *
-     * Deletes the specified Event Threat Detection custom module and all of its
-     * descendants in the Resource Manager hierarchy. This method is only
-     * supported for resident custom modules.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture - deleteEventThreatDetectionCustomModule( - com.google.cloud.securitycentermanagement.v1 - .DeleteEventThreatDetectionCustomModuleRequest - request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getDeleteEventThreatDetectionCustomModuleMethod(), getCallOptions()), - request); - } - - /** - * - * - *
-     * Validates the given Event Threat Detection custom module.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture< - com.google.cloud.securitycentermanagement.v1 - .ValidateEventThreatDetectionCustomModuleResponse> - validateEventThreatDetectionCustomModule( - com.google.cloud.securitycentermanagement.v1 - .ValidateEventThreatDetectionCustomModuleRequest - request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel() - .newCall(getValidateEventThreatDetectionCustomModuleMethod(), getCallOptions()), - request); - } - } - - private static final int METHODID_LIST_EFFECTIVE_SECURITY_HEALTH_ANALYTICS_CUSTOM_MODULES = 0; - private static final int METHODID_GET_EFFECTIVE_SECURITY_HEALTH_ANALYTICS_CUSTOM_MODULE = 1; - private static final int METHODID_LIST_SECURITY_HEALTH_ANALYTICS_CUSTOM_MODULES = 2; - private static final int METHODID_LIST_DESCENDANT_SECURITY_HEALTH_ANALYTICS_CUSTOM_MODULES = 3; - private static final int METHODID_GET_SECURITY_HEALTH_ANALYTICS_CUSTOM_MODULE = 4; - private static final int METHODID_CREATE_SECURITY_HEALTH_ANALYTICS_CUSTOM_MODULE = 5; - private static final int METHODID_UPDATE_SECURITY_HEALTH_ANALYTICS_CUSTOM_MODULE = 6; - private static final int METHODID_DELETE_SECURITY_HEALTH_ANALYTICS_CUSTOM_MODULE = 7; - private static final int METHODID_SIMULATE_SECURITY_HEALTH_ANALYTICS_CUSTOM_MODULE = 8; - private static final int METHODID_LIST_EFFECTIVE_EVENT_THREAT_DETECTION_CUSTOM_MODULES = 9; - private static final int METHODID_GET_EFFECTIVE_EVENT_THREAT_DETECTION_CUSTOM_MODULE = 10; - private static final int METHODID_LIST_EVENT_THREAT_DETECTION_CUSTOM_MODULES = 11; - private static final int METHODID_LIST_DESCENDANT_EVENT_THREAT_DETECTION_CUSTOM_MODULES = 12; - private static final int METHODID_GET_EVENT_THREAT_DETECTION_CUSTOM_MODULE = 13; - private static final int METHODID_CREATE_EVENT_THREAT_DETECTION_CUSTOM_MODULE = 14; - private static final int METHODID_UPDATE_EVENT_THREAT_DETECTION_CUSTOM_MODULE = 15; - private static final int METHODID_DELETE_EVENT_THREAT_DETECTION_CUSTOM_MODULE = 16; - private static final int METHODID_VALIDATE_EVENT_THREAT_DETECTION_CUSTOM_MODULE = 17; - - 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_EFFECTIVE_SECURITY_HEALTH_ANALYTICS_CUSTOM_MODULES: - serviceImpl.listEffectiveSecurityHealthAnalyticsCustomModules( - (com.google.cloud.securitycentermanagement.v1 - .ListEffectiveSecurityHealthAnalyticsCustomModulesRequest) - request, - (io.grpc.stub.StreamObserver< - com.google.cloud.securitycentermanagement.v1 - .ListEffectiveSecurityHealthAnalyticsCustomModulesResponse>) - responseObserver); - break; - case METHODID_GET_EFFECTIVE_SECURITY_HEALTH_ANALYTICS_CUSTOM_MODULE: - serviceImpl.getEffectiveSecurityHealthAnalyticsCustomModule( - (com.google.cloud.securitycentermanagement.v1 - .GetEffectiveSecurityHealthAnalyticsCustomModuleRequest) - request, - (io.grpc.stub.StreamObserver< - com.google.cloud.securitycentermanagement.v1 - .EffectiveSecurityHealthAnalyticsCustomModule>) - responseObserver); - break; - case METHODID_LIST_SECURITY_HEALTH_ANALYTICS_CUSTOM_MODULES: - serviceImpl.listSecurityHealthAnalyticsCustomModules( - (com.google.cloud.securitycentermanagement.v1 - .ListSecurityHealthAnalyticsCustomModulesRequest) - request, - (io.grpc.stub.StreamObserver< - com.google.cloud.securitycentermanagement.v1 - .ListSecurityHealthAnalyticsCustomModulesResponse>) - responseObserver); - break; - case METHODID_LIST_DESCENDANT_SECURITY_HEALTH_ANALYTICS_CUSTOM_MODULES: - serviceImpl.listDescendantSecurityHealthAnalyticsCustomModules( - (com.google.cloud.securitycentermanagement.v1 - .ListDescendantSecurityHealthAnalyticsCustomModulesRequest) - request, - (io.grpc.stub.StreamObserver< - com.google.cloud.securitycentermanagement.v1 - .ListDescendantSecurityHealthAnalyticsCustomModulesResponse>) - responseObserver); - break; - case METHODID_GET_SECURITY_HEALTH_ANALYTICS_CUSTOM_MODULE: - serviceImpl.getSecurityHealthAnalyticsCustomModule( - (com.google.cloud.securitycentermanagement.v1 - .GetSecurityHealthAnalyticsCustomModuleRequest) - request, - (io.grpc.stub.StreamObserver< - com.google.cloud.securitycentermanagement.v1 - .SecurityHealthAnalyticsCustomModule>) - responseObserver); - break; - case METHODID_CREATE_SECURITY_HEALTH_ANALYTICS_CUSTOM_MODULE: - serviceImpl.createSecurityHealthAnalyticsCustomModule( - (com.google.cloud.securitycentermanagement.v1 - .CreateSecurityHealthAnalyticsCustomModuleRequest) - request, - (io.grpc.stub.StreamObserver< - com.google.cloud.securitycentermanagement.v1 - .SecurityHealthAnalyticsCustomModule>) - responseObserver); - break; - case METHODID_UPDATE_SECURITY_HEALTH_ANALYTICS_CUSTOM_MODULE: - serviceImpl.updateSecurityHealthAnalyticsCustomModule( - (com.google.cloud.securitycentermanagement.v1 - .UpdateSecurityHealthAnalyticsCustomModuleRequest) - request, - (io.grpc.stub.StreamObserver< - com.google.cloud.securitycentermanagement.v1 - .SecurityHealthAnalyticsCustomModule>) - responseObserver); - break; - case METHODID_DELETE_SECURITY_HEALTH_ANALYTICS_CUSTOM_MODULE: - serviceImpl.deleteSecurityHealthAnalyticsCustomModule( - (com.google.cloud.securitycentermanagement.v1 - .DeleteSecurityHealthAnalyticsCustomModuleRequest) - request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_SIMULATE_SECURITY_HEALTH_ANALYTICS_CUSTOM_MODULE: - serviceImpl.simulateSecurityHealthAnalyticsCustomModule( - (com.google.cloud.securitycentermanagement.v1 - .SimulateSecurityHealthAnalyticsCustomModuleRequest) - request, - (io.grpc.stub.StreamObserver< - com.google.cloud.securitycentermanagement.v1 - .SimulateSecurityHealthAnalyticsCustomModuleResponse>) - responseObserver); - break; - case METHODID_LIST_EFFECTIVE_EVENT_THREAT_DETECTION_CUSTOM_MODULES: - serviceImpl.listEffectiveEventThreatDetectionCustomModules( - (com.google.cloud.securitycentermanagement.v1 - .ListEffectiveEventThreatDetectionCustomModulesRequest) - request, - (io.grpc.stub.StreamObserver< - com.google.cloud.securitycentermanagement.v1 - .ListEffectiveEventThreatDetectionCustomModulesResponse>) - responseObserver); - break; - case METHODID_GET_EFFECTIVE_EVENT_THREAT_DETECTION_CUSTOM_MODULE: - serviceImpl.getEffectiveEventThreatDetectionCustomModule( - (com.google.cloud.securitycentermanagement.v1 - .GetEffectiveEventThreatDetectionCustomModuleRequest) - request, - (io.grpc.stub.StreamObserver< - com.google.cloud.securitycentermanagement.v1 - .EffectiveEventThreatDetectionCustomModule>) - responseObserver); - break; - case METHODID_LIST_EVENT_THREAT_DETECTION_CUSTOM_MODULES: - serviceImpl.listEventThreatDetectionCustomModules( - (com.google.cloud.securitycentermanagement.v1 - .ListEventThreatDetectionCustomModulesRequest) - request, - (io.grpc.stub.StreamObserver< - com.google.cloud.securitycentermanagement.v1 - .ListEventThreatDetectionCustomModulesResponse>) - responseObserver); - break; - case METHODID_LIST_DESCENDANT_EVENT_THREAT_DETECTION_CUSTOM_MODULES: - serviceImpl.listDescendantEventThreatDetectionCustomModules( - (com.google.cloud.securitycentermanagement.v1 - .ListDescendantEventThreatDetectionCustomModulesRequest) - request, - (io.grpc.stub.StreamObserver< - com.google.cloud.securitycentermanagement.v1 - .ListDescendantEventThreatDetectionCustomModulesResponse>) - responseObserver); - break; - case METHODID_GET_EVENT_THREAT_DETECTION_CUSTOM_MODULE: - serviceImpl.getEventThreatDetectionCustomModule( - (com.google.cloud.securitycentermanagement.v1 - .GetEventThreatDetectionCustomModuleRequest) - request, - (io.grpc.stub.StreamObserver< - com.google.cloud.securitycentermanagement.v1 - .EventThreatDetectionCustomModule>) - responseObserver); - break; - case METHODID_CREATE_EVENT_THREAT_DETECTION_CUSTOM_MODULE: - serviceImpl.createEventThreatDetectionCustomModule( - (com.google.cloud.securitycentermanagement.v1 - .CreateEventThreatDetectionCustomModuleRequest) - request, - (io.grpc.stub.StreamObserver< - com.google.cloud.securitycentermanagement.v1 - .EventThreatDetectionCustomModule>) - responseObserver); - break; - case METHODID_UPDATE_EVENT_THREAT_DETECTION_CUSTOM_MODULE: - serviceImpl.updateEventThreatDetectionCustomModule( - (com.google.cloud.securitycentermanagement.v1 - .UpdateEventThreatDetectionCustomModuleRequest) - request, - (io.grpc.stub.StreamObserver< - com.google.cloud.securitycentermanagement.v1 - .EventThreatDetectionCustomModule>) - responseObserver); - break; - case METHODID_DELETE_EVENT_THREAT_DETECTION_CUSTOM_MODULE: - serviceImpl.deleteEventThreatDetectionCustomModule( - (com.google.cloud.securitycentermanagement.v1 - .DeleteEventThreatDetectionCustomModuleRequest) - request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_VALIDATE_EVENT_THREAT_DETECTION_CUSTOM_MODULE: - serviceImpl.validateEventThreatDetectionCustomModule( - (com.google.cloud.securitycentermanagement.v1 - .ValidateEventThreatDetectionCustomModuleRequest) - request, - (io.grpc.stub.StreamObserver< - com.google.cloud.securitycentermanagement.v1 - .ValidateEventThreatDetectionCustomModuleResponse>) - 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( - getListEffectiveSecurityHealthAnalyticsCustomModulesMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.securitycentermanagement.v1 - .ListEffectiveSecurityHealthAnalyticsCustomModulesRequest, - com.google.cloud.securitycentermanagement.v1 - .ListEffectiveSecurityHealthAnalyticsCustomModulesResponse>( - service, METHODID_LIST_EFFECTIVE_SECURITY_HEALTH_ANALYTICS_CUSTOM_MODULES))) - .addMethod( - getGetEffectiveSecurityHealthAnalyticsCustomModuleMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.securitycentermanagement.v1 - .GetEffectiveSecurityHealthAnalyticsCustomModuleRequest, - com.google.cloud.securitycentermanagement.v1 - .EffectiveSecurityHealthAnalyticsCustomModule>( - service, METHODID_GET_EFFECTIVE_SECURITY_HEALTH_ANALYTICS_CUSTOM_MODULE))) - .addMethod( - getListSecurityHealthAnalyticsCustomModulesMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.securitycentermanagement.v1 - .ListSecurityHealthAnalyticsCustomModulesRequest, - com.google.cloud.securitycentermanagement.v1 - .ListSecurityHealthAnalyticsCustomModulesResponse>( - service, METHODID_LIST_SECURITY_HEALTH_ANALYTICS_CUSTOM_MODULES))) - .addMethod( - getListDescendantSecurityHealthAnalyticsCustomModulesMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.securitycentermanagement.v1 - .ListDescendantSecurityHealthAnalyticsCustomModulesRequest, - com.google.cloud.securitycentermanagement.v1 - .ListDescendantSecurityHealthAnalyticsCustomModulesResponse>( - service, METHODID_LIST_DESCENDANT_SECURITY_HEALTH_ANALYTICS_CUSTOM_MODULES))) - .addMethod( - getGetSecurityHealthAnalyticsCustomModuleMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.securitycentermanagement.v1 - .GetSecurityHealthAnalyticsCustomModuleRequest, - com.google.cloud.securitycentermanagement.v1 - .SecurityHealthAnalyticsCustomModule>( - service, METHODID_GET_SECURITY_HEALTH_ANALYTICS_CUSTOM_MODULE))) - .addMethod( - getCreateSecurityHealthAnalyticsCustomModuleMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.securitycentermanagement.v1 - .CreateSecurityHealthAnalyticsCustomModuleRequest, - com.google.cloud.securitycentermanagement.v1 - .SecurityHealthAnalyticsCustomModule>( - service, METHODID_CREATE_SECURITY_HEALTH_ANALYTICS_CUSTOM_MODULE))) - .addMethod( - getUpdateSecurityHealthAnalyticsCustomModuleMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.securitycentermanagement.v1 - .UpdateSecurityHealthAnalyticsCustomModuleRequest, - com.google.cloud.securitycentermanagement.v1 - .SecurityHealthAnalyticsCustomModule>( - service, METHODID_UPDATE_SECURITY_HEALTH_ANALYTICS_CUSTOM_MODULE))) - .addMethod( - getDeleteSecurityHealthAnalyticsCustomModuleMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.securitycentermanagement.v1 - .DeleteSecurityHealthAnalyticsCustomModuleRequest, - com.google.protobuf.Empty>( - service, METHODID_DELETE_SECURITY_HEALTH_ANALYTICS_CUSTOM_MODULE))) - .addMethod( - getSimulateSecurityHealthAnalyticsCustomModuleMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.securitycentermanagement.v1 - .SimulateSecurityHealthAnalyticsCustomModuleRequest, - com.google.cloud.securitycentermanagement.v1 - .SimulateSecurityHealthAnalyticsCustomModuleResponse>( - service, METHODID_SIMULATE_SECURITY_HEALTH_ANALYTICS_CUSTOM_MODULE))) - .addMethod( - getListEffectiveEventThreatDetectionCustomModulesMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.securitycentermanagement.v1 - .ListEffectiveEventThreatDetectionCustomModulesRequest, - com.google.cloud.securitycentermanagement.v1 - .ListEffectiveEventThreatDetectionCustomModulesResponse>( - service, METHODID_LIST_EFFECTIVE_EVENT_THREAT_DETECTION_CUSTOM_MODULES))) - .addMethod( - getGetEffectiveEventThreatDetectionCustomModuleMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.securitycentermanagement.v1 - .GetEffectiveEventThreatDetectionCustomModuleRequest, - com.google.cloud.securitycentermanagement.v1 - .EffectiveEventThreatDetectionCustomModule>( - service, METHODID_GET_EFFECTIVE_EVENT_THREAT_DETECTION_CUSTOM_MODULE))) - .addMethod( - getListEventThreatDetectionCustomModulesMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.securitycentermanagement.v1 - .ListEventThreatDetectionCustomModulesRequest, - com.google.cloud.securitycentermanagement.v1 - .ListEventThreatDetectionCustomModulesResponse>( - service, METHODID_LIST_EVENT_THREAT_DETECTION_CUSTOM_MODULES))) - .addMethod( - getListDescendantEventThreatDetectionCustomModulesMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.securitycentermanagement.v1 - .ListDescendantEventThreatDetectionCustomModulesRequest, - com.google.cloud.securitycentermanagement.v1 - .ListDescendantEventThreatDetectionCustomModulesResponse>( - service, METHODID_LIST_DESCENDANT_EVENT_THREAT_DETECTION_CUSTOM_MODULES))) - .addMethod( - getGetEventThreatDetectionCustomModuleMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.securitycentermanagement.v1 - .GetEventThreatDetectionCustomModuleRequest, - com.google.cloud.securitycentermanagement.v1.EventThreatDetectionCustomModule>( - service, METHODID_GET_EVENT_THREAT_DETECTION_CUSTOM_MODULE))) - .addMethod( - getCreateEventThreatDetectionCustomModuleMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.securitycentermanagement.v1 - .CreateEventThreatDetectionCustomModuleRequest, - com.google.cloud.securitycentermanagement.v1.EventThreatDetectionCustomModule>( - service, METHODID_CREATE_EVENT_THREAT_DETECTION_CUSTOM_MODULE))) - .addMethod( - getUpdateEventThreatDetectionCustomModuleMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.securitycentermanagement.v1 - .UpdateEventThreatDetectionCustomModuleRequest, - com.google.cloud.securitycentermanagement.v1.EventThreatDetectionCustomModule>( - service, METHODID_UPDATE_EVENT_THREAT_DETECTION_CUSTOM_MODULE))) - .addMethod( - getDeleteEventThreatDetectionCustomModuleMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.securitycentermanagement.v1 - .DeleteEventThreatDetectionCustomModuleRequest, - com.google.protobuf.Empty>( - service, METHODID_DELETE_EVENT_THREAT_DETECTION_CUSTOM_MODULE))) - .addMethod( - getValidateEventThreatDetectionCustomModuleMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.securitycentermanagement.v1 - .ValidateEventThreatDetectionCustomModuleRequest, - com.google.cloud.securitycentermanagement.v1 - .ValidateEventThreatDetectionCustomModuleResponse>( - service, METHODID_VALIDATE_EVENT_THREAT_DETECTION_CUSTOM_MODULE))) - .build(); - } - - private abstract static class SecurityCenterManagementBaseDescriptorSupplier - implements io.grpc.protobuf.ProtoFileDescriptorSupplier, - io.grpc.protobuf.ProtoServiceDescriptorSupplier { - SecurityCenterManagementBaseDescriptorSupplier() {} - - @java.lang.Override - public com.google.protobuf.Descriptors.FileDescriptor getFileDescriptor() { - return com.google.cloud.securitycentermanagement.v1.SecurityCenterManagementProto - .getDescriptor(); - } - - @java.lang.Override - public com.google.protobuf.Descriptors.ServiceDescriptor getServiceDescriptor() { - return getFileDescriptor().findServiceByName("SecurityCenterManagement"); - } - } - - private static final class SecurityCenterManagementFileDescriptorSupplier - extends SecurityCenterManagementBaseDescriptorSupplier { - SecurityCenterManagementFileDescriptorSupplier() {} - } - - private static final class SecurityCenterManagementMethodDescriptorSupplier - extends SecurityCenterManagementBaseDescriptorSupplier - implements io.grpc.protobuf.ProtoMethodDescriptorSupplier { - private final java.lang.String methodName; - - SecurityCenterManagementMethodDescriptorSupplier(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 (SecurityCenterManagementGrpc.class) { - result = serviceDescriptor; - if (result == null) { - serviceDescriptor = - result = - io.grpc.ServiceDescriptor.newBuilder(SERVICE_NAME) - .setSchemaDescriptor(new SecurityCenterManagementFileDescriptorSupplier()) - .addMethod(getListEffectiveSecurityHealthAnalyticsCustomModulesMethod()) - .addMethod(getGetEffectiveSecurityHealthAnalyticsCustomModuleMethod()) - .addMethod(getListSecurityHealthAnalyticsCustomModulesMethod()) - .addMethod(getListDescendantSecurityHealthAnalyticsCustomModulesMethod()) - .addMethod(getGetSecurityHealthAnalyticsCustomModuleMethod()) - .addMethod(getCreateSecurityHealthAnalyticsCustomModuleMethod()) - .addMethod(getUpdateSecurityHealthAnalyticsCustomModuleMethod()) - .addMethod(getDeleteSecurityHealthAnalyticsCustomModuleMethod()) - .addMethod(getSimulateSecurityHealthAnalyticsCustomModuleMethod()) - .addMethod(getListEffectiveEventThreatDetectionCustomModulesMethod()) - .addMethod(getGetEffectiveEventThreatDetectionCustomModuleMethod()) - .addMethod(getListEventThreatDetectionCustomModulesMethod()) - .addMethod(getListDescendantEventThreatDetectionCustomModulesMethod()) - .addMethod(getGetEventThreatDetectionCustomModuleMethod()) - .addMethod(getCreateEventThreatDetectionCustomModuleMethod()) - .addMethod(getUpdateEventThreatDetectionCustomModuleMethod()) - .addMethod(getDeleteEventThreatDetectionCustomModuleMethod()) - .addMethod(getValidateEventThreatDetectionCustomModuleMethod()) - .build(); - } - } - } - return result; - } -} diff --git a/java-securitycentermanagement/proto-google-cloud-securitycentermanagement-v1/src/main/java/com/google/cloud/securitycentermanagement/v1/GetEffectiveEventThreatDetectionCustomModuleRequest.java b/java-securitycentermanagement/proto-google-cloud-securitycentermanagement-v1/src/main/java/com/google/cloud/securitycentermanagement/v1/GetEffectiveEventThreatDetectionCustomModuleRequest.java deleted file mode 100644 index d69e5cbadd8a..000000000000 --- a/java-securitycentermanagement/proto-google-cloud-securitycentermanagement-v1/src/main/java/com/google/cloud/securitycentermanagement/v1/GetEffectiveEventThreatDetectionCustomModuleRequest.java +++ /dev/null @@ -1,757 +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/securitycentermanagement/v1/security_center_management.proto - -package com.google.cloud.securitycentermanagement.v1; - -/** - * - * - *
- * Message for getting a EffectiveEventThreatDetectionCustomModule
- * 
- * - * Protobuf type {@code - * google.cloud.securitycentermanagement.v1.GetEffectiveEventThreatDetectionCustomModuleRequest} - */ -public final class GetEffectiveEventThreatDetectionCustomModuleRequest - extends com.google.protobuf.GeneratedMessageV3 - implements - // @@protoc_insertion_point(message_implements:google.cloud.securitycentermanagement.v1.GetEffectiveEventThreatDetectionCustomModuleRequest) - GetEffectiveEventThreatDetectionCustomModuleRequestOrBuilder { - private static final long serialVersionUID = 0L; - // Use GetEffectiveEventThreatDetectionCustomModuleRequest.newBuilder() to construct. - private GetEffectiveEventThreatDetectionCustomModuleRequest( - com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - - private GetEffectiveEventThreatDetectionCustomModuleRequest() { - name_ = ""; - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { - return new GetEffectiveEventThreatDetectionCustomModuleRequest(); - } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.securitycentermanagement.v1.SecurityCenterManagementProto - .internal_static_google_cloud_securitycentermanagement_v1_GetEffectiveEventThreatDetectionCustomModuleRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.securitycentermanagement.v1.SecurityCenterManagementProto - .internal_static_google_cloud_securitycentermanagement_v1_GetEffectiveEventThreatDetectionCustomModuleRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.securitycentermanagement.v1 - .GetEffectiveEventThreatDetectionCustomModuleRequest.class, - com.google.cloud.securitycentermanagement.v1 - .GetEffectiveEventThreatDetectionCustomModuleRequest.Builder.class); - } - - public static final int NAME_FIELD_NUMBER = 1; - - @SuppressWarnings("serial") - private volatile java.lang.Object name_ = ""; - /** - * - * - *
-   * Required. The resource name of the ETD custom module.
-   *
-   * Its format is:
-   *
-   *   * "organizations/{organization}/locations/{location}/effectiveEventThreatDetectionCustomModules/{effective_event_threat_detection_custom_module}".
-   *   * "folders/{folder}/locations/{location}/effectiveEventThreatDetectionCustomModules/{effective_event_threat_detection_custom_module}".
-   *   * "projects/{project}/locations/{location}/effectiveEventThreatDetectionCustomModules/{effective_event_threat_detection_custom_module}".
-   * 
- * - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The name. - */ - @java.lang.Override - public java.lang.String getName() { - java.lang.Object ref = name_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - name_ = s; - return s; - } - } - /** - * - * - *
-   * Required. The resource name of the ETD custom module.
-   *
-   * Its format is:
-   *
-   *   * "organizations/{organization}/locations/{location}/effectiveEventThreatDetectionCustomModules/{effective_event_threat_detection_custom_module}".
-   *   * "folders/{folder}/locations/{location}/effectiveEventThreatDetectionCustomModules/{effective_event_threat_detection_custom_module}".
-   *   * "projects/{project}/locations/{location}/effectiveEventThreatDetectionCustomModules/{effective_event_threat_detection_custom_module}".
-   * 
- * - * - * 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() { - java.lang.Object ref = name_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - name_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - private byte memoizedIsInitialized = -1; - - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); - } - getUnknownFields().writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); - } - size += getUnknownFields().getSerializedSize(); - memoizedSize = size; - return size; - } - - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj - instanceof - com.google.cloud.securitycentermanagement.v1 - .GetEffectiveEventThreatDetectionCustomModuleRequest)) { - return super.equals(obj); - } - com.google.cloud.securitycentermanagement.v1.GetEffectiveEventThreatDetectionCustomModuleRequest - other = - (com.google.cloud.securitycentermanagement.v1 - .GetEffectiveEventThreatDetectionCustomModuleRequest) - obj; - - if (!getName().equals(other.getName())) return false; - if (!getUnknownFields().equals(other.getUnknownFields())) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + NAME_FIELD_NUMBER; - hash = (53 * hash) + getName().hashCode(); - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static com.google.cloud.securitycentermanagement.v1 - .GetEffectiveEventThreatDetectionCustomModuleRequest - parseFrom(java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.securitycentermanagement.v1 - .GetEffectiveEventThreatDetectionCustomModuleRequest - 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.securitycentermanagement.v1 - .GetEffectiveEventThreatDetectionCustomModuleRequest - parseFrom(com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.securitycentermanagement.v1 - .GetEffectiveEventThreatDetectionCustomModuleRequest - parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.securitycentermanagement.v1 - .GetEffectiveEventThreatDetectionCustomModuleRequest - parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.securitycentermanagement.v1 - .GetEffectiveEventThreatDetectionCustomModuleRequest - parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.securitycentermanagement.v1 - .GetEffectiveEventThreatDetectionCustomModuleRequest - parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.cloud.securitycentermanagement.v1 - .GetEffectiveEventThreatDetectionCustomModuleRequest - 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.securitycentermanagement.v1 - .GetEffectiveEventThreatDetectionCustomModuleRequest - parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); - } - - public static com.google.cloud.securitycentermanagement.v1 - .GetEffectiveEventThreatDetectionCustomModuleRequest - parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); - } - - public static com.google.cloud.securitycentermanagement.v1 - .GetEffectiveEventThreatDetectionCustomModuleRequest - parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.cloud.securitycentermanagement.v1 - .GetEffectiveEventThreatDetectionCustomModuleRequest - 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.securitycentermanagement.v1 - .GetEffectiveEventThreatDetectionCustomModuleRequest - prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - * - * - *
-   * Message for getting a EffectiveEventThreatDetectionCustomModule
-   * 
- * - * Protobuf type {@code - * google.cloud.securitycentermanagement.v1.GetEffectiveEventThreatDetectionCustomModuleRequest} - */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements - // @@protoc_insertion_point(builder_implements:google.cloud.securitycentermanagement.v1.GetEffectiveEventThreatDetectionCustomModuleRequest) - com.google.cloud.securitycentermanagement.v1 - .GetEffectiveEventThreatDetectionCustomModuleRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.securitycentermanagement.v1.SecurityCenterManagementProto - .internal_static_google_cloud_securitycentermanagement_v1_GetEffectiveEventThreatDetectionCustomModuleRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.securitycentermanagement.v1.SecurityCenterManagementProto - .internal_static_google_cloud_securitycentermanagement_v1_GetEffectiveEventThreatDetectionCustomModuleRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.securitycentermanagement.v1 - .GetEffectiveEventThreatDetectionCustomModuleRequest.class, - com.google.cloud.securitycentermanagement.v1 - .GetEffectiveEventThreatDetectionCustomModuleRequest.Builder.class); - } - - // Construct using - // com.google.cloud.securitycentermanagement.v1.GetEffectiveEventThreatDetectionCustomModuleRequest.newBuilder() - private Builder() {} - - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - } - - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - name_ = ""; - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.securitycentermanagement.v1.SecurityCenterManagementProto - .internal_static_google_cloud_securitycentermanagement_v1_GetEffectiveEventThreatDetectionCustomModuleRequest_descriptor; - } - - @java.lang.Override - public com.google.cloud.securitycentermanagement.v1 - .GetEffectiveEventThreatDetectionCustomModuleRequest - getDefaultInstanceForType() { - return com.google.cloud.securitycentermanagement.v1 - .GetEffectiveEventThreatDetectionCustomModuleRequest.getDefaultInstance(); - } - - @java.lang.Override - public com.google.cloud.securitycentermanagement.v1 - .GetEffectiveEventThreatDetectionCustomModuleRequest - build() { - com.google.cloud.securitycentermanagement.v1 - .GetEffectiveEventThreatDetectionCustomModuleRequest - result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.cloud.securitycentermanagement.v1 - .GetEffectiveEventThreatDetectionCustomModuleRequest - buildPartial() { - com.google.cloud.securitycentermanagement.v1 - .GetEffectiveEventThreatDetectionCustomModuleRequest - result = - new com.google.cloud.securitycentermanagement.v1 - .GetEffectiveEventThreatDetectionCustomModuleRequest(this); - if (bitField0_ != 0) { - buildPartial0(result); - } - onBuilt(); - return result; - } - - private void buildPartial0( - com.google.cloud.securitycentermanagement.v1 - .GetEffectiveEventThreatDetectionCustomModuleRequest - result) { - int from_bitField0_ = bitField0_; - if (((from_bitField0_ & 0x00000001) != 0)) { - result.name_ = name_; - } - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.setField(field, value); - } - - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.addRepeatedField(field, value); - } - - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other - instanceof - com.google.cloud.securitycentermanagement.v1 - .GetEffectiveEventThreatDetectionCustomModuleRequest) { - return mergeFrom( - (com.google.cloud.securitycentermanagement.v1 - .GetEffectiveEventThreatDetectionCustomModuleRequest) - other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom( - com.google.cloud.securitycentermanagement.v1 - .GetEffectiveEventThreatDetectionCustomModuleRequest - other) { - if (other - == com.google.cloud.securitycentermanagement.v1 - .GetEffectiveEventThreatDetectionCustomModuleRequest.getDefaultInstance()) - return this; - if (!other.getName().isEmpty()) { - name_ = other.name_; - bitField0_ |= 0x00000001; - onChanged(); - } - this.mergeUnknownFields(other.getUnknownFields()); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - 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: - } // switch (tag) - } // while (!done) - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.unwrapIOException(); - } finally { - onChanged(); - } // finally - return this; - } - - private int bitField0_; - - private java.lang.Object name_ = ""; - /** - * - * - *
-     * Required. The resource name of the ETD custom module.
-     *
-     * Its format is:
-     *
-     *   * "organizations/{organization}/locations/{location}/effectiveEventThreatDetectionCustomModules/{effective_event_threat_detection_custom_module}".
-     *   * "folders/{folder}/locations/{location}/effectiveEventThreatDetectionCustomModules/{effective_event_threat_detection_custom_module}".
-     *   * "projects/{project}/locations/{location}/effectiveEventThreatDetectionCustomModules/{effective_event_threat_detection_custom_module}".
-     * 
- * - * - * 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; - java.lang.String s = bs.toStringUtf8(); - name_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * - * - *
-     * Required. The resource name of the ETD custom module.
-     *
-     * Its format is:
-     *
-     *   * "organizations/{organization}/locations/{location}/effectiveEventThreatDetectionCustomModules/{effective_event_threat_detection_custom_module}".
-     *   * "folders/{folder}/locations/{location}/effectiveEventThreatDetectionCustomModules/{effective_event_threat_detection_custom_module}".
-     *   * "projects/{project}/locations/{location}/effectiveEventThreatDetectionCustomModules/{effective_event_threat_detection_custom_module}".
-     * 
- * - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The bytes for name. - */ - public com.google.protobuf.ByteString getNameBytes() { - java.lang.Object ref = name_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - name_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * - * - *
-     * Required. The resource name of the ETD custom module.
-     *
-     * Its format is:
-     *
-     *   * "organizations/{organization}/locations/{location}/effectiveEventThreatDetectionCustomModules/{effective_event_threat_detection_custom_module}".
-     *   * "folders/{folder}/locations/{location}/effectiveEventThreatDetectionCustomModules/{effective_event_threat_detection_custom_module}".
-     *   * "projects/{project}/locations/{location}/effectiveEventThreatDetectionCustomModules/{effective_event_threat_detection_custom_module}".
-     * 
- * - * - * 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(); - } - name_ = value; - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - * - * - *
-     * Required. The resource name of the ETD custom module.
-     *
-     * Its format is:
-     *
-     *   * "organizations/{organization}/locations/{location}/effectiveEventThreatDetectionCustomModules/{effective_event_threat_detection_custom_module}".
-     *   * "folders/{folder}/locations/{location}/effectiveEventThreatDetectionCustomModules/{effective_event_threat_detection_custom_module}".
-     *   * "projects/{project}/locations/{location}/effectiveEventThreatDetectionCustomModules/{effective_event_threat_detection_custom_module}".
-     * 
- * - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return This builder for chaining. - */ - public Builder clearName() { - name_ = getDefaultInstance().getName(); - bitField0_ = (bitField0_ & ~0x00000001); - onChanged(); - return this; - } - /** - * - * - *
-     * Required. The resource name of the ETD custom module.
-     *
-     * Its format is:
-     *
-     *   * "organizations/{organization}/locations/{location}/effectiveEventThreatDetectionCustomModules/{effective_event_threat_detection_custom_module}".
-     *   * "folders/{folder}/locations/{location}/effectiveEventThreatDetectionCustomModules/{effective_event_threat_detection_custom_module}".
-     *   * "projects/{project}/locations/{location}/effectiveEventThreatDetectionCustomModules/{effective_event_threat_detection_custom_module}".
-     * 
- * - * - * 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(); - } - checkByteStringIsUtf8(value); - name_ = value; - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - // @@protoc_insertion_point(builder_scope:google.cloud.securitycentermanagement.v1.GetEffectiveEventThreatDetectionCustomModuleRequest) - } - - // @@protoc_insertion_point(class_scope:google.cloud.securitycentermanagement.v1.GetEffectiveEventThreatDetectionCustomModuleRequest) - private static final com.google.cloud.securitycentermanagement.v1 - .GetEffectiveEventThreatDetectionCustomModuleRequest - DEFAULT_INSTANCE; - - static { - DEFAULT_INSTANCE = - new com.google.cloud.securitycentermanagement.v1 - .GetEffectiveEventThreatDetectionCustomModuleRequest(); - } - - public static com.google.cloud.securitycentermanagement.v1 - .GetEffectiveEventThreatDetectionCustomModuleRequest - getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser< - GetEffectiveEventThreatDetectionCustomModuleRequest> - PARSER = - new com.google.protobuf.AbstractParser< - GetEffectiveEventThreatDetectionCustomModuleRequest>() { - @java.lang.Override - public GetEffectiveEventThreatDetectionCustomModuleRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException() - .setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; - - public static com.google.protobuf.Parser - parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser - getParserForType() { - return PARSER; - } - - @java.lang.Override - public com.google.cloud.securitycentermanagement.v1 - .GetEffectiveEventThreatDetectionCustomModuleRequest - getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } -} diff --git a/java-securitycentermanagement/proto-google-cloud-securitycentermanagement-v1/src/main/java/com/google/cloud/securitycentermanagement/v1/GetEffectiveSecurityHealthAnalyticsCustomModuleRequest.java b/java-securitycentermanagement/proto-google-cloud-securitycentermanagement-v1/src/main/java/com/google/cloud/securitycentermanagement/v1/GetEffectiveSecurityHealthAnalyticsCustomModuleRequest.java deleted file mode 100644 index fca12b099919..000000000000 --- a/java-securitycentermanagement/proto-google-cloud-securitycentermanagement-v1/src/main/java/com/google/cloud/securitycentermanagement/v1/GetEffectiveSecurityHealthAnalyticsCustomModuleRequest.java +++ /dev/null @@ -1,758 +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/securitycentermanagement/v1/security_center_management.proto - -package com.google.cloud.securitycentermanagement.v1; - -/** - * - * - *
- * Message for getting a EffectiveSecurityHealthAnalyticsCustomModule
- * 
- * - * Protobuf type {@code - * google.cloud.securitycentermanagement.v1.GetEffectiveSecurityHealthAnalyticsCustomModuleRequest} - */ -public final class GetEffectiveSecurityHealthAnalyticsCustomModuleRequest - extends com.google.protobuf.GeneratedMessageV3 - implements - // @@protoc_insertion_point(message_implements:google.cloud.securitycentermanagement.v1.GetEffectiveSecurityHealthAnalyticsCustomModuleRequest) - GetEffectiveSecurityHealthAnalyticsCustomModuleRequestOrBuilder { - private static final long serialVersionUID = 0L; - // Use GetEffectiveSecurityHealthAnalyticsCustomModuleRequest.newBuilder() to construct. - private GetEffectiveSecurityHealthAnalyticsCustomModuleRequest( - com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - - private GetEffectiveSecurityHealthAnalyticsCustomModuleRequest() { - name_ = ""; - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { - return new GetEffectiveSecurityHealthAnalyticsCustomModuleRequest(); - } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.securitycentermanagement.v1.SecurityCenterManagementProto - .internal_static_google_cloud_securitycentermanagement_v1_GetEffectiveSecurityHealthAnalyticsCustomModuleRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.securitycentermanagement.v1.SecurityCenterManagementProto - .internal_static_google_cloud_securitycentermanagement_v1_GetEffectiveSecurityHealthAnalyticsCustomModuleRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.securitycentermanagement.v1 - .GetEffectiveSecurityHealthAnalyticsCustomModuleRequest.class, - com.google.cloud.securitycentermanagement.v1 - .GetEffectiveSecurityHealthAnalyticsCustomModuleRequest.Builder.class); - } - - public static final int NAME_FIELD_NUMBER = 1; - - @SuppressWarnings("serial") - private volatile java.lang.Object name_ = ""; - /** - * - * - *
-   * Required. The resource name of the SHA custom module.
-   *
-   * Its format is:
-   *
-   *   * "organizations/{organization}/locations/{location}/effectiveSecurityHealthAnalyticsCustomModules/{module_id}".
-   *   * "folders/{folder}/locations/{location}/effectiveSecurityHealthAnalyticsCustomModules/{module_id}".
-   *   * "projects/{project}/locations/{location}/effectiveSecurityHealthAnalyticsCustomModules/{module_id}".
-   * 
- * - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The name. - */ - @java.lang.Override - public java.lang.String getName() { - java.lang.Object ref = name_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - name_ = s; - return s; - } - } - /** - * - * - *
-   * Required. The resource name of the SHA custom module.
-   *
-   * Its format is:
-   *
-   *   * "organizations/{organization}/locations/{location}/effectiveSecurityHealthAnalyticsCustomModules/{module_id}".
-   *   * "folders/{folder}/locations/{location}/effectiveSecurityHealthAnalyticsCustomModules/{module_id}".
-   *   * "projects/{project}/locations/{location}/effectiveSecurityHealthAnalyticsCustomModules/{module_id}".
-   * 
- * - * - * 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() { - java.lang.Object ref = name_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - name_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - private byte memoizedIsInitialized = -1; - - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); - } - getUnknownFields().writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); - } - size += getUnknownFields().getSerializedSize(); - memoizedSize = size; - return size; - } - - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj - instanceof - com.google.cloud.securitycentermanagement.v1 - .GetEffectiveSecurityHealthAnalyticsCustomModuleRequest)) { - return super.equals(obj); - } - com.google.cloud.securitycentermanagement.v1 - .GetEffectiveSecurityHealthAnalyticsCustomModuleRequest - other = - (com.google.cloud.securitycentermanagement.v1 - .GetEffectiveSecurityHealthAnalyticsCustomModuleRequest) - obj; - - if (!getName().equals(other.getName())) return false; - if (!getUnknownFields().equals(other.getUnknownFields())) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + NAME_FIELD_NUMBER; - hash = (53 * hash) + getName().hashCode(); - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static com.google.cloud.securitycentermanagement.v1 - .GetEffectiveSecurityHealthAnalyticsCustomModuleRequest - parseFrom(java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.securitycentermanagement.v1 - .GetEffectiveSecurityHealthAnalyticsCustomModuleRequest - 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.securitycentermanagement.v1 - .GetEffectiveSecurityHealthAnalyticsCustomModuleRequest - parseFrom(com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.securitycentermanagement.v1 - .GetEffectiveSecurityHealthAnalyticsCustomModuleRequest - parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.securitycentermanagement.v1 - .GetEffectiveSecurityHealthAnalyticsCustomModuleRequest - parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.securitycentermanagement.v1 - .GetEffectiveSecurityHealthAnalyticsCustomModuleRequest - parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.securitycentermanagement.v1 - .GetEffectiveSecurityHealthAnalyticsCustomModuleRequest - parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.cloud.securitycentermanagement.v1 - .GetEffectiveSecurityHealthAnalyticsCustomModuleRequest - 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.securitycentermanagement.v1 - .GetEffectiveSecurityHealthAnalyticsCustomModuleRequest - parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); - } - - public static com.google.cloud.securitycentermanagement.v1 - .GetEffectiveSecurityHealthAnalyticsCustomModuleRequest - parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); - } - - public static com.google.cloud.securitycentermanagement.v1 - .GetEffectiveSecurityHealthAnalyticsCustomModuleRequest - parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.cloud.securitycentermanagement.v1 - .GetEffectiveSecurityHealthAnalyticsCustomModuleRequest - 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.securitycentermanagement.v1 - .GetEffectiveSecurityHealthAnalyticsCustomModuleRequest - prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - * - * - *
-   * Message for getting a EffectiveSecurityHealthAnalyticsCustomModule
-   * 
- * - * Protobuf type {@code - * google.cloud.securitycentermanagement.v1.GetEffectiveSecurityHealthAnalyticsCustomModuleRequest} - */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements - // @@protoc_insertion_point(builder_implements:google.cloud.securitycentermanagement.v1.GetEffectiveSecurityHealthAnalyticsCustomModuleRequest) - com.google.cloud.securitycentermanagement.v1 - .GetEffectiveSecurityHealthAnalyticsCustomModuleRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.securitycentermanagement.v1.SecurityCenterManagementProto - .internal_static_google_cloud_securitycentermanagement_v1_GetEffectiveSecurityHealthAnalyticsCustomModuleRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.securitycentermanagement.v1.SecurityCenterManagementProto - .internal_static_google_cloud_securitycentermanagement_v1_GetEffectiveSecurityHealthAnalyticsCustomModuleRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.securitycentermanagement.v1 - .GetEffectiveSecurityHealthAnalyticsCustomModuleRequest.class, - com.google.cloud.securitycentermanagement.v1 - .GetEffectiveSecurityHealthAnalyticsCustomModuleRequest.Builder.class); - } - - // Construct using - // com.google.cloud.securitycentermanagement.v1.GetEffectiveSecurityHealthAnalyticsCustomModuleRequest.newBuilder() - private Builder() {} - - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - } - - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - name_ = ""; - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.securitycentermanagement.v1.SecurityCenterManagementProto - .internal_static_google_cloud_securitycentermanagement_v1_GetEffectiveSecurityHealthAnalyticsCustomModuleRequest_descriptor; - } - - @java.lang.Override - public com.google.cloud.securitycentermanagement.v1 - .GetEffectiveSecurityHealthAnalyticsCustomModuleRequest - getDefaultInstanceForType() { - return com.google.cloud.securitycentermanagement.v1 - .GetEffectiveSecurityHealthAnalyticsCustomModuleRequest.getDefaultInstance(); - } - - @java.lang.Override - public com.google.cloud.securitycentermanagement.v1 - .GetEffectiveSecurityHealthAnalyticsCustomModuleRequest - build() { - com.google.cloud.securitycentermanagement.v1 - .GetEffectiveSecurityHealthAnalyticsCustomModuleRequest - result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.cloud.securitycentermanagement.v1 - .GetEffectiveSecurityHealthAnalyticsCustomModuleRequest - buildPartial() { - com.google.cloud.securitycentermanagement.v1 - .GetEffectiveSecurityHealthAnalyticsCustomModuleRequest - result = - new com.google.cloud.securitycentermanagement.v1 - .GetEffectiveSecurityHealthAnalyticsCustomModuleRequest(this); - if (bitField0_ != 0) { - buildPartial0(result); - } - onBuilt(); - return result; - } - - private void buildPartial0( - com.google.cloud.securitycentermanagement.v1 - .GetEffectiveSecurityHealthAnalyticsCustomModuleRequest - result) { - int from_bitField0_ = bitField0_; - if (((from_bitField0_ & 0x00000001) != 0)) { - result.name_ = name_; - } - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.setField(field, value); - } - - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.addRepeatedField(field, value); - } - - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other - instanceof - com.google.cloud.securitycentermanagement.v1 - .GetEffectiveSecurityHealthAnalyticsCustomModuleRequest) { - return mergeFrom( - (com.google.cloud.securitycentermanagement.v1 - .GetEffectiveSecurityHealthAnalyticsCustomModuleRequest) - other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom( - com.google.cloud.securitycentermanagement.v1 - .GetEffectiveSecurityHealthAnalyticsCustomModuleRequest - other) { - if (other - == com.google.cloud.securitycentermanagement.v1 - .GetEffectiveSecurityHealthAnalyticsCustomModuleRequest.getDefaultInstance()) - return this; - if (!other.getName().isEmpty()) { - name_ = other.name_; - bitField0_ |= 0x00000001; - onChanged(); - } - this.mergeUnknownFields(other.getUnknownFields()); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - 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: - } // switch (tag) - } // while (!done) - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.unwrapIOException(); - } finally { - onChanged(); - } // finally - return this; - } - - private int bitField0_; - - private java.lang.Object name_ = ""; - /** - * - * - *
-     * Required. The resource name of the SHA custom module.
-     *
-     * Its format is:
-     *
-     *   * "organizations/{organization}/locations/{location}/effectiveSecurityHealthAnalyticsCustomModules/{module_id}".
-     *   * "folders/{folder}/locations/{location}/effectiveSecurityHealthAnalyticsCustomModules/{module_id}".
-     *   * "projects/{project}/locations/{location}/effectiveSecurityHealthAnalyticsCustomModules/{module_id}".
-     * 
- * - * - * 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; - java.lang.String s = bs.toStringUtf8(); - name_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * - * - *
-     * Required. The resource name of the SHA custom module.
-     *
-     * Its format is:
-     *
-     *   * "organizations/{organization}/locations/{location}/effectiveSecurityHealthAnalyticsCustomModules/{module_id}".
-     *   * "folders/{folder}/locations/{location}/effectiveSecurityHealthAnalyticsCustomModules/{module_id}".
-     *   * "projects/{project}/locations/{location}/effectiveSecurityHealthAnalyticsCustomModules/{module_id}".
-     * 
- * - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The bytes for name. - */ - public com.google.protobuf.ByteString getNameBytes() { - java.lang.Object ref = name_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - name_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * - * - *
-     * Required. The resource name of the SHA custom module.
-     *
-     * Its format is:
-     *
-     *   * "organizations/{organization}/locations/{location}/effectiveSecurityHealthAnalyticsCustomModules/{module_id}".
-     *   * "folders/{folder}/locations/{location}/effectiveSecurityHealthAnalyticsCustomModules/{module_id}".
-     *   * "projects/{project}/locations/{location}/effectiveSecurityHealthAnalyticsCustomModules/{module_id}".
-     * 
- * - * - * 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(); - } - name_ = value; - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - * - * - *
-     * Required. The resource name of the SHA custom module.
-     *
-     * Its format is:
-     *
-     *   * "organizations/{organization}/locations/{location}/effectiveSecurityHealthAnalyticsCustomModules/{module_id}".
-     *   * "folders/{folder}/locations/{location}/effectiveSecurityHealthAnalyticsCustomModules/{module_id}".
-     *   * "projects/{project}/locations/{location}/effectiveSecurityHealthAnalyticsCustomModules/{module_id}".
-     * 
- * - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return This builder for chaining. - */ - public Builder clearName() { - name_ = getDefaultInstance().getName(); - bitField0_ = (bitField0_ & ~0x00000001); - onChanged(); - return this; - } - /** - * - * - *
-     * Required. The resource name of the SHA custom module.
-     *
-     * Its format is:
-     *
-     *   * "organizations/{organization}/locations/{location}/effectiveSecurityHealthAnalyticsCustomModules/{module_id}".
-     *   * "folders/{folder}/locations/{location}/effectiveSecurityHealthAnalyticsCustomModules/{module_id}".
-     *   * "projects/{project}/locations/{location}/effectiveSecurityHealthAnalyticsCustomModules/{module_id}".
-     * 
- * - * - * 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(); - } - checkByteStringIsUtf8(value); - name_ = value; - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - // @@protoc_insertion_point(builder_scope:google.cloud.securitycentermanagement.v1.GetEffectiveSecurityHealthAnalyticsCustomModuleRequest) - } - - // @@protoc_insertion_point(class_scope:google.cloud.securitycentermanagement.v1.GetEffectiveSecurityHealthAnalyticsCustomModuleRequest) - private static final com.google.cloud.securitycentermanagement.v1 - .GetEffectiveSecurityHealthAnalyticsCustomModuleRequest - DEFAULT_INSTANCE; - - static { - DEFAULT_INSTANCE = - new com.google.cloud.securitycentermanagement.v1 - .GetEffectiveSecurityHealthAnalyticsCustomModuleRequest(); - } - - public static com.google.cloud.securitycentermanagement.v1 - .GetEffectiveSecurityHealthAnalyticsCustomModuleRequest - getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser< - GetEffectiveSecurityHealthAnalyticsCustomModuleRequest> - PARSER = - new com.google.protobuf.AbstractParser< - GetEffectiveSecurityHealthAnalyticsCustomModuleRequest>() { - @java.lang.Override - public GetEffectiveSecurityHealthAnalyticsCustomModuleRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException() - .setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; - - public static com.google.protobuf.Parser - parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser - getParserForType() { - return PARSER; - } - - @java.lang.Override - public com.google.cloud.securitycentermanagement.v1 - .GetEffectiveSecurityHealthAnalyticsCustomModuleRequest - getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } -} diff --git a/java-securitycentermanagement/proto-google-cloud-securitycentermanagement-v1/src/main/java/com/google/cloud/securitycentermanagement/v1/GetSecurityHealthAnalyticsCustomModuleRequest.java b/java-securitycentermanagement/proto-google-cloud-securitycentermanagement-v1/src/main/java/com/google/cloud/securitycentermanagement/v1/GetSecurityHealthAnalyticsCustomModuleRequest.java deleted file mode 100644 index a17e500bffe7..000000000000 --- a/java-securitycentermanagement/proto-google-cloud-securitycentermanagement-v1/src/main/java/com/google/cloud/securitycentermanagement/v1/GetSecurityHealthAnalyticsCustomModuleRequest.java +++ /dev/null @@ -1,705 +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/securitycentermanagement/v1/security_center_management.proto - -package com.google.cloud.securitycentermanagement.v1; - -/** - * - * - *
- * Message for getting a SecurityHealthAnalyticsCustomModule
- * 
- * - * Protobuf type {@code - * google.cloud.securitycentermanagement.v1.GetSecurityHealthAnalyticsCustomModuleRequest} - */ -public final class GetSecurityHealthAnalyticsCustomModuleRequest - extends com.google.protobuf.GeneratedMessageV3 - implements - // @@protoc_insertion_point(message_implements:google.cloud.securitycentermanagement.v1.GetSecurityHealthAnalyticsCustomModuleRequest) - GetSecurityHealthAnalyticsCustomModuleRequestOrBuilder { - private static final long serialVersionUID = 0L; - // Use GetSecurityHealthAnalyticsCustomModuleRequest.newBuilder() to construct. - private GetSecurityHealthAnalyticsCustomModuleRequest( - com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - - private GetSecurityHealthAnalyticsCustomModuleRequest() { - name_ = ""; - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { - return new GetSecurityHealthAnalyticsCustomModuleRequest(); - } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.securitycentermanagement.v1.SecurityCenterManagementProto - .internal_static_google_cloud_securitycentermanagement_v1_GetSecurityHealthAnalyticsCustomModuleRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.securitycentermanagement.v1.SecurityCenterManagementProto - .internal_static_google_cloud_securitycentermanagement_v1_GetSecurityHealthAnalyticsCustomModuleRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.securitycentermanagement.v1 - .GetSecurityHealthAnalyticsCustomModuleRequest.class, - com.google.cloud.securitycentermanagement.v1 - .GetSecurityHealthAnalyticsCustomModuleRequest.Builder.class); - } - - public static final int NAME_FIELD_NUMBER = 1; - - @SuppressWarnings("serial") - private volatile java.lang.Object name_ = ""; - /** - * - * - *
-   * Required. Name of the resource
-   * 
- * - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The name. - */ - @java.lang.Override - public java.lang.String getName() { - java.lang.Object ref = name_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - name_ = s; - return s; - } - } - /** - * - * - *
-   * Required. Name of the resource
-   * 
- * - * - * 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() { - java.lang.Object ref = name_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - name_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - private byte memoizedIsInitialized = -1; - - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); - } - getUnknownFields().writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); - } - size += getUnknownFields().getSerializedSize(); - memoizedSize = size; - return size; - } - - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj - instanceof - com.google.cloud.securitycentermanagement.v1 - .GetSecurityHealthAnalyticsCustomModuleRequest)) { - return super.equals(obj); - } - com.google.cloud.securitycentermanagement.v1.GetSecurityHealthAnalyticsCustomModuleRequest - other = - (com.google.cloud.securitycentermanagement.v1 - .GetSecurityHealthAnalyticsCustomModuleRequest) - obj; - - if (!getName().equals(other.getName())) return false; - if (!getUnknownFields().equals(other.getUnknownFields())) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + NAME_FIELD_NUMBER; - hash = (53 * hash) + getName().hashCode(); - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static com.google.cloud.securitycentermanagement.v1 - .GetSecurityHealthAnalyticsCustomModuleRequest - parseFrom(java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.securitycentermanagement.v1 - .GetSecurityHealthAnalyticsCustomModuleRequest - 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.securitycentermanagement.v1 - .GetSecurityHealthAnalyticsCustomModuleRequest - parseFrom(com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.securitycentermanagement.v1 - .GetSecurityHealthAnalyticsCustomModuleRequest - parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.securitycentermanagement.v1 - .GetSecurityHealthAnalyticsCustomModuleRequest - parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.securitycentermanagement.v1 - .GetSecurityHealthAnalyticsCustomModuleRequest - parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.securitycentermanagement.v1 - .GetSecurityHealthAnalyticsCustomModuleRequest - parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.cloud.securitycentermanagement.v1 - .GetSecurityHealthAnalyticsCustomModuleRequest - 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.securitycentermanagement.v1 - .GetSecurityHealthAnalyticsCustomModuleRequest - parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); - } - - public static com.google.cloud.securitycentermanagement.v1 - .GetSecurityHealthAnalyticsCustomModuleRequest - parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); - } - - public static com.google.cloud.securitycentermanagement.v1 - .GetSecurityHealthAnalyticsCustomModuleRequest - parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.cloud.securitycentermanagement.v1 - .GetSecurityHealthAnalyticsCustomModuleRequest - 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.securitycentermanagement.v1.GetSecurityHealthAnalyticsCustomModuleRequest - prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - * - * - *
-   * Message for getting a SecurityHealthAnalyticsCustomModule
-   * 
- * - * Protobuf type {@code - * google.cloud.securitycentermanagement.v1.GetSecurityHealthAnalyticsCustomModuleRequest} - */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements - // @@protoc_insertion_point(builder_implements:google.cloud.securitycentermanagement.v1.GetSecurityHealthAnalyticsCustomModuleRequest) - com.google.cloud.securitycentermanagement.v1 - .GetSecurityHealthAnalyticsCustomModuleRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.securitycentermanagement.v1.SecurityCenterManagementProto - .internal_static_google_cloud_securitycentermanagement_v1_GetSecurityHealthAnalyticsCustomModuleRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.securitycentermanagement.v1.SecurityCenterManagementProto - .internal_static_google_cloud_securitycentermanagement_v1_GetSecurityHealthAnalyticsCustomModuleRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.securitycentermanagement.v1 - .GetSecurityHealthAnalyticsCustomModuleRequest.class, - com.google.cloud.securitycentermanagement.v1 - .GetSecurityHealthAnalyticsCustomModuleRequest.Builder.class); - } - - // Construct using - // com.google.cloud.securitycentermanagement.v1.GetSecurityHealthAnalyticsCustomModuleRequest.newBuilder() - private Builder() {} - - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - } - - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - name_ = ""; - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.securitycentermanagement.v1.SecurityCenterManagementProto - .internal_static_google_cloud_securitycentermanagement_v1_GetSecurityHealthAnalyticsCustomModuleRequest_descriptor; - } - - @java.lang.Override - public com.google.cloud.securitycentermanagement.v1 - .GetSecurityHealthAnalyticsCustomModuleRequest - getDefaultInstanceForType() { - return com.google.cloud.securitycentermanagement.v1 - .GetSecurityHealthAnalyticsCustomModuleRequest.getDefaultInstance(); - } - - @java.lang.Override - public com.google.cloud.securitycentermanagement.v1 - .GetSecurityHealthAnalyticsCustomModuleRequest - build() { - com.google.cloud.securitycentermanagement.v1.GetSecurityHealthAnalyticsCustomModuleRequest - result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.cloud.securitycentermanagement.v1 - .GetSecurityHealthAnalyticsCustomModuleRequest - buildPartial() { - com.google.cloud.securitycentermanagement.v1.GetSecurityHealthAnalyticsCustomModuleRequest - result = - new com.google.cloud.securitycentermanagement.v1 - .GetSecurityHealthAnalyticsCustomModuleRequest(this); - if (bitField0_ != 0) { - buildPartial0(result); - } - onBuilt(); - return result; - } - - private void buildPartial0( - com.google.cloud.securitycentermanagement.v1.GetSecurityHealthAnalyticsCustomModuleRequest - result) { - int from_bitField0_ = bitField0_; - if (((from_bitField0_ & 0x00000001) != 0)) { - result.name_ = name_; - } - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.setField(field, value); - } - - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.addRepeatedField(field, value); - } - - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other - instanceof - com.google.cloud.securitycentermanagement.v1 - .GetSecurityHealthAnalyticsCustomModuleRequest) { - return mergeFrom( - (com.google.cloud.securitycentermanagement.v1 - .GetSecurityHealthAnalyticsCustomModuleRequest) - other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom( - com.google.cloud.securitycentermanagement.v1.GetSecurityHealthAnalyticsCustomModuleRequest - other) { - if (other - == com.google.cloud.securitycentermanagement.v1 - .GetSecurityHealthAnalyticsCustomModuleRequest.getDefaultInstance()) return this; - if (!other.getName().isEmpty()) { - name_ = other.name_; - bitField0_ |= 0x00000001; - onChanged(); - } - this.mergeUnknownFields(other.getUnknownFields()); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - 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: - } // switch (tag) - } // while (!done) - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.unwrapIOException(); - } finally { - onChanged(); - } // finally - return this; - } - - private int bitField0_; - - private java.lang.Object name_ = ""; - /** - * - * - *
-     * Required. Name of the resource
-     * 
- * - * - * 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; - java.lang.String s = bs.toStringUtf8(); - name_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * - * - *
-     * Required. Name of the resource
-     * 
- * - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The bytes for name. - */ - public com.google.protobuf.ByteString getNameBytes() { - java.lang.Object ref = name_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - name_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * - * - *
-     * Required. Name of the resource
-     * 
- * - * - * 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(); - } - name_ = value; - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - * - * - *
-     * Required. Name of the resource
-     * 
- * - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return This builder for chaining. - */ - public Builder clearName() { - name_ = getDefaultInstance().getName(); - bitField0_ = (bitField0_ & ~0x00000001); - onChanged(); - return this; - } - /** - * - * - *
-     * Required. Name of the resource
-     * 
- * - * - * 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(); - } - checkByteStringIsUtf8(value); - name_ = value; - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - // @@protoc_insertion_point(builder_scope:google.cloud.securitycentermanagement.v1.GetSecurityHealthAnalyticsCustomModuleRequest) - } - - // @@protoc_insertion_point(class_scope:google.cloud.securitycentermanagement.v1.GetSecurityHealthAnalyticsCustomModuleRequest) - private static final com.google.cloud.securitycentermanagement.v1 - .GetSecurityHealthAnalyticsCustomModuleRequest - DEFAULT_INSTANCE; - - static { - DEFAULT_INSTANCE = - new com.google.cloud.securitycentermanagement.v1 - .GetSecurityHealthAnalyticsCustomModuleRequest(); - } - - public static com.google.cloud.securitycentermanagement.v1 - .GetSecurityHealthAnalyticsCustomModuleRequest - getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public GetSecurityHealthAnalyticsCustomModuleRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException() - .setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser - getParserForType() { - return PARSER; - } - - @java.lang.Override - public com.google.cloud.securitycentermanagement.v1.GetSecurityHealthAnalyticsCustomModuleRequest - getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } -} diff --git a/java-securitycentermanagement/proto-google-cloud-securitycentermanagement-v1/src/main/java/com/google/cloud/securitycentermanagement/v1/GetSecurityHealthAnalyticsCustomModuleRequestOrBuilder.java b/java-securitycentermanagement/proto-google-cloud-securitycentermanagement-v1/src/main/java/com/google/cloud/securitycentermanagement/v1/GetSecurityHealthAnalyticsCustomModuleRequestOrBuilder.java deleted file mode 100644 index d9b648bf90ab..000000000000 --- a/java-securitycentermanagement/proto-google-cloud-securitycentermanagement-v1/src/main/java/com/google/cloud/securitycentermanagement/v1/GetSecurityHealthAnalyticsCustomModuleRequestOrBuilder.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/securitycentermanagement/v1/security_center_management.proto - -package com.google.cloud.securitycentermanagement.v1; - -public interface GetSecurityHealthAnalyticsCustomModuleRequestOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.cloud.securitycentermanagement.v1.GetSecurityHealthAnalyticsCustomModuleRequest) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
-   * Required. Name of the resource
-   * 
- * - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The name. - */ - java.lang.String getName(); - /** - * - * - *
-   * Required. Name of the 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-securitycentermanagement/proto-google-cloud-securitycentermanagement-v1/src/main/java/com/google/cloud/securitycentermanagement/v1/ListDescendantEventThreatDetectionCustomModulesResponse.java b/java-securitycentermanagement/proto-google-cloud-securitycentermanagement-v1/src/main/java/com/google/cloud/securitycentermanagement/v1/ListDescendantEventThreatDetectionCustomModulesResponse.java deleted file mode 100644 index 5fbc87420f9a..000000000000 --- a/java-securitycentermanagement/proto-google-cloud-securitycentermanagement-v1/src/main/java/com/google/cloud/securitycentermanagement/v1/ListDescendantEventThreatDetectionCustomModulesResponse.java +++ /dev/null @@ -1,1302 +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/securitycentermanagement/v1/security_center_management.proto - -package com.google.cloud.securitycentermanagement.v1; - -/** - * - * - *
- * Response message for listing descendant Event Threat Detection custom
- * modules.
- * 
- * - * Protobuf type {@code - * google.cloud.securitycentermanagement.v1.ListDescendantEventThreatDetectionCustomModulesResponse} - */ -public final class ListDescendantEventThreatDetectionCustomModulesResponse - extends com.google.protobuf.GeneratedMessageV3 - implements - // @@protoc_insertion_point(message_implements:google.cloud.securitycentermanagement.v1.ListDescendantEventThreatDetectionCustomModulesResponse) - ListDescendantEventThreatDetectionCustomModulesResponseOrBuilder { - private static final long serialVersionUID = 0L; - // Use ListDescendantEventThreatDetectionCustomModulesResponse.newBuilder() to construct. - private ListDescendantEventThreatDetectionCustomModulesResponse( - com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - - private ListDescendantEventThreatDetectionCustomModulesResponse() { - eventThreatDetectionCustomModules_ = java.util.Collections.emptyList(); - nextPageToken_ = ""; - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { - return new ListDescendantEventThreatDetectionCustomModulesResponse(); - } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.securitycentermanagement.v1.SecurityCenterManagementProto - .internal_static_google_cloud_securitycentermanagement_v1_ListDescendantEventThreatDetectionCustomModulesResponse_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.securitycentermanagement.v1.SecurityCenterManagementProto - .internal_static_google_cloud_securitycentermanagement_v1_ListDescendantEventThreatDetectionCustomModulesResponse_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.securitycentermanagement.v1 - .ListDescendantEventThreatDetectionCustomModulesResponse.class, - com.google.cloud.securitycentermanagement.v1 - .ListDescendantEventThreatDetectionCustomModulesResponse.Builder.class); - } - - public static final int EVENT_THREAT_DETECTION_CUSTOM_MODULES_FIELD_NUMBER = 1; - - @SuppressWarnings("serial") - private java.util.List< - com.google.cloud.securitycentermanagement.v1.EventThreatDetectionCustomModule> - eventThreatDetectionCustomModules_; - /** - * - * - *
-   * The list of EventThreatDetectionCustomModules
-   * 
- * - * - * repeated .google.cloud.securitycentermanagement.v1.EventThreatDetectionCustomModule event_threat_detection_custom_modules = 1; - * - */ - @java.lang.Override - public java.util.List< - com.google.cloud.securitycentermanagement.v1.EventThreatDetectionCustomModule> - getEventThreatDetectionCustomModulesList() { - return eventThreatDetectionCustomModules_; - } - /** - * - * - *
-   * The list of EventThreatDetectionCustomModules
-   * 
- * - * - * repeated .google.cloud.securitycentermanagement.v1.EventThreatDetectionCustomModule event_threat_detection_custom_modules = 1; - * - */ - @java.lang.Override - public java.util.List< - ? extends - com.google.cloud.securitycentermanagement.v1 - .EventThreatDetectionCustomModuleOrBuilder> - getEventThreatDetectionCustomModulesOrBuilderList() { - return eventThreatDetectionCustomModules_; - } - /** - * - * - *
-   * The list of EventThreatDetectionCustomModules
-   * 
- * - * - * repeated .google.cloud.securitycentermanagement.v1.EventThreatDetectionCustomModule event_threat_detection_custom_modules = 1; - * - */ - @java.lang.Override - public int getEventThreatDetectionCustomModulesCount() { - return eventThreatDetectionCustomModules_.size(); - } - /** - * - * - *
-   * The list of EventThreatDetectionCustomModules
-   * 
- * - * - * repeated .google.cloud.securitycentermanagement.v1.EventThreatDetectionCustomModule event_threat_detection_custom_modules = 1; - * - */ - @java.lang.Override - public com.google.cloud.securitycentermanagement.v1.EventThreatDetectionCustomModule - getEventThreatDetectionCustomModules(int index) { - return eventThreatDetectionCustomModules_.get(index); - } - /** - * - * - *
-   * The list of EventThreatDetectionCustomModules
-   * 
- * - * - * repeated .google.cloud.securitycentermanagement.v1.EventThreatDetectionCustomModule event_threat_detection_custom_modules = 1; - * - */ - @java.lang.Override - public com.google.cloud.securitycentermanagement.v1.EventThreatDetectionCustomModuleOrBuilder - getEventThreatDetectionCustomModulesOrBuilder(int index) { - return eventThreatDetectionCustomModules_.get(index); - } - - public static final int NEXT_PAGE_TOKEN_FIELD_NUMBER = 2; - - @SuppressWarnings("serial") - private volatile java.lang.Object nextPageToken_ = ""; - /** - * - * - *
-   * A token identifying a page of results the server should return.
-   * 
- * - * string next_page_token = 2; - * - * @return The nextPageToken. - */ - @java.lang.Override - public java.lang.String getNextPageToken() { - java.lang.Object ref = nextPageToken_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - nextPageToken_ = s; - return s; - } - } - /** - * - * - *
-   * A token identifying a page of results the server should return.
-   * 
- * - * string next_page_token = 2; - * - * @return The bytes for nextPageToken. - */ - @java.lang.Override - 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); - nextPageToken_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - private byte memoizedIsInitialized = -1; - - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - for (int i = 0; i < eventThreatDetectionCustomModules_.size(); i++) { - output.writeMessage(1, eventThreatDetectionCustomModules_.get(i)); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(nextPageToken_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 2, nextPageToken_); - } - getUnknownFields().writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - for (int i = 0; i < eventThreatDetectionCustomModules_.size(); i++) { - size += - com.google.protobuf.CodedOutputStream.computeMessageSize( - 1, eventThreatDetectionCustomModules_.get(i)); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(nextPageToken_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, nextPageToken_); - } - size += getUnknownFields().getSerializedSize(); - memoizedSize = size; - return size; - } - - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj - instanceof - com.google.cloud.securitycentermanagement.v1 - .ListDescendantEventThreatDetectionCustomModulesResponse)) { - return super.equals(obj); - } - com.google.cloud.securitycentermanagement.v1 - .ListDescendantEventThreatDetectionCustomModulesResponse - other = - (com.google.cloud.securitycentermanagement.v1 - .ListDescendantEventThreatDetectionCustomModulesResponse) - obj; - - if (!getEventThreatDetectionCustomModulesList() - .equals(other.getEventThreatDetectionCustomModulesList())) return false; - if (!getNextPageToken().equals(other.getNextPageToken())) return false; - if (!getUnknownFields().equals(other.getUnknownFields())) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - if (getEventThreatDetectionCustomModulesCount() > 0) { - hash = (37 * hash) + EVENT_THREAT_DETECTION_CUSTOM_MODULES_FIELD_NUMBER; - hash = (53 * hash) + getEventThreatDetectionCustomModulesList().hashCode(); - } - hash = (37 * hash) + NEXT_PAGE_TOKEN_FIELD_NUMBER; - hash = (53 * hash) + getNextPageToken().hashCode(); - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static com.google.cloud.securitycentermanagement.v1 - .ListDescendantEventThreatDetectionCustomModulesResponse - parseFrom(java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.securitycentermanagement.v1 - .ListDescendantEventThreatDetectionCustomModulesResponse - 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.securitycentermanagement.v1 - .ListDescendantEventThreatDetectionCustomModulesResponse - parseFrom(com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.securitycentermanagement.v1 - .ListDescendantEventThreatDetectionCustomModulesResponse - parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.securitycentermanagement.v1 - .ListDescendantEventThreatDetectionCustomModulesResponse - parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.securitycentermanagement.v1 - .ListDescendantEventThreatDetectionCustomModulesResponse - parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.securitycentermanagement.v1 - .ListDescendantEventThreatDetectionCustomModulesResponse - parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.cloud.securitycentermanagement.v1 - .ListDescendantEventThreatDetectionCustomModulesResponse - 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.securitycentermanagement.v1 - .ListDescendantEventThreatDetectionCustomModulesResponse - parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); - } - - public static com.google.cloud.securitycentermanagement.v1 - .ListDescendantEventThreatDetectionCustomModulesResponse - parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); - } - - public static com.google.cloud.securitycentermanagement.v1 - .ListDescendantEventThreatDetectionCustomModulesResponse - parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.cloud.securitycentermanagement.v1 - .ListDescendantEventThreatDetectionCustomModulesResponse - 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.securitycentermanagement.v1 - .ListDescendantEventThreatDetectionCustomModulesResponse - prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - * - * - *
-   * Response message for listing descendant Event Threat Detection custom
-   * modules.
-   * 
- * - * Protobuf type {@code - * google.cloud.securitycentermanagement.v1.ListDescendantEventThreatDetectionCustomModulesResponse} - */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements - // @@protoc_insertion_point(builder_implements:google.cloud.securitycentermanagement.v1.ListDescendantEventThreatDetectionCustomModulesResponse) - com.google.cloud.securitycentermanagement.v1 - .ListDescendantEventThreatDetectionCustomModulesResponseOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.securitycentermanagement.v1.SecurityCenterManagementProto - .internal_static_google_cloud_securitycentermanagement_v1_ListDescendantEventThreatDetectionCustomModulesResponse_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.securitycentermanagement.v1.SecurityCenterManagementProto - .internal_static_google_cloud_securitycentermanagement_v1_ListDescendantEventThreatDetectionCustomModulesResponse_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.securitycentermanagement.v1 - .ListDescendantEventThreatDetectionCustomModulesResponse.class, - com.google.cloud.securitycentermanagement.v1 - .ListDescendantEventThreatDetectionCustomModulesResponse.Builder.class); - } - - // Construct using - // com.google.cloud.securitycentermanagement.v1.ListDescendantEventThreatDetectionCustomModulesResponse.newBuilder() - private Builder() {} - - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - } - - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - if (eventThreatDetectionCustomModulesBuilder_ == null) { - eventThreatDetectionCustomModules_ = java.util.Collections.emptyList(); - } else { - eventThreatDetectionCustomModules_ = null; - eventThreatDetectionCustomModulesBuilder_.clear(); - } - bitField0_ = (bitField0_ & ~0x00000001); - nextPageToken_ = ""; - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.securitycentermanagement.v1.SecurityCenterManagementProto - .internal_static_google_cloud_securitycentermanagement_v1_ListDescendantEventThreatDetectionCustomModulesResponse_descriptor; - } - - @java.lang.Override - public com.google.cloud.securitycentermanagement.v1 - .ListDescendantEventThreatDetectionCustomModulesResponse - getDefaultInstanceForType() { - return com.google.cloud.securitycentermanagement.v1 - .ListDescendantEventThreatDetectionCustomModulesResponse.getDefaultInstance(); - } - - @java.lang.Override - public com.google.cloud.securitycentermanagement.v1 - .ListDescendantEventThreatDetectionCustomModulesResponse - build() { - com.google.cloud.securitycentermanagement.v1 - .ListDescendantEventThreatDetectionCustomModulesResponse - result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.cloud.securitycentermanagement.v1 - .ListDescendantEventThreatDetectionCustomModulesResponse - buildPartial() { - com.google.cloud.securitycentermanagement.v1 - .ListDescendantEventThreatDetectionCustomModulesResponse - result = - new com.google.cloud.securitycentermanagement.v1 - .ListDescendantEventThreatDetectionCustomModulesResponse(this); - buildPartialRepeatedFields(result); - if (bitField0_ != 0) { - buildPartial0(result); - } - onBuilt(); - return result; - } - - private void buildPartialRepeatedFields( - com.google.cloud.securitycentermanagement.v1 - .ListDescendantEventThreatDetectionCustomModulesResponse - result) { - if (eventThreatDetectionCustomModulesBuilder_ == null) { - if (((bitField0_ & 0x00000001) != 0)) { - eventThreatDetectionCustomModules_ = - java.util.Collections.unmodifiableList(eventThreatDetectionCustomModules_); - bitField0_ = (bitField0_ & ~0x00000001); - } - result.eventThreatDetectionCustomModules_ = eventThreatDetectionCustomModules_; - } else { - result.eventThreatDetectionCustomModules_ = - eventThreatDetectionCustomModulesBuilder_.build(); - } - } - - private void buildPartial0( - com.google.cloud.securitycentermanagement.v1 - .ListDescendantEventThreatDetectionCustomModulesResponse - result) { - int from_bitField0_ = bitField0_; - if (((from_bitField0_ & 0x00000002) != 0)) { - result.nextPageToken_ = nextPageToken_; - } - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.setField(field, value); - } - - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.addRepeatedField(field, value); - } - - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other - instanceof - com.google.cloud.securitycentermanagement.v1 - .ListDescendantEventThreatDetectionCustomModulesResponse) { - return mergeFrom( - (com.google.cloud.securitycentermanagement.v1 - .ListDescendantEventThreatDetectionCustomModulesResponse) - other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom( - com.google.cloud.securitycentermanagement.v1 - .ListDescendantEventThreatDetectionCustomModulesResponse - other) { - if (other - == com.google.cloud.securitycentermanagement.v1 - .ListDescendantEventThreatDetectionCustomModulesResponse.getDefaultInstance()) - return this; - if (eventThreatDetectionCustomModulesBuilder_ == null) { - if (!other.eventThreatDetectionCustomModules_.isEmpty()) { - if (eventThreatDetectionCustomModules_.isEmpty()) { - eventThreatDetectionCustomModules_ = other.eventThreatDetectionCustomModules_; - bitField0_ = (bitField0_ & ~0x00000001); - } else { - ensureEventThreatDetectionCustomModulesIsMutable(); - eventThreatDetectionCustomModules_.addAll(other.eventThreatDetectionCustomModules_); - } - onChanged(); - } - } else { - if (!other.eventThreatDetectionCustomModules_.isEmpty()) { - if (eventThreatDetectionCustomModulesBuilder_.isEmpty()) { - eventThreatDetectionCustomModulesBuilder_.dispose(); - eventThreatDetectionCustomModulesBuilder_ = null; - eventThreatDetectionCustomModules_ = other.eventThreatDetectionCustomModules_; - bitField0_ = (bitField0_ & ~0x00000001); - eventThreatDetectionCustomModulesBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders - ? getEventThreatDetectionCustomModulesFieldBuilder() - : null; - } else { - eventThreatDetectionCustomModulesBuilder_.addAllMessages( - other.eventThreatDetectionCustomModules_); - } - } - } - if (!other.getNextPageToken().isEmpty()) { - nextPageToken_ = other.nextPageToken_; - bitField0_ |= 0x00000002; - onChanged(); - } - this.mergeUnknownFields(other.getUnknownFields()); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: - { - com.google.cloud.securitycentermanagement.v1.EventThreatDetectionCustomModule m = - input.readMessage( - com.google.cloud.securitycentermanagement.v1 - .EventThreatDetectionCustomModule.parser(), - extensionRegistry); - if (eventThreatDetectionCustomModulesBuilder_ == null) { - ensureEventThreatDetectionCustomModulesIsMutable(); - eventThreatDetectionCustomModules_.add(m); - } else { - eventThreatDetectionCustomModulesBuilder_.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) { - throw e.unwrapIOException(); - } finally { - onChanged(); - } // finally - return this; - } - - private int bitField0_; - - private java.util.List< - com.google.cloud.securitycentermanagement.v1.EventThreatDetectionCustomModule> - eventThreatDetectionCustomModules_ = java.util.Collections.emptyList(); - - private void ensureEventThreatDetectionCustomModulesIsMutable() { - if (!((bitField0_ & 0x00000001) != 0)) { - eventThreatDetectionCustomModules_ = - new java.util.ArrayList< - com.google.cloud.securitycentermanagement.v1.EventThreatDetectionCustomModule>( - eventThreatDetectionCustomModules_); - bitField0_ |= 0x00000001; - } - } - - private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.securitycentermanagement.v1.EventThreatDetectionCustomModule, - com.google.cloud.securitycentermanagement.v1.EventThreatDetectionCustomModule.Builder, - com.google.cloud.securitycentermanagement.v1.EventThreatDetectionCustomModuleOrBuilder> - eventThreatDetectionCustomModulesBuilder_; - - /** - * - * - *
-     * The list of EventThreatDetectionCustomModules
-     * 
- * - * - * repeated .google.cloud.securitycentermanagement.v1.EventThreatDetectionCustomModule event_threat_detection_custom_modules = 1; - * - */ - public java.util.List< - com.google.cloud.securitycentermanagement.v1.EventThreatDetectionCustomModule> - getEventThreatDetectionCustomModulesList() { - if (eventThreatDetectionCustomModulesBuilder_ == null) { - return java.util.Collections.unmodifiableList(eventThreatDetectionCustomModules_); - } else { - return eventThreatDetectionCustomModulesBuilder_.getMessageList(); - } - } - /** - * - * - *
-     * The list of EventThreatDetectionCustomModules
-     * 
- * - * - * repeated .google.cloud.securitycentermanagement.v1.EventThreatDetectionCustomModule event_threat_detection_custom_modules = 1; - * - */ - public int getEventThreatDetectionCustomModulesCount() { - if (eventThreatDetectionCustomModulesBuilder_ == null) { - return eventThreatDetectionCustomModules_.size(); - } else { - return eventThreatDetectionCustomModulesBuilder_.getCount(); - } - } - /** - * - * - *
-     * The list of EventThreatDetectionCustomModules
-     * 
- * - * - * repeated .google.cloud.securitycentermanagement.v1.EventThreatDetectionCustomModule event_threat_detection_custom_modules = 1; - * - */ - public com.google.cloud.securitycentermanagement.v1.EventThreatDetectionCustomModule - getEventThreatDetectionCustomModules(int index) { - if (eventThreatDetectionCustomModulesBuilder_ == null) { - return eventThreatDetectionCustomModules_.get(index); - } else { - return eventThreatDetectionCustomModulesBuilder_.getMessage(index); - } - } - /** - * - * - *
-     * The list of EventThreatDetectionCustomModules
-     * 
- * - * - * repeated .google.cloud.securitycentermanagement.v1.EventThreatDetectionCustomModule event_threat_detection_custom_modules = 1; - * - */ - public Builder setEventThreatDetectionCustomModules( - int index, - com.google.cloud.securitycentermanagement.v1.EventThreatDetectionCustomModule value) { - if (eventThreatDetectionCustomModulesBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureEventThreatDetectionCustomModulesIsMutable(); - eventThreatDetectionCustomModules_.set(index, value); - onChanged(); - } else { - eventThreatDetectionCustomModulesBuilder_.setMessage(index, value); - } - return this; - } - /** - * - * - *
-     * The list of EventThreatDetectionCustomModules
-     * 
- * - * - * repeated .google.cloud.securitycentermanagement.v1.EventThreatDetectionCustomModule event_threat_detection_custom_modules = 1; - * - */ - public Builder setEventThreatDetectionCustomModules( - int index, - com.google.cloud.securitycentermanagement.v1.EventThreatDetectionCustomModule.Builder - builderForValue) { - if (eventThreatDetectionCustomModulesBuilder_ == null) { - ensureEventThreatDetectionCustomModulesIsMutable(); - eventThreatDetectionCustomModules_.set(index, builderForValue.build()); - onChanged(); - } else { - eventThreatDetectionCustomModulesBuilder_.setMessage(index, builderForValue.build()); - } - return this; - } - /** - * - * - *
-     * The list of EventThreatDetectionCustomModules
-     * 
- * - * - * repeated .google.cloud.securitycentermanagement.v1.EventThreatDetectionCustomModule event_threat_detection_custom_modules = 1; - * - */ - public Builder addEventThreatDetectionCustomModules( - com.google.cloud.securitycentermanagement.v1.EventThreatDetectionCustomModule value) { - if (eventThreatDetectionCustomModulesBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureEventThreatDetectionCustomModulesIsMutable(); - eventThreatDetectionCustomModules_.add(value); - onChanged(); - } else { - eventThreatDetectionCustomModulesBuilder_.addMessage(value); - } - return this; - } - /** - * - * - *
-     * The list of EventThreatDetectionCustomModules
-     * 
- * - * - * repeated .google.cloud.securitycentermanagement.v1.EventThreatDetectionCustomModule event_threat_detection_custom_modules = 1; - * - */ - public Builder addEventThreatDetectionCustomModules( - int index, - com.google.cloud.securitycentermanagement.v1.EventThreatDetectionCustomModule value) { - if (eventThreatDetectionCustomModulesBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureEventThreatDetectionCustomModulesIsMutable(); - eventThreatDetectionCustomModules_.add(index, value); - onChanged(); - } else { - eventThreatDetectionCustomModulesBuilder_.addMessage(index, value); - } - return this; - } - /** - * - * - *
-     * The list of EventThreatDetectionCustomModules
-     * 
- * - * - * repeated .google.cloud.securitycentermanagement.v1.EventThreatDetectionCustomModule event_threat_detection_custom_modules = 1; - * - */ - public Builder addEventThreatDetectionCustomModules( - com.google.cloud.securitycentermanagement.v1.EventThreatDetectionCustomModule.Builder - builderForValue) { - if (eventThreatDetectionCustomModulesBuilder_ == null) { - ensureEventThreatDetectionCustomModulesIsMutable(); - eventThreatDetectionCustomModules_.add(builderForValue.build()); - onChanged(); - } else { - eventThreatDetectionCustomModulesBuilder_.addMessage(builderForValue.build()); - } - return this; - } - /** - * - * - *
-     * The list of EventThreatDetectionCustomModules
-     * 
- * - * - * repeated .google.cloud.securitycentermanagement.v1.EventThreatDetectionCustomModule event_threat_detection_custom_modules = 1; - * - */ - public Builder addEventThreatDetectionCustomModules( - int index, - com.google.cloud.securitycentermanagement.v1.EventThreatDetectionCustomModule.Builder - builderForValue) { - if (eventThreatDetectionCustomModulesBuilder_ == null) { - ensureEventThreatDetectionCustomModulesIsMutable(); - eventThreatDetectionCustomModules_.add(index, builderForValue.build()); - onChanged(); - } else { - eventThreatDetectionCustomModulesBuilder_.addMessage(index, builderForValue.build()); - } - return this; - } - /** - * - * - *
-     * The list of EventThreatDetectionCustomModules
-     * 
- * - * - * repeated .google.cloud.securitycentermanagement.v1.EventThreatDetectionCustomModule event_threat_detection_custom_modules = 1; - * - */ - public Builder addAllEventThreatDetectionCustomModules( - java.lang.Iterable< - ? extends - com.google.cloud.securitycentermanagement.v1.EventThreatDetectionCustomModule> - values) { - if (eventThreatDetectionCustomModulesBuilder_ == null) { - ensureEventThreatDetectionCustomModulesIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, eventThreatDetectionCustomModules_); - onChanged(); - } else { - eventThreatDetectionCustomModulesBuilder_.addAllMessages(values); - } - return this; - } - /** - * - * - *
-     * The list of EventThreatDetectionCustomModules
-     * 
- * - * - * repeated .google.cloud.securitycentermanagement.v1.EventThreatDetectionCustomModule event_threat_detection_custom_modules = 1; - * - */ - public Builder clearEventThreatDetectionCustomModules() { - if (eventThreatDetectionCustomModulesBuilder_ == null) { - eventThreatDetectionCustomModules_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000001); - onChanged(); - } else { - eventThreatDetectionCustomModulesBuilder_.clear(); - } - return this; - } - /** - * - * - *
-     * The list of EventThreatDetectionCustomModules
-     * 
- * - * - * repeated .google.cloud.securitycentermanagement.v1.EventThreatDetectionCustomModule event_threat_detection_custom_modules = 1; - * - */ - public Builder removeEventThreatDetectionCustomModules(int index) { - if (eventThreatDetectionCustomModulesBuilder_ == null) { - ensureEventThreatDetectionCustomModulesIsMutable(); - eventThreatDetectionCustomModules_.remove(index); - onChanged(); - } else { - eventThreatDetectionCustomModulesBuilder_.remove(index); - } - return this; - } - /** - * - * - *
-     * The list of EventThreatDetectionCustomModules
-     * 
- * - * - * repeated .google.cloud.securitycentermanagement.v1.EventThreatDetectionCustomModule event_threat_detection_custom_modules = 1; - * - */ - public com.google.cloud.securitycentermanagement.v1.EventThreatDetectionCustomModule.Builder - getEventThreatDetectionCustomModulesBuilder(int index) { - return getEventThreatDetectionCustomModulesFieldBuilder().getBuilder(index); - } - /** - * - * - *
-     * The list of EventThreatDetectionCustomModules
-     * 
- * - * - * repeated .google.cloud.securitycentermanagement.v1.EventThreatDetectionCustomModule event_threat_detection_custom_modules = 1; - * - */ - public com.google.cloud.securitycentermanagement.v1.EventThreatDetectionCustomModuleOrBuilder - getEventThreatDetectionCustomModulesOrBuilder(int index) { - if (eventThreatDetectionCustomModulesBuilder_ == null) { - return eventThreatDetectionCustomModules_.get(index); - } else { - return eventThreatDetectionCustomModulesBuilder_.getMessageOrBuilder(index); - } - } - /** - * - * - *
-     * The list of EventThreatDetectionCustomModules
-     * 
- * - * - * repeated .google.cloud.securitycentermanagement.v1.EventThreatDetectionCustomModule event_threat_detection_custom_modules = 1; - * - */ - public java.util.List< - ? extends - com.google.cloud.securitycentermanagement.v1 - .EventThreatDetectionCustomModuleOrBuilder> - getEventThreatDetectionCustomModulesOrBuilderList() { - if (eventThreatDetectionCustomModulesBuilder_ != null) { - return eventThreatDetectionCustomModulesBuilder_.getMessageOrBuilderList(); - } else { - return java.util.Collections.unmodifiableList(eventThreatDetectionCustomModules_); - } - } - /** - * - * - *
-     * The list of EventThreatDetectionCustomModules
-     * 
- * - * - * repeated .google.cloud.securitycentermanagement.v1.EventThreatDetectionCustomModule event_threat_detection_custom_modules = 1; - * - */ - public com.google.cloud.securitycentermanagement.v1.EventThreatDetectionCustomModule.Builder - addEventThreatDetectionCustomModulesBuilder() { - return getEventThreatDetectionCustomModulesFieldBuilder() - .addBuilder( - com.google.cloud.securitycentermanagement.v1.EventThreatDetectionCustomModule - .getDefaultInstance()); - } - /** - * - * - *
-     * The list of EventThreatDetectionCustomModules
-     * 
- * - * - * repeated .google.cloud.securitycentermanagement.v1.EventThreatDetectionCustomModule event_threat_detection_custom_modules = 1; - * - */ - public com.google.cloud.securitycentermanagement.v1.EventThreatDetectionCustomModule.Builder - addEventThreatDetectionCustomModulesBuilder(int index) { - return getEventThreatDetectionCustomModulesFieldBuilder() - .addBuilder( - index, - com.google.cloud.securitycentermanagement.v1.EventThreatDetectionCustomModule - .getDefaultInstance()); - } - /** - * - * - *
-     * The list of EventThreatDetectionCustomModules
-     * 
- * - * - * repeated .google.cloud.securitycentermanagement.v1.EventThreatDetectionCustomModule event_threat_detection_custom_modules = 1; - * - */ - public java.util.List< - com.google.cloud.securitycentermanagement.v1.EventThreatDetectionCustomModule.Builder> - getEventThreatDetectionCustomModulesBuilderList() { - return getEventThreatDetectionCustomModulesFieldBuilder().getBuilderList(); - } - - private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.securitycentermanagement.v1.EventThreatDetectionCustomModule, - com.google.cloud.securitycentermanagement.v1.EventThreatDetectionCustomModule.Builder, - com.google.cloud.securitycentermanagement.v1.EventThreatDetectionCustomModuleOrBuilder> - getEventThreatDetectionCustomModulesFieldBuilder() { - if (eventThreatDetectionCustomModulesBuilder_ == null) { - eventThreatDetectionCustomModulesBuilder_ = - new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.securitycentermanagement.v1.EventThreatDetectionCustomModule, - com.google.cloud.securitycentermanagement.v1.EventThreatDetectionCustomModule - .Builder, - com.google.cloud.securitycentermanagement.v1 - .EventThreatDetectionCustomModuleOrBuilder>( - eventThreatDetectionCustomModules_, - ((bitField0_ & 0x00000001) != 0), - getParentForChildren(), - isClean()); - eventThreatDetectionCustomModules_ = null; - } - return eventThreatDetectionCustomModulesBuilder_; - } - - private java.lang.Object nextPageToken_ = ""; - /** - * - * - *
-     * A token identifying a page of results the server should return.
-     * 
- * - * 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; - java.lang.String s = bs.toStringUtf8(); - nextPageToken_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * - * - *
-     * A token identifying a page of results the server should return.
-     * 
- * - * string next_page_token = 2; - * - * @return The bytes for nextPageToken. - */ - 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); - nextPageToken_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * - * - *
-     * A token identifying a page of results the server should return.
-     * 
- * - * 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(); - } - nextPageToken_ = value; - bitField0_ |= 0x00000002; - onChanged(); - return this; - } - /** - * - * - *
-     * A token identifying a page of results the server should return.
-     * 
- * - * string next_page_token = 2; - * - * @return This builder for chaining. - */ - public Builder clearNextPageToken() { - nextPageToken_ = getDefaultInstance().getNextPageToken(); - bitField0_ = (bitField0_ & ~0x00000002); - onChanged(); - return this; - } - /** - * - * - *
-     * A token identifying a page of results the server should return.
-     * 
- * - * 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(); - } - checkByteStringIsUtf8(value); - nextPageToken_ = value; - bitField0_ |= 0x00000002; - onChanged(); - return this; - } - - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - // @@protoc_insertion_point(builder_scope:google.cloud.securitycentermanagement.v1.ListDescendantEventThreatDetectionCustomModulesResponse) - } - - // @@protoc_insertion_point(class_scope:google.cloud.securitycentermanagement.v1.ListDescendantEventThreatDetectionCustomModulesResponse) - private static final com.google.cloud.securitycentermanagement.v1 - .ListDescendantEventThreatDetectionCustomModulesResponse - DEFAULT_INSTANCE; - - static { - DEFAULT_INSTANCE = - new com.google.cloud.securitycentermanagement.v1 - .ListDescendantEventThreatDetectionCustomModulesResponse(); - } - - public static com.google.cloud.securitycentermanagement.v1 - .ListDescendantEventThreatDetectionCustomModulesResponse - getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser< - ListDescendantEventThreatDetectionCustomModulesResponse> - PARSER = - new com.google.protobuf.AbstractParser< - ListDescendantEventThreatDetectionCustomModulesResponse>() { - @java.lang.Override - public ListDescendantEventThreatDetectionCustomModulesResponse parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException() - .setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; - - public static com.google.protobuf.Parser - parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser - getParserForType() { - return PARSER; - } - - @java.lang.Override - public com.google.cloud.securitycentermanagement.v1 - .ListDescendantEventThreatDetectionCustomModulesResponse - getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } -} diff --git a/java-securitycentermanagement/proto-google-cloud-securitycentermanagement-v1/src/main/java/com/google/cloud/securitycentermanagement/v1/ListDescendantEventThreatDetectionCustomModulesResponseOrBuilder.java b/java-securitycentermanagement/proto-google-cloud-securitycentermanagement-v1/src/main/java/com/google/cloud/securitycentermanagement/v1/ListDescendantEventThreatDetectionCustomModulesResponseOrBuilder.java deleted file mode 100644 index 85ce4fc0a576..000000000000 --- a/java-securitycentermanagement/proto-google-cloud-securitycentermanagement-v1/src/main/java/com/google/cloud/securitycentermanagement/v1/ListDescendantEventThreatDetectionCustomModulesResponseOrBuilder.java +++ /dev/null @@ -1,118 +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/securitycentermanagement/v1/security_center_management.proto - -package com.google.cloud.securitycentermanagement.v1; - -public interface ListDescendantEventThreatDetectionCustomModulesResponseOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.cloud.securitycentermanagement.v1.ListDescendantEventThreatDetectionCustomModulesResponse) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
-   * The list of EventThreatDetectionCustomModules
-   * 
- * - * - * repeated .google.cloud.securitycentermanagement.v1.EventThreatDetectionCustomModule event_threat_detection_custom_modules = 1; - * - */ - java.util.List - getEventThreatDetectionCustomModulesList(); - /** - * - * - *
-   * The list of EventThreatDetectionCustomModules
-   * 
- * - * - * repeated .google.cloud.securitycentermanagement.v1.EventThreatDetectionCustomModule event_threat_detection_custom_modules = 1; - * - */ - com.google.cloud.securitycentermanagement.v1.EventThreatDetectionCustomModule - getEventThreatDetectionCustomModules(int index); - /** - * - * - *
-   * The list of EventThreatDetectionCustomModules
-   * 
- * - * - * repeated .google.cloud.securitycentermanagement.v1.EventThreatDetectionCustomModule event_threat_detection_custom_modules = 1; - * - */ - int getEventThreatDetectionCustomModulesCount(); - /** - * - * - *
-   * The list of EventThreatDetectionCustomModules
-   * 
- * - * - * repeated .google.cloud.securitycentermanagement.v1.EventThreatDetectionCustomModule event_threat_detection_custom_modules = 1; - * - */ - java.util.List< - ? extends - com.google.cloud.securitycentermanagement.v1 - .EventThreatDetectionCustomModuleOrBuilder> - getEventThreatDetectionCustomModulesOrBuilderList(); - /** - * - * - *
-   * The list of EventThreatDetectionCustomModules
-   * 
- * - * - * repeated .google.cloud.securitycentermanagement.v1.EventThreatDetectionCustomModule event_threat_detection_custom_modules = 1; - * - */ - com.google.cloud.securitycentermanagement.v1.EventThreatDetectionCustomModuleOrBuilder - getEventThreatDetectionCustomModulesOrBuilder(int index); - - /** - * - * - *
-   * A token identifying a page of results the server should return.
-   * 
- * - * string next_page_token = 2; - * - * @return The nextPageToken. - */ - java.lang.String getNextPageToken(); - /** - * - * - *
-   * A token identifying a page of results the server should return.
-   * 
- * - * string next_page_token = 2; - * - * @return The bytes for nextPageToken. - */ - com.google.protobuf.ByteString getNextPageTokenBytes(); -} diff --git a/java-securitycentermanagement/proto-google-cloud-securitycentermanagement-v1/src/main/java/com/google/cloud/securitycentermanagement/v1/ListDescendantSecurityHealthAnalyticsCustomModulesResponse.java b/java-securitycentermanagement/proto-google-cloud-securitycentermanagement-v1/src/main/java/com/google/cloud/securitycentermanagement/v1/ListDescendantSecurityHealthAnalyticsCustomModulesResponse.java deleted file mode 100644 index d681859a71e1..000000000000 --- a/java-securitycentermanagement/proto-google-cloud-securitycentermanagement-v1/src/main/java/com/google/cloud/securitycentermanagement/v1/ListDescendantSecurityHealthAnalyticsCustomModulesResponse.java +++ /dev/null @@ -1,1310 +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/securitycentermanagement/v1/security_center_management.proto - -package com.google.cloud.securitycentermanagement.v1; - -/** - * - * - *
- * Response message for listing descendant Security Health Analytics custom
- * modules.
- * 
- * - * Protobuf type {@code - * google.cloud.securitycentermanagement.v1.ListDescendantSecurityHealthAnalyticsCustomModulesResponse} - */ -public final class ListDescendantSecurityHealthAnalyticsCustomModulesResponse - extends com.google.protobuf.GeneratedMessageV3 - implements - // @@protoc_insertion_point(message_implements:google.cloud.securitycentermanagement.v1.ListDescendantSecurityHealthAnalyticsCustomModulesResponse) - ListDescendantSecurityHealthAnalyticsCustomModulesResponseOrBuilder { - private static final long serialVersionUID = 0L; - // Use ListDescendantSecurityHealthAnalyticsCustomModulesResponse.newBuilder() to construct. - private ListDescendantSecurityHealthAnalyticsCustomModulesResponse( - com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - - private ListDescendantSecurityHealthAnalyticsCustomModulesResponse() { - securityHealthAnalyticsCustomModules_ = java.util.Collections.emptyList(); - nextPageToken_ = ""; - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { - return new ListDescendantSecurityHealthAnalyticsCustomModulesResponse(); - } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.securitycentermanagement.v1.SecurityCenterManagementProto - .internal_static_google_cloud_securitycentermanagement_v1_ListDescendantSecurityHealthAnalyticsCustomModulesResponse_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.securitycentermanagement.v1.SecurityCenterManagementProto - .internal_static_google_cloud_securitycentermanagement_v1_ListDescendantSecurityHealthAnalyticsCustomModulesResponse_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.securitycentermanagement.v1 - .ListDescendantSecurityHealthAnalyticsCustomModulesResponse.class, - com.google.cloud.securitycentermanagement.v1 - .ListDescendantSecurityHealthAnalyticsCustomModulesResponse.Builder.class); - } - - public static final int SECURITY_HEALTH_ANALYTICS_CUSTOM_MODULES_FIELD_NUMBER = 1; - - @SuppressWarnings("serial") - private java.util.List< - com.google.cloud.securitycentermanagement.v1.SecurityHealthAnalyticsCustomModule> - securityHealthAnalyticsCustomModules_; - /** - * - * - *
-   * The list of SecurityHealthAnalyticsCustomModules
-   * 
- * - * - * repeated .google.cloud.securitycentermanagement.v1.SecurityHealthAnalyticsCustomModule security_health_analytics_custom_modules = 1; - * - */ - @java.lang.Override - public java.util.List< - com.google.cloud.securitycentermanagement.v1.SecurityHealthAnalyticsCustomModule> - getSecurityHealthAnalyticsCustomModulesList() { - return securityHealthAnalyticsCustomModules_; - } - /** - * - * - *
-   * The list of SecurityHealthAnalyticsCustomModules
-   * 
- * - * - * repeated .google.cloud.securitycentermanagement.v1.SecurityHealthAnalyticsCustomModule security_health_analytics_custom_modules = 1; - * - */ - @java.lang.Override - public java.util.List< - ? extends - com.google.cloud.securitycentermanagement.v1 - .SecurityHealthAnalyticsCustomModuleOrBuilder> - getSecurityHealthAnalyticsCustomModulesOrBuilderList() { - return securityHealthAnalyticsCustomModules_; - } - /** - * - * - *
-   * The list of SecurityHealthAnalyticsCustomModules
-   * 
- * - * - * repeated .google.cloud.securitycentermanagement.v1.SecurityHealthAnalyticsCustomModule security_health_analytics_custom_modules = 1; - * - */ - @java.lang.Override - public int getSecurityHealthAnalyticsCustomModulesCount() { - return securityHealthAnalyticsCustomModules_.size(); - } - /** - * - * - *
-   * The list of SecurityHealthAnalyticsCustomModules
-   * 
- * - * - * repeated .google.cloud.securitycentermanagement.v1.SecurityHealthAnalyticsCustomModule security_health_analytics_custom_modules = 1; - * - */ - @java.lang.Override - public com.google.cloud.securitycentermanagement.v1.SecurityHealthAnalyticsCustomModule - getSecurityHealthAnalyticsCustomModules(int index) { - return securityHealthAnalyticsCustomModules_.get(index); - } - /** - * - * - *
-   * The list of SecurityHealthAnalyticsCustomModules
-   * 
- * - * - * repeated .google.cloud.securitycentermanagement.v1.SecurityHealthAnalyticsCustomModule security_health_analytics_custom_modules = 1; - * - */ - @java.lang.Override - public com.google.cloud.securitycentermanagement.v1.SecurityHealthAnalyticsCustomModuleOrBuilder - getSecurityHealthAnalyticsCustomModulesOrBuilder(int index) { - return securityHealthAnalyticsCustomModules_.get(index); - } - - public static final int NEXT_PAGE_TOKEN_FIELD_NUMBER = 2; - - @SuppressWarnings("serial") - private volatile java.lang.Object nextPageToken_ = ""; - /** - * - * - *
-   * A token identifying a page of results the server should return.
-   * 
- * - * string next_page_token = 2; - * - * @return The nextPageToken. - */ - @java.lang.Override - public java.lang.String getNextPageToken() { - java.lang.Object ref = nextPageToken_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - nextPageToken_ = s; - return s; - } - } - /** - * - * - *
-   * A token identifying a page of results the server should return.
-   * 
- * - * string next_page_token = 2; - * - * @return The bytes for nextPageToken. - */ - @java.lang.Override - 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); - nextPageToken_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - private byte memoizedIsInitialized = -1; - - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - for (int i = 0; i < securityHealthAnalyticsCustomModules_.size(); i++) { - output.writeMessage(1, securityHealthAnalyticsCustomModules_.get(i)); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(nextPageToken_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 2, nextPageToken_); - } - getUnknownFields().writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - for (int i = 0; i < securityHealthAnalyticsCustomModules_.size(); i++) { - size += - com.google.protobuf.CodedOutputStream.computeMessageSize( - 1, securityHealthAnalyticsCustomModules_.get(i)); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(nextPageToken_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, nextPageToken_); - } - size += getUnknownFields().getSerializedSize(); - memoizedSize = size; - return size; - } - - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj - instanceof - com.google.cloud.securitycentermanagement.v1 - .ListDescendantSecurityHealthAnalyticsCustomModulesResponse)) { - return super.equals(obj); - } - com.google.cloud.securitycentermanagement.v1 - .ListDescendantSecurityHealthAnalyticsCustomModulesResponse - other = - (com.google.cloud.securitycentermanagement.v1 - .ListDescendantSecurityHealthAnalyticsCustomModulesResponse) - obj; - - if (!getSecurityHealthAnalyticsCustomModulesList() - .equals(other.getSecurityHealthAnalyticsCustomModulesList())) return false; - if (!getNextPageToken().equals(other.getNextPageToken())) return false; - if (!getUnknownFields().equals(other.getUnknownFields())) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - if (getSecurityHealthAnalyticsCustomModulesCount() > 0) { - hash = (37 * hash) + SECURITY_HEALTH_ANALYTICS_CUSTOM_MODULES_FIELD_NUMBER; - hash = (53 * hash) + getSecurityHealthAnalyticsCustomModulesList().hashCode(); - } - hash = (37 * hash) + NEXT_PAGE_TOKEN_FIELD_NUMBER; - hash = (53 * hash) + getNextPageToken().hashCode(); - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static com.google.cloud.securitycentermanagement.v1 - .ListDescendantSecurityHealthAnalyticsCustomModulesResponse - parseFrom(java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.securitycentermanagement.v1 - .ListDescendantSecurityHealthAnalyticsCustomModulesResponse - 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.securitycentermanagement.v1 - .ListDescendantSecurityHealthAnalyticsCustomModulesResponse - parseFrom(com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.securitycentermanagement.v1 - .ListDescendantSecurityHealthAnalyticsCustomModulesResponse - parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.securitycentermanagement.v1 - .ListDescendantSecurityHealthAnalyticsCustomModulesResponse - parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.securitycentermanagement.v1 - .ListDescendantSecurityHealthAnalyticsCustomModulesResponse - parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.securitycentermanagement.v1 - .ListDescendantSecurityHealthAnalyticsCustomModulesResponse - parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.cloud.securitycentermanagement.v1 - .ListDescendantSecurityHealthAnalyticsCustomModulesResponse - 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.securitycentermanagement.v1 - .ListDescendantSecurityHealthAnalyticsCustomModulesResponse - parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); - } - - public static com.google.cloud.securitycentermanagement.v1 - .ListDescendantSecurityHealthAnalyticsCustomModulesResponse - parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); - } - - public static com.google.cloud.securitycentermanagement.v1 - .ListDescendantSecurityHealthAnalyticsCustomModulesResponse - parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.cloud.securitycentermanagement.v1 - .ListDescendantSecurityHealthAnalyticsCustomModulesResponse - 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.securitycentermanagement.v1 - .ListDescendantSecurityHealthAnalyticsCustomModulesResponse - prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - * - * - *
-   * Response message for listing descendant Security Health Analytics custom
-   * modules.
-   * 
- * - * Protobuf type {@code - * google.cloud.securitycentermanagement.v1.ListDescendantSecurityHealthAnalyticsCustomModulesResponse} - */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements - // @@protoc_insertion_point(builder_implements:google.cloud.securitycentermanagement.v1.ListDescendantSecurityHealthAnalyticsCustomModulesResponse) - com.google.cloud.securitycentermanagement.v1 - .ListDescendantSecurityHealthAnalyticsCustomModulesResponseOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.securitycentermanagement.v1.SecurityCenterManagementProto - .internal_static_google_cloud_securitycentermanagement_v1_ListDescendantSecurityHealthAnalyticsCustomModulesResponse_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.securitycentermanagement.v1.SecurityCenterManagementProto - .internal_static_google_cloud_securitycentermanagement_v1_ListDescendantSecurityHealthAnalyticsCustomModulesResponse_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.securitycentermanagement.v1 - .ListDescendantSecurityHealthAnalyticsCustomModulesResponse.class, - com.google.cloud.securitycentermanagement.v1 - .ListDescendantSecurityHealthAnalyticsCustomModulesResponse.Builder.class); - } - - // Construct using - // com.google.cloud.securitycentermanagement.v1.ListDescendantSecurityHealthAnalyticsCustomModulesResponse.newBuilder() - private Builder() {} - - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - } - - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - if (securityHealthAnalyticsCustomModulesBuilder_ == null) { - securityHealthAnalyticsCustomModules_ = java.util.Collections.emptyList(); - } else { - securityHealthAnalyticsCustomModules_ = null; - securityHealthAnalyticsCustomModulesBuilder_.clear(); - } - bitField0_ = (bitField0_ & ~0x00000001); - nextPageToken_ = ""; - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.securitycentermanagement.v1.SecurityCenterManagementProto - .internal_static_google_cloud_securitycentermanagement_v1_ListDescendantSecurityHealthAnalyticsCustomModulesResponse_descriptor; - } - - @java.lang.Override - public com.google.cloud.securitycentermanagement.v1 - .ListDescendantSecurityHealthAnalyticsCustomModulesResponse - getDefaultInstanceForType() { - return com.google.cloud.securitycentermanagement.v1 - .ListDescendantSecurityHealthAnalyticsCustomModulesResponse.getDefaultInstance(); - } - - @java.lang.Override - public com.google.cloud.securitycentermanagement.v1 - .ListDescendantSecurityHealthAnalyticsCustomModulesResponse - build() { - com.google.cloud.securitycentermanagement.v1 - .ListDescendantSecurityHealthAnalyticsCustomModulesResponse - result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.cloud.securitycentermanagement.v1 - .ListDescendantSecurityHealthAnalyticsCustomModulesResponse - buildPartial() { - com.google.cloud.securitycentermanagement.v1 - .ListDescendantSecurityHealthAnalyticsCustomModulesResponse - result = - new com.google.cloud.securitycentermanagement.v1 - .ListDescendantSecurityHealthAnalyticsCustomModulesResponse(this); - buildPartialRepeatedFields(result); - if (bitField0_ != 0) { - buildPartial0(result); - } - onBuilt(); - return result; - } - - private void buildPartialRepeatedFields( - com.google.cloud.securitycentermanagement.v1 - .ListDescendantSecurityHealthAnalyticsCustomModulesResponse - result) { - if (securityHealthAnalyticsCustomModulesBuilder_ == null) { - if (((bitField0_ & 0x00000001) != 0)) { - securityHealthAnalyticsCustomModules_ = - java.util.Collections.unmodifiableList(securityHealthAnalyticsCustomModules_); - bitField0_ = (bitField0_ & ~0x00000001); - } - result.securityHealthAnalyticsCustomModules_ = securityHealthAnalyticsCustomModules_; - } else { - result.securityHealthAnalyticsCustomModules_ = - securityHealthAnalyticsCustomModulesBuilder_.build(); - } - } - - private void buildPartial0( - com.google.cloud.securitycentermanagement.v1 - .ListDescendantSecurityHealthAnalyticsCustomModulesResponse - result) { - int from_bitField0_ = bitField0_; - if (((from_bitField0_ & 0x00000002) != 0)) { - result.nextPageToken_ = nextPageToken_; - } - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.setField(field, value); - } - - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.addRepeatedField(field, value); - } - - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other - instanceof - com.google.cloud.securitycentermanagement.v1 - .ListDescendantSecurityHealthAnalyticsCustomModulesResponse) { - return mergeFrom( - (com.google.cloud.securitycentermanagement.v1 - .ListDescendantSecurityHealthAnalyticsCustomModulesResponse) - other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom( - com.google.cloud.securitycentermanagement.v1 - .ListDescendantSecurityHealthAnalyticsCustomModulesResponse - other) { - if (other - == com.google.cloud.securitycentermanagement.v1 - .ListDescendantSecurityHealthAnalyticsCustomModulesResponse.getDefaultInstance()) - return this; - if (securityHealthAnalyticsCustomModulesBuilder_ == null) { - if (!other.securityHealthAnalyticsCustomModules_.isEmpty()) { - if (securityHealthAnalyticsCustomModules_.isEmpty()) { - securityHealthAnalyticsCustomModules_ = other.securityHealthAnalyticsCustomModules_; - bitField0_ = (bitField0_ & ~0x00000001); - } else { - ensureSecurityHealthAnalyticsCustomModulesIsMutable(); - securityHealthAnalyticsCustomModules_.addAll( - other.securityHealthAnalyticsCustomModules_); - } - onChanged(); - } - } else { - if (!other.securityHealthAnalyticsCustomModules_.isEmpty()) { - if (securityHealthAnalyticsCustomModulesBuilder_.isEmpty()) { - securityHealthAnalyticsCustomModulesBuilder_.dispose(); - securityHealthAnalyticsCustomModulesBuilder_ = null; - securityHealthAnalyticsCustomModules_ = other.securityHealthAnalyticsCustomModules_; - bitField0_ = (bitField0_ & ~0x00000001); - securityHealthAnalyticsCustomModulesBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders - ? getSecurityHealthAnalyticsCustomModulesFieldBuilder() - : null; - } else { - securityHealthAnalyticsCustomModulesBuilder_.addAllMessages( - other.securityHealthAnalyticsCustomModules_); - } - } - } - if (!other.getNextPageToken().isEmpty()) { - nextPageToken_ = other.nextPageToken_; - bitField0_ |= 0x00000002; - onChanged(); - } - this.mergeUnknownFields(other.getUnknownFields()); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: - { - com.google.cloud.securitycentermanagement.v1.SecurityHealthAnalyticsCustomModule m = - input.readMessage( - com.google.cloud.securitycentermanagement.v1 - .SecurityHealthAnalyticsCustomModule.parser(), - extensionRegistry); - if (securityHealthAnalyticsCustomModulesBuilder_ == null) { - ensureSecurityHealthAnalyticsCustomModulesIsMutable(); - securityHealthAnalyticsCustomModules_.add(m); - } else { - securityHealthAnalyticsCustomModulesBuilder_.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) { - throw e.unwrapIOException(); - } finally { - onChanged(); - } // finally - return this; - } - - private int bitField0_; - - private java.util.List< - com.google.cloud.securitycentermanagement.v1.SecurityHealthAnalyticsCustomModule> - securityHealthAnalyticsCustomModules_ = java.util.Collections.emptyList(); - - private void ensureSecurityHealthAnalyticsCustomModulesIsMutable() { - if (!((bitField0_ & 0x00000001) != 0)) { - securityHealthAnalyticsCustomModules_ = - new java.util.ArrayList< - com.google.cloud.securitycentermanagement.v1.SecurityHealthAnalyticsCustomModule>( - securityHealthAnalyticsCustomModules_); - bitField0_ |= 0x00000001; - } - } - - private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.securitycentermanagement.v1.SecurityHealthAnalyticsCustomModule, - com.google.cloud.securitycentermanagement.v1.SecurityHealthAnalyticsCustomModule - .Builder, - com.google.cloud.securitycentermanagement.v1 - .SecurityHealthAnalyticsCustomModuleOrBuilder> - securityHealthAnalyticsCustomModulesBuilder_; - - /** - * - * - *
-     * The list of SecurityHealthAnalyticsCustomModules
-     * 
- * - * - * repeated .google.cloud.securitycentermanagement.v1.SecurityHealthAnalyticsCustomModule security_health_analytics_custom_modules = 1; - * - */ - public java.util.List< - com.google.cloud.securitycentermanagement.v1.SecurityHealthAnalyticsCustomModule> - getSecurityHealthAnalyticsCustomModulesList() { - if (securityHealthAnalyticsCustomModulesBuilder_ == null) { - return java.util.Collections.unmodifiableList(securityHealthAnalyticsCustomModules_); - } else { - return securityHealthAnalyticsCustomModulesBuilder_.getMessageList(); - } - } - /** - * - * - *
-     * The list of SecurityHealthAnalyticsCustomModules
-     * 
- * - * - * repeated .google.cloud.securitycentermanagement.v1.SecurityHealthAnalyticsCustomModule security_health_analytics_custom_modules = 1; - * - */ - public int getSecurityHealthAnalyticsCustomModulesCount() { - if (securityHealthAnalyticsCustomModulesBuilder_ == null) { - return securityHealthAnalyticsCustomModules_.size(); - } else { - return securityHealthAnalyticsCustomModulesBuilder_.getCount(); - } - } - /** - * - * - *
-     * The list of SecurityHealthAnalyticsCustomModules
-     * 
- * - * - * repeated .google.cloud.securitycentermanagement.v1.SecurityHealthAnalyticsCustomModule security_health_analytics_custom_modules = 1; - * - */ - public com.google.cloud.securitycentermanagement.v1.SecurityHealthAnalyticsCustomModule - getSecurityHealthAnalyticsCustomModules(int index) { - if (securityHealthAnalyticsCustomModulesBuilder_ == null) { - return securityHealthAnalyticsCustomModules_.get(index); - } else { - return securityHealthAnalyticsCustomModulesBuilder_.getMessage(index); - } - } - /** - * - * - *
-     * The list of SecurityHealthAnalyticsCustomModules
-     * 
- * - * - * repeated .google.cloud.securitycentermanagement.v1.SecurityHealthAnalyticsCustomModule security_health_analytics_custom_modules = 1; - * - */ - public Builder setSecurityHealthAnalyticsCustomModules( - int index, - com.google.cloud.securitycentermanagement.v1.SecurityHealthAnalyticsCustomModule value) { - if (securityHealthAnalyticsCustomModulesBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureSecurityHealthAnalyticsCustomModulesIsMutable(); - securityHealthAnalyticsCustomModules_.set(index, value); - onChanged(); - } else { - securityHealthAnalyticsCustomModulesBuilder_.setMessage(index, value); - } - return this; - } - /** - * - * - *
-     * The list of SecurityHealthAnalyticsCustomModules
-     * 
- * - * - * repeated .google.cloud.securitycentermanagement.v1.SecurityHealthAnalyticsCustomModule security_health_analytics_custom_modules = 1; - * - */ - public Builder setSecurityHealthAnalyticsCustomModules( - int index, - com.google.cloud.securitycentermanagement.v1.SecurityHealthAnalyticsCustomModule.Builder - builderForValue) { - if (securityHealthAnalyticsCustomModulesBuilder_ == null) { - ensureSecurityHealthAnalyticsCustomModulesIsMutable(); - securityHealthAnalyticsCustomModules_.set(index, builderForValue.build()); - onChanged(); - } else { - securityHealthAnalyticsCustomModulesBuilder_.setMessage(index, builderForValue.build()); - } - return this; - } - /** - * - * - *
-     * The list of SecurityHealthAnalyticsCustomModules
-     * 
- * - * - * repeated .google.cloud.securitycentermanagement.v1.SecurityHealthAnalyticsCustomModule security_health_analytics_custom_modules = 1; - * - */ - public Builder addSecurityHealthAnalyticsCustomModules( - com.google.cloud.securitycentermanagement.v1.SecurityHealthAnalyticsCustomModule value) { - if (securityHealthAnalyticsCustomModulesBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureSecurityHealthAnalyticsCustomModulesIsMutable(); - securityHealthAnalyticsCustomModules_.add(value); - onChanged(); - } else { - securityHealthAnalyticsCustomModulesBuilder_.addMessage(value); - } - return this; - } - /** - * - * - *
-     * The list of SecurityHealthAnalyticsCustomModules
-     * 
- * - * - * repeated .google.cloud.securitycentermanagement.v1.SecurityHealthAnalyticsCustomModule security_health_analytics_custom_modules = 1; - * - */ - public Builder addSecurityHealthAnalyticsCustomModules( - int index, - com.google.cloud.securitycentermanagement.v1.SecurityHealthAnalyticsCustomModule value) { - if (securityHealthAnalyticsCustomModulesBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureSecurityHealthAnalyticsCustomModulesIsMutable(); - securityHealthAnalyticsCustomModules_.add(index, value); - onChanged(); - } else { - securityHealthAnalyticsCustomModulesBuilder_.addMessage(index, value); - } - return this; - } - /** - * - * - *
-     * The list of SecurityHealthAnalyticsCustomModules
-     * 
- * - * - * repeated .google.cloud.securitycentermanagement.v1.SecurityHealthAnalyticsCustomModule security_health_analytics_custom_modules = 1; - * - */ - public Builder addSecurityHealthAnalyticsCustomModules( - com.google.cloud.securitycentermanagement.v1.SecurityHealthAnalyticsCustomModule.Builder - builderForValue) { - if (securityHealthAnalyticsCustomModulesBuilder_ == null) { - ensureSecurityHealthAnalyticsCustomModulesIsMutable(); - securityHealthAnalyticsCustomModules_.add(builderForValue.build()); - onChanged(); - } else { - securityHealthAnalyticsCustomModulesBuilder_.addMessage(builderForValue.build()); - } - return this; - } - /** - * - * - *
-     * The list of SecurityHealthAnalyticsCustomModules
-     * 
- * - * - * repeated .google.cloud.securitycentermanagement.v1.SecurityHealthAnalyticsCustomModule security_health_analytics_custom_modules = 1; - * - */ - public Builder addSecurityHealthAnalyticsCustomModules( - int index, - com.google.cloud.securitycentermanagement.v1.SecurityHealthAnalyticsCustomModule.Builder - builderForValue) { - if (securityHealthAnalyticsCustomModulesBuilder_ == null) { - ensureSecurityHealthAnalyticsCustomModulesIsMutable(); - securityHealthAnalyticsCustomModules_.add(index, builderForValue.build()); - onChanged(); - } else { - securityHealthAnalyticsCustomModulesBuilder_.addMessage(index, builderForValue.build()); - } - return this; - } - /** - * - * - *
-     * The list of SecurityHealthAnalyticsCustomModules
-     * 
- * - * - * repeated .google.cloud.securitycentermanagement.v1.SecurityHealthAnalyticsCustomModule security_health_analytics_custom_modules = 1; - * - */ - public Builder addAllSecurityHealthAnalyticsCustomModules( - java.lang.Iterable< - ? extends - com.google.cloud.securitycentermanagement.v1 - .SecurityHealthAnalyticsCustomModule> - values) { - if (securityHealthAnalyticsCustomModulesBuilder_ == null) { - ensureSecurityHealthAnalyticsCustomModulesIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, securityHealthAnalyticsCustomModules_); - onChanged(); - } else { - securityHealthAnalyticsCustomModulesBuilder_.addAllMessages(values); - } - return this; - } - /** - * - * - *
-     * The list of SecurityHealthAnalyticsCustomModules
-     * 
- * - * - * repeated .google.cloud.securitycentermanagement.v1.SecurityHealthAnalyticsCustomModule security_health_analytics_custom_modules = 1; - * - */ - public Builder clearSecurityHealthAnalyticsCustomModules() { - if (securityHealthAnalyticsCustomModulesBuilder_ == null) { - securityHealthAnalyticsCustomModules_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000001); - onChanged(); - } else { - securityHealthAnalyticsCustomModulesBuilder_.clear(); - } - return this; - } - /** - * - * - *
-     * The list of SecurityHealthAnalyticsCustomModules
-     * 
- * - * - * repeated .google.cloud.securitycentermanagement.v1.SecurityHealthAnalyticsCustomModule security_health_analytics_custom_modules = 1; - * - */ - public Builder removeSecurityHealthAnalyticsCustomModules(int index) { - if (securityHealthAnalyticsCustomModulesBuilder_ == null) { - ensureSecurityHealthAnalyticsCustomModulesIsMutable(); - securityHealthAnalyticsCustomModules_.remove(index); - onChanged(); - } else { - securityHealthAnalyticsCustomModulesBuilder_.remove(index); - } - return this; - } - /** - * - * - *
-     * The list of SecurityHealthAnalyticsCustomModules
-     * 
- * - * - * repeated .google.cloud.securitycentermanagement.v1.SecurityHealthAnalyticsCustomModule security_health_analytics_custom_modules = 1; - * - */ - public com.google.cloud.securitycentermanagement.v1.SecurityHealthAnalyticsCustomModule.Builder - getSecurityHealthAnalyticsCustomModulesBuilder(int index) { - return getSecurityHealthAnalyticsCustomModulesFieldBuilder().getBuilder(index); - } - /** - * - * - *
-     * The list of SecurityHealthAnalyticsCustomModules
-     * 
- * - * - * repeated .google.cloud.securitycentermanagement.v1.SecurityHealthAnalyticsCustomModule security_health_analytics_custom_modules = 1; - * - */ - public com.google.cloud.securitycentermanagement.v1.SecurityHealthAnalyticsCustomModuleOrBuilder - getSecurityHealthAnalyticsCustomModulesOrBuilder(int index) { - if (securityHealthAnalyticsCustomModulesBuilder_ == null) { - return securityHealthAnalyticsCustomModules_.get(index); - } else { - return securityHealthAnalyticsCustomModulesBuilder_.getMessageOrBuilder(index); - } - } - /** - * - * - *
-     * The list of SecurityHealthAnalyticsCustomModules
-     * 
- * - * - * repeated .google.cloud.securitycentermanagement.v1.SecurityHealthAnalyticsCustomModule security_health_analytics_custom_modules = 1; - * - */ - public java.util.List< - ? extends - com.google.cloud.securitycentermanagement.v1 - .SecurityHealthAnalyticsCustomModuleOrBuilder> - getSecurityHealthAnalyticsCustomModulesOrBuilderList() { - if (securityHealthAnalyticsCustomModulesBuilder_ != null) { - return securityHealthAnalyticsCustomModulesBuilder_.getMessageOrBuilderList(); - } else { - return java.util.Collections.unmodifiableList(securityHealthAnalyticsCustomModules_); - } - } - /** - * - * - *
-     * The list of SecurityHealthAnalyticsCustomModules
-     * 
- * - * - * repeated .google.cloud.securitycentermanagement.v1.SecurityHealthAnalyticsCustomModule security_health_analytics_custom_modules = 1; - * - */ - public com.google.cloud.securitycentermanagement.v1.SecurityHealthAnalyticsCustomModule.Builder - addSecurityHealthAnalyticsCustomModulesBuilder() { - return getSecurityHealthAnalyticsCustomModulesFieldBuilder() - .addBuilder( - com.google.cloud.securitycentermanagement.v1.SecurityHealthAnalyticsCustomModule - .getDefaultInstance()); - } - /** - * - * - *
-     * The list of SecurityHealthAnalyticsCustomModules
-     * 
- * - * - * repeated .google.cloud.securitycentermanagement.v1.SecurityHealthAnalyticsCustomModule security_health_analytics_custom_modules = 1; - * - */ - public com.google.cloud.securitycentermanagement.v1.SecurityHealthAnalyticsCustomModule.Builder - addSecurityHealthAnalyticsCustomModulesBuilder(int index) { - return getSecurityHealthAnalyticsCustomModulesFieldBuilder() - .addBuilder( - index, - com.google.cloud.securitycentermanagement.v1.SecurityHealthAnalyticsCustomModule - .getDefaultInstance()); - } - /** - * - * - *
-     * The list of SecurityHealthAnalyticsCustomModules
-     * 
- * - * - * repeated .google.cloud.securitycentermanagement.v1.SecurityHealthAnalyticsCustomModule security_health_analytics_custom_modules = 1; - * - */ - public java.util.List< - com.google.cloud.securitycentermanagement.v1.SecurityHealthAnalyticsCustomModule - .Builder> - getSecurityHealthAnalyticsCustomModulesBuilderList() { - return getSecurityHealthAnalyticsCustomModulesFieldBuilder().getBuilderList(); - } - - private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.securitycentermanagement.v1.SecurityHealthAnalyticsCustomModule, - com.google.cloud.securitycentermanagement.v1.SecurityHealthAnalyticsCustomModule - .Builder, - com.google.cloud.securitycentermanagement.v1 - .SecurityHealthAnalyticsCustomModuleOrBuilder> - getSecurityHealthAnalyticsCustomModulesFieldBuilder() { - if (securityHealthAnalyticsCustomModulesBuilder_ == null) { - securityHealthAnalyticsCustomModulesBuilder_ = - new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.securitycentermanagement.v1.SecurityHealthAnalyticsCustomModule, - com.google.cloud.securitycentermanagement.v1.SecurityHealthAnalyticsCustomModule - .Builder, - com.google.cloud.securitycentermanagement.v1 - .SecurityHealthAnalyticsCustomModuleOrBuilder>( - securityHealthAnalyticsCustomModules_, - ((bitField0_ & 0x00000001) != 0), - getParentForChildren(), - isClean()); - securityHealthAnalyticsCustomModules_ = null; - } - return securityHealthAnalyticsCustomModulesBuilder_; - } - - private java.lang.Object nextPageToken_ = ""; - /** - * - * - *
-     * A token identifying a page of results the server should return.
-     * 
- * - * 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; - java.lang.String s = bs.toStringUtf8(); - nextPageToken_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * - * - *
-     * A token identifying a page of results the server should return.
-     * 
- * - * string next_page_token = 2; - * - * @return The bytes for nextPageToken. - */ - 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); - nextPageToken_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * - * - *
-     * A token identifying a page of results the server should return.
-     * 
- * - * 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(); - } - nextPageToken_ = value; - bitField0_ |= 0x00000002; - onChanged(); - return this; - } - /** - * - * - *
-     * A token identifying a page of results the server should return.
-     * 
- * - * string next_page_token = 2; - * - * @return This builder for chaining. - */ - public Builder clearNextPageToken() { - nextPageToken_ = getDefaultInstance().getNextPageToken(); - bitField0_ = (bitField0_ & ~0x00000002); - onChanged(); - return this; - } - /** - * - * - *
-     * A token identifying a page of results the server should return.
-     * 
- * - * 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(); - } - checkByteStringIsUtf8(value); - nextPageToken_ = value; - bitField0_ |= 0x00000002; - onChanged(); - return this; - } - - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - // @@protoc_insertion_point(builder_scope:google.cloud.securitycentermanagement.v1.ListDescendantSecurityHealthAnalyticsCustomModulesResponse) - } - - // @@protoc_insertion_point(class_scope:google.cloud.securitycentermanagement.v1.ListDescendantSecurityHealthAnalyticsCustomModulesResponse) - private static final com.google.cloud.securitycentermanagement.v1 - .ListDescendantSecurityHealthAnalyticsCustomModulesResponse - DEFAULT_INSTANCE; - - static { - DEFAULT_INSTANCE = - new com.google.cloud.securitycentermanagement.v1 - .ListDescendantSecurityHealthAnalyticsCustomModulesResponse(); - } - - public static com.google.cloud.securitycentermanagement.v1 - .ListDescendantSecurityHealthAnalyticsCustomModulesResponse - getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser< - ListDescendantSecurityHealthAnalyticsCustomModulesResponse> - PARSER = - new com.google.protobuf.AbstractParser< - ListDescendantSecurityHealthAnalyticsCustomModulesResponse>() { - @java.lang.Override - public ListDescendantSecurityHealthAnalyticsCustomModulesResponse parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException() - .setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; - - public static com.google.protobuf.Parser< - ListDescendantSecurityHealthAnalyticsCustomModulesResponse> - parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser - getParserForType() { - return PARSER; - } - - @java.lang.Override - public com.google.cloud.securitycentermanagement.v1 - .ListDescendantSecurityHealthAnalyticsCustomModulesResponse - getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } -} diff --git a/java-securitycentermanagement/proto-google-cloud-securitycentermanagement-v1/src/main/java/com/google/cloud/securitycentermanagement/v1/ListDescendantSecurityHealthAnalyticsCustomModulesResponseOrBuilder.java b/java-securitycentermanagement/proto-google-cloud-securitycentermanagement-v1/src/main/java/com/google/cloud/securitycentermanagement/v1/ListDescendantSecurityHealthAnalyticsCustomModulesResponseOrBuilder.java deleted file mode 100644 index 5e8abbf87861..000000000000 --- a/java-securitycentermanagement/proto-google-cloud-securitycentermanagement-v1/src/main/java/com/google/cloud/securitycentermanagement/v1/ListDescendantSecurityHealthAnalyticsCustomModulesResponseOrBuilder.java +++ /dev/null @@ -1,118 +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/securitycentermanagement/v1/security_center_management.proto - -package com.google.cloud.securitycentermanagement.v1; - -public interface ListDescendantSecurityHealthAnalyticsCustomModulesResponseOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.cloud.securitycentermanagement.v1.ListDescendantSecurityHealthAnalyticsCustomModulesResponse) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
-   * The list of SecurityHealthAnalyticsCustomModules
-   * 
- * - * - * repeated .google.cloud.securitycentermanagement.v1.SecurityHealthAnalyticsCustomModule security_health_analytics_custom_modules = 1; - * - */ - java.util.List - getSecurityHealthAnalyticsCustomModulesList(); - /** - * - * - *
-   * The list of SecurityHealthAnalyticsCustomModules
-   * 
- * - * - * repeated .google.cloud.securitycentermanagement.v1.SecurityHealthAnalyticsCustomModule security_health_analytics_custom_modules = 1; - * - */ - com.google.cloud.securitycentermanagement.v1.SecurityHealthAnalyticsCustomModule - getSecurityHealthAnalyticsCustomModules(int index); - /** - * - * - *
-   * The list of SecurityHealthAnalyticsCustomModules
-   * 
- * - * - * repeated .google.cloud.securitycentermanagement.v1.SecurityHealthAnalyticsCustomModule security_health_analytics_custom_modules = 1; - * - */ - int getSecurityHealthAnalyticsCustomModulesCount(); - /** - * - * - *
-   * The list of SecurityHealthAnalyticsCustomModules
-   * 
- * - * - * repeated .google.cloud.securitycentermanagement.v1.SecurityHealthAnalyticsCustomModule security_health_analytics_custom_modules = 1; - * - */ - java.util.List< - ? extends - com.google.cloud.securitycentermanagement.v1 - .SecurityHealthAnalyticsCustomModuleOrBuilder> - getSecurityHealthAnalyticsCustomModulesOrBuilderList(); - /** - * - * - *
-   * The list of SecurityHealthAnalyticsCustomModules
-   * 
- * - * - * repeated .google.cloud.securitycentermanagement.v1.SecurityHealthAnalyticsCustomModule security_health_analytics_custom_modules = 1; - * - */ - com.google.cloud.securitycentermanagement.v1.SecurityHealthAnalyticsCustomModuleOrBuilder - getSecurityHealthAnalyticsCustomModulesOrBuilder(int index); - - /** - * - * - *
-   * A token identifying a page of results the server should return.
-   * 
- * - * string next_page_token = 2; - * - * @return The nextPageToken. - */ - java.lang.String getNextPageToken(); - /** - * - * - *
-   * A token identifying a page of results the server should return.
-   * 
- * - * string next_page_token = 2; - * - * @return The bytes for nextPageToken. - */ - com.google.protobuf.ByteString getNextPageTokenBytes(); -} diff --git a/java-securitycentermanagement/proto-google-cloud-securitycentermanagement-v1/src/main/java/com/google/cloud/securitycentermanagement/v1/ListEffectiveEventThreatDetectionCustomModulesResponse.java b/java-securitycentermanagement/proto-google-cloud-securitycentermanagement-v1/src/main/java/com/google/cloud/securitycentermanagement/v1/ListEffectiveEventThreatDetectionCustomModulesResponse.java deleted file mode 100644 index 4bb0b21c7c8f..000000000000 --- a/java-securitycentermanagement/proto-google-cloud-securitycentermanagement-v1/src/main/java/com/google/cloud/securitycentermanagement/v1/ListEffectiveEventThreatDetectionCustomModulesResponse.java +++ /dev/null @@ -1,1329 +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/securitycentermanagement/v1/security_center_management.proto - -package com.google.cloud.securitycentermanagement.v1; - -/** - * - * - *
- * Response message for listing effective Event Threat Detection custom
- * modules.
- * 
- * - * Protobuf type {@code - * google.cloud.securitycentermanagement.v1.ListEffectiveEventThreatDetectionCustomModulesResponse} - */ -public final class ListEffectiveEventThreatDetectionCustomModulesResponse - extends com.google.protobuf.GeneratedMessageV3 - implements - // @@protoc_insertion_point(message_implements:google.cloud.securitycentermanagement.v1.ListEffectiveEventThreatDetectionCustomModulesResponse) - ListEffectiveEventThreatDetectionCustomModulesResponseOrBuilder { - private static final long serialVersionUID = 0L; - // Use ListEffectiveEventThreatDetectionCustomModulesResponse.newBuilder() to construct. - private ListEffectiveEventThreatDetectionCustomModulesResponse( - com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - - private ListEffectiveEventThreatDetectionCustomModulesResponse() { - effectiveEventThreatDetectionCustomModules_ = java.util.Collections.emptyList(); - nextPageToken_ = ""; - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { - return new ListEffectiveEventThreatDetectionCustomModulesResponse(); - } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.securitycentermanagement.v1.SecurityCenterManagementProto - .internal_static_google_cloud_securitycentermanagement_v1_ListEffectiveEventThreatDetectionCustomModulesResponse_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.securitycentermanagement.v1.SecurityCenterManagementProto - .internal_static_google_cloud_securitycentermanagement_v1_ListEffectiveEventThreatDetectionCustomModulesResponse_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.securitycentermanagement.v1 - .ListEffectiveEventThreatDetectionCustomModulesResponse.class, - com.google.cloud.securitycentermanagement.v1 - .ListEffectiveEventThreatDetectionCustomModulesResponse.Builder.class); - } - - public static final int EFFECTIVE_EVENT_THREAT_DETECTION_CUSTOM_MODULES_FIELD_NUMBER = 1; - - @SuppressWarnings("serial") - private java.util.List< - com.google.cloud.securitycentermanagement.v1.EffectiveEventThreatDetectionCustomModule> - effectiveEventThreatDetectionCustomModules_; - /** - * - * - *
-   * The list of EffectiveEventThreatDetectionCustomModules
-   * 
- * - * - * repeated .google.cloud.securitycentermanagement.v1.EffectiveEventThreatDetectionCustomModule effective_event_threat_detection_custom_modules = 1; - * - */ - @java.lang.Override - public java.util.List< - com.google.cloud.securitycentermanagement.v1.EffectiveEventThreatDetectionCustomModule> - getEffectiveEventThreatDetectionCustomModulesList() { - return effectiveEventThreatDetectionCustomModules_; - } - /** - * - * - *
-   * The list of EffectiveEventThreatDetectionCustomModules
-   * 
- * - * - * repeated .google.cloud.securitycentermanagement.v1.EffectiveEventThreatDetectionCustomModule effective_event_threat_detection_custom_modules = 1; - * - */ - @java.lang.Override - public java.util.List< - ? extends - com.google.cloud.securitycentermanagement.v1 - .EffectiveEventThreatDetectionCustomModuleOrBuilder> - getEffectiveEventThreatDetectionCustomModulesOrBuilderList() { - return effectiveEventThreatDetectionCustomModules_; - } - /** - * - * - *
-   * The list of EffectiveEventThreatDetectionCustomModules
-   * 
- * - * - * repeated .google.cloud.securitycentermanagement.v1.EffectiveEventThreatDetectionCustomModule effective_event_threat_detection_custom_modules = 1; - * - */ - @java.lang.Override - public int getEffectiveEventThreatDetectionCustomModulesCount() { - return effectiveEventThreatDetectionCustomModules_.size(); - } - /** - * - * - *
-   * The list of EffectiveEventThreatDetectionCustomModules
-   * 
- * - * - * repeated .google.cloud.securitycentermanagement.v1.EffectiveEventThreatDetectionCustomModule effective_event_threat_detection_custom_modules = 1; - * - */ - @java.lang.Override - public com.google.cloud.securitycentermanagement.v1.EffectiveEventThreatDetectionCustomModule - getEffectiveEventThreatDetectionCustomModules(int index) { - return effectiveEventThreatDetectionCustomModules_.get(index); - } - /** - * - * - *
-   * The list of EffectiveEventThreatDetectionCustomModules
-   * 
- * - * - * repeated .google.cloud.securitycentermanagement.v1.EffectiveEventThreatDetectionCustomModule effective_event_threat_detection_custom_modules = 1; - * - */ - @java.lang.Override - public com.google.cloud.securitycentermanagement.v1 - .EffectiveEventThreatDetectionCustomModuleOrBuilder - getEffectiveEventThreatDetectionCustomModulesOrBuilder(int index) { - return effectiveEventThreatDetectionCustomModules_.get(index); - } - - public static final int NEXT_PAGE_TOKEN_FIELD_NUMBER = 2; - - @SuppressWarnings("serial") - private volatile java.lang.Object nextPageToken_ = ""; - /** - * - * - *
-   * A token identifying a page of results the server should return.
-   * 
- * - * string next_page_token = 2; - * - * @return The nextPageToken. - */ - @java.lang.Override - public java.lang.String getNextPageToken() { - java.lang.Object ref = nextPageToken_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - nextPageToken_ = s; - return s; - } - } - /** - * - * - *
-   * A token identifying a page of results the server should return.
-   * 
- * - * string next_page_token = 2; - * - * @return The bytes for nextPageToken. - */ - @java.lang.Override - 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); - nextPageToken_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - private byte memoizedIsInitialized = -1; - - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - for (int i = 0; i < effectiveEventThreatDetectionCustomModules_.size(); i++) { - output.writeMessage(1, effectiveEventThreatDetectionCustomModules_.get(i)); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(nextPageToken_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 2, nextPageToken_); - } - getUnknownFields().writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - for (int i = 0; i < effectiveEventThreatDetectionCustomModules_.size(); i++) { - size += - com.google.protobuf.CodedOutputStream.computeMessageSize( - 1, effectiveEventThreatDetectionCustomModules_.get(i)); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(nextPageToken_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, nextPageToken_); - } - size += getUnknownFields().getSerializedSize(); - memoizedSize = size; - return size; - } - - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj - instanceof - com.google.cloud.securitycentermanagement.v1 - .ListEffectiveEventThreatDetectionCustomModulesResponse)) { - return super.equals(obj); - } - com.google.cloud.securitycentermanagement.v1 - .ListEffectiveEventThreatDetectionCustomModulesResponse - other = - (com.google.cloud.securitycentermanagement.v1 - .ListEffectiveEventThreatDetectionCustomModulesResponse) - obj; - - if (!getEffectiveEventThreatDetectionCustomModulesList() - .equals(other.getEffectiveEventThreatDetectionCustomModulesList())) return false; - if (!getNextPageToken().equals(other.getNextPageToken())) return false; - if (!getUnknownFields().equals(other.getUnknownFields())) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - if (getEffectiveEventThreatDetectionCustomModulesCount() > 0) { - hash = (37 * hash) + EFFECTIVE_EVENT_THREAT_DETECTION_CUSTOM_MODULES_FIELD_NUMBER; - hash = (53 * hash) + getEffectiveEventThreatDetectionCustomModulesList().hashCode(); - } - hash = (37 * hash) + NEXT_PAGE_TOKEN_FIELD_NUMBER; - hash = (53 * hash) + getNextPageToken().hashCode(); - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static com.google.cloud.securitycentermanagement.v1 - .ListEffectiveEventThreatDetectionCustomModulesResponse - parseFrom(java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.securitycentermanagement.v1 - .ListEffectiveEventThreatDetectionCustomModulesResponse - 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.securitycentermanagement.v1 - .ListEffectiveEventThreatDetectionCustomModulesResponse - parseFrom(com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.securitycentermanagement.v1 - .ListEffectiveEventThreatDetectionCustomModulesResponse - parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.securitycentermanagement.v1 - .ListEffectiveEventThreatDetectionCustomModulesResponse - parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.securitycentermanagement.v1 - .ListEffectiveEventThreatDetectionCustomModulesResponse - parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.securitycentermanagement.v1 - .ListEffectiveEventThreatDetectionCustomModulesResponse - parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.cloud.securitycentermanagement.v1 - .ListEffectiveEventThreatDetectionCustomModulesResponse - 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.securitycentermanagement.v1 - .ListEffectiveEventThreatDetectionCustomModulesResponse - parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); - } - - public static com.google.cloud.securitycentermanagement.v1 - .ListEffectiveEventThreatDetectionCustomModulesResponse - parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); - } - - public static com.google.cloud.securitycentermanagement.v1 - .ListEffectiveEventThreatDetectionCustomModulesResponse - parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.cloud.securitycentermanagement.v1 - .ListEffectiveEventThreatDetectionCustomModulesResponse - 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.securitycentermanagement.v1 - .ListEffectiveEventThreatDetectionCustomModulesResponse - prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - * - * - *
-   * Response message for listing effective Event Threat Detection custom
-   * modules.
-   * 
- * - * Protobuf type {@code - * google.cloud.securitycentermanagement.v1.ListEffectiveEventThreatDetectionCustomModulesResponse} - */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements - // @@protoc_insertion_point(builder_implements:google.cloud.securitycentermanagement.v1.ListEffectiveEventThreatDetectionCustomModulesResponse) - com.google.cloud.securitycentermanagement.v1 - .ListEffectiveEventThreatDetectionCustomModulesResponseOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.securitycentermanagement.v1.SecurityCenterManagementProto - .internal_static_google_cloud_securitycentermanagement_v1_ListEffectiveEventThreatDetectionCustomModulesResponse_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.securitycentermanagement.v1.SecurityCenterManagementProto - .internal_static_google_cloud_securitycentermanagement_v1_ListEffectiveEventThreatDetectionCustomModulesResponse_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.securitycentermanagement.v1 - .ListEffectiveEventThreatDetectionCustomModulesResponse.class, - com.google.cloud.securitycentermanagement.v1 - .ListEffectiveEventThreatDetectionCustomModulesResponse.Builder.class); - } - - // Construct using - // com.google.cloud.securitycentermanagement.v1.ListEffectiveEventThreatDetectionCustomModulesResponse.newBuilder() - private Builder() {} - - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - } - - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - if (effectiveEventThreatDetectionCustomModulesBuilder_ == null) { - effectiveEventThreatDetectionCustomModules_ = java.util.Collections.emptyList(); - } else { - effectiveEventThreatDetectionCustomModules_ = null; - effectiveEventThreatDetectionCustomModulesBuilder_.clear(); - } - bitField0_ = (bitField0_ & ~0x00000001); - nextPageToken_ = ""; - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.securitycentermanagement.v1.SecurityCenterManagementProto - .internal_static_google_cloud_securitycentermanagement_v1_ListEffectiveEventThreatDetectionCustomModulesResponse_descriptor; - } - - @java.lang.Override - public com.google.cloud.securitycentermanagement.v1 - .ListEffectiveEventThreatDetectionCustomModulesResponse - getDefaultInstanceForType() { - return com.google.cloud.securitycentermanagement.v1 - .ListEffectiveEventThreatDetectionCustomModulesResponse.getDefaultInstance(); - } - - @java.lang.Override - public com.google.cloud.securitycentermanagement.v1 - .ListEffectiveEventThreatDetectionCustomModulesResponse - build() { - com.google.cloud.securitycentermanagement.v1 - .ListEffectiveEventThreatDetectionCustomModulesResponse - result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.cloud.securitycentermanagement.v1 - .ListEffectiveEventThreatDetectionCustomModulesResponse - buildPartial() { - com.google.cloud.securitycentermanagement.v1 - .ListEffectiveEventThreatDetectionCustomModulesResponse - result = - new com.google.cloud.securitycentermanagement.v1 - .ListEffectiveEventThreatDetectionCustomModulesResponse(this); - buildPartialRepeatedFields(result); - if (bitField0_ != 0) { - buildPartial0(result); - } - onBuilt(); - return result; - } - - private void buildPartialRepeatedFields( - com.google.cloud.securitycentermanagement.v1 - .ListEffectiveEventThreatDetectionCustomModulesResponse - result) { - if (effectiveEventThreatDetectionCustomModulesBuilder_ == null) { - if (((bitField0_ & 0x00000001) != 0)) { - effectiveEventThreatDetectionCustomModules_ = - java.util.Collections.unmodifiableList(effectiveEventThreatDetectionCustomModules_); - bitField0_ = (bitField0_ & ~0x00000001); - } - result.effectiveEventThreatDetectionCustomModules_ = - effectiveEventThreatDetectionCustomModules_; - } else { - result.effectiveEventThreatDetectionCustomModules_ = - effectiveEventThreatDetectionCustomModulesBuilder_.build(); - } - } - - private void buildPartial0( - com.google.cloud.securitycentermanagement.v1 - .ListEffectiveEventThreatDetectionCustomModulesResponse - result) { - int from_bitField0_ = bitField0_; - if (((from_bitField0_ & 0x00000002) != 0)) { - result.nextPageToken_ = nextPageToken_; - } - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.setField(field, value); - } - - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.addRepeatedField(field, value); - } - - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other - instanceof - com.google.cloud.securitycentermanagement.v1 - .ListEffectiveEventThreatDetectionCustomModulesResponse) { - return mergeFrom( - (com.google.cloud.securitycentermanagement.v1 - .ListEffectiveEventThreatDetectionCustomModulesResponse) - other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom( - com.google.cloud.securitycentermanagement.v1 - .ListEffectiveEventThreatDetectionCustomModulesResponse - other) { - if (other - == com.google.cloud.securitycentermanagement.v1 - .ListEffectiveEventThreatDetectionCustomModulesResponse.getDefaultInstance()) - return this; - if (effectiveEventThreatDetectionCustomModulesBuilder_ == null) { - if (!other.effectiveEventThreatDetectionCustomModules_.isEmpty()) { - if (effectiveEventThreatDetectionCustomModules_.isEmpty()) { - effectiveEventThreatDetectionCustomModules_ = - other.effectiveEventThreatDetectionCustomModules_; - bitField0_ = (bitField0_ & ~0x00000001); - } else { - ensureEffectiveEventThreatDetectionCustomModulesIsMutable(); - effectiveEventThreatDetectionCustomModules_.addAll( - other.effectiveEventThreatDetectionCustomModules_); - } - onChanged(); - } - } else { - if (!other.effectiveEventThreatDetectionCustomModules_.isEmpty()) { - if (effectiveEventThreatDetectionCustomModulesBuilder_.isEmpty()) { - effectiveEventThreatDetectionCustomModulesBuilder_.dispose(); - effectiveEventThreatDetectionCustomModulesBuilder_ = null; - effectiveEventThreatDetectionCustomModules_ = - other.effectiveEventThreatDetectionCustomModules_; - bitField0_ = (bitField0_ & ~0x00000001); - effectiveEventThreatDetectionCustomModulesBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders - ? getEffectiveEventThreatDetectionCustomModulesFieldBuilder() - : null; - } else { - effectiveEventThreatDetectionCustomModulesBuilder_.addAllMessages( - other.effectiveEventThreatDetectionCustomModules_); - } - } - } - if (!other.getNextPageToken().isEmpty()) { - nextPageToken_ = other.nextPageToken_; - bitField0_ |= 0x00000002; - onChanged(); - } - this.mergeUnknownFields(other.getUnknownFields()); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: - { - com.google.cloud.securitycentermanagement.v1 - .EffectiveEventThreatDetectionCustomModule - m = - input.readMessage( - com.google.cloud.securitycentermanagement.v1 - .EffectiveEventThreatDetectionCustomModule.parser(), - extensionRegistry); - if (effectiveEventThreatDetectionCustomModulesBuilder_ == null) { - ensureEffectiveEventThreatDetectionCustomModulesIsMutable(); - effectiveEventThreatDetectionCustomModules_.add(m); - } else { - effectiveEventThreatDetectionCustomModulesBuilder_.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) { - throw e.unwrapIOException(); - } finally { - onChanged(); - } // finally - return this; - } - - private int bitField0_; - - private java.util.List< - com.google.cloud.securitycentermanagement.v1.EffectiveEventThreatDetectionCustomModule> - effectiveEventThreatDetectionCustomModules_ = java.util.Collections.emptyList(); - - private void ensureEffectiveEventThreatDetectionCustomModulesIsMutable() { - if (!((bitField0_ & 0x00000001) != 0)) { - effectiveEventThreatDetectionCustomModules_ = - new java.util.ArrayList< - com.google.cloud.securitycentermanagement.v1 - .EffectiveEventThreatDetectionCustomModule>( - effectiveEventThreatDetectionCustomModules_); - bitField0_ |= 0x00000001; - } - } - - private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.securitycentermanagement.v1.EffectiveEventThreatDetectionCustomModule, - com.google.cloud.securitycentermanagement.v1.EffectiveEventThreatDetectionCustomModule - .Builder, - com.google.cloud.securitycentermanagement.v1 - .EffectiveEventThreatDetectionCustomModuleOrBuilder> - effectiveEventThreatDetectionCustomModulesBuilder_; - - /** - * - * - *
-     * The list of EffectiveEventThreatDetectionCustomModules
-     * 
- * - * - * repeated .google.cloud.securitycentermanagement.v1.EffectiveEventThreatDetectionCustomModule effective_event_threat_detection_custom_modules = 1; - * - */ - public java.util.List< - com.google.cloud.securitycentermanagement.v1.EffectiveEventThreatDetectionCustomModule> - getEffectiveEventThreatDetectionCustomModulesList() { - if (effectiveEventThreatDetectionCustomModulesBuilder_ == null) { - return java.util.Collections.unmodifiableList(effectiveEventThreatDetectionCustomModules_); - } else { - return effectiveEventThreatDetectionCustomModulesBuilder_.getMessageList(); - } - } - /** - * - * - *
-     * The list of EffectiveEventThreatDetectionCustomModules
-     * 
- * - * - * repeated .google.cloud.securitycentermanagement.v1.EffectiveEventThreatDetectionCustomModule effective_event_threat_detection_custom_modules = 1; - * - */ - public int getEffectiveEventThreatDetectionCustomModulesCount() { - if (effectiveEventThreatDetectionCustomModulesBuilder_ == null) { - return effectiveEventThreatDetectionCustomModules_.size(); - } else { - return effectiveEventThreatDetectionCustomModulesBuilder_.getCount(); - } - } - /** - * - * - *
-     * The list of EffectiveEventThreatDetectionCustomModules
-     * 
- * - * - * repeated .google.cloud.securitycentermanagement.v1.EffectiveEventThreatDetectionCustomModule effective_event_threat_detection_custom_modules = 1; - * - */ - public com.google.cloud.securitycentermanagement.v1.EffectiveEventThreatDetectionCustomModule - getEffectiveEventThreatDetectionCustomModules(int index) { - if (effectiveEventThreatDetectionCustomModulesBuilder_ == null) { - return effectiveEventThreatDetectionCustomModules_.get(index); - } else { - return effectiveEventThreatDetectionCustomModulesBuilder_.getMessage(index); - } - } - /** - * - * - *
-     * The list of EffectiveEventThreatDetectionCustomModules
-     * 
- * - * - * repeated .google.cloud.securitycentermanagement.v1.EffectiveEventThreatDetectionCustomModule effective_event_threat_detection_custom_modules = 1; - * - */ - public Builder setEffectiveEventThreatDetectionCustomModules( - int index, - com.google.cloud.securitycentermanagement.v1.EffectiveEventThreatDetectionCustomModule - value) { - if (effectiveEventThreatDetectionCustomModulesBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureEffectiveEventThreatDetectionCustomModulesIsMutable(); - effectiveEventThreatDetectionCustomModules_.set(index, value); - onChanged(); - } else { - effectiveEventThreatDetectionCustomModulesBuilder_.setMessage(index, value); - } - return this; - } - /** - * - * - *
-     * The list of EffectiveEventThreatDetectionCustomModules
-     * 
- * - * - * repeated .google.cloud.securitycentermanagement.v1.EffectiveEventThreatDetectionCustomModule effective_event_threat_detection_custom_modules = 1; - * - */ - public Builder setEffectiveEventThreatDetectionCustomModules( - int index, - com.google.cloud.securitycentermanagement.v1.EffectiveEventThreatDetectionCustomModule - .Builder - builderForValue) { - if (effectiveEventThreatDetectionCustomModulesBuilder_ == null) { - ensureEffectiveEventThreatDetectionCustomModulesIsMutable(); - effectiveEventThreatDetectionCustomModules_.set(index, builderForValue.build()); - onChanged(); - } else { - effectiveEventThreatDetectionCustomModulesBuilder_.setMessage( - index, builderForValue.build()); - } - return this; - } - /** - * - * - *
-     * The list of EffectiveEventThreatDetectionCustomModules
-     * 
- * - * - * repeated .google.cloud.securitycentermanagement.v1.EffectiveEventThreatDetectionCustomModule effective_event_threat_detection_custom_modules = 1; - * - */ - public Builder addEffectiveEventThreatDetectionCustomModules( - com.google.cloud.securitycentermanagement.v1.EffectiveEventThreatDetectionCustomModule - value) { - if (effectiveEventThreatDetectionCustomModulesBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureEffectiveEventThreatDetectionCustomModulesIsMutable(); - effectiveEventThreatDetectionCustomModules_.add(value); - onChanged(); - } else { - effectiveEventThreatDetectionCustomModulesBuilder_.addMessage(value); - } - return this; - } - /** - * - * - *
-     * The list of EffectiveEventThreatDetectionCustomModules
-     * 
- * - * - * repeated .google.cloud.securitycentermanagement.v1.EffectiveEventThreatDetectionCustomModule effective_event_threat_detection_custom_modules = 1; - * - */ - public Builder addEffectiveEventThreatDetectionCustomModules( - int index, - com.google.cloud.securitycentermanagement.v1.EffectiveEventThreatDetectionCustomModule - value) { - if (effectiveEventThreatDetectionCustomModulesBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureEffectiveEventThreatDetectionCustomModulesIsMutable(); - effectiveEventThreatDetectionCustomModules_.add(index, value); - onChanged(); - } else { - effectiveEventThreatDetectionCustomModulesBuilder_.addMessage(index, value); - } - return this; - } - /** - * - * - *
-     * The list of EffectiveEventThreatDetectionCustomModules
-     * 
- * - * - * repeated .google.cloud.securitycentermanagement.v1.EffectiveEventThreatDetectionCustomModule effective_event_threat_detection_custom_modules = 1; - * - */ - public Builder addEffectiveEventThreatDetectionCustomModules( - com.google.cloud.securitycentermanagement.v1.EffectiveEventThreatDetectionCustomModule - .Builder - builderForValue) { - if (effectiveEventThreatDetectionCustomModulesBuilder_ == null) { - ensureEffectiveEventThreatDetectionCustomModulesIsMutable(); - effectiveEventThreatDetectionCustomModules_.add(builderForValue.build()); - onChanged(); - } else { - effectiveEventThreatDetectionCustomModulesBuilder_.addMessage(builderForValue.build()); - } - return this; - } - /** - * - * - *
-     * The list of EffectiveEventThreatDetectionCustomModules
-     * 
- * - * - * repeated .google.cloud.securitycentermanagement.v1.EffectiveEventThreatDetectionCustomModule effective_event_threat_detection_custom_modules = 1; - * - */ - public Builder addEffectiveEventThreatDetectionCustomModules( - int index, - com.google.cloud.securitycentermanagement.v1.EffectiveEventThreatDetectionCustomModule - .Builder - builderForValue) { - if (effectiveEventThreatDetectionCustomModulesBuilder_ == null) { - ensureEffectiveEventThreatDetectionCustomModulesIsMutable(); - effectiveEventThreatDetectionCustomModules_.add(index, builderForValue.build()); - onChanged(); - } else { - effectiveEventThreatDetectionCustomModulesBuilder_.addMessage( - index, builderForValue.build()); - } - return this; - } - /** - * - * - *
-     * The list of EffectiveEventThreatDetectionCustomModules
-     * 
- * - * - * repeated .google.cloud.securitycentermanagement.v1.EffectiveEventThreatDetectionCustomModule effective_event_threat_detection_custom_modules = 1; - * - */ - public Builder addAllEffectiveEventThreatDetectionCustomModules( - java.lang.Iterable< - ? extends - com.google.cloud.securitycentermanagement.v1 - .EffectiveEventThreatDetectionCustomModule> - values) { - if (effectiveEventThreatDetectionCustomModulesBuilder_ == null) { - ensureEffectiveEventThreatDetectionCustomModulesIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, effectiveEventThreatDetectionCustomModules_); - onChanged(); - } else { - effectiveEventThreatDetectionCustomModulesBuilder_.addAllMessages(values); - } - return this; - } - /** - * - * - *
-     * The list of EffectiveEventThreatDetectionCustomModules
-     * 
- * - * - * repeated .google.cloud.securitycentermanagement.v1.EffectiveEventThreatDetectionCustomModule effective_event_threat_detection_custom_modules = 1; - * - */ - public Builder clearEffectiveEventThreatDetectionCustomModules() { - if (effectiveEventThreatDetectionCustomModulesBuilder_ == null) { - effectiveEventThreatDetectionCustomModules_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000001); - onChanged(); - } else { - effectiveEventThreatDetectionCustomModulesBuilder_.clear(); - } - return this; - } - /** - * - * - *
-     * The list of EffectiveEventThreatDetectionCustomModules
-     * 
- * - * - * repeated .google.cloud.securitycentermanagement.v1.EffectiveEventThreatDetectionCustomModule effective_event_threat_detection_custom_modules = 1; - * - */ - public Builder removeEffectiveEventThreatDetectionCustomModules(int index) { - if (effectiveEventThreatDetectionCustomModulesBuilder_ == null) { - ensureEffectiveEventThreatDetectionCustomModulesIsMutable(); - effectiveEventThreatDetectionCustomModules_.remove(index); - onChanged(); - } else { - effectiveEventThreatDetectionCustomModulesBuilder_.remove(index); - } - return this; - } - /** - * - * - *
-     * The list of EffectiveEventThreatDetectionCustomModules
-     * 
- * - * - * repeated .google.cloud.securitycentermanagement.v1.EffectiveEventThreatDetectionCustomModule effective_event_threat_detection_custom_modules = 1; - * - */ - public com.google.cloud.securitycentermanagement.v1.EffectiveEventThreatDetectionCustomModule - .Builder - getEffectiveEventThreatDetectionCustomModulesBuilder(int index) { - return getEffectiveEventThreatDetectionCustomModulesFieldBuilder().getBuilder(index); - } - /** - * - * - *
-     * The list of EffectiveEventThreatDetectionCustomModules
-     * 
- * - * - * repeated .google.cloud.securitycentermanagement.v1.EffectiveEventThreatDetectionCustomModule effective_event_threat_detection_custom_modules = 1; - * - */ - public com.google.cloud.securitycentermanagement.v1 - .EffectiveEventThreatDetectionCustomModuleOrBuilder - getEffectiveEventThreatDetectionCustomModulesOrBuilder(int index) { - if (effectiveEventThreatDetectionCustomModulesBuilder_ == null) { - return effectiveEventThreatDetectionCustomModules_.get(index); - } else { - return effectiveEventThreatDetectionCustomModulesBuilder_.getMessageOrBuilder(index); - } - } - /** - * - * - *
-     * The list of EffectiveEventThreatDetectionCustomModules
-     * 
- * - * - * repeated .google.cloud.securitycentermanagement.v1.EffectiveEventThreatDetectionCustomModule effective_event_threat_detection_custom_modules = 1; - * - */ - public java.util.List< - ? extends - com.google.cloud.securitycentermanagement.v1 - .EffectiveEventThreatDetectionCustomModuleOrBuilder> - getEffectiveEventThreatDetectionCustomModulesOrBuilderList() { - if (effectiveEventThreatDetectionCustomModulesBuilder_ != null) { - return effectiveEventThreatDetectionCustomModulesBuilder_.getMessageOrBuilderList(); - } else { - return java.util.Collections.unmodifiableList(effectiveEventThreatDetectionCustomModules_); - } - } - /** - * - * - *
-     * The list of EffectiveEventThreatDetectionCustomModules
-     * 
- * - * - * repeated .google.cloud.securitycentermanagement.v1.EffectiveEventThreatDetectionCustomModule effective_event_threat_detection_custom_modules = 1; - * - */ - public com.google.cloud.securitycentermanagement.v1.EffectiveEventThreatDetectionCustomModule - .Builder - addEffectiveEventThreatDetectionCustomModulesBuilder() { - return getEffectiveEventThreatDetectionCustomModulesFieldBuilder() - .addBuilder( - com.google.cloud.securitycentermanagement.v1.EffectiveEventThreatDetectionCustomModule - .getDefaultInstance()); - } - /** - * - * - *
-     * The list of EffectiveEventThreatDetectionCustomModules
-     * 
- * - * - * repeated .google.cloud.securitycentermanagement.v1.EffectiveEventThreatDetectionCustomModule effective_event_threat_detection_custom_modules = 1; - * - */ - public com.google.cloud.securitycentermanagement.v1.EffectiveEventThreatDetectionCustomModule - .Builder - addEffectiveEventThreatDetectionCustomModulesBuilder(int index) { - return getEffectiveEventThreatDetectionCustomModulesFieldBuilder() - .addBuilder( - index, - com.google.cloud.securitycentermanagement.v1.EffectiveEventThreatDetectionCustomModule - .getDefaultInstance()); - } - /** - * - * - *
-     * The list of EffectiveEventThreatDetectionCustomModules
-     * 
- * - * - * repeated .google.cloud.securitycentermanagement.v1.EffectiveEventThreatDetectionCustomModule effective_event_threat_detection_custom_modules = 1; - * - */ - public java.util.List< - com.google.cloud.securitycentermanagement.v1.EffectiveEventThreatDetectionCustomModule - .Builder> - getEffectiveEventThreatDetectionCustomModulesBuilderList() { - return getEffectiveEventThreatDetectionCustomModulesFieldBuilder().getBuilderList(); - } - - private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.securitycentermanagement.v1.EffectiveEventThreatDetectionCustomModule, - com.google.cloud.securitycentermanagement.v1.EffectiveEventThreatDetectionCustomModule - .Builder, - com.google.cloud.securitycentermanagement.v1 - .EffectiveEventThreatDetectionCustomModuleOrBuilder> - getEffectiveEventThreatDetectionCustomModulesFieldBuilder() { - if (effectiveEventThreatDetectionCustomModulesBuilder_ == null) { - effectiveEventThreatDetectionCustomModulesBuilder_ = - new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.securitycentermanagement.v1 - .EffectiveEventThreatDetectionCustomModule, - com.google.cloud.securitycentermanagement.v1 - .EffectiveEventThreatDetectionCustomModule.Builder, - com.google.cloud.securitycentermanagement.v1 - .EffectiveEventThreatDetectionCustomModuleOrBuilder>( - effectiveEventThreatDetectionCustomModules_, - ((bitField0_ & 0x00000001) != 0), - getParentForChildren(), - isClean()); - effectiveEventThreatDetectionCustomModules_ = null; - } - return effectiveEventThreatDetectionCustomModulesBuilder_; - } - - private java.lang.Object nextPageToken_ = ""; - /** - * - * - *
-     * A token identifying a page of results the server should return.
-     * 
- * - * 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; - java.lang.String s = bs.toStringUtf8(); - nextPageToken_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * - * - *
-     * A token identifying a page of results the server should return.
-     * 
- * - * string next_page_token = 2; - * - * @return The bytes for nextPageToken. - */ - 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); - nextPageToken_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * - * - *
-     * A token identifying a page of results the server should return.
-     * 
- * - * 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(); - } - nextPageToken_ = value; - bitField0_ |= 0x00000002; - onChanged(); - return this; - } - /** - * - * - *
-     * A token identifying a page of results the server should return.
-     * 
- * - * string next_page_token = 2; - * - * @return This builder for chaining. - */ - public Builder clearNextPageToken() { - nextPageToken_ = getDefaultInstance().getNextPageToken(); - bitField0_ = (bitField0_ & ~0x00000002); - onChanged(); - return this; - } - /** - * - * - *
-     * A token identifying a page of results the server should return.
-     * 
- * - * 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(); - } - checkByteStringIsUtf8(value); - nextPageToken_ = value; - bitField0_ |= 0x00000002; - onChanged(); - return this; - } - - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - // @@protoc_insertion_point(builder_scope:google.cloud.securitycentermanagement.v1.ListEffectiveEventThreatDetectionCustomModulesResponse) - } - - // @@protoc_insertion_point(class_scope:google.cloud.securitycentermanagement.v1.ListEffectiveEventThreatDetectionCustomModulesResponse) - private static final com.google.cloud.securitycentermanagement.v1 - .ListEffectiveEventThreatDetectionCustomModulesResponse - DEFAULT_INSTANCE; - - static { - DEFAULT_INSTANCE = - new com.google.cloud.securitycentermanagement.v1 - .ListEffectiveEventThreatDetectionCustomModulesResponse(); - } - - public static com.google.cloud.securitycentermanagement.v1 - .ListEffectiveEventThreatDetectionCustomModulesResponse - getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser< - ListEffectiveEventThreatDetectionCustomModulesResponse> - PARSER = - new com.google.protobuf.AbstractParser< - ListEffectiveEventThreatDetectionCustomModulesResponse>() { - @java.lang.Override - public ListEffectiveEventThreatDetectionCustomModulesResponse parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException() - .setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; - - public static com.google.protobuf.Parser - parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser - getParserForType() { - return PARSER; - } - - @java.lang.Override - public com.google.cloud.securitycentermanagement.v1 - .ListEffectiveEventThreatDetectionCustomModulesResponse - getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } -} diff --git a/java-securitycentermanagement/proto-google-cloud-securitycentermanagement-v1/src/main/java/com/google/cloud/securitycentermanagement/v1/ListEffectiveEventThreatDetectionCustomModulesResponseOrBuilder.java b/java-securitycentermanagement/proto-google-cloud-securitycentermanagement-v1/src/main/java/com/google/cloud/securitycentermanagement/v1/ListEffectiveEventThreatDetectionCustomModulesResponseOrBuilder.java deleted file mode 100644 index 85de2d9cd5e3..000000000000 --- a/java-securitycentermanagement/proto-google-cloud-securitycentermanagement-v1/src/main/java/com/google/cloud/securitycentermanagement/v1/ListEffectiveEventThreatDetectionCustomModulesResponseOrBuilder.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/securitycentermanagement/v1/security_center_management.proto - -package com.google.cloud.securitycentermanagement.v1; - -public interface ListEffectiveEventThreatDetectionCustomModulesResponseOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.cloud.securitycentermanagement.v1.ListEffectiveEventThreatDetectionCustomModulesResponse) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
-   * The list of EffectiveEventThreatDetectionCustomModules
-   * 
- * - * - * repeated .google.cloud.securitycentermanagement.v1.EffectiveEventThreatDetectionCustomModule effective_event_threat_detection_custom_modules = 1; - * - */ - java.util.List< - com.google.cloud.securitycentermanagement.v1.EffectiveEventThreatDetectionCustomModule> - getEffectiveEventThreatDetectionCustomModulesList(); - /** - * - * - *
-   * The list of EffectiveEventThreatDetectionCustomModules
-   * 
- * - * - * repeated .google.cloud.securitycentermanagement.v1.EffectiveEventThreatDetectionCustomModule effective_event_threat_detection_custom_modules = 1; - * - */ - com.google.cloud.securitycentermanagement.v1.EffectiveEventThreatDetectionCustomModule - getEffectiveEventThreatDetectionCustomModules(int index); - /** - * - * - *
-   * The list of EffectiveEventThreatDetectionCustomModules
-   * 
- * - * - * repeated .google.cloud.securitycentermanagement.v1.EffectiveEventThreatDetectionCustomModule effective_event_threat_detection_custom_modules = 1; - * - */ - int getEffectiveEventThreatDetectionCustomModulesCount(); - /** - * - * - *
-   * The list of EffectiveEventThreatDetectionCustomModules
-   * 
- * - * - * repeated .google.cloud.securitycentermanagement.v1.EffectiveEventThreatDetectionCustomModule effective_event_threat_detection_custom_modules = 1; - * - */ - java.util.List< - ? extends - com.google.cloud.securitycentermanagement.v1 - .EffectiveEventThreatDetectionCustomModuleOrBuilder> - getEffectiveEventThreatDetectionCustomModulesOrBuilderList(); - /** - * - * - *
-   * The list of EffectiveEventThreatDetectionCustomModules
-   * 
- * - * - * repeated .google.cloud.securitycentermanagement.v1.EffectiveEventThreatDetectionCustomModule effective_event_threat_detection_custom_modules = 1; - * - */ - com.google.cloud.securitycentermanagement.v1.EffectiveEventThreatDetectionCustomModuleOrBuilder - getEffectiveEventThreatDetectionCustomModulesOrBuilder(int index); - - /** - * - * - *
-   * A token identifying a page of results the server should return.
-   * 
- * - * string next_page_token = 2; - * - * @return The nextPageToken. - */ - java.lang.String getNextPageToken(); - /** - * - * - *
-   * A token identifying a page of results the server should return.
-   * 
- * - * string next_page_token = 2; - * - * @return The bytes for nextPageToken. - */ - com.google.protobuf.ByteString getNextPageTokenBytes(); -} diff --git a/java-securitycentermanagement/proto-google-cloud-securitycentermanagement-v1/src/main/java/com/google/cloud/securitycentermanagement/v1/ListEffectiveSecurityHealthAnalyticsCustomModulesResponse.java b/java-securitycentermanagement/proto-google-cloud-securitycentermanagement-v1/src/main/java/com/google/cloud/securitycentermanagement/v1/ListEffectiveSecurityHealthAnalyticsCustomModulesResponse.java deleted file mode 100644 index 39f481c32323..000000000000 --- a/java-securitycentermanagement/proto-google-cloud-securitycentermanagement-v1/src/main/java/com/google/cloud/securitycentermanagement/v1/ListEffectiveSecurityHealthAnalyticsCustomModulesResponse.java +++ /dev/null @@ -1,1337 +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/securitycentermanagement/v1/security_center_management.proto - -package com.google.cloud.securitycentermanagement.v1; - -/** - * - * - *
- * Response message for listing effective Security Health Analytics custom
- * modules.
- * 
- * - * Protobuf type {@code - * google.cloud.securitycentermanagement.v1.ListEffectiveSecurityHealthAnalyticsCustomModulesResponse} - */ -public final class ListEffectiveSecurityHealthAnalyticsCustomModulesResponse - extends com.google.protobuf.GeneratedMessageV3 - implements - // @@protoc_insertion_point(message_implements:google.cloud.securitycentermanagement.v1.ListEffectiveSecurityHealthAnalyticsCustomModulesResponse) - ListEffectiveSecurityHealthAnalyticsCustomModulesResponseOrBuilder { - private static final long serialVersionUID = 0L; - // Use ListEffectiveSecurityHealthAnalyticsCustomModulesResponse.newBuilder() to construct. - private ListEffectiveSecurityHealthAnalyticsCustomModulesResponse( - com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - - private ListEffectiveSecurityHealthAnalyticsCustomModulesResponse() { - effectiveSecurityHealthAnalyticsCustomModules_ = java.util.Collections.emptyList(); - nextPageToken_ = ""; - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { - return new ListEffectiveSecurityHealthAnalyticsCustomModulesResponse(); - } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.securitycentermanagement.v1.SecurityCenterManagementProto - .internal_static_google_cloud_securitycentermanagement_v1_ListEffectiveSecurityHealthAnalyticsCustomModulesResponse_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.securitycentermanagement.v1.SecurityCenterManagementProto - .internal_static_google_cloud_securitycentermanagement_v1_ListEffectiveSecurityHealthAnalyticsCustomModulesResponse_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.securitycentermanagement.v1 - .ListEffectiveSecurityHealthAnalyticsCustomModulesResponse.class, - com.google.cloud.securitycentermanagement.v1 - .ListEffectiveSecurityHealthAnalyticsCustomModulesResponse.Builder.class); - } - - public static final int EFFECTIVE_SECURITY_HEALTH_ANALYTICS_CUSTOM_MODULES_FIELD_NUMBER = 1; - - @SuppressWarnings("serial") - private java.util.List< - com.google.cloud.securitycentermanagement.v1.EffectiveSecurityHealthAnalyticsCustomModule> - effectiveSecurityHealthAnalyticsCustomModules_; - /** - * - * - *
-   * The list of EffectiveSecurityHealthAnalyticsCustomModule
-   * 
- * - * - * repeated .google.cloud.securitycentermanagement.v1.EffectiveSecurityHealthAnalyticsCustomModule effective_security_health_analytics_custom_modules = 1; - * - */ - @java.lang.Override - public java.util.List< - com.google.cloud.securitycentermanagement.v1.EffectiveSecurityHealthAnalyticsCustomModule> - getEffectiveSecurityHealthAnalyticsCustomModulesList() { - return effectiveSecurityHealthAnalyticsCustomModules_; - } - /** - * - * - *
-   * The list of EffectiveSecurityHealthAnalyticsCustomModule
-   * 
- * - * - * repeated .google.cloud.securitycentermanagement.v1.EffectiveSecurityHealthAnalyticsCustomModule effective_security_health_analytics_custom_modules = 1; - * - */ - @java.lang.Override - public java.util.List< - ? extends - com.google.cloud.securitycentermanagement.v1 - .EffectiveSecurityHealthAnalyticsCustomModuleOrBuilder> - getEffectiveSecurityHealthAnalyticsCustomModulesOrBuilderList() { - return effectiveSecurityHealthAnalyticsCustomModules_; - } - /** - * - * - *
-   * The list of EffectiveSecurityHealthAnalyticsCustomModule
-   * 
- * - * - * repeated .google.cloud.securitycentermanagement.v1.EffectiveSecurityHealthAnalyticsCustomModule effective_security_health_analytics_custom_modules = 1; - * - */ - @java.lang.Override - public int getEffectiveSecurityHealthAnalyticsCustomModulesCount() { - return effectiveSecurityHealthAnalyticsCustomModules_.size(); - } - /** - * - * - *
-   * The list of EffectiveSecurityHealthAnalyticsCustomModule
-   * 
- * - * - * repeated .google.cloud.securitycentermanagement.v1.EffectiveSecurityHealthAnalyticsCustomModule effective_security_health_analytics_custom_modules = 1; - * - */ - @java.lang.Override - public com.google.cloud.securitycentermanagement.v1.EffectiveSecurityHealthAnalyticsCustomModule - getEffectiveSecurityHealthAnalyticsCustomModules(int index) { - return effectiveSecurityHealthAnalyticsCustomModules_.get(index); - } - /** - * - * - *
-   * The list of EffectiveSecurityHealthAnalyticsCustomModule
-   * 
- * - * - * repeated .google.cloud.securitycentermanagement.v1.EffectiveSecurityHealthAnalyticsCustomModule effective_security_health_analytics_custom_modules = 1; - * - */ - @java.lang.Override - public com.google.cloud.securitycentermanagement.v1 - .EffectiveSecurityHealthAnalyticsCustomModuleOrBuilder - getEffectiveSecurityHealthAnalyticsCustomModulesOrBuilder(int index) { - return effectiveSecurityHealthAnalyticsCustomModules_.get(index); - } - - public static final int NEXT_PAGE_TOKEN_FIELD_NUMBER = 2; - - @SuppressWarnings("serial") - private volatile java.lang.Object nextPageToken_ = ""; - /** - * - * - *
-   * A token identifying a page of results the server should return.
-   * 
- * - * string next_page_token = 2; - * - * @return The nextPageToken. - */ - @java.lang.Override - public java.lang.String getNextPageToken() { - java.lang.Object ref = nextPageToken_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - nextPageToken_ = s; - return s; - } - } - /** - * - * - *
-   * A token identifying a page of results the server should return.
-   * 
- * - * string next_page_token = 2; - * - * @return The bytes for nextPageToken. - */ - @java.lang.Override - 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); - nextPageToken_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - private byte memoizedIsInitialized = -1; - - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - for (int i = 0; i < effectiveSecurityHealthAnalyticsCustomModules_.size(); i++) { - output.writeMessage(1, effectiveSecurityHealthAnalyticsCustomModules_.get(i)); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(nextPageToken_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 2, nextPageToken_); - } - getUnknownFields().writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - for (int i = 0; i < effectiveSecurityHealthAnalyticsCustomModules_.size(); i++) { - size += - com.google.protobuf.CodedOutputStream.computeMessageSize( - 1, effectiveSecurityHealthAnalyticsCustomModules_.get(i)); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(nextPageToken_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, nextPageToken_); - } - size += getUnknownFields().getSerializedSize(); - memoizedSize = size; - return size; - } - - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj - instanceof - com.google.cloud.securitycentermanagement.v1 - .ListEffectiveSecurityHealthAnalyticsCustomModulesResponse)) { - return super.equals(obj); - } - com.google.cloud.securitycentermanagement.v1 - .ListEffectiveSecurityHealthAnalyticsCustomModulesResponse - other = - (com.google.cloud.securitycentermanagement.v1 - .ListEffectiveSecurityHealthAnalyticsCustomModulesResponse) - obj; - - if (!getEffectiveSecurityHealthAnalyticsCustomModulesList() - .equals(other.getEffectiveSecurityHealthAnalyticsCustomModulesList())) return false; - if (!getNextPageToken().equals(other.getNextPageToken())) return false; - if (!getUnknownFields().equals(other.getUnknownFields())) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - if (getEffectiveSecurityHealthAnalyticsCustomModulesCount() > 0) { - hash = (37 * hash) + EFFECTIVE_SECURITY_HEALTH_ANALYTICS_CUSTOM_MODULES_FIELD_NUMBER; - hash = (53 * hash) + getEffectiveSecurityHealthAnalyticsCustomModulesList().hashCode(); - } - hash = (37 * hash) + NEXT_PAGE_TOKEN_FIELD_NUMBER; - hash = (53 * hash) + getNextPageToken().hashCode(); - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static com.google.cloud.securitycentermanagement.v1 - .ListEffectiveSecurityHealthAnalyticsCustomModulesResponse - parseFrom(java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.securitycentermanagement.v1 - .ListEffectiveSecurityHealthAnalyticsCustomModulesResponse - 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.securitycentermanagement.v1 - .ListEffectiveSecurityHealthAnalyticsCustomModulesResponse - parseFrom(com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.securitycentermanagement.v1 - .ListEffectiveSecurityHealthAnalyticsCustomModulesResponse - parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.securitycentermanagement.v1 - .ListEffectiveSecurityHealthAnalyticsCustomModulesResponse - parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.securitycentermanagement.v1 - .ListEffectiveSecurityHealthAnalyticsCustomModulesResponse - parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.securitycentermanagement.v1 - .ListEffectiveSecurityHealthAnalyticsCustomModulesResponse - parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.cloud.securitycentermanagement.v1 - .ListEffectiveSecurityHealthAnalyticsCustomModulesResponse - 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.securitycentermanagement.v1 - .ListEffectiveSecurityHealthAnalyticsCustomModulesResponse - parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); - } - - public static com.google.cloud.securitycentermanagement.v1 - .ListEffectiveSecurityHealthAnalyticsCustomModulesResponse - parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); - } - - public static com.google.cloud.securitycentermanagement.v1 - .ListEffectiveSecurityHealthAnalyticsCustomModulesResponse - parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.cloud.securitycentermanagement.v1 - .ListEffectiveSecurityHealthAnalyticsCustomModulesResponse - 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.securitycentermanagement.v1 - .ListEffectiveSecurityHealthAnalyticsCustomModulesResponse - prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - * - * - *
-   * Response message for listing effective Security Health Analytics custom
-   * modules.
-   * 
- * - * Protobuf type {@code - * google.cloud.securitycentermanagement.v1.ListEffectiveSecurityHealthAnalyticsCustomModulesResponse} - */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements - // @@protoc_insertion_point(builder_implements:google.cloud.securitycentermanagement.v1.ListEffectiveSecurityHealthAnalyticsCustomModulesResponse) - com.google.cloud.securitycentermanagement.v1 - .ListEffectiveSecurityHealthAnalyticsCustomModulesResponseOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.securitycentermanagement.v1.SecurityCenterManagementProto - .internal_static_google_cloud_securitycentermanagement_v1_ListEffectiveSecurityHealthAnalyticsCustomModulesResponse_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.securitycentermanagement.v1.SecurityCenterManagementProto - .internal_static_google_cloud_securitycentermanagement_v1_ListEffectiveSecurityHealthAnalyticsCustomModulesResponse_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.securitycentermanagement.v1 - .ListEffectiveSecurityHealthAnalyticsCustomModulesResponse.class, - com.google.cloud.securitycentermanagement.v1 - .ListEffectiveSecurityHealthAnalyticsCustomModulesResponse.Builder.class); - } - - // Construct using - // com.google.cloud.securitycentermanagement.v1.ListEffectiveSecurityHealthAnalyticsCustomModulesResponse.newBuilder() - private Builder() {} - - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - } - - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - if (effectiveSecurityHealthAnalyticsCustomModulesBuilder_ == null) { - effectiveSecurityHealthAnalyticsCustomModules_ = java.util.Collections.emptyList(); - } else { - effectiveSecurityHealthAnalyticsCustomModules_ = null; - effectiveSecurityHealthAnalyticsCustomModulesBuilder_.clear(); - } - bitField0_ = (bitField0_ & ~0x00000001); - nextPageToken_ = ""; - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.securitycentermanagement.v1.SecurityCenterManagementProto - .internal_static_google_cloud_securitycentermanagement_v1_ListEffectiveSecurityHealthAnalyticsCustomModulesResponse_descriptor; - } - - @java.lang.Override - public com.google.cloud.securitycentermanagement.v1 - .ListEffectiveSecurityHealthAnalyticsCustomModulesResponse - getDefaultInstanceForType() { - return com.google.cloud.securitycentermanagement.v1 - .ListEffectiveSecurityHealthAnalyticsCustomModulesResponse.getDefaultInstance(); - } - - @java.lang.Override - public com.google.cloud.securitycentermanagement.v1 - .ListEffectiveSecurityHealthAnalyticsCustomModulesResponse - build() { - com.google.cloud.securitycentermanagement.v1 - .ListEffectiveSecurityHealthAnalyticsCustomModulesResponse - result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.cloud.securitycentermanagement.v1 - .ListEffectiveSecurityHealthAnalyticsCustomModulesResponse - buildPartial() { - com.google.cloud.securitycentermanagement.v1 - .ListEffectiveSecurityHealthAnalyticsCustomModulesResponse - result = - new com.google.cloud.securitycentermanagement.v1 - .ListEffectiveSecurityHealthAnalyticsCustomModulesResponse(this); - buildPartialRepeatedFields(result); - if (bitField0_ != 0) { - buildPartial0(result); - } - onBuilt(); - return result; - } - - private void buildPartialRepeatedFields( - com.google.cloud.securitycentermanagement.v1 - .ListEffectiveSecurityHealthAnalyticsCustomModulesResponse - result) { - if (effectiveSecurityHealthAnalyticsCustomModulesBuilder_ == null) { - if (((bitField0_ & 0x00000001) != 0)) { - effectiveSecurityHealthAnalyticsCustomModules_ = - java.util.Collections.unmodifiableList( - effectiveSecurityHealthAnalyticsCustomModules_); - bitField0_ = (bitField0_ & ~0x00000001); - } - result.effectiveSecurityHealthAnalyticsCustomModules_ = - effectiveSecurityHealthAnalyticsCustomModules_; - } else { - result.effectiveSecurityHealthAnalyticsCustomModules_ = - effectiveSecurityHealthAnalyticsCustomModulesBuilder_.build(); - } - } - - private void buildPartial0( - com.google.cloud.securitycentermanagement.v1 - .ListEffectiveSecurityHealthAnalyticsCustomModulesResponse - result) { - int from_bitField0_ = bitField0_; - if (((from_bitField0_ & 0x00000002) != 0)) { - result.nextPageToken_ = nextPageToken_; - } - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.setField(field, value); - } - - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.addRepeatedField(field, value); - } - - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other - instanceof - com.google.cloud.securitycentermanagement.v1 - .ListEffectiveSecurityHealthAnalyticsCustomModulesResponse) { - return mergeFrom( - (com.google.cloud.securitycentermanagement.v1 - .ListEffectiveSecurityHealthAnalyticsCustomModulesResponse) - other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom( - com.google.cloud.securitycentermanagement.v1 - .ListEffectiveSecurityHealthAnalyticsCustomModulesResponse - other) { - if (other - == com.google.cloud.securitycentermanagement.v1 - .ListEffectiveSecurityHealthAnalyticsCustomModulesResponse.getDefaultInstance()) - return this; - if (effectiveSecurityHealthAnalyticsCustomModulesBuilder_ == null) { - if (!other.effectiveSecurityHealthAnalyticsCustomModules_.isEmpty()) { - if (effectiveSecurityHealthAnalyticsCustomModules_.isEmpty()) { - effectiveSecurityHealthAnalyticsCustomModules_ = - other.effectiveSecurityHealthAnalyticsCustomModules_; - bitField0_ = (bitField0_ & ~0x00000001); - } else { - ensureEffectiveSecurityHealthAnalyticsCustomModulesIsMutable(); - effectiveSecurityHealthAnalyticsCustomModules_.addAll( - other.effectiveSecurityHealthAnalyticsCustomModules_); - } - onChanged(); - } - } else { - if (!other.effectiveSecurityHealthAnalyticsCustomModules_.isEmpty()) { - if (effectiveSecurityHealthAnalyticsCustomModulesBuilder_.isEmpty()) { - effectiveSecurityHealthAnalyticsCustomModulesBuilder_.dispose(); - effectiveSecurityHealthAnalyticsCustomModulesBuilder_ = null; - effectiveSecurityHealthAnalyticsCustomModules_ = - other.effectiveSecurityHealthAnalyticsCustomModules_; - bitField0_ = (bitField0_ & ~0x00000001); - effectiveSecurityHealthAnalyticsCustomModulesBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders - ? getEffectiveSecurityHealthAnalyticsCustomModulesFieldBuilder() - : null; - } else { - effectiveSecurityHealthAnalyticsCustomModulesBuilder_.addAllMessages( - other.effectiveSecurityHealthAnalyticsCustomModules_); - } - } - } - if (!other.getNextPageToken().isEmpty()) { - nextPageToken_ = other.nextPageToken_; - bitField0_ |= 0x00000002; - onChanged(); - } - this.mergeUnknownFields(other.getUnknownFields()); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: - { - com.google.cloud.securitycentermanagement.v1 - .EffectiveSecurityHealthAnalyticsCustomModule - m = - input.readMessage( - com.google.cloud.securitycentermanagement.v1 - .EffectiveSecurityHealthAnalyticsCustomModule.parser(), - extensionRegistry); - if (effectiveSecurityHealthAnalyticsCustomModulesBuilder_ == null) { - ensureEffectiveSecurityHealthAnalyticsCustomModulesIsMutable(); - effectiveSecurityHealthAnalyticsCustomModules_.add(m); - } else { - effectiveSecurityHealthAnalyticsCustomModulesBuilder_.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) { - throw e.unwrapIOException(); - } finally { - onChanged(); - } // finally - return this; - } - - private int bitField0_; - - private java.util.List< - com.google.cloud.securitycentermanagement.v1 - .EffectiveSecurityHealthAnalyticsCustomModule> - effectiveSecurityHealthAnalyticsCustomModules_ = java.util.Collections.emptyList(); - - private void ensureEffectiveSecurityHealthAnalyticsCustomModulesIsMutable() { - if (!((bitField0_ & 0x00000001) != 0)) { - effectiveSecurityHealthAnalyticsCustomModules_ = - new java.util.ArrayList< - com.google.cloud.securitycentermanagement.v1 - .EffectiveSecurityHealthAnalyticsCustomModule>( - effectiveSecurityHealthAnalyticsCustomModules_); - bitField0_ |= 0x00000001; - } - } - - private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.securitycentermanagement.v1 - .EffectiveSecurityHealthAnalyticsCustomModule, - com.google.cloud.securitycentermanagement.v1 - .EffectiveSecurityHealthAnalyticsCustomModule.Builder, - com.google.cloud.securitycentermanagement.v1 - .EffectiveSecurityHealthAnalyticsCustomModuleOrBuilder> - effectiveSecurityHealthAnalyticsCustomModulesBuilder_; - - /** - * - * - *
-     * The list of EffectiveSecurityHealthAnalyticsCustomModule
-     * 
- * - * - * repeated .google.cloud.securitycentermanagement.v1.EffectiveSecurityHealthAnalyticsCustomModule effective_security_health_analytics_custom_modules = 1; - * - */ - public java.util.List< - com.google.cloud.securitycentermanagement.v1 - .EffectiveSecurityHealthAnalyticsCustomModule> - getEffectiveSecurityHealthAnalyticsCustomModulesList() { - if (effectiveSecurityHealthAnalyticsCustomModulesBuilder_ == null) { - return java.util.Collections.unmodifiableList( - effectiveSecurityHealthAnalyticsCustomModules_); - } else { - return effectiveSecurityHealthAnalyticsCustomModulesBuilder_.getMessageList(); - } - } - /** - * - * - *
-     * The list of EffectiveSecurityHealthAnalyticsCustomModule
-     * 
- * - * - * repeated .google.cloud.securitycentermanagement.v1.EffectiveSecurityHealthAnalyticsCustomModule effective_security_health_analytics_custom_modules = 1; - * - */ - public int getEffectiveSecurityHealthAnalyticsCustomModulesCount() { - if (effectiveSecurityHealthAnalyticsCustomModulesBuilder_ == null) { - return effectiveSecurityHealthAnalyticsCustomModules_.size(); - } else { - return effectiveSecurityHealthAnalyticsCustomModulesBuilder_.getCount(); - } - } - /** - * - * - *
-     * The list of EffectiveSecurityHealthAnalyticsCustomModule
-     * 
- * - * - * repeated .google.cloud.securitycentermanagement.v1.EffectiveSecurityHealthAnalyticsCustomModule effective_security_health_analytics_custom_modules = 1; - * - */ - public com.google.cloud.securitycentermanagement.v1.EffectiveSecurityHealthAnalyticsCustomModule - getEffectiveSecurityHealthAnalyticsCustomModules(int index) { - if (effectiveSecurityHealthAnalyticsCustomModulesBuilder_ == null) { - return effectiveSecurityHealthAnalyticsCustomModules_.get(index); - } else { - return effectiveSecurityHealthAnalyticsCustomModulesBuilder_.getMessage(index); - } - } - /** - * - * - *
-     * The list of EffectiveSecurityHealthAnalyticsCustomModule
-     * 
- * - * - * repeated .google.cloud.securitycentermanagement.v1.EffectiveSecurityHealthAnalyticsCustomModule effective_security_health_analytics_custom_modules = 1; - * - */ - public Builder setEffectiveSecurityHealthAnalyticsCustomModules( - int index, - com.google.cloud.securitycentermanagement.v1.EffectiveSecurityHealthAnalyticsCustomModule - value) { - if (effectiveSecurityHealthAnalyticsCustomModulesBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureEffectiveSecurityHealthAnalyticsCustomModulesIsMutable(); - effectiveSecurityHealthAnalyticsCustomModules_.set(index, value); - onChanged(); - } else { - effectiveSecurityHealthAnalyticsCustomModulesBuilder_.setMessage(index, value); - } - return this; - } - /** - * - * - *
-     * The list of EffectiveSecurityHealthAnalyticsCustomModule
-     * 
- * - * - * repeated .google.cloud.securitycentermanagement.v1.EffectiveSecurityHealthAnalyticsCustomModule effective_security_health_analytics_custom_modules = 1; - * - */ - public Builder setEffectiveSecurityHealthAnalyticsCustomModules( - int index, - com.google.cloud.securitycentermanagement.v1.EffectiveSecurityHealthAnalyticsCustomModule - .Builder - builderForValue) { - if (effectiveSecurityHealthAnalyticsCustomModulesBuilder_ == null) { - ensureEffectiveSecurityHealthAnalyticsCustomModulesIsMutable(); - effectiveSecurityHealthAnalyticsCustomModules_.set(index, builderForValue.build()); - onChanged(); - } else { - effectiveSecurityHealthAnalyticsCustomModulesBuilder_.setMessage( - index, builderForValue.build()); - } - return this; - } - /** - * - * - *
-     * The list of EffectiveSecurityHealthAnalyticsCustomModule
-     * 
- * - * - * repeated .google.cloud.securitycentermanagement.v1.EffectiveSecurityHealthAnalyticsCustomModule effective_security_health_analytics_custom_modules = 1; - * - */ - public Builder addEffectiveSecurityHealthAnalyticsCustomModules( - com.google.cloud.securitycentermanagement.v1.EffectiveSecurityHealthAnalyticsCustomModule - value) { - if (effectiveSecurityHealthAnalyticsCustomModulesBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureEffectiveSecurityHealthAnalyticsCustomModulesIsMutable(); - effectiveSecurityHealthAnalyticsCustomModules_.add(value); - onChanged(); - } else { - effectiveSecurityHealthAnalyticsCustomModulesBuilder_.addMessage(value); - } - return this; - } - /** - * - * - *
-     * The list of EffectiveSecurityHealthAnalyticsCustomModule
-     * 
- * - * - * repeated .google.cloud.securitycentermanagement.v1.EffectiveSecurityHealthAnalyticsCustomModule effective_security_health_analytics_custom_modules = 1; - * - */ - public Builder addEffectiveSecurityHealthAnalyticsCustomModules( - int index, - com.google.cloud.securitycentermanagement.v1.EffectiveSecurityHealthAnalyticsCustomModule - value) { - if (effectiveSecurityHealthAnalyticsCustomModulesBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureEffectiveSecurityHealthAnalyticsCustomModulesIsMutable(); - effectiveSecurityHealthAnalyticsCustomModules_.add(index, value); - onChanged(); - } else { - effectiveSecurityHealthAnalyticsCustomModulesBuilder_.addMessage(index, value); - } - return this; - } - /** - * - * - *
-     * The list of EffectiveSecurityHealthAnalyticsCustomModule
-     * 
- * - * - * repeated .google.cloud.securitycentermanagement.v1.EffectiveSecurityHealthAnalyticsCustomModule effective_security_health_analytics_custom_modules = 1; - * - */ - public Builder addEffectiveSecurityHealthAnalyticsCustomModules( - com.google.cloud.securitycentermanagement.v1.EffectiveSecurityHealthAnalyticsCustomModule - .Builder - builderForValue) { - if (effectiveSecurityHealthAnalyticsCustomModulesBuilder_ == null) { - ensureEffectiveSecurityHealthAnalyticsCustomModulesIsMutable(); - effectiveSecurityHealthAnalyticsCustomModules_.add(builderForValue.build()); - onChanged(); - } else { - effectiveSecurityHealthAnalyticsCustomModulesBuilder_.addMessage(builderForValue.build()); - } - return this; - } - /** - * - * - *
-     * The list of EffectiveSecurityHealthAnalyticsCustomModule
-     * 
- * - * - * repeated .google.cloud.securitycentermanagement.v1.EffectiveSecurityHealthAnalyticsCustomModule effective_security_health_analytics_custom_modules = 1; - * - */ - public Builder addEffectiveSecurityHealthAnalyticsCustomModules( - int index, - com.google.cloud.securitycentermanagement.v1.EffectiveSecurityHealthAnalyticsCustomModule - .Builder - builderForValue) { - if (effectiveSecurityHealthAnalyticsCustomModulesBuilder_ == null) { - ensureEffectiveSecurityHealthAnalyticsCustomModulesIsMutable(); - effectiveSecurityHealthAnalyticsCustomModules_.add(index, builderForValue.build()); - onChanged(); - } else { - effectiveSecurityHealthAnalyticsCustomModulesBuilder_.addMessage( - index, builderForValue.build()); - } - return this; - } - /** - * - * - *
-     * The list of EffectiveSecurityHealthAnalyticsCustomModule
-     * 
- * - * - * repeated .google.cloud.securitycentermanagement.v1.EffectiveSecurityHealthAnalyticsCustomModule effective_security_health_analytics_custom_modules = 1; - * - */ - public Builder addAllEffectiveSecurityHealthAnalyticsCustomModules( - java.lang.Iterable< - ? extends - com.google.cloud.securitycentermanagement.v1 - .EffectiveSecurityHealthAnalyticsCustomModule> - values) { - if (effectiveSecurityHealthAnalyticsCustomModulesBuilder_ == null) { - ensureEffectiveSecurityHealthAnalyticsCustomModulesIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, effectiveSecurityHealthAnalyticsCustomModules_); - onChanged(); - } else { - effectiveSecurityHealthAnalyticsCustomModulesBuilder_.addAllMessages(values); - } - return this; - } - /** - * - * - *
-     * The list of EffectiveSecurityHealthAnalyticsCustomModule
-     * 
- * - * - * repeated .google.cloud.securitycentermanagement.v1.EffectiveSecurityHealthAnalyticsCustomModule effective_security_health_analytics_custom_modules = 1; - * - */ - public Builder clearEffectiveSecurityHealthAnalyticsCustomModules() { - if (effectiveSecurityHealthAnalyticsCustomModulesBuilder_ == null) { - effectiveSecurityHealthAnalyticsCustomModules_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000001); - onChanged(); - } else { - effectiveSecurityHealthAnalyticsCustomModulesBuilder_.clear(); - } - return this; - } - /** - * - * - *
-     * The list of EffectiveSecurityHealthAnalyticsCustomModule
-     * 
- * - * - * repeated .google.cloud.securitycentermanagement.v1.EffectiveSecurityHealthAnalyticsCustomModule effective_security_health_analytics_custom_modules = 1; - * - */ - public Builder removeEffectiveSecurityHealthAnalyticsCustomModules(int index) { - if (effectiveSecurityHealthAnalyticsCustomModulesBuilder_ == null) { - ensureEffectiveSecurityHealthAnalyticsCustomModulesIsMutable(); - effectiveSecurityHealthAnalyticsCustomModules_.remove(index); - onChanged(); - } else { - effectiveSecurityHealthAnalyticsCustomModulesBuilder_.remove(index); - } - return this; - } - /** - * - * - *
-     * The list of EffectiveSecurityHealthAnalyticsCustomModule
-     * 
- * - * - * repeated .google.cloud.securitycentermanagement.v1.EffectiveSecurityHealthAnalyticsCustomModule effective_security_health_analytics_custom_modules = 1; - * - */ - public com.google.cloud.securitycentermanagement.v1.EffectiveSecurityHealthAnalyticsCustomModule - .Builder - getEffectiveSecurityHealthAnalyticsCustomModulesBuilder(int index) { - return getEffectiveSecurityHealthAnalyticsCustomModulesFieldBuilder().getBuilder(index); - } - /** - * - * - *
-     * The list of EffectiveSecurityHealthAnalyticsCustomModule
-     * 
- * - * - * repeated .google.cloud.securitycentermanagement.v1.EffectiveSecurityHealthAnalyticsCustomModule effective_security_health_analytics_custom_modules = 1; - * - */ - public com.google.cloud.securitycentermanagement.v1 - .EffectiveSecurityHealthAnalyticsCustomModuleOrBuilder - getEffectiveSecurityHealthAnalyticsCustomModulesOrBuilder(int index) { - if (effectiveSecurityHealthAnalyticsCustomModulesBuilder_ == null) { - return effectiveSecurityHealthAnalyticsCustomModules_.get(index); - } else { - return effectiveSecurityHealthAnalyticsCustomModulesBuilder_.getMessageOrBuilder(index); - } - } - /** - * - * - *
-     * The list of EffectiveSecurityHealthAnalyticsCustomModule
-     * 
- * - * - * repeated .google.cloud.securitycentermanagement.v1.EffectiveSecurityHealthAnalyticsCustomModule effective_security_health_analytics_custom_modules = 1; - * - */ - public java.util.List< - ? extends - com.google.cloud.securitycentermanagement.v1 - .EffectiveSecurityHealthAnalyticsCustomModuleOrBuilder> - getEffectiveSecurityHealthAnalyticsCustomModulesOrBuilderList() { - if (effectiveSecurityHealthAnalyticsCustomModulesBuilder_ != null) { - return effectiveSecurityHealthAnalyticsCustomModulesBuilder_.getMessageOrBuilderList(); - } else { - return java.util.Collections.unmodifiableList( - effectiveSecurityHealthAnalyticsCustomModules_); - } - } - /** - * - * - *
-     * The list of EffectiveSecurityHealthAnalyticsCustomModule
-     * 
- * - * - * repeated .google.cloud.securitycentermanagement.v1.EffectiveSecurityHealthAnalyticsCustomModule effective_security_health_analytics_custom_modules = 1; - * - */ - public com.google.cloud.securitycentermanagement.v1.EffectiveSecurityHealthAnalyticsCustomModule - .Builder - addEffectiveSecurityHealthAnalyticsCustomModulesBuilder() { - return getEffectiveSecurityHealthAnalyticsCustomModulesFieldBuilder() - .addBuilder( - com.google.cloud.securitycentermanagement.v1 - .EffectiveSecurityHealthAnalyticsCustomModule.getDefaultInstance()); - } - /** - * - * - *
-     * The list of EffectiveSecurityHealthAnalyticsCustomModule
-     * 
- * - * - * repeated .google.cloud.securitycentermanagement.v1.EffectiveSecurityHealthAnalyticsCustomModule effective_security_health_analytics_custom_modules = 1; - * - */ - public com.google.cloud.securitycentermanagement.v1.EffectiveSecurityHealthAnalyticsCustomModule - .Builder - addEffectiveSecurityHealthAnalyticsCustomModulesBuilder(int index) { - return getEffectiveSecurityHealthAnalyticsCustomModulesFieldBuilder() - .addBuilder( - index, - com.google.cloud.securitycentermanagement.v1 - .EffectiveSecurityHealthAnalyticsCustomModule.getDefaultInstance()); - } - /** - * - * - *
-     * The list of EffectiveSecurityHealthAnalyticsCustomModule
-     * 
- * - * - * repeated .google.cloud.securitycentermanagement.v1.EffectiveSecurityHealthAnalyticsCustomModule effective_security_health_analytics_custom_modules = 1; - * - */ - public java.util.List< - com.google.cloud.securitycentermanagement.v1 - .EffectiveSecurityHealthAnalyticsCustomModule.Builder> - getEffectiveSecurityHealthAnalyticsCustomModulesBuilderList() { - return getEffectiveSecurityHealthAnalyticsCustomModulesFieldBuilder().getBuilderList(); - } - - private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.securitycentermanagement.v1 - .EffectiveSecurityHealthAnalyticsCustomModule, - com.google.cloud.securitycentermanagement.v1 - .EffectiveSecurityHealthAnalyticsCustomModule.Builder, - com.google.cloud.securitycentermanagement.v1 - .EffectiveSecurityHealthAnalyticsCustomModuleOrBuilder> - getEffectiveSecurityHealthAnalyticsCustomModulesFieldBuilder() { - if (effectiveSecurityHealthAnalyticsCustomModulesBuilder_ == null) { - effectiveSecurityHealthAnalyticsCustomModulesBuilder_ = - new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.securitycentermanagement.v1 - .EffectiveSecurityHealthAnalyticsCustomModule, - com.google.cloud.securitycentermanagement.v1 - .EffectiveSecurityHealthAnalyticsCustomModule.Builder, - com.google.cloud.securitycentermanagement.v1 - .EffectiveSecurityHealthAnalyticsCustomModuleOrBuilder>( - effectiveSecurityHealthAnalyticsCustomModules_, - ((bitField0_ & 0x00000001) != 0), - getParentForChildren(), - isClean()); - effectiveSecurityHealthAnalyticsCustomModules_ = null; - } - return effectiveSecurityHealthAnalyticsCustomModulesBuilder_; - } - - private java.lang.Object nextPageToken_ = ""; - /** - * - * - *
-     * A token identifying a page of results the server should return.
-     * 
- * - * 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; - java.lang.String s = bs.toStringUtf8(); - nextPageToken_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * - * - *
-     * A token identifying a page of results the server should return.
-     * 
- * - * string next_page_token = 2; - * - * @return The bytes for nextPageToken. - */ - 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); - nextPageToken_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * - * - *
-     * A token identifying a page of results the server should return.
-     * 
- * - * 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(); - } - nextPageToken_ = value; - bitField0_ |= 0x00000002; - onChanged(); - return this; - } - /** - * - * - *
-     * A token identifying a page of results the server should return.
-     * 
- * - * string next_page_token = 2; - * - * @return This builder for chaining. - */ - public Builder clearNextPageToken() { - nextPageToken_ = getDefaultInstance().getNextPageToken(); - bitField0_ = (bitField0_ & ~0x00000002); - onChanged(); - return this; - } - /** - * - * - *
-     * A token identifying a page of results the server should return.
-     * 
- * - * 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(); - } - checkByteStringIsUtf8(value); - nextPageToken_ = value; - bitField0_ |= 0x00000002; - onChanged(); - return this; - } - - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - // @@protoc_insertion_point(builder_scope:google.cloud.securitycentermanagement.v1.ListEffectiveSecurityHealthAnalyticsCustomModulesResponse) - } - - // @@protoc_insertion_point(class_scope:google.cloud.securitycentermanagement.v1.ListEffectiveSecurityHealthAnalyticsCustomModulesResponse) - private static final com.google.cloud.securitycentermanagement.v1 - .ListEffectiveSecurityHealthAnalyticsCustomModulesResponse - DEFAULT_INSTANCE; - - static { - DEFAULT_INSTANCE = - new com.google.cloud.securitycentermanagement.v1 - .ListEffectiveSecurityHealthAnalyticsCustomModulesResponse(); - } - - public static com.google.cloud.securitycentermanagement.v1 - .ListEffectiveSecurityHealthAnalyticsCustomModulesResponse - getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser< - ListEffectiveSecurityHealthAnalyticsCustomModulesResponse> - PARSER = - new com.google.protobuf.AbstractParser< - ListEffectiveSecurityHealthAnalyticsCustomModulesResponse>() { - @java.lang.Override - public ListEffectiveSecurityHealthAnalyticsCustomModulesResponse parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException() - .setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; - - public static com.google.protobuf.Parser< - ListEffectiveSecurityHealthAnalyticsCustomModulesResponse> - parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser - getParserForType() { - return PARSER; - } - - @java.lang.Override - public com.google.cloud.securitycentermanagement.v1 - .ListEffectiveSecurityHealthAnalyticsCustomModulesResponse - getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } -} diff --git a/java-securitycentermanagement/proto-google-cloud-securitycentermanagement-v1/src/main/java/com/google/cloud/securitycentermanagement/v1/ListEffectiveSecurityHealthAnalyticsCustomModulesResponseOrBuilder.java b/java-securitycentermanagement/proto-google-cloud-securitycentermanagement-v1/src/main/java/com/google/cloud/securitycentermanagement/v1/ListEffectiveSecurityHealthAnalyticsCustomModulesResponseOrBuilder.java deleted file mode 100644 index 58543b1a27f1..000000000000 --- a/java-securitycentermanagement/proto-google-cloud-securitycentermanagement-v1/src/main/java/com/google/cloud/securitycentermanagement/v1/ListEffectiveSecurityHealthAnalyticsCustomModulesResponseOrBuilder.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/securitycentermanagement/v1/security_center_management.proto - -package com.google.cloud.securitycentermanagement.v1; - -public interface ListEffectiveSecurityHealthAnalyticsCustomModulesResponseOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.cloud.securitycentermanagement.v1.ListEffectiveSecurityHealthAnalyticsCustomModulesResponse) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
-   * The list of EffectiveSecurityHealthAnalyticsCustomModule
-   * 
- * - * - * repeated .google.cloud.securitycentermanagement.v1.EffectiveSecurityHealthAnalyticsCustomModule effective_security_health_analytics_custom_modules = 1; - * - */ - java.util.List< - com.google.cloud.securitycentermanagement.v1.EffectiveSecurityHealthAnalyticsCustomModule> - getEffectiveSecurityHealthAnalyticsCustomModulesList(); - /** - * - * - *
-   * The list of EffectiveSecurityHealthAnalyticsCustomModule
-   * 
- * - * - * repeated .google.cloud.securitycentermanagement.v1.EffectiveSecurityHealthAnalyticsCustomModule effective_security_health_analytics_custom_modules = 1; - * - */ - com.google.cloud.securitycentermanagement.v1.EffectiveSecurityHealthAnalyticsCustomModule - getEffectiveSecurityHealthAnalyticsCustomModules(int index); - /** - * - * - *
-   * The list of EffectiveSecurityHealthAnalyticsCustomModule
-   * 
- * - * - * repeated .google.cloud.securitycentermanagement.v1.EffectiveSecurityHealthAnalyticsCustomModule effective_security_health_analytics_custom_modules = 1; - * - */ - int getEffectiveSecurityHealthAnalyticsCustomModulesCount(); - /** - * - * - *
-   * The list of EffectiveSecurityHealthAnalyticsCustomModule
-   * 
- * - * - * repeated .google.cloud.securitycentermanagement.v1.EffectiveSecurityHealthAnalyticsCustomModule effective_security_health_analytics_custom_modules = 1; - * - */ - java.util.List< - ? extends - com.google.cloud.securitycentermanagement.v1 - .EffectiveSecurityHealthAnalyticsCustomModuleOrBuilder> - getEffectiveSecurityHealthAnalyticsCustomModulesOrBuilderList(); - /** - * - * - *
-   * The list of EffectiveSecurityHealthAnalyticsCustomModule
-   * 
- * - * - * repeated .google.cloud.securitycentermanagement.v1.EffectiveSecurityHealthAnalyticsCustomModule effective_security_health_analytics_custom_modules = 1; - * - */ - com.google.cloud.securitycentermanagement.v1.EffectiveSecurityHealthAnalyticsCustomModuleOrBuilder - getEffectiveSecurityHealthAnalyticsCustomModulesOrBuilder(int index); - - /** - * - * - *
-   * A token identifying a page of results the server should return.
-   * 
- * - * string next_page_token = 2; - * - * @return The nextPageToken. - */ - java.lang.String getNextPageToken(); - /** - * - * - *
-   * A token identifying a page of results the server should return.
-   * 
- * - * string next_page_token = 2; - * - * @return The bytes for nextPageToken. - */ - com.google.protobuf.ByteString getNextPageTokenBytes(); -} diff --git a/java-securitycentermanagement/proto-google-cloud-securitycentermanagement-v1/src/main/java/com/google/cloud/securitycentermanagement/v1/ListEventThreatDetectionCustomModulesResponseOrBuilder.java b/java-securitycentermanagement/proto-google-cloud-securitycentermanagement-v1/src/main/java/com/google/cloud/securitycentermanagement/v1/ListEventThreatDetectionCustomModulesResponseOrBuilder.java deleted file mode 100644 index 1e8d1abe21e9..000000000000 --- a/java-securitycentermanagement/proto-google-cloud-securitycentermanagement-v1/src/main/java/com/google/cloud/securitycentermanagement/v1/ListEventThreatDetectionCustomModulesResponseOrBuilder.java +++ /dev/null @@ -1,118 +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/securitycentermanagement/v1/security_center_management.proto - -package com.google.cloud.securitycentermanagement.v1; - -public interface ListEventThreatDetectionCustomModulesResponseOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.cloud.securitycentermanagement.v1.ListEventThreatDetectionCustomModulesResponse) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
-   * The list of EventThreatDetectionCustomModules
-   * 
- * - * - * repeated .google.cloud.securitycentermanagement.v1.EventThreatDetectionCustomModule event_threat_detection_custom_modules = 1; - * - */ - java.util.List - getEventThreatDetectionCustomModulesList(); - /** - * - * - *
-   * The list of EventThreatDetectionCustomModules
-   * 
- * - * - * repeated .google.cloud.securitycentermanagement.v1.EventThreatDetectionCustomModule event_threat_detection_custom_modules = 1; - * - */ - com.google.cloud.securitycentermanagement.v1.EventThreatDetectionCustomModule - getEventThreatDetectionCustomModules(int index); - /** - * - * - *
-   * The list of EventThreatDetectionCustomModules
-   * 
- * - * - * repeated .google.cloud.securitycentermanagement.v1.EventThreatDetectionCustomModule event_threat_detection_custom_modules = 1; - * - */ - int getEventThreatDetectionCustomModulesCount(); - /** - * - * - *
-   * The list of EventThreatDetectionCustomModules
-   * 
- * - * - * repeated .google.cloud.securitycentermanagement.v1.EventThreatDetectionCustomModule event_threat_detection_custom_modules = 1; - * - */ - java.util.List< - ? extends - com.google.cloud.securitycentermanagement.v1 - .EventThreatDetectionCustomModuleOrBuilder> - getEventThreatDetectionCustomModulesOrBuilderList(); - /** - * - * - *
-   * The list of EventThreatDetectionCustomModules
-   * 
- * - * - * repeated .google.cloud.securitycentermanagement.v1.EventThreatDetectionCustomModule event_threat_detection_custom_modules = 1; - * - */ - com.google.cloud.securitycentermanagement.v1.EventThreatDetectionCustomModuleOrBuilder - getEventThreatDetectionCustomModulesOrBuilder(int index); - - /** - * - * - *
-   * A token identifying a page of results the server should return.
-   * 
- * - * string next_page_token = 2; - * - * @return The nextPageToken. - */ - java.lang.String getNextPageToken(); - /** - * - * - *
-   * A token identifying a page of results the server should return.
-   * 
- * - * string next_page_token = 2; - * - * @return The bytes for nextPageToken. - */ - com.google.protobuf.ByteString getNextPageTokenBytes(); -} diff --git a/java-securitycentermanagement/proto-google-cloud-securitycentermanagement-v1/src/main/java/com/google/cloud/securitycentermanagement/v1/ListSecurityHealthAnalyticsCustomModulesResponseOrBuilder.java b/java-securitycentermanagement/proto-google-cloud-securitycentermanagement-v1/src/main/java/com/google/cloud/securitycentermanagement/v1/ListSecurityHealthAnalyticsCustomModulesResponseOrBuilder.java deleted file mode 100644 index ec091e535608..000000000000 --- a/java-securitycentermanagement/proto-google-cloud-securitycentermanagement-v1/src/main/java/com/google/cloud/securitycentermanagement/v1/ListSecurityHealthAnalyticsCustomModulesResponseOrBuilder.java +++ /dev/null @@ -1,118 +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/securitycentermanagement/v1/security_center_management.proto - -package com.google.cloud.securitycentermanagement.v1; - -public interface ListSecurityHealthAnalyticsCustomModulesResponseOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.cloud.securitycentermanagement.v1.ListSecurityHealthAnalyticsCustomModulesResponse) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
-   * The list of SecurityHealthAnalyticsCustomModules
-   * 
- * - * - * repeated .google.cloud.securitycentermanagement.v1.SecurityHealthAnalyticsCustomModule security_health_analytics_custom_modules = 1; - * - */ - java.util.List - getSecurityHealthAnalyticsCustomModulesList(); - /** - * - * - *
-   * The list of SecurityHealthAnalyticsCustomModules
-   * 
- * - * - * repeated .google.cloud.securitycentermanagement.v1.SecurityHealthAnalyticsCustomModule security_health_analytics_custom_modules = 1; - * - */ - com.google.cloud.securitycentermanagement.v1.SecurityHealthAnalyticsCustomModule - getSecurityHealthAnalyticsCustomModules(int index); - /** - * - * - *
-   * The list of SecurityHealthAnalyticsCustomModules
-   * 
- * - * - * repeated .google.cloud.securitycentermanagement.v1.SecurityHealthAnalyticsCustomModule security_health_analytics_custom_modules = 1; - * - */ - int getSecurityHealthAnalyticsCustomModulesCount(); - /** - * - * - *
-   * The list of SecurityHealthAnalyticsCustomModules
-   * 
- * - * - * repeated .google.cloud.securitycentermanagement.v1.SecurityHealthAnalyticsCustomModule security_health_analytics_custom_modules = 1; - * - */ - java.util.List< - ? extends - com.google.cloud.securitycentermanagement.v1 - .SecurityHealthAnalyticsCustomModuleOrBuilder> - getSecurityHealthAnalyticsCustomModulesOrBuilderList(); - /** - * - * - *
-   * The list of SecurityHealthAnalyticsCustomModules
-   * 
- * - * - * repeated .google.cloud.securitycentermanagement.v1.SecurityHealthAnalyticsCustomModule security_health_analytics_custom_modules = 1; - * - */ - com.google.cloud.securitycentermanagement.v1.SecurityHealthAnalyticsCustomModuleOrBuilder - getSecurityHealthAnalyticsCustomModulesOrBuilder(int index); - - /** - * - * - *
-   * A token identifying a page of results the server should return.
-   * 
- * - * string next_page_token = 2; - * - * @return The nextPageToken. - */ - java.lang.String getNextPageToken(); - /** - * - * - *
-   * A token identifying a page of results the server should return.
-   * 
- * - * string next_page_token = 2; - * - * @return The bytes for nextPageToken. - */ - com.google.protobuf.ByteString getNextPageTokenBytes(); -} diff --git a/java-securitycentermanagement/proto-google-cloud-securitycentermanagement-v1/src/main/java/com/google/cloud/securitycentermanagement/v1/SecurityCenterManagementProto.java b/java-securitycentermanagement/proto-google-cloud-securitycentermanagement-v1/src/main/java/com/google/cloud/securitycentermanagement/v1/SecurityCenterManagementProto.java deleted file mode 100644 index c175b3265206..000000000000 --- a/java-securitycentermanagement/proto-google-cloud-securitycentermanagement-v1/src/main/java/com/google/cloud/securitycentermanagement/v1/SecurityCenterManagementProto.java +++ /dev/null @@ -1,1181 +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/securitycentermanagement/v1/security_center_management.proto - -package com.google.cloud.securitycentermanagement.v1; - -public final class SecurityCenterManagementProto { - private SecurityCenterManagementProto() {} - - 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_securitycentermanagement_v1_EffectiveSecurityHealthAnalyticsCustomModule_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_securitycentermanagement_v1_EffectiveSecurityHealthAnalyticsCustomModule_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_securitycentermanagement_v1_ListEffectiveSecurityHealthAnalyticsCustomModulesRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_securitycentermanagement_v1_ListEffectiveSecurityHealthAnalyticsCustomModulesRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_securitycentermanagement_v1_ListEffectiveSecurityHealthAnalyticsCustomModulesResponse_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_securitycentermanagement_v1_ListEffectiveSecurityHealthAnalyticsCustomModulesResponse_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_securitycentermanagement_v1_GetEffectiveSecurityHealthAnalyticsCustomModuleRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_securitycentermanagement_v1_GetEffectiveSecurityHealthAnalyticsCustomModuleRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_securitycentermanagement_v1_SecurityHealthAnalyticsCustomModule_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_securitycentermanagement_v1_SecurityHealthAnalyticsCustomModule_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_securitycentermanagement_v1_CustomConfig_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_securitycentermanagement_v1_CustomConfig_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_securitycentermanagement_v1_CustomConfig_CustomOutputSpec_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_securitycentermanagement_v1_CustomConfig_CustomOutputSpec_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_securitycentermanagement_v1_CustomConfig_CustomOutputSpec_Property_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_securitycentermanagement_v1_CustomConfig_CustomOutputSpec_Property_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_securitycentermanagement_v1_CustomConfig_ResourceSelector_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_securitycentermanagement_v1_CustomConfig_ResourceSelector_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_securitycentermanagement_v1_ListSecurityHealthAnalyticsCustomModulesRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_securitycentermanagement_v1_ListSecurityHealthAnalyticsCustomModulesRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_securitycentermanagement_v1_ListSecurityHealthAnalyticsCustomModulesResponse_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_securitycentermanagement_v1_ListSecurityHealthAnalyticsCustomModulesResponse_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_securitycentermanagement_v1_ListDescendantSecurityHealthAnalyticsCustomModulesRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_securitycentermanagement_v1_ListDescendantSecurityHealthAnalyticsCustomModulesRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_securitycentermanagement_v1_ListDescendantSecurityHealthAnalyticsCustomModulesResponse_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_securitycentermanagement_v1_ListDescendantSecurityHealthAnalyticsCustomModulesResponse_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_securitycentermanagement_v1_GetSecurityHealthAnalyticsCustomModuleRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_securitycentermanagement_v1_GetSecurityHealthAnalyticsCustomModuleRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_securitycentermanagement_v1_CreateSecurityHealthAnalyticsCustomModuleRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_securitycentermanagement_v1_CreateSecurityHealthAnalyticsCustomModuleRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_securitycentermanagement_v1_UpdateSecurityHealthAnalyticsCustomModuleRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_securitycentermanagement_v1_UpdateSecurityHealthAnalyticsCustomModuleRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_securitycentermanagement_v1_DeleteSecurityHealthAnalyticsCustomModuleRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_securitycentermanagement_v1_DeleteSecurityHealthAnalyticsCustomModuleRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_securitycentermanagement_v1_SimulateSecurityHealthAnalyticsCustomModuleRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_securitycentermanagement_v1_SimulateSecurityHealthAnalyticsCustomModuleRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_securitycentermanagement_v1_SimulateSecurityHealthAnalyticsCustomModuleRequest_SimulatedResource_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_securitycentermanagement_v1_SimulateSecurityHealthAnalyticsCustomModuleRequest_SimulatedResource_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_securitycentermanagement_v1_SimulatedFinding_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_securitycentermanagement_v1_SimulatedFinding_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_securitycentermanagement_v1_SimulatedFinding_SourcePropertiesEntry_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_securitycentermanagement_v1_SimulatedFinding_SourcePropertiesEntry_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_securitycentermanagement_v1_SimulateSecurityHealthAnalyticsCustomModuleResponse_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_securitycentermanagement_v1_SimulateSecurityHealthAnalyticsCustomModuleResponse_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_securitycentermanagement_v1_SimulateSecurityHealthAnalyticsCustomModuleResponse_SimulatedResult_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_securitycentermanagement_v1_SimulateSecurityHealthAnalyticsCustomModuleResponse_SimulatedResult_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_securitycentermanagement_v1_EffectiveEventThreatDetectionCustomModule_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_securitycentermanagement_v1_EffectiveEventThreatDetectionCustomModule_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_securitycentermanagement_v1_ListEffectiveEventThreatDetectionCustomModulesRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_securitycentermanagement_v1_ListEffectiveEventThreatDetectionCustomModulesRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_securitycentermanagement_v1_ListEffectiveEventThreatDetectionCustomModulesResponse_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_securitycentermanagement_v1_ListEffectiveEventThreatDetectionCustomModulesResponse_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_securitycentermanagement_v1_GetEffectiveEventThreatDetectionCustomModuleRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_securitycentermanagement_v1_GetEffectiveEventThreatDetectionCustomModuleRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_securitycentermanagement_v1_EventThreatDetectionCustomModule_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_securitycentermanagement_v1_EventThreatDetectionCustomModule_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_securitycentermanagement_v1_ListEventThreatDetectionCustomModulesRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_securitycentermanagement_v1_ListEventThreatDetectionCustomModulesRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_securitycentermanagement_v1_ListEventThreatDetectionCustomModulesResponse_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_securitycentermanagement_v1_ListEventThreatDetectionCustomModulesResponse_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_securitycentermanagement_v1_ListDescendantEventThreatDetectionCustomModulesRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_securitycentermanagement_v1_ListDescendantEventThreatDetectionCustomModulesRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_securitycentermanagement_v1_ListDescendantEventThreatDetectionCustomModulesResponse_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_securitycentermanagement_v1_ListDescendantEventThreatDetectionCustomModulesResponse_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_securitycentermanagement_v1_GetEventThreatDetectionCustomModuleRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_securitycentermanagement_v1_GetEventThreatDetectionCustomModuleRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_securitycentermanagement_v1_CreateEventThreatDetectionCustomModuleRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_securitycentermanagement_v1_CreateEventThreatDetectionCustomModuleRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_securitycentermanagement_v1_UpdateEventThreatDetectionCustomModuleRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_securitycentermanagement_v1_UpdateEventThreatDetectionCustomModuleRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_securitycentermanagement_v1_DeleteEventThreatDetectionCustomModuleRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_securitycentermanagement_v1_DeleteEventThreatDetectionCustomModuleRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_securitycentermanagement_v1_ValidateEventThreatDetectionCustomModuleRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_securitycentermanagement_v1_ValidateEventThreatDetectionCustomModuleRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_securitycentermanagement_v1_ValidateEventThreatDetectionCustomModuleResponse_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_securitycentermanagement_v1_ValidateEventThreatDetectionCustomModuleResponse_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_securitycentermanagement_v1_ValidateEventThreatDetectionCustomModuleResponse_CustomModuleValidationError_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_securitycentermanagement_v1_ValidateEventThreatDetectionCustomModuleResponse_CustomModuleValidationError_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_securitycentermanagement_v1_ValidateEventThreatDetectionCustomModuleResponse_Position_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_securitycentermanagement_v1_ValidateEventThreatDetectionCustomModuleResponse_Position_fieldAccessorTable; - - public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { - return descriptor; - } - - private static com.google.protobuf.Descriptors.FileDescriptor descriptor; - - static { - java.lang.String[] descriptorData = { - "\nIgoogle/cloud/securitycentermanagement/" - + "v1/security_center_management.proto\022(goo" - + "gle.cloud.securitycentermanagement.v1\032\034g" - + "oogle/api/annotations.proto\032\027google/api/" - + "client.proto\032\037google/api/field_behavior." - + "proto\032\031google/api/resource.proto\032\032google" - + "/iam/v1/policy.proto\032\033google/protobuf/em" - + "pty.proto\032 google/protobuf/field_mask.pr" - + "oto\032\034google/protobuf/struct.proto\032\037googl" - + "e/protobuf/timestamp.proto\032\027google/rpc/s" - + "tatus.proto\032\026google/type/expr.proto\"\362\007\n," - + "EffectiveSecurityHealthAnalyticsCustomMo" - + "dule\022\022\n\004name\030\001 \001(\tB\004\342A\001\003\022S\n\rcustom_confi" - + "g\030\002 \001(\01326.google.cloud.securitycenterman" - + "agement.v1.CustomConfigB\004\342A\001\003\022\206\001\n\020enable" - + "ment_state\030\003 \001(\0162f.google.cloud.security" - + "centermanagement.v1.EffectiveSecurityHea" - + "lthAnalyticsCustomModule.EnablementState" - + "B\004\342A\001\003\022\032\n\014display_name\030\004 \001(\tB\004\342A\001\003\"N\n\017En" - + "ablementState\022 \n\034ENABLEMENT_STATE_UNSPEC" - + "IFIED\020\000\022\013\n\007ENABLED\020\001\022\014\n\010DISABLED\020\002:\343\004\352A\337" - + "\004\nTsecuritycentermanagement.googleapis.c" - + "om/EffectiveSecurityHealthAnalyticsCusto" - + "mModule\022\223\001organizations/{organization}/l" - + "ocations/{location}/effectiveSecurityHea" - + "lthAnalyticsCustomModules/{effective_sec" - + "urity_health_analytics_custom_module}\022\211\001" - + "projects/{project}/locations/{location}/" - + "effectiveSecurityHealthAnalyticsCustomMo" - + "dules/{effective_security_health_analyti" - + "cs_custom_module}\022\207\001folders/{folder}/loc" - + "ations/{location}/effectiveSecurityHealt" - + "hAnalyticsCustomModules/{effective_secur" - + "ity_health_analytics_custom_module}*-eff" - + "ectiveSecurityHealthAnalyticsCustomModul" - + "es2,effectiveSecurityHealthAnalyticsCust" - + "omModule\"\334\001\n8ListEffectiveSecurityHealth" - + "AnalyticsCustomModulesRequest\022m\n\006parent\030" - + "\001 \001(\tB]\342A\001\002\372AV\022Tsecuritycentermanagement" - + ".googleapis.com/EffectiveSecurityHealthA" - + "nalyticsCustomModule\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\"\351\001\n9List" - + "EffectiveSecurityHealthAnalyticsCustomMo" - + "dulesResponse\022\222\001\n2effective_security_hea" - + "lth_analytics_custom_modules\030\001 \003(\0132V.goo" - + "gle.cloud.securitycentermanagement.v1.Ef" - + "fectiveSecurityHealthAnalyticsCustomModu" - + "le\022\027\n\017next_page_token\030\002 \001(\t\"\245\001\n6GetEffec" - + "tiveSecurityHealthAnalyticsCustomModuleR" - + "equest\022k\n\004name\030\001 \001(\tB]\342A\001\002\372AV\nTsecurityc" - + "entermanagement.googleapis.com/Effective" - + "SecurityHealthAnalyticsCustomModule\"\331\010\n#" - + "SecurityHealthAnalyticsCustomModule\022\022\n\004n" - + "ame\030\001 \001(\tB\004\342A\001\005\022\032\n\014display_name\030\002 \001(\tB\004\342" - + "A\001\001\022}\n\020enablement_state\030\003 \001(\0162].google.c" - + "loud.securitycentermanagement.v1.Securit" - + "yHealthAnalyticsCustomModule.EnablementS" - + "tateB\004\342A\001\001\0225\n\013update_time\030\004 \001(\0132\032.google" - + ".protobuf.TimestampB\004\342A\001\003\022\031\n\013last_editor" - + "\030\005 \001(\tB\004\342A\001\003\022m\n\017ancestor_module\030\006 \001(\tBT\342" - + "A\001\003\372AM\nKsecuritycentermanagement.googlea" - + "pis.com/SecurityHealthAnalyticsCustomMod" - + "ule\022S\n\rcustom_config\030\007 \001(\01326.google.clou" - + "d.securitycentermanagement.v1.CustomConf" - + "igB\004\342A\001\001\"]\n\017EnablementState\022 \n\034ENABLEMEN" - + "T_STATE_UNSPECIFIED\020\000\022\013\n\007ENABLED\020\001\022\014\n\010DI" - + "SABLED\020\002\022\r\n\tINHERITED\020\003:\215\004\352A\211\004\nKsecurity" - + "centermanagement.googleapis.com/Security" - + "HealthAnalyticsCustomModule\022\200\001organizati" - + "ons/{organization}/locations/{location}/" - + "securityHealthAnalyticsCustomModules/{se" - + "curity_health_analytics_custom_module}\022v" - + "projects/{project}/locations/{location}/" - + "securityHealthAnalyticsCustomModules/{se" - + "curity_health_analytics_custom_module}\022t" - + "folders/{folder}/locations/{location}/se" - + "curityHealthAnalyticsCustomModules/{secu" - + "rity_health_analytics_custom_module}*$se" - + "curityHealthAnalyticsCustomModules2#secu" - + "rityHealthAnalyticsCustomModule\"\365\005\n\014Cust" - + "omConfig\022*\n\tpredicate\030\001 \001(\0132\021.google.typ" - + "e.ExprB\004\342A\001\001\022d\n\rcustom_output\030\002 \001(\0132G.go" - + "ogle.cloud.securitycentermanagement.v1.C" - + "ustomConfig.CustomOutputSpecB\004\342A\001\001\022h\n\021re" - + "source_selector\030\003 \001(\0132G.google.cloud.sec" - + "uritycentermanagement.v1.CustomConfig.Re" - + "sourceSelectorB\004\342A\001\001\022W\n\010severity\030\004 \001(\0162?" - + ".google.cloud.securitycentermanagement.v" - + "1.CustomConfig.SeverityB\004\342A\001\001\022\031\n\013descrip" - + "tion\030\005 \001(\tB\004\342A\001\001\022\034\n\016recommendation\030\006 \001(\t" - + "B\004\342A\001\001\032\321\001\n\020CustomOutputSpec\022j\n\npropertie" - + "s\030\001 \003(\0132P.google.cloud.securitycenterman" - + "agement.v1.CustomConfig.CustomOutputSpec" - + ".PropertyB\004\342A\001\001\032Q\n\010Property\022\022\n\004name\030\001 \001(" - + "\tB\004\342A\001\001\0221\n\020value_expression\030\002 \001(\0132\021.goog" - + "le.type.ExprB\004\342A\001\001\0320\n\020ResourceSelector\022\034" - + "\n\016resource_types\030\001 \003(\tB\004\342A\001\001\"Q\n\010Severity" - + "\022\030\n\024SEVERITY_UNSPECIFIED\020\000\022\014\n\010CRITICAL\020\001" - + "\022\010\n\004HIGH\020\002\022\n\n\006MEDIUM\020\003\022\007\n\003LOW\020\004\"\312\001\n/List" - + "SecurityHealthAnalyticsCustomModulesRequ" - + "est\022d\n\006parent\030\001 \001(\tBT\342A\001\002\372AM\022Ksecurityce" - + "ntermanagement.googleapis.com/SecurityHe" - + "althAnalyticsCustomModule\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\"\314\001\n" - + "0ListSecurityHealthAnalyticsCustomModule" - + "sResponse\022\177\n(security_health_analytics_c" - + "ustom_modules\030\001 \003(\0132M.google.cloud.secur" - + "itycentermanagement.v1.SecurityHealthAna" - + "lyticsCustomModule\022\027\n\017next_page_token\030\002 " - + "\001(\t\"\324\001\n9ListDescendantSecurityHealthAnal" - + "yticsCustomModulesRequest\022d\n\006parent\030\001 \001(" - + "\tBT\342A\001\002\372AM\022Ksecuritycentermanagement.goo" - + "gleapis.com/SecurityHealthAnalyticsCusto" - + "mModule\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\"\326\001\n:ListDescendantSec" - + "urityHealthAnalyticsCustomModulesRespons" - + "e\022\177\n(security_health_analytics_custom_mo" - + "dules\030\001 \003(\0132M.google.cloud.securitycente" - + "rmanagement.v1.SecurityHealthAnalyticsCu" - + "stomModule\022\027\n\017next_page_token\030\002 \001(\t\"\223\001\n-" - + "GetSecurityHealthAnalyticsCustomModuleRe" - + "quest\022b\n\004name\030\001 \001(\tBT\342A\001\002\372AM\nKsecurityce" - + "ntermanagement.googleapis.com/SecurityHe" - + "althAnalyticsCustomModule\"\274\002\n0CreateSecu" - + "rityHealthAnalyticsCustomModuleRequest\022d" - + "\n\006parent\030\001 \001(\tBT\342A\001\002\372AM\022Ksecuritycenterm" - + "anagement.googleapis.com/SecurityHealthA" - + "nalyticsCustomModule\022\204\001\n\'security_health" - + "_analytics_custom_module\030\002 \001(\0132M.google." - + "cloud.securitycentermanagement.v1.Securi" - + "tyHealthAnalyticsCustomModuleB\004\342A\001\002\022\033\n\rv" - + "alidate_only\030\003 \001(\010B\004\342A\001\001\"\215\002\n0UpdateSecur" - + "ityHealthAnalyticsCustomModuleRequest\0225\n" - + "\013update_mask\030\001 \001(\0132\032.google.protobuf.Fie" - + "ldMaskB\004\342A\001\002\022\204\001\n\'security_health_analyti" - + "cs_custom_module\030\002 \001(\0132M.google.cloud.se" - + "curitycentermanagement.v1.SecurityHealth" - + "AnalyticsCustomModuleB\004\342A\001\002\022\033\n\rvalidate_" - + "only\030\003 \001(\010B\004\342A\001\001\"\263\001\n0DeleteSecurityHealt" - + "hAnalyticsCustomModuleRequest\022b\n\004name\030\001 " - + "\001(\tBT\342A\001\002\372AM\nKsecuritycentermanagement.g" - + "oogleapis.com/SecurityHealthAnalyticsCus" - + "tomModule\022\033\n\rvalidate_only\030\002 \001(\010B\004\342A\001\001\"\307" - + "\003\n2SimulateSecurityHealthAnalyticsCustom" - + "ModuleRequest\022\024\n\006parent\030\001 \001(\tB\004\342A\001\002\022S\n\rc" - + "ustom_config\030\002 \001(\01326.google.cloud.securi" - + "tycentermanagement.v1.CustomConfigB\004\342A\001\002" - + "\022\206\001\n\010resource\030\003 \001(\0132n.google.cloud.secur" - + "itycentermanagement.v1.SimulateSecurityH" - + "ealthAnalyticsCustomModuleRequest.Simula" - + "tedResourceB\004\342A\001\002\032\234\001\n\021SimulatedResource\022" - + "\033\n\rresource_type\030\001 \001(\tB\004\342A\001\002\0224\n\rresource" - + "_data\030\002 \001(\0132\027.google.protobuf.StructB\004\342A" - + "\001\001\0224\n\017iam_policy_data\030\003 \001(\0132\025.google.iam" - + ".v1.PolicyB\004\342A\001\001\"\365\010\n\020SimulatedFinding\022\022\n" - + "\004name\030\001 \001(\tB\004\342A\001\010\022\016\n\006parent\030\002 \001(\t\022\025\n\rres" - + "ource_name\030\003 \001(\t\022\020\n\010category\030\004 \001(\t\022U\n\005st" - + "ate\030\005 \001(\0162@.google.cloud.securitycenterm" - + "anagement.v1.SimulatedFinding.StateB\004\342A\001" - + "\003\022k\n\021source_properties\030\006 \003(\0132P.google.cl" - + "oud.securitycentermanagement.v1.Simulate" - + "dFinding.SourcePropertiesEntry\022.\n\nevent_" - + "time\030\007 \001(\0132\032.google.protobuf.Timestamp\022U" - + "\n\010severity\030\010 \001(\0162C.google.cloud.security" - + "centermanagement.v1.SimulatedFinding.Sev" - + "erity\022^\n\rfinding_class\030\t \001(\0162G.google.cl" - + "oud.securitycentermanagement.v1.Simulate" - + "dFinding.FindingClass\032O\n\025SourcePropertie" - + "sEntry\022\013\n\003key\030\001 \001(\t\022%\n\005value\030\002 \001(\0132\026.goo" - + "gle.protobuf.Value:\0028\001\"8\n\005State\022\025\n\021STATE" - + "_UNSPECIFIED\020\000\022\n\n\006ACTIVE\020\001\022\014\n\010INACTIVE\020\002" - + "\"Q\n\010Severity\022\030\n\024SEVERITY_UNSPECIFIED\020\000\022\014" - + "\n\010CRITICAL\020\001\022\010\n\004HIGH\020\002\022\n\n\006MEDIUM\020\003\022\007\n\003LO" - + "W\020\004\"\231\001\n\014FindingClass\022\035\n\031FINDING_CLASS_UN" - + "SPECIFIED\020\000\022\n\n\006THREAT\020\001\022\021\n\rVULNERABILITY" - + "\020\002\022\024\n\020MISCONFIGURATION\020\003\022\017\n\013OBSERVATION\020" - + "\004\022\r\n\tSCC_ERROR\020\005\022\025\n\021POSTURE_VIOLATION\020\006:" - + "\356\001\352A\352\001\n%securitycenter.googleapis.com/Fi" - + "nding\022@organizations/{organization}/sour" - + "ces/{source}/findings/{finding}\0224folders" - + "/{folder}/sources/{source}/findings/{fin" - + "ding}\0226projects/{project}/sources/{sourc" - + "e}/findings/{finding}*\010findings2\007finding" - + "\"\366\002\n3SimulateSecurityHealthAnalyticsCust" - + "omModuleResponse\022}\n\006result\030\001 \001(\0132m.googl" - + "e.cloud.securitycentermanagement.v1.Simu" - + "lateSecurityHealthAnalyticsCustomModuleR" - + "esponse.SimulatedResult\032\277\001\n\017SimulatedRes" - + "ult\022M\n\007finding\030\001 \001(\0132:.google.cloud.secu" - + "ritycentermanagement.v1.SimulatedFinding" - + "H\000\022.\n\014no_violation\030\002 \001(\0132\026.google.protob" - + "uf.EmptyH\000\022#\n\005error\030\003 \001(\0132\022.google.rpc.S" - + "tatusH\000B\010\n\006result\"\332\007\n)EffectiveEventThre" - + "atDetectionCustomModule\022\022\n\004name\030\001 \001(\tB\004\342" - + "A\001\005\022-\n\006config\030\002 \001(\0132\027.google.protobuf.St" - + "ructB\004\342A\001\003\022\203\001\n\020enablement_state\030\003 \001(\0162c." - + "google.cloud.securitycentermanagement.v1" - + ".EffectiveEventThreatDetectionCustomModu" - + "le.EnablementStateB\004\342A\001\003\022\022\n\004type\030\004 \001(\tB\004" - + "\342A\001\003\022\032\n\014display_name\030\005 \001(\tB\004\342A\001\003\022\031\n\013desc" - + "ription\030\006 \001(\tB\004\342A\001\003\"N\n\017EnablementState\022 " - + "\n\034ENABLEMENT_STATE_UNSPECIFIED\020\000\022\013\n\007ENAB" - + "LED\020\001\022\014\n\010DISABLED\020\002:\310\004\352A\304\004\nQsecuritycent" - + "ermanagement.googleapis.com/EffectiveEve" - + "ntThreatDetectionCustomModule\022\215\001organiza" - + "tions/{organization}/locations/{location" - + "}/effectiveEventThreatDetectionCustomMod" - + "ules/{effective_event_threat_detection_c" - + "ustom_module}\022\203\001projects/{project}/locat" - + "ions/{location}/effectiveEventThreatDete" - + "ctionCustomModules/{effective_event_thre" - + "at_detection_custom_module}\022\201\001folders/{f" - + "older}/locations/{location}/effectiveEve" - + "ntThreatDetectionCustomModules/{effectiv" - + "e_event_threat_detection_custom_module}*" - + "*effectiveEventThreatDetectionCustomModu" - + "les2)effectiveEventThreatDetectionCustom" - + "Module\"\326\001\n5ListEffectiveEventThreatDetec" - + "tionCustomModulesRequest\022j\n\006parent\030\001 \001(\t" - + "BZ\342A\001\002\372AS\022Qsecuritycentermanagement.goog" - + "leapis.com/EffectiveEventThreatDetection" - + "CustomModule\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\"\340\001\n6ListEffectiv" - + "eEventThreatDetectionCustomModulesRespon" - + "se\022\214\001\n/effective_event_threat_detection_" - + "custom_modules\030\001 \003(\0132S.google.cloud.secu" - + "ritycentermanagement.v1.EffectiveEventTh" - + "reatDetectionCustomModule\022\027\n\017next_page_t" - + "oken\030\002 \001(\t\"\237\001\n3GetEffectiveEventThreatDe" - + "tectionCustomModuleRequest\022h\n\004name\030\001 \001(\t" - + "BZ\342A\001\002\372AS\nQsecuritycentermanagement.goog" - + "leapis.com/EffectiveEventThreatDetection" - + "CustomModule\"\275\010\n EventThreatDetectionCus" - + "tomModule\022\022\n\004name\030\001 \001(\tB\004\342A\001\005\022-\n\006config\030" - + "\002 \001(\0132\027.google.protobuf.StructB\004\342A\001\001\022j\n\017" - + "ancestor_module\030\003 \001(\tBQ\342A\001\003\372AJ\nHsecurity" - + "centermanagement.googleapis.com/EventThr" - + "eatDetectionCustomModule\022z\n\020enablement_s" - + "tate\030\004 \001(\0162Z.google.cloud.securitycenter" - + "management.v1.EventThreatDetectionCustom" - + "Module.EnablementStateB\004\342A\001\001\022\022\n\004type\030\005 \001" - + "(\tB\004\342A\001\001\022\032\n\014display_name\030\006 \001(\tB\004\342A\001\001\022\031\n\013" - + "description\030\007 \001(\tB\004\342A\001\001\0225\n\013update_time\030\010" - + " \001(\0132\032.google.protobuf.TimestampB\004\342A\001\003\022\031" - + "\n\013last_editor\030\t \001(\tB\004\342A\001\003\"]\n\017EnablementS" - + "tate\022 \n\034ENABLEMENT_STATE_UNSPECIFIED\020\000\022\013" - + "\n\007ENABLED\020\001\022\014\n\010DISABLED\020\002\022\r\n\tINHERITED\020\003" - + ":\361\003\352A\355\003\nHsecuritycentermanagement.google" - + "apis.com/EventThreatDetectionCustomModul" - + "e\022zorganizations/{organization}/location" - + "s/{location}/eventThreatDetectionCustomM" - + "odules/{event_threat_detection_custom_mo" - + "dule}\022pprojects/{project}/locations/{loc" - + "ation}/eventThreatDetectionCustomModules" - + "/{event_threat_detection_custom_module}\022" - + "nfolders/{folder}/locations/{location}/e" - + "ventThreatDetectionCustomModules/{event_" - + "threat_detection_custom_module}*!eventTh" - + "reatDetectionCustomModules2 eventThreatD" - + "etectionCustomModule\"\304\001\n,ListEventThreat" - + "DetectionCustomModulesRequest\022a\n\006parent\030" - + "\001 \001(\tBQ\342A\001\002\372AJ\022Hsecuritycentermanagement" - + ".googleapis.com/EventThreatDetectionCust" - + "omModule\022\027\n\tpage_size\030\002 \001(\005B\004\342A\001\001\022\030\n\npag" - + "e_token\030\003 \001(\tB\004\342A\001\001\"\303\001\n-ListEventThreatD" - + "etectionCustomModulesResponse\022y\n%event_t" - + "hreat_detection_custom_modules\030\001 \003(\0132J.g" - + "oogle.cloud.securitycentermanagement.v1." - + "EventThreatDetectionCustomModule\022\027\n\017next" - + "_page_token\030\002 \001(\t\"\316\001\n6ListDescendantEven" - + "tThreatDetectionCustomModulesRequest\022a\n\006" - + "parent\030\001 \001(\tBQ\342A\001\002\372AJ\022Hsecuritycenterman" - + "agement.googleapis.com/EventThreatDetect" - + "ionCustomModule\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\"\315\001\n7ListDesce" - + "ndantEventThreatDetectionCustomModulesRe" - + "sponse\022y\n%event_threat_detection_custom_" - + "modules\030\001 \003(\0132J.google.cloud.securitycen" - + "termanagement.v1.EventThreatDetectionCus" - + "tomModule\022\027\n\017next_page_token\030\002 \001(\t\"\215\001\n*G" - + "etEventThreatDetectionCustomModuleReques" - + "t\022_\n\004name\030\001 \001(\tBQ\342A\001\002\372AJ\nHsecuritycenter" - + "management.googleapis.com/EventThreatDet" - + "ectionCustomModule\"\257\002\n-CreateEventThreat" - + "DetectionCustomModuleRequest\022a\n\006parent\030\001" - + " \001(\tBQ\342A\001\002\372AJ\022Hsecuritycentermanagement." - + "googleapis.com/EventThreatDetectionCusto" - + "mModule\022~\n$event_threat_detection_custom" - + "_module\030\003 \001(\0132J.google.cloud.securitycen" - + "termanagement.v1.EventThreatDetectionCus" - + "tomModuleB\004\342A\001\002\022\033\n\rvalidate_only\030\004 \001(\010B\004" - + "\342A\001\001\"\203\002\n-UpdateEventThreatDetectionCusto" - + "mModuleRequest\0225\n\013update_mask\030\001 \001(\0132\032.go" - + "ogle.protobuf.FieldMaskB\004\342A\001\002\022~\n$event_t" - + "hreat_detection_custom_module\030\002 \001(\0132J.go" - + "ogle.cloud.securitycentermanagement.v1.E" - + "ventThreatDetectionCustomModuleB\004\342A\001\002\022\033\n" - + "\rvalidate_only\030\003 \001(\010B\004\342A\001\001\"\255\001\n-DeleteEve" - + "ntThreatDetectionCustomModuleRequest\022_\n\004" - + "name\030\001 \001(\tBQ\342A\001\002\372AJ\nHsecuritycentermanag" - + "ement.googleapis.com/EventThreatDetectio" - + "nCustomModule\022\033\n\rvalidate_only\030\002 \001(\010B\004\342A" - + "\001\001\"\300\001\n/ValidateEventThreatDetectionCusto" - + "mModuleRequest\022a\n\006parent\030\001 \001(\tBQ\342A\001\002\372AJ\022" - + "Hsecuritycentermanagement.googleapis.com" - + "/EventThreatDetectionCustomModule\022\026\n\010raw" - + "_text\030\002 \001(\tB\004\342A\001\002\022\022\n\004type\030\003 \001(\tB\004\342A\001\002\"\276\004" - + "\n0ValidateEventThreatDetectionCustomModu" - + "leResponse\022\206\001\n\006errors\030\002 \003(\0132v.google.clo" - + "ud.securitycentermanagement.v1.ValidateE" - + "ventThreatDetectionCustomModuleResponse." - + "CustomModuleValidationError\032\310\002\n\033CustomMo" - + "duleValidationError\022\023\n\013description\030\001 \001(\t" - + "\022\022\n\nfield_path\030\002 \001(\t\022w\n\005start\030\003 \001(\0132c.go" - + "ogle.cloud.securitycentermanagement.v1.V" - + "alidateEventThreatDetectionCustomModuleR" - + "esponse.PositionH\000\210\001\001\022u\n\003end\030\004 \001(\0132c.goo" - + "gle.cloud.securitycentermanagement.v1.Va" - + "lidateEventThreatDetectionCustomModuleRe" - + "sponse.PositionH\001\210\001\001B\010\n\006_startB\006\n\004_end\0326" - + "\n\010Position\022\023\n\013line_number\030\001 \001(\005\022\025\n\rcolum" - + "n_number\030\002 \001(\0052\241K\n\030SecurityCenterManagem" - + "ent\022\220\004\n1ListEffectiveSecurityHealthAnaly" - + "ticsCustomModules\022b.google.cloud.securit" - + "ycentermanagement.v1.ListEffectiveSecuri" - + "tyHealthAnalyticsCustomModulesRequest\032c." - + "google.cloud.securitycentermanagement.v1" - + ".ListEffectiveSecurityHealthAnalyticsCus" - + "tomModulesResponse\"\221\002\332A\006parent\202\323\344\223\002\201\002\022Q/" - + "v1/{parent=projects/*/locations/*}/effec" - + "tiveSecurityHealthAnalyticsCustomModules" - + "ZR\022P/v1/{parent=folders/*/locations/*}/e" - + "ffectiveSecurityHealthAnalyticsCustomMod" - + "ulesZX\022V/v1/{parent=organizations/*/loca" - + "tions/*}/effectiveSecurityHealthAnalytic" - + "sCustomModules\022\375\003\n/GetEffectiveSecurityH" - + "ealthAnalyticsCustomModule\022`.google.clou" - + "d.securitycentermanagement.v1.GetEffecti" - + "veSecurityHealthAnalyticsCustomModuleReq" - + "uest\032V.google.cloud.securitycentermanage" - + "ment.v1.EffectiveSecurityHealthAnalytics" - + "CustomModule\"\217\002\332A\004name\202\323\344\223\002\201\002\022Q/v1/{name" - + "=projects/*/locations/*/effectiveSecurit" - + "yHealthAnalyticsCustomModules/*}ZR\022P/v1/" - + "{name=folders/*/locations/*/effectiveSec" - + "urityHealthAnalyticsCustomModules/*}ZX\022V" - + "/v1/{name=organizations/*/locations/*/ef" - + "fectiveSecurityHealthAnalyticsCustomModu" - + "les/*}\022\332\003\n(ListSecurityHealthAnalyticsCu" - + "stomModules\022Y.google.cloud.securitycente" - + "rmanagement.v1.ListSecurityHealthAnalyti" - + "csCustomModulesRequest\032Z.google.cloud.se" - + "curitycentermanagement.v1.ListSecurityHe" - + "althAnalyticsCustomModulesResponse\"\366\001\332A\006" - + "parent\202\323\344\223\002\346\001\022H/v1/{parent=projects/*/lo" - + "cations/*}/securityHealthAnalyticsCustom" - + "ModulesZI\022G/v1/{parent=folders/*/locatio" - + "ns/*}/securityHealthAnalyticsCustomModul" - + "esZO\022M/v1/{parent=organizations/*/locati" - + "ons/*}/securityHealthAnalyticsCustomModu" - + "les\022\245\004\n2ListDescendantSecurityHealthAnal" - + "yticsCustomModules\022c.google.cloud.securi" - + "tycentermanagement.v1.ListDescendantSecu" - + "rityHealthAnalyticsCustomModulesRequest\032" - + "d.google.cloud.securitycentermanagement." - + "v1.ListDescendantSecurityHealthAnalytics" - + "CustomModulesResponse\"\243\002\332A\006parent\202\323\344\223\002\223\002" - + "\022W/v1/{parent=projects/*/locations/*}/se" - + "curityHealthAnalyticsCustomModules:listD" - + "escendantZX\022V/v1/{parent=folders/*/locat" - + "ions/*}/securityHealthAnalyticsCustomMod" - + "ules:listDescendantZ^\022\\/v1/{parent=organ" - + "izations/*/locations/*}/securityHealthAn" - + "alyticsCustomModules:listDescendant\022\307\003\n&" - + "GetSecurityHealthAnalyticsCustomModule\022W" - + ".google.cloud.securitycentermanagement.v" - + "1.GetSecurityHealthAnalyticsCustomModule" - + "Request\032M.google.cloud.securitycenterman" - + "agement.v1.SecurityHealthAnalyticsCustom" - + "Module\"\364\001\332A\004name\202\323\344\223\002\346\001\022H/v1/{name=proje" - + "cts/*/locations/*/securityHealthAnalytic" - + "sCustomModules/*}ZI\022G/v1/{name=folders/*" - + "/locations/*/securityHealthAnalyticsCust" - + "omModules/*}ZO\022M/v1/{name=organizations/" - + "*/locations/*/securityHealthAnalyticsCus" - + "tomModules/*}\022\362\004\n)CreateSecurityHealthAn" - + "alyticsCustomModule\022Z.google.cloud.secur" - + "itycentermanagement.v1.CreateSecurityHea" - + "lthAnalyticsCustomModuleRequest\032M.google" - + ".cloud.securitycentermanagement.v1.Secur" - + "ityHealthAnalyticsCustomModule\"\231\003\332A.pare" - + "nt,security_health_analytics_custom_modu" - + "le\202\323\344\223\002\341\002\"H/v1/{parent=projects/*/locati" - + "ons/*}/securityHealthAnalyticsCustomModu" - + "les:\'security_health_analytics_custom_mo" - + "duleZr\"G/v1/{parent=folders/*/locations/" - + "*}/securityHealthAnalyticsCustomModules:" - + "\'security_health_analytics_custom_module" - + "Zx\"M/v1/{parent=organizations/*/location" - + "s/*}/securityHealthAnalyticsCustomModule", - "s:\'security_health_analytics_custom_modu" - + "le\022\361\005\n)UpdateSecurityHealthAnalyticsCust" - + "omModule\022Z.google.cloud.securitycenterma" - + "nagement.v1.UpdateSecurityHealthAnalytic" - + "sCustomModuleRequest\032M.google.cloud.secu" - + "ritycentermanagement.v1.SecurityHealthAn" - + "alyticsCustomModule\"\230\004\332A3security_health" - + "_analytics_custom_module,update_mask\202\323\344\223" - + "\002\333\0032p/v1/{security_health_analytics_cust" - + "om_module.name=projects/*/locations/*/se" - + "curityHealthAnalyticsCustomModules/*}:\'s" - + "ecurity_health_analytics_custom_moduleZ\232" - + "\0012o/v1/{security_health_analytics_custom" - + "_module.name=folders/*/locations/*/secur" - + "ityHealthAnalyticsCustomModules/*}:\'secu" - + "rity_health_analytics_custom_moduleZ\240\0012u" - + "/v1/{security_health_analytics_custom_mo" - + "dule.name=organizations/*/locations/*/se" - + "curityHealthAnalyticsCustomModules/*}:\'s" - + "ecurity_health_analytics_custom_module\022\226" - + "\003\n)DeleteSecurityHealthAnalyticsCustomMo" - + "dule\022Z.google.cloud.securitycentermanage" - + "ment.v1.DeleteSecurityHealthAnalyticsCus" - + "tomModuleRequest\032\026.google.protobuf.Empty" - + "\"\364\001\332A\004name\202\323\344\223\002\346\001*H/v1/{name=projects/*/" - + "locations/*/securityHealthAnalyticsCusto" - + "mModules/*}ZI*G/v1/{name=folders/*/locat" - + "ions/*/securityHealthAnalyticsCustomModu" - + "les/*}ZO*M/v1/{name=organizations/*/loca" - + "tions/*/securityHealthAnalyticsCustomMod" - + "ules/*}\022\236\004\n+SimulateSecurityHealthAnalyt" - + "icsCustomModule\022\\.google.cloud.securityc" - + "entermanagement.v1.SimulateSecurityHealt" - + "hAnalyticsCustomModuleRequest\032].google.c" - + "loud.securitycentermanagement.v1.Simulat" - + "eSecurityHealthAnalyticsCustomModuleResp" - + "onse\"\261\002\332A\035parent,custom_config,resource\202" - + "\323\344\223\002\212\002\"Q/v1/{parent=projects/*/locations" - + "/*}/securityHealthAnalyticsCustomModules" - + ":simulate:\001*ZU\"P/v1/{parent=folders/*/lo" - + "cations/*}/securityHealthAnalyticsCustom" - + "Modules:simulate:\001*Z[\"V/v1/{parent=organ" - + "izations/*/locations/*}/securityHealthAn" - + "alyticsCustomModules:simulate:\001*\022\376\003\n.Lis" - + "tEffectiveEventThreatDetectionCustomModu" - + "les\022_.google.cloud.securitycentermanagem" - + "ent.v1.ListEffectiveEventThreatDetection" - + "CustomModulesRequest\032`.google.cloud.secu" - + "ritycentermanagement.v1.ListEffectiveEve" - + "ntThreatDetectionCustomModulesResponse\"\210" - + "\002\332A\006parent\202\323\344\223\002\370\001\022N/v1/{parent=projects/" - + "*/locations/*}/effectiveEventThreatDetec" - + "tionCustomModulesZO\022M/v1/{parent=folders" - + "/*/locations/*}/effectiveEventThreatDete" - + "ctionCustomModulesZU\022S/v1/{parent=organi" - + "zations/*/locations/*}/effectiveEventThr" - + "eatDetectionCustomModules\022\353\003\n,GetEffecti" - + "veEventThreatDetectionCustomModule\022].goo" - + "gle.cloud.securitycentermanagement.v1.Ge" - + "tEffectiveEventThreatDetectionCustomModu" - + "leRequest\032S.google.cloud.securitycenterm" - + "anagement.v1.EffectiveEventThreatDetecti" - + "onCustomModule\"\206\002\332A\004name\202\323\344\223\002\370\001\022N/v1/{na" - + "me=projects/*/locations/*/effectiveEvent" - + "ThreatDetectionCustomModules/*}ZO\022M/v1/{" - + "name=folders/*/locations/*/effectiveEven" - + "tThreatDetectionCustomModules/*}ZU\022S/v1/" - + "{name=organizations/*/locations/*/effect" - + "iveEventThreatDetectionCustomModules/*}\022" - + "\310\003\n%ListEventThreatDetectionCustomModule" - + "s\022V.google.cloud.securitycentermanagemen" - + "t.v1.ListEventThreatDetectionCustomModul" - + "esRequest\032W.google.cloud.securitycenterm" - + "anagement.v1.ListEventThreatDetectionCus" - + "tomModulesResponse\"\355\001\332A\006parent\202\323\344\223\002\335\001\022E/" - + "v1/{parent=projects/*/locations/*}/event" - + "ThreatDetectionCustomModulesZF\022D/v1/{par" - + "ent=folders/*/locations/*}/eventThreatDe" - + "tectionCustomModulesZL\022J/v1/{parent=orga" - + "nizations/*/locations/*}/eventThreatDete" - + "ctionCustomModules\022\223\004\n/ListDescendantEve" - + "ntThreatDetectionCustomModules\022`.google." - + "cloud.securitycentermanagement.v1.ListDe" - + "scendantEventThreatDetectionCustomModule" - + "sRequest\032a.google.cloud.securitycenterma" - + "nagement.v1.ListDescendantEventThreatDet" - + "ectionCustomModulesResponse\"\232\002\332A\006parent\202" - + "\323\344\223\002\212\002\022T/v1/{parent=projects/*/locations" - + "/*}/eventThreatDetectionCustomModules:li" - + "stDescendantZU\022S/v1/{parent=folders/*/lo" - + "cations/*}/eventThreatDetectionCustomMod" - + "ules:listDescendantZ[\022Y/v1/{parent=organ" - + "izations/*/locations/*}/eventThreatDetec" - + "tionCustomModules:listDescendant\022\265\003\n#Get" - + "EventThreatDetectionCustomModule\022T.googl" - + "e.cloud.securitycentermanagement.v1.GetE" - + "ventThreatDetectionCustomModuleRequest\032J" - + ".google.cloud.securitycentermanagement.v" - + "1.EventThreatDetectionCustomModule\"\353\001\332A\004" - + "name\202\323\344\223\002\335\001\022E/v1/{name=projects/*/locati" - + "ons/*/eventThreatDetectionCustomModules/" - + "*}ZF\022D/v1/{name=folders/*/locations/*/ev" - + "entThreatDetectionCustomModules/*}ZL\022J/v" - + "1/{name=organizations/*/locations/*/even" - + "tThreatDetectionCustomModules/*}\022\324\004\n&Cre" - + "ateEventThreatDetectionCustomModule\022W.go" - + "ogle.cloud.securitycentermanagement.v1.C" - + "reateEventThreatDetectionCustomModuleReq" - + "uest\032J.google.cloud.securitycentermanage" - + "ment.v1.EventThreatDetectionCustomModule" - + "\"\204\003\332A+parent,event_threat_detection_cust" - + "om_module\202\323\344\223\002\317\002\"E/v1/{parent=projects/*" - + "/locations/*}/eventThreatDetectionCustom" - + "Modules:$event_threat_detection_custom_m" - + "oduleZl\"D/v1/{parent=folders/*/locations" - + "/*}/eventThreatDetectionCustomModules:$e" - + "vent_threat_detection_custom_moduleZr\"J/" - + "v1/{parent=organizations/*/locations/*}/" - + "eventThreatDetectionCustomModules:$event" - + "_threat_detection_custom_module\022\312\005\n&Upda" - + "teEventThreatDetectionCustomModule\022W.goo" - + "gle.cloud.securitycentermanagement.v1.Up" - + "dateEventThreatDetectionCustomModuleRequ" - + "est\032J.google.cloud.securitycentermanagem" - + "ent.v1.EventThreatDetectionCustomModule\"" - + "\372\003\332A0event_threat_detection_custom_modul" - + "e,update_mask\202\323\344\223\002\300\0032j/v1/{event_threat_" - + "detection_custom_module.name=projects/*/" - + "locations/*/eventThreatDetectionCustomMo" - + "dules/*}:$event_threat_detection_custom_" - + "moduleZ\221\0012i/v1/{event_threat_detection_c" - + "ustom_module.name=folders/*/locations/*/" - + "eventThreatDetectionCustomModules/*}:$ev" - + "ent_threat_detection_custom_moduleZ\227\0012o/" - + "v1/{event_threat_detection_custom_module" - + ".name=organizations/*/locations/*/eventT" - + "hreatDetectionCustomModules/*}:$event_th" - + "reat_detection_custom_module\022\207\003\n&DeleteE" - + "ventThreatDetectionCustomModule\022W.google" - + ".cloud.securitycentermanagement.v1.Delet" - + "eEventThreatDetectionCustomModuleRequest" - + "\032\026.google.protobuf.Empty\"\353\001\332A\004name\202\323\344\223\002\335" - + "\001*E/v1/{name=projects/*/locations/*/even" - + "tThreatDetectionCustomModules/*}ZF*D/v1/" - + "{name=folders/*/locations/*/eventThreatD" - + "etectionCustomModules/*}ZL*J/v1/{name=or" - + "ganizations/*/locations/*/eventThreatDet" - + "ectionCustomModules/*}\022\354\003\n(ValidateEvent" - + "ThreatDetectionCustomModule\022Y.google.clo" - + "ud.securitycentermanagement.v1.ValidateE" - + "ventThreatDetectionCustomModuleRequest\032Z" - + ".google.cloud.securitycentermanagement.v" - + "1.ValidateEventThreatDetectionCustomModu" - + "leResponse\"\210\002\202\323\344\223\002\201\002\"N/v1/{parent=projec" - + "ts/*/locations/*}/eventThreatDetectionCu" - + "stomModules:validate:\001*ZR\"M/v1/{parent=f" - + "olders/*/locations/*}/eventThreatDetecti" - + "onCustomModules:validate:\001*ZX\"S/v1/{pare" - + "nt=organizations/*/locations/*}/eventThr" - + "eatDetectionCustomModules:validate:\001*\032[\312" - + "A\'securitycentermanagement.googleapis.co" - + "m\322A.https://www.googleapis.com/auth/clou" - + "d-platformB\223\004\n,com.google.cloud.security" - + "centermanagement.v1B\035SecurityCenterManag" - + "ementProtoP\001Zhcloud.google.com/go/securi" - + "tycentermanagement/apiv1/securitycenterm" - + "anagementpb;securitycentermanagementpb\252\002" - + "(Google.Cloud.SecurityCenterManagement.V" - + "1\312\002(Google\\Cloud\\SecurityCenterManagemen" - + "t\\V1\352\002+Google::Cloud::SecurityCenterMana" - + "gement::V1\352Aq\n - * Result for test case in the corresponding request. - * - * - * - * .google.cloud.securitycentermanagement.v1.SimulateSecurityHealthAnalyticsCustomModuleResponse.SimulatedResult result = 1; - * - * - * @return Whether the result field is set. - */ - boolean hasResult(); - /** - * - * - *
-   * Result for test case in the corresponding request.
-   * 
- * - * - * .google.cloud.securitycentermanagement.v1.SimulateSecurityHealthAnalyticsCustomModuleResponse.SimulatedResult result = 1; - * - * - * @return The result. - */ - com.google.cloud.securitycentermanagement.v1.SimulateSecurityHealthAnalyticsCustomModuleResponse - .SimulatedResult - getResult(); - /** - * - * - *
-   * Result for test case in the corresponding request.
-   * 
- * - * - * .google.cloud.securitycentermanagement.v1.SimulateSecurityHealthAnalyticsCustomModuleResponse.SimulatedResult result = 1; - * - */ - com.google.cloud.securitycentermanagement.v1.SimulateSecurityHealthAnalyticsCustomModuleResponse - .SimulatedResultOrBuilder - getResultOrBuilder(); -} diff --git a/java-securitycentermanagement/proto-google-cloud-securitycentermanagement-v1/src/main/java/com/google/cloud/securitycentermanagement/v1/UpdateSecurityHealthAnalyticsCustomModuleRequest.java b/java-securitycentermanagement/proto-google-cloud-securitycentermanagement-v1/src/main/java/com/google/cloud/securitycentermanagement/v1/UpdateSecurityHealthAnalyticsCustomModuleRequest.java deleted file mode 100644 index aeb18a5861e1..000000000000 --- a/java-securitycentermanagement/proto-google-cloud-securitycentermanagement-v1/src/main/java/com/google/cloud/securitycentermanagement/v1/UpdateSecurityHealthAnalyticsCustomModuleRequest.java +++ /dev/null @@ -1,1270 +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/securitycentermanagement/v1/security_center_management.proto - -package com.google.cloud.securitycentermanagement.v1; - -/** - * - * - *
- * Message for updating a SecurityHealthAnalyticsCustomModule
- * 
- * - * Protobuf type {@code - * google.cloud.securitycentermanagement.v1.UpdateSecurityHealthAnalyticsCustomModuleRequest} - */ -public final class UpdateSecurityHealthAnalyticsCustomModuleRequest - extends com.google.protobuf.GeneratedMessageV3 - implements - // @@protoc_insertion_point(message_implements:google.cloud.securitycentermanagement.v1.UpdateSecurityHealthAnalyticsCustomModuleRequest) - UpdateSecurityHealthAnalyticsCustomModuleRequestOrBuilder { - private static final long serialVersionUID = 0L; - // Use UpdateSecurityHealthAnalyticsCustomModuleRequest.newBuilder() to construct. - private UpdateSecurityHealthAnalyticsCustomModuleRequest( - com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - - private UpdateSecurityHealthAnalyticsCustomModuleRequest() {} - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { - return new UpdateSecurityHealthAnalyticsCustomModuleRequest(); - } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.securitycentermanagement.v1.SecurityCenterManagementProto - .internal_static_google_cloud_securitycentermanagement_v1_UpdateSecurityHealthAnalyticsCustomModuleRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.securitycentermanagement.v1.SecurityCenterManagementProto - .internal_static_google_cloud_securitycentermanagement_v1_UpdateSecurityHealthAnalyticsCustomModuleRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.securitycentermanagement.v1 - .UpdateSecurityHealthAnalyticsCustomModuleRequest.class, - com.google.cloud.securitycentermanagement.v1 - .UpdateSecurityHealthAnalyticsCustomModuleRequest.Builder.class); - } - - public static final int UPDATE_MASK_FIELD_NUMBER = 1; - private com.google.protobuf.FieldMask updateMask_; - /** - * - * - *
-   * Required. Field mask is used to specify the fields to be overwritten in the
-   * SecurityHealthAnalyticsCustomModule resource by the update.
-   * The fields specified in the update_mask are relative to the resource, not
-   * the full request. A field will be overwritten if it is in the mask. If the
-   * user does not provide a mask then all fields will be overwritten.
-   * 
- * - * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * - * @return Whether the updateMask field is set. - */ - @java.lang.Override - public boolean hasUpdateMask() { - return updateMask_ != null; - } - /** - * - * - *
-   * Required. Field mask is used to specify the fields to be overwritten in the
-   * SecurityHealthAnalyticsCustomModule resource by the update.
-   * The fields specified in the update_mask are relative to the resource, not
-   * the full request. A field will be overwritten if it is in the mask. If the
-   * user does not provide a mask then all fields will be overwritten.
-   * 
- * - * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * - * @return The updateMask. - */ - @java.lang.Override - public com.google.protobuf.FieldMask getUpdateMask() { - return updateMask_ == null ? com.google.protobuf.FieldMask.getDefaultInstance() : updateMask_; - } - /** - * - * - *
-   * Required. Field mask is used to specify the fields to be overwritten in the
-   * SecurityHealthAnalyticsCustomModule resource by the update.
-   * The fields specified in the update_mask are relative to the resource, not
-   * the full request. A field will be overwritten if it is in the mask. If the
-   * user does not provide a mask then all fields will be overwritten.
-   * 
- * - * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = REQUIRED]; - * - */ - @java.lang.Override - public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() { - return updateMask_ == null ? com.google.protobuf.FieldMask.getDefaultInstance() : updateMask_; - } - - public static final int SECURITY_HEALTH_ANALYTICS_CUSTOM_MODULE_FIELD_NUMBER = 2; - private com.google.cloud.securitycentermanagement.v1.SecurityHealthAnalyticsCustomModule - securityHealthAnalyticsCustomModule_; - /** - * - * - *
-   * Required. The resource being updated
-   * 
- * - * - * .google.cloud.securitycentermanagement.v1.SecurityHealthAnalyticsCustomModule security_health_analytics_custom_module = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * - * @return Whether the securityHealthAnalyticsCustomModule field is set. - */ - @java.lang.Override - public boolean hasSecurityHealthAnalyticsCustomModule() { - return securityHealthAnalyticsCustomModule_ != null; - } - /** - * - * - *
-   * Required. The resource being updated
-   * 
- * - * - * .google.cloud.securitycentermanagement.v1.SecurityHealthAnalyticsCustomModule security_health_analytics_custom_module = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * - * @return The securityHealthAnalyticsCustomModule. - */ - @java.lang.Override - public com.google.cloud.securitycentermanagement.v1.SecurityHealthAnalyticsCustomModule - getSecurityHealthAnalyticsCustomModule() { - return securityHealthAnalyticsCustomModule_ == null - ? com.google.cloud.securitycentermanagement.v1.SecurityHealthAnalyticsCustomModule - .getDefaultInstance() - : securityHealthAnalyticsCustomModule_; - } - /** - * - * - *
-   * Required. The resource being updated
-   * 
- * - * - * .google.cloud.securitycentermanagement.v1.SecurityHealthAnalyticsCustomModule security_health_analytics_custom_module = 2 [(.google.api.field_behavior) = REQUIRED]; - * - */ - @java.lang.Override - public com.google.cloud.securitycentermanagement.v1.SecurityHealthAnalyticsCustomModuleOrBuilder - getSecurityHealthAnalyticsCustomModuleOrBuilder() { - return securityHealthAnalyticsCustomModule_ == null - ? com.google.cloud.securitycentermanagement.v1.SecurityHealthAnalyticsCustomModule - .getDefaultInstance() - : securityHealthAnalyticsCustomModule_; - } - - public static final int VALIDATE_ONLY_FIELD_NUMBER = 3; - private boolean validateOnly_ = false; - /** - * - * - *
-   * Optional. When set to true, only validations (including IAM checks) will
-   * done for the request (module will not be updated). An OK response indicates
-   * the request is valid while an error response indicates the request is
-   * invalid. Note that a subsequent request to actually update the module could
-   * still fail because 1. the state could have changed (e.g. IAM permission
-   * lost) or
-   * 2. A failure occurred while trying to update the module.
-   * 
- * - * bool validate_only = 3 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return The validateOnly. - */ - @java.lang.Override - public boolean getValidateOnly() { - return validateOnly_; - } - - private byte memoizedIsInitialized = -1; - - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (updateMask_ != null) { - output.writeMessage(1, getUpdateMask()); - } - if (securityHealthAnalyticsCustomModule_ != null) { - output.writeMessage(2, getSecurityHealthAnalyticsCustomModule()); - } - if (validateOnly_ != false) { - output.writeBool(3, validateOnly_); - } - getUnknownFields().writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (updateMask_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getUpdateMask()); - } - if (securityHealthAnalyticsCustomModule_ != null) { - size += - com.google.protobuf.CodedOutputStream.computeMessageSize( - 2, getSecurityHealthAnalyticsCustomModule()); - } - if (validateOnly_ != false) { - size += com.google.protobuf.CodedOutputStream.computeBoolSize(3, validateOnly_); - } - size += getUnknownFields().getSerializedSize(); - memoizedSize = size; - return size; - } - - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj - instanceof - com.google.cloud.securitycentermanagement.v1 - .UpdateSecurityHealthAnalyticsCustomModuleRequest)) { - return super.equals(obj); - } - com.google.cloud.securitycentermanagement.v1.UpdateSecurityHealthAnalyticsCustomModuleRequest - other = - (com.google.cloud.securitycentermanagement.v1 - .UpdateSecurityHealthAnalyticsCustomModuleRequest) - obj; - - if (hasUpdateMask() != other.hasUpdateMask()) return false; - if (hasUpdateMask()) { - if (!getUpdateMask().equals(other.getUpdateMask())) return false; - } - if (hasSecurityHealthAnalyticsCustomModule() != other.hasSecurityHealthAnalyticsCustomModule()) - return false; - if (hasSecurityHealthAnalyticsCustomModule()) { - if (!getSecurityHealthAnalyticsCustomModule() - .equals(other.getSecurityHealthAnalyticsCustomModule())) return false; - } - if (getValidateOnly() != other.getValidateOnly()) return false; - if (!getUnknownFields().equals(other.getUnknownFields())) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - if (hasUpdateMask()) { - hash = (37 * hash) + UPDATE_MASK_FIELD_NUMBER; - hash = (53 * hash) + getUpdateMask().hashCode(); - } - if (hasSecurityHealthAnalyticsCustomModule()) { - hash = (37 * hash) + SECURITY_HEALTH_ANALYTICS_CUSTOM_MODULE_FIELD_NUMBER; - hash = (53 * hash) + getSecurityHealthAnalyticsCustomModule().hashCode(); - } - hash = (37 * hash) + VALIDATE_ONLY_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getValidateOnly()); - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static com.google.cloud.securitycentermanagement.v1 - .UpdateSecurityHealthAnalyticsCustomModuleRequest - parseFrom(java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.securitycentermanagement.v1 - .UpdateSecurityHealthAnalyticsCustomModuleRequest - 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.securitycentermanagement.v1 - .UpdateSecurityHealthAnalyticsCustomModuleRequest - parseFrom(com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.securitycentermanagement.v1 - .UpdateSecurityHealthAnalyticsCustomModuleRequest - parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.securitycentermanagement.v1 - .UpdateSecurityHealthAnalyticsCustomModuleRequest - parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.securitycentermanagement.v1 - .UpdateSecurityHealthAnalyticsCustomModuleRequest - parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.securitycentermanagement.v1 - .UpdateSecurityHealthAnalyticsCustomModuleRequest - parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.cloud.securitycentermanagement.v1 - .UpdateSecurityHealthAnalyticsCustomModuleRequest - 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.securitycentermanagement.v1 - .UpdateSecurityHealthAnalyticsCustomModuleRequest - parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); - } - - public static com.google.cloud.securitycentermanagement.v1 - .UpdateSecurityHealthAnalyticsCustomModuleRequest - parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); - } - - public static com.google.cloud.securitycentermanagement.v1 - .UpdateSecurityHealthAnalyticsCustomModuleRequest - parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.cloud.securitycentermanagement.v1 - .UpdateSecurityHealthAnalyticsCustomModuleRequest - 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.securitycentermanagement.v1.UpdateSecurityHealthAnalyticsCustomModuleRequest - prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - * - * - *
-   * Message for updating a SecurityHealthAnalyticsCustomModule
-   * 
- * - * Protobuf type {@code - * google.cloud.securitycentermanagement.v1.UpdateSecurityHealthAnalyticsCustomModuleRequest} - */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements - // @@protoc_insertion_point(builder_implements:google.cloud.securitycentermanagement.v1.UpdateSecurityHealthAnalyticsCustomModuleRequest) - com.google.cloud.securitycentermanagement.v1 - .UpdateSecurityHealthAnalyticsCustomModuleRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.securitycentermanagement.v1.SecurityCenterManagementProto - .internal_static_google_cloud_securitycentermanagement_v1_UpdateSecurityHealthAnalyticsCustomModuleRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.securitycentermanagement.v1.SecurityCenterManagementProto - .internal_static_google_cloud_securitycentermanagement_v1_UpdateSecurityHealthAnalyticsCustomModuleRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.securitycentermanagement.v1 - .UpdateSecurityHealthAnalyticsCustomModuleRequest.class, - com.google.cloud.securitycentermanagement.v1 - .UpdateSecurityHealthAnalyticsCustomModuleRequest.Builder.class); - } - - // Construct using - // com.google.cloud.securitycentermanagement.v1.UpdateSecurityHealthAnalyticsCustomModuleRequest.newBuilder() - private Builder() {} - - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - } - - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - updateMask_ = null; - if (updateMaskBuilder_ != null) { - updateMaskBuilder_.dispose(); - updateMaskBuilder_ = null; - } - securityHealthAnalyticsCustomModule_ = null; - if (securityHealthAnalyticsCustomModuleBuilder_ != null) { - securityHealthAnalyticsCustomModuleBuilder_.dispose(); - securityHealthAnalyticsCustomModuleBuilder_ = null; - } - validateOnly_ = false; - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.securitycentermanagement.v1.SecurityCenterManagementProto - .internal_static_google_cloud_securitycentermanagement_v1_UpdateSecurityHealthAnalyticsCustomModuleRequest_descriptor; - } - - @java.lang.Override - public com.google.cloud.securitycentermanagement.v1 - .UpdateSecurityHealthAnalyticsCustomModuleRequest - getDefaultInstanceForType() { - return com.google.cloud.securitycentermanagement.v1 - .UpdateSecurityHealthAnalyticsCustomModuleRequest.getDefaultInstance(); - } - - @java.lang.Override - public com.google.cloud.securitycentermanagement.v1 - .UpdateSecurityHealthAnalyticsCustomModuleRequest - build() { - com.google.cloud.securitycentermanagement.v1.UpdateSecurityHealthAnalyticsCustomModuleRequest - result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.cloud.securitycentermanagement.v1 - .UpdateSecurityHealthAnalyticsCustomModuleRequest - buildPartial() { - com.google.cloud.securitycentermanagement.v1.UpdateSecurityHealthAnalyticsCustomModuleRequest - result = - new com.google.cloud.securitycentermanagement.v1 - .UpdateSecurityHealthAnalyticsCustomModuleRequest(this); - if (bitField0_ != 0) { - buildPartial0(result); - } - onBuilt(); - return result; - } - - private void buildPartial0( - com.google.cloud.securitycentermanagement.v1 - .UpdateSecurityHealthAnalyticsCustomModuleRequest - result) { - int from_bitField0_ = bitField0_; - if (((from_bitField0_ & 0x00000001) != 0)) { - result.updateMask_ = updateMaskBuilder_ == null ? updateMask_ : updateMaskBuilder_.build(); - } - if (((from_bitField0_ & 0x00000002) != 0)) { - result.securityHealthAnalyticsCustomModule_ = - securityHealthAnalyticsCustomModuleBuilder_ == null - ? securityHealthAnalyticsCustomModule_ - : securityHealthAnalyticsCustomModuleBuilder_.build(); - } - if (((from_bitField0_ & 0x00000004) != 0)) { - result.validateOnly_ = validateOnly_; - } - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.setField(field, value); - } - - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.addRepeatedField(field, value); - } - - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other - instanceof - com.google.cloud.securitycentermanagement.v1 - .UpdateSecurityHealthAnalyticsCustomModuleRequest) { - return mergeFrom( - (com.google.cloud.securitycentermanagement.v1 - .UpdateSecurityHealthAnalyticsCustomModuleRequest) - other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom( - com.google.cloud.securitycentermanagement.v1 - .UpdateSecurityHealthAnalyticsCustomModuleRequest - other) { - if (other - == com.google.cloud.securitycentermanagement.v1 - .UpdateSecurityHealthAnalyticsCustomModuleRequest.getDefaultInstance()) return this; - if (other.hasUpdateMask()) { - mergeUpdateMask(other.getUpdateMask()); - } - if (other.hasSecurityHealthAnalyticsCustomModule()) { - mergeSecurityHealthAnalyticsCustomModule(other.getSecurityHealthAnalyticsCustomModule()); - } - if (other.getValidateOnly() != false) { - setValidateOnly(other.getValidateOnly()); - } - this.mergeUnknownFields(other.getUnknownFields()); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: - { - input.readMessage(getUpdateMaskFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 18: - { - input.readMessage( - getSecurityHealthAnalyticsCustomModuleFieldBuilder().getBuilder(), - extensionRegistry); - bitField0_ |= 0x00000002; - break; - } // case 18 - case 24: - { - validateOnly_ = 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) { - throw e.unwrapIOException(); - } finally { - onChanged(); - } // finally - return this; - } - - private int bitField0_; - - 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_; - /** - * - * - *
-     * Required. Field mask is used to specify the fields to be overwritten in the
-     * SecurityHealthAnalyticsCustomModule resource by the update.
-     * The fields specified in the update_mask are relative to the resource, not
-     * the full request. A field will be overwritten if it is in the mask. If the
-     * user does not provide a mask then all fields will be overwritten.
-     * 
- * - * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * - * @return Whether the updateMask field is set. - */ - public boolean hasUpdateMask() { - return ((bitField0_ & 0x00000001) != 0); - } - /** - * - * - *
-     * Required. Field mask is used to specify the fields to be overwritten in the
-     * SecurityHealthAnalyticsCustomModule resource by the update.
-     * The fields specified in the update_mask are relative to the resource, not
-     * the full request. A field will be overwritten if it is in the mask. If the
-     * user does not provide a mask then all fields will be overwritten.
-     * 
- * - * .google.protobuf.FieldMask update_mask = 1 [(.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_; - } else { - return updateMaskBuilder_.getMessage(); - } - } - /** - * - * - *
-     * Required. Field mask is used to specify the fields to be overwritten in the
-     * SecurityHealthAnalyticsCustomModule resource by the update.
-     * The fields specified in the update_mask are relative to the resource, not
-     * the full request. A field will be overwritten if it is in the mask. If the
-     * user does not provide a mask then all fields will be overwritten.
-     * 
- * - * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = REQUIRED]; - * - */ - public Builder setUpdateMask(com.google.protobuf.FieldMask value) { - if (updateMaskBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - updateMask_ = value; - } else { - updateMaskBuilder_.setMessage(value); - } - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - * - * - *
-     * Required. Field mask is used to specify the fields to be overwritten in the
-     * SecurityHealthAnalyticsCustomModule resource by the update.
-     * The fields specified in the update_mask are relative to the resource, not
-     * the full request. A field will be overwritten if it is in the mask. If the
-     * user does not provide a mask then all fields will be overwritten.
-     * 
- * - * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = REQUIRED]; - * - */ - public Builder setUpdateMask(com.google.protobuf.FieldMask.Builder builderForValue) { - if (updateMaskBuilder_ == null) { - updateMask_ = builderForValue.build(); - } else { - updateMaskBuilder_.setMessage(builderForValue.build()); - } - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - * - * - *
-     * Required. Field mask is used to specify the fields to be overwritten in the
-     * SecurityHealthAnalyticsCustomModule resource by the update.
-     * The fields specified in the update_mask are relative to the resource, not
-     * the full request. A field will be overwritten if it is in the mask. If the
-     * user does not provide a mask then all fields will be overwritten.
-     * 
- * - * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = REQUIRED]; - * - */ - public Builder mergeUpdateMask(com.google.protobuf.FieldMask value) { - if (updateMaskBuilder_ == null) { - if (((bitField0_ & 0x00000001) != 0) - && updateMask_ != null - && updateMask_ != com.google.protobuf.FieldMask.getDefaultInstance()) { - getUpdateMaskBuilder().mergeFrom(value); - } else { - updateMask_ = value; - } - } else { - updateMaskBuilder_.mergeFrom(value); - } - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - * - * - *
-     * Required. Field mask is used to specify the fields to be overwritten in the
-     * SecurityHealthAnalyticsCustomModule resource by the update.
-     * The fields specified in the update_mask are relative to the resource, not
-     * the full request. A field will be overwritten if it is in the mask. If the
-     * user does not provide a mask then all fields will be overwritten.
-     * 
- * - * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = REQUIRED]; - * - */ - public Builder clearUpdateMask() { - bitField0_ = (bitField0_ & ~0x00000001); - updateMask_ = null; - if (updateMaskBuilder_ != null) { - updateMaskBuilder_.dispose(); - updateMaskBuilder_ = null; - } - onChanged(); - return this; - } - /** - * - * - *
-     * Required. Field mask is used to specify the fields to be overwritten in the
-     * SecurityHealthAnalyticsCustomModule resource by the update.
-     * The fields specified in the update_mask are relative to the resource, not
-     * the full request. A field will be overwritten if it is in the mask. If the
-     * user does not provide a mask then all fields will be overwritten.
-     * 
- * - * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = REQUIRED]; - * - */ - public com.google.protobuf.FieldMask.Builder getUpdateMaskBuilder() { - bitField0_ |= 0x00000001; - onChanged(); - return getUpdateMaskFieldBuilder().getBuilder(); - } - /** - * - * - *
-     * Required. Field mask is used to specify the fields to be overwritten in the
-     * SecurityHealthAnalyticsCustomModule resource by the update.
-     * The fields specified in the update_mask are relative to the resource, not
-     * the full request. A field will be overwritten if it is in the mask. If the
-     * user does not provide a mask then all fields will be overwritten.
-     * 
- * - * .google.protobuf.FieldMask update_mask = 1 [(.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_; - } - } - /** - * - * - *
-     * Required. Field mask is used to specify the fields to be overwritten in the
-     * SecurityHealthAnalyticsCustomModule resource by the update.
-     * The fields specified in the update_mask are relative to the resource, not
-     * the full request. A field will be overwritten if it is in the mask. If the
-     * user does not provide a mask then all fields will be overwritten.
-     * 
- * - * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = REQUIRED]; - * - */ - private com.google.protobuf.SingleFieldBuilderV3< - 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()); - updateMask_ = null; - } - return updateMaskBuilder_; - } - - private com.google.cloud.securitycentermanagement.v1.SecurityHealthAnalyticsCustomModule - securityHealthAnalyticsCustomModule_; - private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.securitycentermanagement.v1.SecurityHealthAnalyticsCustomModule, - com.google.cloud.securitycentermanagement.v1.SecurityHealthAnalyticsCustomModule - .Builder, - com.google.cloud.securitycentermanagement.v1 - .SecurityHealthAnalyticsCustomModuleOrBuilder> - securityHealthAnalyticsCustomModuleBuilder_; - /** - * - * - *
-     * Required. The resource being updated
-     * 
- * - * - * .google.cloud.securitycentermanagement.v1.SecurityHealthAnalyticsCustomModule security_health_analytics_custom_module = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * - * @return Whether the securityHealthAnalyticsCustomModule field is set. - */ - public boolean hasSecurityHealthAnalyticsCustomModule() { - return ((bitField0_ & 0x00000002) != 0); - } - /** - * - * - *
-     * Required. The resource being updated
-     * 
- * - * - * .google.cloud.securitycentermanagement.v1.SecurityHealthAnalyticsCustomModule security_health_analytics_custom_module = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * - * @return The securityHealthAnalyticsCustomModule. - */ - public com.google.cloud.securitycentermanagement.v1.SecurityHealthAnalyticsCustomModule - getSecurityHealthAnalyticsCustomModule() { - if (securityHealthAnalyticsCustomModuleBuilder_ == null) { - return securityHealthAnalyticsCustomModule_ == null - ? com.google.cloud.securitycentermanagement.v1.SecurityHealthAnalyticsCustomModule - .getDefaultInstance() - : securityHealthAnalyticsCustomModule_; - } else { - return securityHealthAnalyticsCustomModuleBuilder_.getMessage(); - } - } - /** - * - * - *
-     * Required. The resource being updated
-     * 
- * - * - * .google.cloud.securitycentermanagement.v1.SecurityHealthAnalyticsCustomModule security_health_analytics_custom_module = 2 [(.google.api.field_behavior) = REQUIRED]; - * - */ - public Builder setSecurityHealthAnalyticsCustomModule( - com.google.cloud.securitycentermanagement.v1.SecurityHealthAnalyticsCustomModule value) { - if (securityHealthAnalyticsCustomModuleBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - securityHealthAnalyticsCustomModule_ = value; - } else { - securityHealthAnalyticsCustomModuleBuilder_.setMessage(value); - } - bitField0_ |= 0x00000002; - onChanged(); - return this; - } - /** - * - * - *
-     * Required. The resource being updated
-     * 
- * - * - * .google.cloud.securitycentermanagement.v1.SecurityHealthAnalyticsCustomModule security_health_analytics_custom_module = 2 [(.google.api.field_behavior) = REQUIRED]; - * - */ - public Builder setSecurityHealthAnalyticsCustomModule( - com.google.cloud.securitycentermanagement.v1.SecurityHealthAnalyticsCustomModule.Builder - builderForValue) { - if (securityHealthAnalyticsCustomModuleBuilder_ == null) { - securityHealthAnalyticsCustomModule_ = builderForValue.build(); - } else { - securityHealthAnalyticsCustomModuleBuilder_.setMessage(builderForValue.build()); - } - bitField0_ |= 0x00000002; - onChanged(); - return this; - } - /** - * - * - *
-     * Required. The resource being updated
-     * 
- * - * - * .google.cloud.securitycentermanagement.v1.SecurityHealthAnalyticsCustomModule security_health_analytics_custom_module = 2 [(.google.api.field_behavior) = REQUIRED]; - * - */ - public Builder mergeSecurityHealthAnalyticsCustomModule( - com.google.cloud.securitycentermanagement.v1.SecurityHealthAnalyticsCustomModule value) { - if (securityHealthAnalyticsCustomModuleBuilder_ == null) { - if (((bitField0_ & 0x00000002) != 0) - && securityHealthAnalyticsCustomModule_ != null - && securityHealthAnalyticsCustomModule_ - != com.google.cloud.securitycentermanagement.v1.SecurityHealthAnalyticsCustomModule - .getDefaultInstance()) { - getSecurityHealthAnalyticsCustomModuleBuilder().mergeFrom(value); - } else { - securityHealthAnalyticsCustomModule_ = value; - } - } else { - securityHealthAnalyticsCustomModuleBuilder_.mergeFrom(value); - } - bitField0_ |= 0x00000002; - onChanged(); - return this; - } - /** - * - * - *
-     * Required. The resource being updated
-     * 
- * - * - * .google.cloud.securitycentermanagement.v1.SecurityHealthAnalyticsCustomModule security_health_analytics_custom_module = 2 [(.google.api.field_behavior) = REQUIRED]; - * - */ - public Builder clearSecurityHealthAnalyticsCustomModule() { - bitField0_ = (bitField0_ & ~0x00000002); - securityHealthAnalyticsCustomModule_ = null; - if (securityHealthAnalyticsCustomModuleBuilder_ != null) { - securityHealthAnalyticsCustomModuleBuilder_.dispose(); - securityHealthAnalyticsCustomModuleBuilder_ = null; - } - onChanged(); - return this; - } - /** - * - * - *
-     * Required. The resource being updated
-     * 
- * - * - * .google.cloud.securitycentermanagement.v1.SecurityHealthAnalyticsCustomModule security_health_analytics_custom_module = 2 [(.google.api.field_behavior) = REQUIRED]; - * - */ - public com.google.cloud.securitycentermanagement.v1.SecurityHealthAnalyticsCustomModule.Builder - getSecurityHealthAnalyticsCustomModuleBuilder() { - bitField0_ |= 0x00000002; - onChanged(); - return getSecurityHealthAnalyticsCustomModuleFieldBuilder().getBuilder(); - } - /** - * - * - *
-     * Required. The resource being updated
-     * 
- * - * - * .google.cloud.securitycentermanagement.v1.SecurityHealthAnalyticsCustomModule security_health_analytics_custom_module = 2 [(.google.api.field_behavior) = REQUIRED]; - * - */ - public com.google.cloud.securitycentermanagement.v1.SecurityHealthAnalyticsCustomModuleOrBuilder - getSecurityHealthAnalyticsCustomModuleOrBuilder() { - if (securityHealthAnalyticsCustomModuleBuilder_ != null) { - return securityHealthAnalyticsCustomModuleBuilder_.getMessageOrBuilder(); - } else { - return securityHealthAnalyticsCustomModule_ == null - ? com.google.cloud.securitycentermanagement.v1.SecurityHealthAnalyticsCustomModule - .getDefaultInstance() - : securityHealthAnalyticsCustomModule_; - } - } - /** - * - * - *
-     * Required. The resource being updated
-     * 
- * - * - * .google.cloud.securitycentermanagement.v1.SecurityHealthAnalyticsCustomModule security_health_analytics_custom_module = 2 [(.google.api.field_behavior) = REQUIRED]; - * - */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.securitycentermanagement.v1.SecurityHealthAnalyticsCustomModule, - com.google.cloud.securitycentermanagement.v1.SecurityHealthAnalyticsCustomModule - .Builder, - com.google.cloud.securitycentermanagement.v1 - .SecurityHealthAnalyticsCustomModuleOrBuilder> - getSecurityHealthAnalyticsCustomModuleFieldBuilder() { - if (securityHealthAnalyticsCustomModuleBuilder_ == null) { - securityHealthAnalyticsCustomModuleBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.securitycentermanagement.v1.SecurityHealthAnalyticsCustomModule, - com.google.cloud.securitycentermanagement.v1.SecurityHealthAnalyticsCustomModule - .Builder, - com.google.cloud.securitycentermanagement.v1 - .SecurityHealthAnalyticsCustomModuleOrBuilder>( - getSecurityHealthAnalyticsCustomModule(), getParentForChildren(), isClean()); - securityHealthAnalyticsCustomModule_ = null; - } - return securityHealthAnalyticsCustomModuleBuilder_; - } - - private boolean validateOnly_; - /** - * - * - *
-     * Optional. When set to true, only validations (including IAM checks) will
-     * done for the request (module will not be updated). An OK response indicates
-     * the request is valid while an error response indicates the request is
-     * invalid. Note that a subsequent request to actually update the module could
-     * still fail because 1. the state could have changed (e.g. IAM permission
-     * lost) or
-     * 2. A failure occurred while trying to update the module.
-     * 
- * - * bool validate_only = 3 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return The validateOnly. - */ - @java.lang.Override - public boolean getValidateOnly() { - return validateOnly_; - } - /** - * - * - *
-     * Optional. When set to true, only validations (including IAM checks) will
-     * done for the request (module will not be updated). An OK response indicates
-     * the request is valid while an error response indicates the request is
-     * invalid. Note that a subsequent request to actually update the module could
-     * still fail because 1. the state could have changed (e.g. IAM permission
-     * lost) or
-     * 2. A failure occurred while trying to update the module.
-     * 
- * - * bool validate_only = 3 [(.google.api.field_behavior) = OPTIONAL]; - * - * @param value The validateOnly to set. - * @return This builder for chaining. - */ - public Builder setValidateOnly(boolean value) { - - validateOnly_ = value; - bitField0_ |= 0x00000004; - onChanged(); - return this; - } - /** - * - * - *
-     * Optional. When set to true, only validations (including IAM checks) will
-     * done for the request (module will not be updated). An OK response indicates
-     * the request is valid while an error response indicates the request is
-     * invalid. Note that a subsequent request to actually update the module could
-     * still fail because 1. the state could have changed (e.g. IAM permission
-     * lost) or
-     * 2. A failure occurred while trying to update the module.
-     * 
- * - * bool validate_only = 3 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return This builder for chaining. - */ - public Builder clearValidateOnly() { - bitField0_ = (bitField0_ & ~0x00000004); - validateOnly_ = false; - onChanged(); - return this; - } - - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - // @@protoc_insertion_point(builder_scope:google.cloud.securitycentermanagement.v1.UpdateSecurityHealthAnalyticsCustomModuleRequest) - } - - // @@protoc_insertion_point(class_scope:google.cloud.securitycentermanagement.v1.UpdateSecurityHealthAnalyticsCustomModuleRequest) - private static final com.google.cloud.securitycentermanagement.v1 - .UpdateSecurityHealthAnalyticsCustomModuleRequest - DEFAULT_INSTANCE; - - static { - DEFAULT_INSTANCE = - new com.google.cloud.securitycentermanagement.v1 - .UpdateSecurityHealthAnalyticsCustomModuleRequest(); - } - - public static com.google.cloud.securitycentermanagement.v1 - .UpdateSecurityHealthAnalyticsCustomModuleRequest - getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = - new com.google.protobuf.AbstractParser< - UpdateSecurityHealthAnalyticsCustomModuleRequest>() { - @java.lang.Override - public UpdateSecurityHealthAnalyticsCustomModuleRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException() - .setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; - - public static com.google.protobuf.Parser - parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser - getParserForType() { - return PARSER; - } - - @java.lang.Override - public com.google.cloud.securitycentermanagement.v1 - .UpdateSecurityHealthAnalyticsCustomModuleRequest - getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } -} diff --git a/java-securitycentermanagement/proto-google-cloud-securitycentermanagement-v1/src/main/java/com/google/cloud/securitycentermanagement/v1/UpdateSecurityHealthAnalyticsCustomModuleRequestOrBuilder.java b/java-securitycentermanagement/proto-google-cloud-securitycentermanagement-v1/src/main/java/com/google/cloud/securitycentermanagement/v1/UpdateSecurityHealthAnalyticsCustomModuleRequestOrBuilder.java deleted file mode 100644 index 50a2b0dbe6b7..000000000000 --- a/java-securitycentermanagement/proto-google-cloud-securitycentermanagement-v1/src/main/java/com/google/cloud/securitycentermanagement/v1/UpdateSecurityHealthAnalyticsCustomModuleRequestOrBuilder.java +++ /dev/null @@ -1,137 +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/securitycentermanagement/v1/security_center_management.proto - -package com.google.cloud.securitycentermanagement.v1; - -public interface UpdateSecurityHealthAnalyticsCustomModuleRequestOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.cloud.securitycentermanagement.v1.UpdateSecurityHealthAnalyticsCustomModuleRequest) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
-   * Required. Field mask is used to specify the fields to be overwritten in the
-   * SecurityHealthAnalyticsCustomModule resource by the update.
-   * The fields specified in the update_mask are relative to the resource, not
-   * the full request. A field will be overwritten if it is in the mask. If the
-   * user does not provide a mask then all fields will be overwritten.
-   * 
- * - * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * - * @return Whether the updateMask field is set. - */ - boolean hasUpdateMask(); - /** - * - * - *
-   * Required. Field mask is used to specify the fields to be overwritten in the
-   * SecurityHealthAnalyticsCustomModule resource by the update.
-   * The fields specified in the update_mask are relative to the resource, not
-   * the full request. A field will be overwritten if it is in the mask. If the
-   * user does not provide a mask then all fields will be overwritten.
-   * 
- * - * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * - * @return The updateMask. - */ - com.google.protobuf.FieldMask getUpdateMask(); - /** - * - * - *
-   * Required. Field mask is used to specify the fields to be overwritten in the
-   * SecurityHealthAnalyticsCustomModule resource by the update.
-   * The fields specified in the update_mask are relative to the resource, not
-   * the full request. A field will be overwritten if it is in the mask. If the
-   * user does not provide a mask then all fields will be overwritten.
-   * 
- * - * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = REQUIRED]; - * - */ - com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder(); - - /** - * - * - *
-   * Required. The resource being updated
-   * 
- * - * - * .google.cloud.securitycentermanagement.v1.SecurityHealthAnalyticsCustomModule security_health_analytics_custom_module = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * - * @return Whether the securityHealthAnalyticsCustomModule field is set. - */ - boolean hasSecurityHealthAnalyticsCustomModule(); - /** - * - * - *
-   * Required. The resource being updated
-   * 
- * - * - * .google.cloud.securitycentermanagement.v1.SecurityHealthAnalyticsCustomModule security_health_analytics_custom_module = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * - * @return The securityHealthAnalyticsCustomModule. - */ - com.google.cloud.securitycentermanagement.v1.SecurityHealthAnalyticsCustomModule - getSecurityHealthAnalyticsCustomModule(); - /** - * - * - *
-   * Required. The resource being updated
-   * 
- * - * - * .google.cloud.securitycentermanagement.v1.SecurityHealthAnalyticsCustomModule security_health_analytics_custom_module = 2 [(.google.api.field_behavior) = REQUIRED]; - * - */ - com.google.cloud.securitycentermanagement.v1.SecurityHealthAnalyticsCustomModuleOrBuilder - getSecurityHealthAnalyticsCustomModuleOrBuilder(); - - /** - * - * - *
-   * Optional. When set to true, only validations (including IAM checks) will
-   * done for the request (module will not be updated). An OK response indicates
-   * the request is valid while an error response indicates the request is
-   * invalid. Note that a subsequent request to actually update the module could
-   * still fail because 1. the state could have changed (e.g. IAM permission
-   * lost) or
-   * 2. A failure occurred while trying to update the module.
-   * 
- * - * bool validate_only = 3 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return The validateOnly. - */ - boolean getValidateOnly(); -} diff --git a/java-securitycentermanagement/proto-google-cloud-securitycentermanagement-v1/src/main/java/com/google/cloud/securitycentermanagement/v1/ValidateEventThreatDetectionCustomModuleResponse.java b/java-securitycentermanagement/proto-google-cloud-securitycentermanagement-v1/src/main/java/com/google/cloud/securitycentermanagement/v1/ValidateEventThreatDetectionCustomModuleResponse.java deleted file mode 100644 index 6cae4700d13c..000000000000 --- a/java-securitycentermanagement/proto-google-cloud-securitycentermanagement-v1/src/main/java/com/google/cloud/securitycentermanagement/v1/ValidateEventThreatDetectionCustomModuleResponse.java +++ /dev/null @@ -1,3644 +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/securitycentermanagement/v1/security_center_management.proto - -package com.google.cloud.securitycentermanagement.v1; - -/** - * - * - *
- * Response to validating an Event Threat Detection custom module.
- * 
- * - * Protobuf type {@code - * google.cloud.securitycentermanagement.v1.ValidateEventThreatDetectionCustomModuleResponse} - */ -public final class ValidateEventThreatDetectionCustomModuleResponse - extends com.google.protobuf.GeneratedMessageV3 - implements - // @@protoc_insertion_point(message_implements:google.cloud.securitycentermanagement.v1.ValidateEventThreatDetectionCustomModuleResponse) - ValidateEventThreatDetectionCustomModuleResponseOrBuilder { - private static final long serialVersionUID = 0L; - // Use ValidateEventThreatDetectionCustomModuleResponse.newBuilder() to construct. - private ValidateEventThreatDetectionCustomModuleResponse( - com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - - private ValidateEventThreatDetectionCustomModuleResponse() { - errors_ = java.util.Collections.emptyList(); - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { - return new ValidateEventThreatDetectionCustomModuleResponse(); - } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.securitycentermanagement.v1.SecurityCenterManagementProto - .internal_static_google_cloud_securitycentermanagement_v1_ValidateEventThreatDetectionCustomModuleResponse_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.securitycentermanagement.v1.SecurityCenterManagementProto - .internal_static_google_cloud_securitycentermanagement_v1_ValidateEventThreatDetectionCustomModuleResponse_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.securitycentermanagement.v1 - .ValidateEventThreatDetectionCustomModuleResponse.class, - com.google.cloud.securitycentermanagement.v1 - .ValidateEventThreatDetectionCustomModuleResponse.Builder.class); - } - - public interface CustomModuleValidationErrorOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.cloud.securitycentermanagement.v1.ValidateEventThreatDetectionCustomModuleResponse.CustomModuleValidationError) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
-     * A description of the error, suitable for human consumption. Required.
-     * 
- * - * string description = 1; - * - * @return The description. - */ - java.lang.String getDescription(); - /** - * - * - *
-     * A description of the error, suitable for human consumption. Required.
-     * 
- * - * string description = 1; - * - * @return The bytes for description. - */ - com.google.protobuf.ByteString getDescriptionBytes(); - - /** - * - * - *
-     * The path, in RFC 8901 JSON Pointer format, to the field that failed
-     * validation. This may be left empty if no specific field is affected.
-     * 
- * - * string field_path = 2; - * - * @return The fieldPath. - */ - java.lang.String getFieldPath(); - /** - * - * - *
-     * The path, in RFC 8901 JSON Pointer format, to the field that failed
-     * validation. This may be left empty if no specific field is affected.
-     * 
- * - * string field_path = 2; - * - * @return The bytes for fieldPath. - */ - com.google.protobuf.ByteString getFieldPathBytes(); - - /** - * - * - *
-     * The initial position of the error in the uploaded text version of the
-     * module. This field may be omitted if no specific position applies, or if
-     * one could not be computed.
-     * 
- * - * - * optional .google.cloud.securitycentermanagement.v1.ValidateEventThreatDetectionCustomModuleResponse.Position start = 3; - * - * - * @return Whether the start field is set. - */ - boolean hasStart(); - /** - * - * - *
-     * The initial position of the error in the uploaded text version of the
-     * module. This field may be omitted if no specific position applies, or if
-     * one could not be computed.
-     * 
- * - * - * optional .google.cloud.securitycentermanagement.v1.ValidateEventThreatDetectionCustomModuleResponse.Position start = 3; - * - * - * @return The start. - */ - com.google.cloud.securitycentermanagement.v1.ValidateEventThreatDetectionCustomModuleResponse - .Position - getStart(); - /** - * - * - *
-     * The initial position of the error in the uploaded text version of the
-     * module. This field may be omitted if no specific position applies, or if
-     * one could not be computed.
-     * 
- * - * - * optional .google.cloud.securitycentermanagement.v1.ValidateEventThreatDetectionCustomModuleResponse.Position start = 3; - * - */ - com.google.cloud.securitycentermanagement.v1.ValidateEventThreatDetectionCustomModuleResponse - .PositionOrBuilder - getStartOrBuilder(); - - /** - * - * - *
-     * The end position of the error in the uploaded text version of the
-     * module. This field may be omitted if no specific position applies, or if
-     * one could not be computed..
-     * 
- * - * - * optional .google.cloud.securitycentermanagement.v1.ValidateEventThreatDetectionCustomModuleResponse.Position end = 4; - * - * - * @return Whether the end field is set. - */ - boolean hasEnd(); - /** - * - * - *
-     * The end position of the error in the uploaded text version of the
-     * module. This field may be omitted if no specific position applies, or if
-     * one could not be computed..
-     * 
- * - * - * optional .google.cloud.securitycentermanagement.v1.ValidateEventThreatDetectionCustomModuleResponse.Position end = 4; - * - * - * @return The end. - */ - com.google.cloud.securitycentermanagement.v1.ValidateEventThreatDetectionCustomModuleResponse - .Position - getEnd(); - /** - * - * - *
-     * The end position of the error in the uploaded text version of the
-     * module. This field may be omitted if no specific position applies, or if
-     * one could not be computed..
-     * 
- * - * - * optional .google.cloud.securitycentermanagement.v1.ValidateEventThreatDetectionCustomModuleResponse.Position end = 4; - * - */ - com.google.cloud.securitycentermanagement.v1.ValidateEventThreatDetectionCustomModuleResponse - .PositionOrBuilder - getEndOrBuilder(); - } - /** - * - * - *
-   * An error encountered while validating the uploaded configuration of an
-   * Event Threat Detection Custom Module.
-   * 
- * - * Protobuf type {@code - * google.cloud.securitycentermanagement.v1.ValidateEventThreatDetectionCustomModuleResponse.CustomModuleValidationError} - */ - public static final class CustomModuleValidationError - extends com.google.protobuf.GeneratedMessageV3 - implements - // @@protoc_insertion_point(message_implements:google.cloud.securitycentermanagement.v1.ValidateEventThreatDetectionCustomModuleResponse.CustomModuleValidationError) - CustomModuleValidationErrorOrBuilder { - private static final long serialVersionUID = 0L; - // Use CustomModuleValidationError.newBuilder() to construct. - private CustomModuleValidationError(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - - private CustomModuleValidationError() { - description_ = ""; - fieldPath_ = ""; - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { - return new CustomModuleValidationError(); - } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.securitycentermanagement.v1.SecurityCenterManagementProto - .internal_static_google_cloud_securitycentermanagement_v1_ValidateEventThreatDetectionCustomModuleResponse_CustomModuleValidationError_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.securitycentermanagement.v1.SecurityCenterManagementProto - .internal_static_google_cloud_securitycentermanagement_v1_ValidateEventThreatDetectionCustomModuleResponse_CustomModuleValidationError_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.securitycentermanagement.v1 - .ValidateEventThreatDetectionCustomModuleResponse.CustomModuleValidationError - .class, - com.google.cloud.securitycentermanagement.v1 - .ValidateEventThreatDetectionCustomModuleResponse.CustomModuleValidationError - .Builder.class); - } - - private int bitField0_; - public static final int DESCRIPTION_FIELD_NUMBER = 1; - - @SuppressWarnings("serial") - private volatile java.lang.Object description_ = ""; - /** - * - * - *
-     * A description of the error, suitable for human consumption. Required.
-     * 
- * - * string description = 1; - * - * @return The description. - */ - @java.lang.Override - public java.lang.String getDescription() { - java.lang.Object ref = description_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - description_ = s; - return s; - } - } - /** - * - * - *
-     * A description of the error, suitable for human consumption. Required.
-     * 
- * - * string description = 1; - * - * @return The bytes for description. - */ - @java.lang.Override - 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); - description_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int FIELD_PATH_FIELD_NUMBER = 2; - - @SuppressWarnings("serial") - private volatile java.lang.Object fieldPath_ = ""; - /** - * - * - *
-     * The path, in RFC 8901 JSON Pointer format, to the field that failed
-     * validation. This may be left empty if no specific field is affected.
-     * 
- * - * string field_path = 2; - * - * @return The fieldPath. - */ - @java.lang.Override - public java.lang.String getFieldPath() { - java.lang.Object ref = fieldPath_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - fieldPath_ = s; - return s; - } - } - /** - * - * - *
-     * The path, in RFC 8901 JSON Pointer format, to the field that failed
-     * validation. This may be left empty if no specific field is affected.
-     * 
- * - * string field_path = 2; - * - * @return The bytes for fieldPath. - */ - @java.lang.Override - public com.google.protobuf.ByteString getFieldPathBytes() { - java.lang.Object ref = fieldPath_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - fieldPath_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int START_FIELD_NUMBER = 3; - private com.google.cloud.securitycentermanagement.v1 - .ValidateEventThreatDetectionCustomModuleResponse.Position - start_; - /** - * - * - *
-     * The initial position of the error in the uploaded text version of the
-     * module. This field may be omitted if no specific position applies, or if
-     * one could not be computed.
-     * 
- * - * - * optional .google.cloud.securitycentermanagement.v1.ValidateEventThreatDetectionCustomModuleResponse.Position start = 3; - * - * - * @return Whether the start field is set. - */ - @java.lang.Override - public boolean hasStart() { - return ((bitField0_ & 0x00000001) != 0); - } - /** - * - * - *
-     * The initial position of the error in the uploaded text version of the
-     * module. This field may be omitted if no specific position applies, or if
-     * one could not be computed.
-     * 
- * - * - * optional .google.cloud.securitycentermanagement.v1.ValidateEventThreatDetectionCustomModuleResponse.Position start = 3; - * - * - * @return The start. - */ - @java.lang.Override - public com.google.cloud.securitycentermanagement.v1 - .ValidateEventThreatDetectionCustomModuleResponse.Position - getStart() { - return start_ == null - ? com.google.cloud.securitycentermanagement.v1 - .ValidateEventThreatDetectionCustomModuleResponse.Position.getDefaultInstance() - : start_; - } - /** - * - * - *
-     * The initial position of the error in the uploaded text version of the
-     * module. This field may be omitted if no specific position applies, or if
-     * one could not be computed.
-     * 
- * - * - * optional .google.cloud.securitycentermanagement.v1.ValidateEventThreatDetectionCustomModuleResponse.Position start = 3; - * - */ - @java.lang.Override - public com.google.cloud.securitycentermanagement.v1 - .ValidateEventThreatDetectionCustomModuleResponse.PositionOrBuilder - getStartOrBuilder() { - return start_ == null - ? com.google.cloud.securitycentermanagement.v1 - .ValidateEventThreatDetectionCustomModuleResponse.Position.getDefaultInstance() - : start_; - } - - public static final int END_FIELD_NUMBER = 4; - private com.google.cloud.securitycentermanagement.v1 - .ValidateEventThreatDetectionCustomModuleResponse.Position - end_; - /** - * - * - *
-     * The end position of the error in the uploaded text version of the
-     * module. This field may be omitted if no specific position applies, or if
-     * one could not be computed..
-     * 
- * - * - * optional .google.cloud.securitycentermanagement.v1.ValidateEventThreatDetectionCustomModuleResponse.Position end = 4; - * - * - * @return Whether the end field is set. - */ - @java.lang.Override - public boolean hasEnd() { - return ((bitField0_ & 0x00000002) != 0); - } - /** - * - * - *
-     * The end position of the error in the uploaded text version of the
-     * module. This field may be omitted if no specific position applies, or if
-     * one could not be computed..
-     * 
- * - * - * optional .google.cloud.securitycentermanagement.v1.ValidateEventThreatDetectionCustomModuleResponse.Position end = 4; - * - * - * @return The end. - */ - @java.lang.Override - public com.google.cloud.securitycentermanagement.v1 - .ValidateEventThreatDetectionCustomModuleResponse.Position - getEnd() { - return end_ == null - ? com.google.cloud.securitycentermanagement.v1 - .ValidateEventThreatDetectionCustomModuleResponse.Position.getDefaultInstance() - : end_; - } - /** - * - * - *
-     * The end position of the error in the uploaded text version of the
-     * module. This field may be omitted if no specific position applies, or if
-     * one could not be computed..
-     * 
- * - * - * optional .google.cloud.securitycentermanagement.v1.ValidateEventThreatDetectionCustomModuleResponse.Position end = 4; - * - */ - @java.lang.Override - public com.google.cloud.securitycentermanagement.v1 - .ValidateEventThreatDetectionCustomModuleResponse.PositionOrBuilder - getEndOrBuilder() { - return end_ == null - ? com.google.cloud.securitycentermanagement.v1 - .ValidateEventThreatDetectionCustomModuleResponse.Position.getDefaultInstance() - : end_; - } - - private byte memoizedIsInitialized = -1; - - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(description_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, description_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(fieldPath_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 2, fieldPath_); - } - if (((bitField0_ & 0x00000001) != 0)) { - output.writeMessage(3, getStart()); - } - if (((bitField0_ & 0x00000002) != 0)) { - output.writeMessage(4, getEnd()); - } - getUnknownFields().writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(description_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, description_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(fieldPath_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, fieldPath_); - } - if (((bitField0_ & 0x00000001) != 0)) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, getStart()); - } - if (((bitField0_ & 0x00000002) != 0)) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(4, getEnd()); - } - size += getUnknownFields().getSerializedSize(); - memoizedSize = size; - return size; - } - - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj - instanceof - com.google.cloud.securitycentermanagement.v1 - .ValidateEventThreatDetectionCustomModuleResponse.CustomModuleValidationError)) { - return super.equals(obj); - } - com.google.cloud.securitycentermanagement.v1.ValidateEventThreatDetectionCustomModuleResponse - .CustomModuleValidationError - other = - (com.google.cloud.securitycentermanagement.v1 - .ValidateEventThreatDetectionCustomModuleResponse.CustomModuleValidationError) - obj; - - if (!getDescription().equals(other.getDescription())) return false; - if (!getFieldPath().equals(other.getFieldPath())) return false; - if (hasStart() != other.hasStart()) return false; - if (hasStart()) { - if (!getStart().equals(other.getStart())) return false; - } - if (hasEnd() != other.hasEnd()) return false; - if (hasEnd()) { - if (!getEnd().equals(other.getEnd())) return false; - } - if (!getUnknownFields().equals(other.getUnknownFields())) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + DESCRIPTION_FIELD_NUMBER; - hash = (53 * hash) + getDescription().hashCode(); - hash = (37 * hash) + FIELD_PATH_FIELD_NUMBER; - hash = (53 * hash) + getFieldPath().hashCode(); - if (hasStart()) { - hash = (37 * hash) + START_FIELD_NUMBER; - hash = (53 * hash) + getStart().hashCode(); - } - if (hasEnd()) { - hash = (37 * hash) + END_FIELD_NUMBER; - hash = (53 * hash) + getEnd().hashCode(); - } - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static com.google.cloud.securitycentermanagement.v1 - .ValidateEventThreatDetectionCustomModuleResponse.CustomModuleValidationError - parseFrom(java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.securitycentermanagement.v1 - .ValidateEventThreatDetectionCustomModuleResponse.CustomModuleValidationError - 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.securitycentermanagement.v1 - .ValidateEventThreatDetectionCustomModuleResponse.CustomModuleValidationError - parseFrom(com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.securitycentermanagement.v1 - .ValidateEventThreatDetectionCustomModuleResponse.CustomModuleValidationError - parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.securitycentermanagement.v1 - .ValidateEventThreatDetectionCustomModuleResponse.CustomModuleValidationError - parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.securitycentermanagement.v1 - .ValidateEventThreatDetectionCustomModuleResponse.CustomModuleValidationError - parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.securitycentermanagement.v1 - .ValidateEventThreatDetectionCustomModuleResponse.CustomModuleValidationError - parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.cloud.securitycentermanagement.v1 - .ValidateEventThreatDetectionCustomModuleResponse.CustomModuleValidationError - 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.securitycentermanagement.v1 - .ValidateEventThreatDetectionCustomModuleResponse.CustomModuleValidationError - parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); - } - - public static com.google.cloud.securitycentermanagement.v1 - .ValidateEventThreatDetectionCustomModuleResponse.CustomModuleValidationError - parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); - } - - public static com.google.cloud.securitycentermanagement.v1 - .ValidateEventThreatDetectionCustomModuleResponse.CustomModuleValidationError - parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.cloud.securitycentermanagement.v1 - .ValidateEventThreatDetectionCustomModuleResponse.CustomModuleValidationError - 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.securitycentermanagement.v1 - .ValidateEventThreatDetectionCustomModuleResponse.CustomModuleValidationError - prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - * - * - *
-     * An error encountered while validating the uploaded configuration of an
-     * Event Threat Detection Custom Module.
-     * 
- * - * Protobuf type {@code - * google.cloud.securitycentermanagement.v1.ValidateEventThreatDetectionCustomModuleResponse.CustomModuleValidationError} - */ - public static final class Builder - extends com.google.protobuf.GeneratedMessageV3.Builder - implements - // @@protoc_insertion_point(builder_implements:google.cloud.securitycentermanagement.v1.ValidateEventThreatDetectionCustomModuleResponse.CustomModuleValidationError) - com.google.cloud.securitycentermanagement.v1 - .ValidateEventThreatDetectionCustomModuleResponse.CustomModuleValidationErrorOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.securitycentermanagement.v1.SecurityCenterManagementProto - .internal_static_google_cloud_securitycentermanagement_v1_ValidateEventThreatDetectionCustomModuleResponse_CustomModuleValidationError_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.securitycentermanagement.v1.SecurityCenterManagementProto - .internal_static_google_cloud_securitycentermanagement_v1_ValidateEventThreatDetectionCustomModuleResponse_CustomModuleValidationError_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.securitycentermanagement.v1 - .ValidateEventThreatDetectionCustomModuleResponse.CustomModuleValidationError - .class, - com.google.cloud.securitycentermanagement.v1 - .ValidateEventThreatDetectionCustomModuleResponse.CustomModuleValidationError - .Builder.class); - } - - // Construct using - // com.google.cloud.securitycentermanagement.v1.ValidateEventThreatDetectionCustomModuleResponse.CustomModuleValidationError.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { - getStartFieldBuilder(); - getEndFieldBuilder(); - } - } - - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - description_ = ""; - fieldPath_ = ""; - start_ = null; - if (startBuilder_ != null) { - startBuilder_.dispose(); - startBuilder_ = null; - } - end_ = null; - if (endBuilder_ != null) { - endBuilder_.dispose(); - endBuilder_ = null; - } - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.securitycentermanagement.v1.SecurityCenterManagementProto - .internal_static_google_cloud_securitycentermanagement_v1_ValidateEventThreatDetectionCustomModuleResponse_CustomModuleValidationError_descriptor; - } - - @java.lang.Override - public com.google.cloud.securitycentermanagement.v1 - .ValidateEventThreatDetectionCustomModuleResponse.CustomModuleValidationError - getDefaultInstanceForType() { - return com.google.cloud.securitycentermanagement.v1 - .ValidateEventThreatDetectionCustomModuleResponse.CustomModuleValidationError - .getDefaultInstance(); - } - - @java.lang.Override - public com.google.cloud.securitycentermanagement.v1 - .ValidateEventThreatDetectionCustomModuleResponse.CustomModuleValidationError - build() { - com.google.cloud.securitycentermanagement.v1 - .ValidateEventThreatDetectionCustomModuleResponse.CustomModuleValidationError - result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.cloud.securitycentermanagement.v1 - .ValidateEventThreatDetectionCustomModuleResponse.CustomModuleValidationError - buildPartial() { - com.google.cloud.securitycentermanagement.v1 - .ValidateEventThreatDetectionCustomModuleResponse.CustomModuleValidationError - result = - new com.google.cloud.securitycentermanagement.v1 - .ValidateEventThreatDetectionCustomModuleResponse.CustomModuleValidationError( - this); - if (bitField0_ != 0) { - buildPartial0(result); - } - onBuilt(); - return result; - } - - private void buildPartial0( - com.google.cloud.securitycentermanagement.v1 - .ValidateEventThreatDetectionCustomModuleResponse.CustomModuleValidationError - result) { - int from_bitField0_ = bitField0_; - if (((from_bitField0_ & 0x00000001) != 0)) { - result.description_ = description_; - } - if (((from_bitField0_ & 0x00000002) != 0)) { - result.fieldPath_ = fieldPath_; - } - int to_bitField0_ = 0; - if (((from_bitField0_ & 0x00000004) != 0)) { - result.start_ = startBuilder_ == null ? start_ : startBuilder_.build(); - to_bitField0_ |= 0x00000001; - } - if (((from_bitField0_ & 0x00000008) != 0)) { - result.end_ = endBuilder_ == null ? end_ : endBuilder_.build(); - to_bitField0_ |= 0x00000002; - } - result.bitField0_ |= to_bitField0_; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.setField(field, value); - } - - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, - java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.addRepeatedField(field, value); - } - - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other - instanceof - com.google.cloud.securitycentermanagement.v1 - .ValidateEventThreatDetectionCustomModuleResponse.CustomModuleValidationError) { - return mergeFrom( - (com.google.cloud.securitycentermanagement.v1 - .ValidateEventThreatDetectionCustomModuleResponse.CustomModuleValidationError) - other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom( - com.google.cloud.securitycentermanagement.v1 - .ValidateEventThreatDetectionCustomModuleResponse.CustomModuleValidationError - other) { - if (other - == com.google.cloud.securitycentermanagement.v1 - .ValidateEventThreatDetectionCustomModuleResponse.CustomModuleValidationError - .getDefaultInstance()) return this; - if (!other.getDescription().isEmpty()) { - description_ = other.description_; - bitField0_ |= 0x00000001; - onChanged(); - } - if (!other.getFieldPath().isEmpty()) { - fieldPath_ = other.fieldPath_; - bitField0_ |= 0x00000002; - onChanged(); - } - if (other.hasStart()) { - mergeStart(other.getStart()); - } - if (other.hasEnd()) { - mergeEnd(other.getEnd()); - } - this.mergeUnknownFields(other.getUnknownFields()); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: - { - description_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 18: - { - fieldPath_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000002; - break; - } // case 18 - case 26: - { - input.readMessage(getStartFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00000004; - break; - } // case 26 - case 34: - { - input.readMessage(getEndFieldBuilder().getBuilder(), extensionRegistry); - 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) { - throw e.unwrapIOException(); - } finally { - onChanged(); - } // finally - return this; - } - - private int bitField0_; - - private java.lang.Object description_ = ""; - /** - * - * - *
-       * A description of the error, suitable for human consumption. Required.
-       * 
- * - * string description = 1; - * - * @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; - java.lang.String s = bs.toStringUtf8(); - description_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * - * - *
-       * A description of the error, suitable for human consumption. Required.
-       * 
- * - * string description = 1; - * - * @return The bytes for description. - */ - 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); - description_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * - * - *
-       * A description of the error, suitable for human consumption. Required.
-       * 
- * - * string description = 1; - * - * @param value The description to set. - * @return This builder for chaining. - */ - public Builder setDescription(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - description_ = value; - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - * - * - *
-       * A description of the error, suitable for human consumption. Required.
-       * 
- * - * string description = 1; - * - * @return This builder for chaining. - */ - public Builder clearDescription() { - description_ = getDefaultInstance().getDescription(); - bitField0_ = (bitField0_ & ~0x00000001); - onChanged(); - return this; - } - /** - * - * - *
-       * A description of the error, suitable for human consumption. Required.
-       * 
- * - * string description = 1; - * - * @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(); - } - checkByteStringIsUtf8(value); - description_ = value; - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - - private java.lang.Object fieldPath_ = ""; - /** - * - * - *
-       * The path, in RFC 8901 JSON Pointer format, to the field that failed
-       * validation. This may be left empty if no specific field is affected.
-       * 
- * - * string field_path = 2; - * - * @return The fieldPath. - */ - public java.lang.String getFieldPath() { - java.lang.Object ref = fieldPath_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - fieldPath_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * - * - *
-       * The path, in RFC 8901 JSON Pointer format, to the field that failed
-       * validation. This may be left empty if no specific field is affected.
-       * 
- * - * string field_path = 2; - * - * @return The bytes for fieldPath. - */ - public com.google.protobuf.ByteString getFieldPathBytes() { - java.lang.Object ref = fieldPath_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - fieldPath_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * - * - *
-       * The path, in RFC 8901 JSON Pointer format, to the field that failed
-       * validation. This may be left empty if no specific field is affected.
-       * 
- * - * string field_path = 2; - * - * @param value The fieldPath to set. - * @return This builder for chaining. - */ - public Builder setFieldPath(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - fieldPath_ = value; - bitField0_ |= 0x00000002; - onChanged(); - return this; - } - /** - * - * - *
-       * The path, in RFC 8901 JSON Pointer format, to the field that failed
-       * validation. This may be left empty if no specific field is affected.
-       * 
- * - * string field_path = 2; - * - * @return This builder for chaining. - */ - public Builder clearFieldPath() { - fieldPath_ = getDefaultInstance().getFieldPath(); - bitField0_ = (bitField0_ & ~0x00000002); - onChanged(); - return this; - } - /** - * - * - *
-       * The path, in RFC 8901 JSON Pointer format, to the field that failed
-       * validation. This may be left empty if no specific field is affected.
-       * 
- * - * string field_path = 2; - * - * @param value The bytes for fieldPath to set. - * @return This builder for chaining. - */ - public Builder setFieldPathBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - fieldPath_ = value; - bitField0_ |= 0x00000002; - onChanged(); - return this; - } - - private com.google.cloud.securitycentermanagement.v1 - .ValidateEventThreatDetectionCustomModuleResponse.Position - start_; - private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.securitycentermanagement.v1 - .ValidateEventThreatDetectionCustomModuleResponse.Position, - com.google.cloud.securitycentermanagement.v1 - .ValidateEventThreatDetectionCustomModuleResponse.Position.Builder, - com.google.cloud.securitycentermanagement.v1 - .ValidateEventThreatDetectionCustomModuleResponse.PositionOrBuilder> - startBuilder_; - /** - * - * - *
-       * The initial position of the error in the uploaded text version of the
-       * module. This field may be omitted if no specific position applies, or if
-       * one could not be computed.
-       * 
- * - * - * optional .google.cloud.securitycentermanagement.v1.ValidateEventThreatDetectionCustomModuleResponse.Position start = 3; - * - * - * @return Whether the start field is set. - */ - public boolean hasStart() { - return ((bitField0_ & 0x00000004) != 0); - } - /** - * - * - *
-       * The initial position of the error in the uploaded text version of the
-       * module. This field may be omitted if no specific position applies, or if
-       * one could not be computed.
-       * 
- * - * - * optional .google.cloud.securitycentermanagement.v1.ValidateEventThreatDetectionCustomModuleResponse.Position start = 3; - * - * - * @return The start. - */ - public com.google.cloud.securitycentermanagement.v1 - .ValidateEventThreatDetectionCustomModuleResponse.Position - getStart() { - if (startBuilder_ == null) { - return start_ == null - ? com.google.cloud.securitycentermanagement.v1 - .ValidateEventThreatDetectionCustomModuleResponse.Position.getDefaultInstance() - : start_; - } else { - return startBuilder_.getMessage(); - } - } - /** - * - * - *
-       * The initial position of the error in the uploaded text version of the
-       * module. This field may be omitted if no specific position applies, or if
-       * one could not be computed.
-       * 
- * - * - * optional .google.cloud.securitycentermanagement.v1.ValidateEventThreatDetectionCustomModuleResponse.Position start = 3; - * - */ - public Builder setStart( - com.google.cloud.securitycentermanagement.v1 - .ValidateEventThreatDetectionCustomModuleResponse.Position - value) { - if (startBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - start_ = value; - } else { - startBuilder_.setMessage(value); - } - bitField0_ |= 0x00000004; - onChanged(); - return this; - } - /** - * - * - *
-       * The initial position of the error in the uploaded text version of the
-       * module. This field may be omitted if no specific position applies, or if
-       * one could not be computed.
-       * 
- * - * - * optional .google.cloud.securitycentermanagement.v1.ValidateEventThreatDetectionCustomModuleResponse.Position start = 3; - * - */ - public Builder setStart( - com.google.cloud.securitycentermanagement.v1 - .ValidateEventThreatDetectionCustomModuleResponse.Position.Builder - builderForValue) { - if (startBuilder_ == null) { - start_ = builderForValue.build(); - } else { - startBuilder_.setMessage(builderForValue.build()); - } - bitField0_ |= 0x00000004; - onChanged(); - return this; - } - /** - * - * - *
-       * The initial position of the error in the uploaded text version of the
-       * module. This field may be omitted if no specific position applies, or if
-       * one could not be computed.
-       * 
- * - * - * optional .google.cloud.securitycentermanagement.v1.ValidateEventThreatDetectionCustomModuleResponse.Position start = 3; - * - */ - public Builder mergeStart( - com.google.cloud.securitycentermanagement.v1 - .ValidateEventThreatDetectionCustomModuleResponse.Position - value) { - if (startBuilder_ == null) { - if (((bitField0_ & 0x00000004) != 0) - && start_ != null - && start_ - != com.google.cloud.securitycentermanagement.v1 - .ValidateEventThreatDetectionCustomModuleResponse.Position - .getDefaultInstance()) { - getStartBuilder().mergeFrom(value); - } else { - start_ = value; - } - } else { - startBuilder_.mergeFrom(value); - } - bitField0_ |= 0x00000004; - onChanged(); - return this; - } - /** - * - * - *
-       * The initial position of the error in the uploaded text version of the
-       * module. This field may be omitted if no specific position applies, or if
-       * one could not be computed.
-       * 
- * - * - * optional .google.cloud.securitycentermanagement.v1.ValidateEventThreatDetectionCustomModuleResponse.Position start = 3; - * - */ - public Builder clearStart() { - bitField0_ = (bitField0_ & ~0x00000004); - start_ = null; - if (startBuilder_ != null) { - startBuilder_.dispose(); - startBuilder_ = null; - } - onChanged(); - return this; - } - /** - * - * - *
-       * The initial position of the error in the uploaded text version of the
-       * module. This field may be omitted if no specific position applies, or if
-       * one could not be computed.
-       * 
- * - * - * optional .google.cloud.securitycentermanagement.v1.ValidateEventThreatDetectionCustomModuleResponse.Position start = 3; - * - */ - public com.google.cloud.securitycentermanagement.v1 - .ValidateEventThreatDetectionCustomModuleResponse.Position.Builder - getStartBuilder() { - bitField0_ |= 0x00000004; - onChanged(); - return getStartFieldBuilder().getBuilder(); - } - /** - * - * - *
-       * The initial position of the error in the uploaded text version of the
-       * module. This field may be omitted if no specific position applies, or if
-       * one could not be computed.
-       * 
- * - * - * optional .google.cloud.securitycentermanagement.v1.ValidateEventThreatDetectionCustomModuleResponse.Position start = 3; - * - */ - public com.google.cloud.securitycentermanagement.v1 - .ValidateEventThreatDetectionCustomModuleResponse.PositionOrBuilder - getStartOrBuilder() { - if (startBuilder_ != null) { - return startBuilder_.getMessageOrBuilder(); - } else { - return start_ == null - ? com.google.cloud.securitycentermanagement.v1 - .ValidateEventThreatDetectionCustomModuleResponse.Position.getDefaultInstance() - : start_; - } - } - /** - * - * - *
-       * The initial position of the error in the uploaded text version of the
-       * module. This field may be omitted if no specific position applies, or if
-       * one could not be computed.
-       * 
- * - * - * optional .google.cloud.securitycentermanagement.v1.ValidateEventThreatDetectionCustomModuleResponse.Position start = 3; - * - */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.securitycentermanagement.v1 - .ValidateEventThreatDetectionCustomModuleResponse.Position, - com.google.cloud.securitycentermanagement.v1 - .ValidateEventThreatDetectionCustomModuleResponse.Position.Builder, - com.google.cloud.securitycentermanagement.v1 - .ValidateEventThreatDetectionCustomModuleResponse.PositionOrBuilder> - getStartFieldBuilder() { - if (startBuilder_ == null) { - startBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.securitycentermanagement.v1 - .ValidateEventThreatDetectionCustomModuleResponse.Position, - com.google.cloud.securitycentermanagement.v1 - .ValidateEventThreatDetectionCustomModuleResponse.Position.Builder, - com.google.cloud.securitycentermanagement.v1 - .ValidateEventThreatDetectionCustomModuleResponse.PositionOrBuilder>( - getStart(), getParentForChildren(), isClean()); - start_ = null; - } - return startBuilder_; - } - - private com.google.cloud.securitycentermanagement.v1 - .ValidateEventThreatDetectionCustomModuleResponse.Position - end_; - private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.securitycentermanagement.v1 - .ValidateEventThreatDetectionCustomModuleResponse.Position, - com.google.cloud.securitycentermanagement.v1 - .ValidateEventThreatDetectionCustomModuleResponse.Position.Builder, - com.google.cloud.securitycentermanagement.v1 - .ValidateEventThreatDetectionCustomModuleResponse.PositionOrBuilder> - endBuilder_; - /** - * - * - *
-       * The end position of the error in the uploaded text version of the
-       * module. This field may be omitted if no specific position applies, or if
-       * one could not be computed..
-       * 
- * - * - * optional .google.cloud.securitycentermanagement.v1.ValidateEventThreatDetectionCustomModuleResponse.Position end = 4; - * - * - * @return Whether the end field is set. - */ - public boolean hasEnd() { - return ((bitField0_ & 0x00000008) != 0); - } - /** - * - * - *
-       * The end position of the error in the uploaded text version of the
-       * module. This field may be omitted if no specific position applies, or if
-       * one could not be computed..
-       * 
- * - * - * optional .google.cloud.securitycentermanagement.v1.ValidateEventThreatDetectionCustomModuleResponse.Position end = 4; - * - * - * @return The end. - */ - public com.google.cloud.securitycentermanagement.v1 - .ValidateEventThreatDetectionCustomModuleResponse.Position - getEnd() { - if (endBuilder_ == null) { - return end_ == null - ? com.google.cloud.securitycentermanagement.v1 - .ValidateEventThreatDetectionCustomModuleResponse.Position.getDefaultInstance() - : end_; - } else { - return endBuilder_.getMessage(); - } - } - /** - * - * - *
-       * The end position of the error in the uploaded text version of the
-       * module. This field may be omitted if no specific position applies, or if
-       * one could not be computed..
-       * 
- * - * - * optional .google.cloud.securitycentermanagement.v1.ValidateEventThreatDetectionCustomModuleResponse.Position end = 4; - * - */ - public Builder setEnd( - com.google.cloud.securitycentermanagement.v1 - .ValidateEventThreatDetectionCustomModuleResponse.Position - value) { - if (endBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - end_ = value; - } else { - endBuilder_.setMessage(value); - } - bitField0_ |= 0x00000008; - onChanged(); - return this; - } - /** - * - * - *
-       * The end position of the error in the uploaded text version of the
-       * module. This field may be omitted if no specific position applies, or if
-       * one could not be computed..
-       * 
- * - * - * optional .google.cloud.securitycentermanagement.v1.ValidateEventThreatDetectionCustomModuleResponse.Position end = 4; - * - */ - public Builder setEnd( - com.google.cloud.securitycentermanagement.v1 - .ValidateEventThreatDetectionCustomModuleResponse.Position.Builder - builderForValue) { - if (endBuilder_ == null) { - end_ = builderForValue.build(); - } else { - endBuilder_.setMessage(builderForValue.build()); - } - bitField0_ |= 0x00000008; - onChanged(); - return this; - } - /** - * - * - *
-       * The end position of the error in the uploaded text version of the
-       * module. This field may be omitted if no specific position applies, or if
-       * one could not be computed..
-       * 
- * - * - * optional .google.cloud.securitycentermanagement.v1.ValidateEventThreatDetectionCustomModuleResponse.Position end = 4; - * - */ - public Builder mergeEnd( - com.google.cloud.securitycentermanagement.v1 - .ValidateEventThreatDetectionCustomModuleResponse.Position - value) { - if (endBuilder_ == null) { - if (((bitField0_ & 0x00000008) != 0) - && end_ != null - && end_ - != com.google.cloud.securitycentermanagement.v1 - .ValidateEventThreatDetectionCustomModuleResponse.Position - .getDefaultInstance()) { - getEndBuilder().mergeFrom(value); - } else { - end_ = value; - } - } else { - endBuilder_.mergeFrom(value); - } - bitField0_ |= 0x00000008; - onChanged(); - return this; - } - /** - * - * - *
-       * The end position of the error in the uploaded text version of the
-       * module. This field may be omitted if no specific position applies, or if
-       * one could not be computed..
-       * 
- * - * - * optional .google.cloud.securitycentermanagement.v1.ValidateEventThreatDetectionCustomModuleResponse.Position end = 4; - * - */ - public Builder clearEnd() { - bitField0_ = (bitField0_ & ~0x00000008); - end_ = null; - if (endBuilder_ != null) { - endBuilder_.dispose(); - endBuilder_ = null; - } - onChanged(); - return this; - } - /** - * - * - *
-       * The end position of the error in the uploaded text version of the
-       * module. This field may be omitted if no specific position applies, or if
-       * one could not be computed..
-       * 
- * - * - * optional .google.cloud.securitycentermanagement.v1.ValidateEventThreatDetectionCustomModuleResponse.Position end = 4; - * - */ - public com.google.cloud.securitycentermanagement.v1 - .ValidateEventThreatDetectionCustomModuleResponse.Position.Builder - getEndBuilder() { - bitField0_ |= 0x00000008; - onChanged(); - return getEndFieldBuilder().getBuilder(); - } - /** - * - * - *
-       * The end position of the error in the uploaded text version of the
-       * module. This field may be omitted if no specific position applies, or if
-       * one could not be computed..
-       * 
- * - * - * optional .google.cloud.securitycentermanagement.v1.ValidateEventThreatDetectionCustomModuleResponse.Position end = 4; - * - */ - public com.google.cloud.securitycentermanagement.v1 - .ValidateEventThreatDetectionCustomModuleResponse.PositionOrBuilder - getEndOrBuilder() { - if (endBuilder_ != null) { - return endBuilder_.getMessageOrBuilder(); - } else { - return end_ == null - ? com.google.cloud.securitycentermanagement.v1 - .ValidateEventThreatDetectionCustomModuleResponse.Position.getDefaultInstance() - : end_; - } - } - /** - * - * - *
-       * The end position of the error in the uploaded text version of the
-       * module. This field may be omitted if no specific position applies, or if
-       * one could not be computed..
-       * 
- * - * - * optional .google.cloud.securitycentermanagement.v1.ValidateEventThreatDetectionCustomModuleResponse.Position end = 4; - * - */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.securitycentermanagement.v1 - .ValidateEventThreatDetectionCustomModuleResponse.Position, - com.google.cloud.securitycentermanagement.v1 - .ValidateEventThreatDetectionCustomModuleResponse.Position.Builder, - com.google.cloud.securitycentermanagement.v1 - .ValidateEventThreatDetectionCustomModuleResponse.PositionOrBuilder> - getEndFieldBuilder() { - if (endBuilder_ == null) { - endBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.securitycentermanagement.v1 - .ValidateEventThreatDetectionCustomModuleResponse.Position, - com.google.cloud.securitycentermanagement.v1 - .ValidateEventThreatDetectionCustomModuleResponse.Position.Builder, - com.google.cloud.securitycentermanagement.v1 - .ValidateEventThreatDetectionCustomModuleResponse.PositionOrBuilder>( - getEnd(), getParentForChildren(), isClean()); - end_ = null; - } - return endBuilder_; - } - - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - // @@protoc_insertion_point(builder_scope:google.cloud.securitycentermanagement.v1.ValidateEventThreatDetectionCustomModuleResponse.CustomModuleValidationError) - } - - // @@protoc_insertion_point(class_scope:google.cloud.securitycentermanagement.v1.ValidateEventThreatDetectionCustomModuleResponse.CustomModuleValidationError) - private static final com.google.cloud.securitycentermanagement.v1 - .ValidateEventThreatDetectionCustomModuleResponse.CustomModuleValidationError - DEFAULT_INSTANCE; - - static { - DEFAULT_INSTANCE = - new com.google.cloud.securitycentermanagement.v1 - .ValidateEventThreatDetectionCustomModuleResponse.CustomModuleValidationError(); - } - - public static com.google.cloud.securitycentermanagement.v1 - .ValidateEventThreatDetectionCustomModuleResponse.CustomModuleValidationError - getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public CustomModuleValidationError parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException() - .setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public com.google.cloud.securitycentermanagement.v1 - .ValidateEventThreatDetectionCustomModuleResponse.CustomModuleValidationError - getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - } - - public interface PositionOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.cloud.securitycentermanagement.v1.ValidateEventThreatDetectionCustomModuleResponse.Position) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
-     * The line position in the text
-     * 
- * - * int32 line_number = 1; - * - * @return The lineNumber. - */ - int getLineNumber(); - - /** - * - * - *
-     * The column position in the line
-     * 
- * - * int32 column_number = 2; - * - * @return The columnNumber. - */ - int getColumnNumber(); - } - /** - * - * - *
-   * A position in the uploaded text version of a module.
-   * 
- * - * Protobuf type {@code - * google.cloud.securitycentermanagement.v1.ValidateEventThreatDetectionCustomModuleResponse.Position} - */ - public static final class Position extends com.google.protobuf.GeneratedMessageV3 - implements - // @@protoc_insertion_point(message_implements:google.cloud.securitycentermanagement.v1.ValidateEventThreatDetectionCustomModuleResponse.Position) - PositionOrBuilder { - private static final long serialVersionUID = 0L; - // Use Position.newBuilder() to construct. - private Position(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - - private Position() {} - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { - return new Position(); - } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.securitycentermanagement.v1.SecurityCenterManagementProto - .internal_static_google_cloud_securitycentermanagement_v1_ValidateEventThreatDetectionCustomModuleResponse_Position_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.securitycentermanagement.v1.SecurityCenterManagementProto - .internal_static_google_cloud_securitycentermanagement_v1_ValidateEventThreatDetectionCustomModuleResponse_Position_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.securitycentermanagement.v1 - .ValidateEventThreatDetectionCustomModuleResponse.Position.class, - com.google.cloud.securitycentermanagement.v1 - .ValidateEventThreatDetectionCustomModuleResponse.Position.Builder.class); - } - - public static final int LINE_NUMBER_FIELD_NUMBER = 1; - private int lineNumber_ = 0; - /** - * - * - *
-     * The line position in the text
-     * 
- * - * int32 line_number = 1; - * - * @return The lineNumber. - */ - @java.lang.Override - public int getLineNumber() { - return lineNumber_; - } - - public static final int COLUMN_NUMBER_FIELD_NUMBER = 2; - private int columnNumber_ = 0; - /** - * - * - *
-     * The column position in the line
-     * 
- * - * int32 column_number = 2; - * - * @return The columnNumber. - */ - @java.lang.Override - public int getColumnNumber() { - return columnNumber_; - } - - private byte memoizedIsInitialized = -1; - - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (lineNumber_ != 0) { - output.writeInt32(1, lineNumber_); - } - if (columnNumber_ != 0) { - output.writeInt32(2, columnNumber_); - } - getUnknownFields().writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (lineNumber_ != 0) { - size += com.google.protobuf.CodedOutputStream.computeInt32Size(1, lineNumber_); - } - if (columnNumber_ != 0) { - size += com.google.protobuf.CodedOutputStream.computeInt32Size(2, columnNumber_); - } - size += getUnknownFields().getSerializedSize(); - memoizedSize = size; - return size; - } - - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj - instanceof - com.google.cloud.securitycentermanagement.v1 - .ValidateEventThreatDetectionCustomModuleResponse.Position)) { - return super.equals(obj); - } - com.google.cloud.securitycentermanagement.v1.ValidateEventThreatDetectionCustomModuleResponse - .Position - other = - (com.google.cloud.securitycentermanagement.v1 - .ValidateEventThreatDetectionCustomModuleResponse.Position) - obj; - - if (getLineNumber() != other.getLineNumber()) return false; - if (getColumnNumber() != other.getColumnNumber()) return false; - if (!getUnknownFields().equals(other.getUnknownFields())) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + LINE_NUMBER_FIELD_NUMBER; - hash = (53 * hash) + getLineNumber(); - hash = (37 * hash) + COLUMN_NUMBER_FIELD_NUMBER; - hash = (53 * hash) + getColumnNumber(); - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static com.google.cloud.securitycentermanagement.v1 - .ValidateEventThreatDetectionCustomModuleResponse.Position - parseFrom(java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.securitycentermanagement.v1 - .ValidateEventThreatDetectionCustomModuleResponse.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.securitycentermanagement.v1 - .ValidateEventThreatDetectionCustomModuleResponse.Position - parseFrom(com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.securitycentermanagement.v1 - .ValidateEventThreatDetectionCustomModuleResponse.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.securitycentermanagement.v1 - .ValidateEventThreatDetectionCustomModuleResponse.Position - parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.securitycentermanagement.v1 - .ValidateEventThreatDetectionCustomModuleResponse.Position - parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.securitycentermanagement.v1 - .ValidateEventThreatDetectionCustomModuleResponse.Position - parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.cloud.securitycentermanagement.v1 - .ValidateEventThreatDetectionCustomModuleResponse.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.securitycentermanagement.v1 - .ValidateEventThreatDetectionCustomModuleResponse.Position - parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); - } - - public static com.google.cloud.securitycentermanagement.v1 - .ValidateEventThreatDetectionCustomModuleResponse.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.securitycentermanagement.v1 - .ValidateEventThreatDetectionCustomModuleResponse.Position - parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.cloud.securitycentermanagement.v1 - .ValidateEventThreatDetectionCustomModuleResponse.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 static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - - public static Builder newBuilder( - com.google.cloud.securitycentermanagement.v1 - .ValidateEventThreatDetectionCustomModuleResponse.Position - prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - * - * - *
-     * A position in the uploaded text version of a module.
-     * 
- * - * Protobuf type {@code - * google.cloud.securitycentermanagement.v1.ValidateEventThreatDetectionCustomModuleResponse.Position} - */ - public static final class Builder - extends com.google.protobuf.GeneratedMessageV3.Builder - implements - // @@protoc_insertion_point(builder_implements:google.cloud.securitycentermanagement.v1.ValidateEventThreatDetectionCustomModuleResponse.Position) - com.google.cloud.securitycentermanagement.v1 - .ValidateEventThreatDetectionCustomModuleResponse.PositionOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.securitycentermanagement.v1.SecurityCenterManagementProto - .internal_static_google_cloud_securitycentermanagement_v1_ValidateEventThreatDetectionCustomModuleResponse_Position_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.securitycentermanagement.v1.SecurityCenterManagementProto - .internal_static_google_cloud_securitycentermanagement_v1_ValidateEventThreatDetectionCustomModuleResponse_Position_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.securitycentermanagement.v1 - .ValidateEventThreatDetectionCustomModuleResponse.Position.class, - com.google.cloud.securitycentermanagement.v1 - .ValidateEventThreatDetectionCustomModuleResponse.Position.Builder.class); - } - - // Construct using - // com.google.cloud.securitycentermanagement.v1.ValidateEventThreatDetectionCustomModuleResponse.Position.newBuilder() - private Builder() {} - - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - } - - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - lineNumber_ = 0; - columnNumber_ = 0; - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.securitycentermanagement.v1.SecurityCenterManagementProto - .internal_static_google_cloud_securitycentermanagement_v1_ValidateEventThreatDetectionCustomModuleResponse_Position_descriptor; - } - - @java.lang.Override - public com.google.cloud.securitycentermanagement.v1 - .ValidateEventThreatDetectionCustomModuleResponse.Position - getDefaultInstanceForType() { - return com.google.cloud.securitycentermanagement.v1 - .ValidateEventThreatDetectionCustomModuleResponse.Position.getDefaultInstance(); - } - - @java.lang.Override - public com.google.cloud.securitycentermanagement.v1 - .ValidateEventThreatDetectionCustomModuleResponse.Position - build() { - com.google.cloud.securitycentermanagement.v1 - .ValidateEventThreatDetectionCustomModuleResponse.Position - result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.cloud.securitycentermanagement.v1 - .ValidateEventThreatDetectionCustomModuleResponse.Position - buildPartial() { - com.google.cloud.securitycentermanagement.v1 - .ValidateEventThreatDetectionCustomModuleResponse.Position - result = - new com.google.cloud.securitycentermanagement.v1 - .ValidateEventThreatDetectionCustomModuleResponse.Position(this); - if (bitField0_ != 0) { - buildPartial0(result); - } - onBuilt(); - return result; - } - - private void buildPartial0( - com.google.cloud.securitycentermanagement.v1 - .ValidateEventThreatDetectionCustomModuleResponse.Position - result) { - int from_bitField0_ = bitField0_; - if (((from_bitField0_ & 0x00000001) != 0)) { - result.lineNumber_ = lineNumber_; - } - if (((from_bitField0_ & 0x00000002) != 0)) { - result.columnNumber_ = columnNumber_; - } - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.setField(field, value); - } - - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, - java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.addRepeatedField(field, value); - } - - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other - instanceof - com.google.cloud.securitycentermanagement.v1 - .ValidateEventThreatDetectionCustomModuleResponse.Position) { - return mergeFrom( - (com.google.cloud.securitycentermanagement.v1 - .ValidateEventThreatDetectionCustomModuleResponse.Position) - other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom( - com.google.cloud.securitycentermanagement.v1 - .ValidateEventThreatDetectionCustomModuleResponse.Position - other) { - if (other - == com.google.cloud.securitycentermanagement.v1 - .ValidateEventThreatDetectionCustomModuleResponse.Position.getDefaultInstance()) - return this; - if (other.getLineNumber() != 0) { - setLineNumber(other.getLineNumber()); - } - if (other.getColumnNumber() != 0) { - setColumnNumber(other.getColumnNumber()); - } - this.mergeUnknownFields(other.getUnknownFields()); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 8: - { - lineNumber_ = input.readInt32(); - bitField0_ |= 0x00000001; - break; - } // case 8 - case 16: - { - columnNumber_ = 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) { - throw e.unwrapIOException(); - } finally { - onChanged(); - } // finally - return this; - } - - private int bitField0_; - - private int lineNumber_; - /** - * - * - *
-       * The line position in the text
-       * 
- * - * int32 line_number = 1; - * - * @return The lineNumber. - */ - @java.lang.Override - public int getLineNumber() { - return lineNumber_; - } - /** - * - * - *
-       * The line position in the text
-       * 
- * - * int32 line_number = 1; - * - * @param value The lineNumber to set. - * @return This builder for chaining. - */ - public Builder setLineNumber(int value) { - - lineNumber_ = value; - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - * - * - *
-       * The line position in the text
-       * 
- * - * int32 line_number = 1; - * - * @return This builder for chaining. - */ - public Builder clearLineNumber() { - bitField0_ = (bitField0_ & ~0x00000001); - lineNumber_ = 0; - onChanged(); - return this; - } - - private int columnNumber_; - /** - * - * - *
-       * The column position in the line
-       * 
- * - * int32 column_number = 2; - * - * @return The columnNumber. - */ - @java.lang.Override - public int getColumnNumber() { - return columnNumber_; - } - /** - * - * - *
-       * The column position in the line
-       * 
- * - * int32 column_number = 2; - * - * @param value The columnNumber to set. - * @return This builder for chaining. - */ - public Builder setColumnNumber(int value) { - - columnNumber_ = value; - bitField0_ |= 0x00000002; - onChanged(); - return this; - } - /** - * - * - *
-       * The column position in the line
-       * 
- * - * int32 column_number = 2; - * - * @return This builder for chaining. - */ - public Builder clearColumnNumber() { - bitField0_ = (bitField0_ & ~0x00000002); - columnNumber_ = 0; - onChanged(); - return this; - } - - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - // @@protoc_insertion_point(builder_scope:google.cloud.securitycentermanagement.v1.ValidateEventThreatDetectionCustomModuleResponse.Position) - } - - // @@protoc_insertion_point(class_scope:google.cloud.securitycentermanagement.v1.ValidateEventThreatDetectionCustomModuleResponse.Position) - private static final com.google.cloud.securitycentermanagement.v1 - .ValidateEventThreatDetectionCustomModuleResponse.Position - DEFAULT_INSTANCE; - - static { - DEFAULT_INSTANCE = - new com.google.cloud.securitycentermanagement.v1 - .ValidateEventThreatDetectionCustomModuleResponse.Position(); - } - - public static com.google.cloud.securitycentermanagement.v1 - .ValidateEventThreatDetectionCustomModuleResponse.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(); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public com.google.cloud.securitycentermanagement.v1 - .ValidateEventThreatDetectionCustomModuleResponse.Position - getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - } - - public static final int ERRORS_FIELD_NUMBER = 2; - - @SuppressWarnings("serial") - private java.util.List< - com.google.cloud.securitycentermanagement.v1 - .ValidateEventThreatDetectionCustomModuleResponse.CustomModuleValidationError> - errors_; - /** - * - * - *
-   * A list of errors returned by the validator. If the list is empty, there
-   * were no errors.
-   * 
- * - * - * repeated .google.cloud.securitycentermanagement.v1.ValidateEventThreatDetectionCustomModuleResponse.CustomModuleValidationError errors = 2; - * - */ - @java.lang.Override - public java.util.List< - com.google.cloud.securitycentermanagement.v1 - .ValidateEventThreatDetectionCustomModuleResponse.CustomModuleValidationError> - getErrorsList() { - return errors_; - } - /** - * - * - *
-   * A list of errors returned by the validator. If the list is empty, there
-   * were no errors.
-   * 
- * - * - * repeated .google.cloud.securitycentermanagement.v1.ValidateEventThreatDetectionCustomModuleResponse.CustomModuleValidationError errors = 2; - * - */ - @java.lang.Override - public java.util.List< - ? extends - com.google.cloud.securitycentermanagement.v1 - .ValidateEventThreatDetectionCustomModuleResponse - .CustomModuleValidationErrorOrBuilder> - getErrorsOrBuilderList() { - return errors_; - } - /** - * - * - *
-   * A list of errors returned by the validator. If the list is empty, there
-   * were no errors.
-   * 
- * - * - * repeated .google.cloud.securitycentermanagement.v1.ValidateEventThreatDetectionCustomModuleResponse.CustomModuleValidationError errors = 2; - * - */ - @java.lang.Override - public int getErrorsCount() { - return errors_.size(); - } - /** - * - * - *
-   * A list of errors returned by the validator. If the list is empty, there
-   * were no errors.
-   * 
- * - * - * repeated .google.cloud.securitycentermanagement.v1.ValidateEventThreatDetectionCustomModuleResponse.CustomModuleValidationError errors = 2; - * - */ - @java.lang.Override - public com.google.cloud.securitycentermanagement.v1 - .ValidateEventThreatDetectionCustomModuleResponse.CustomModuleValidationError - getErrors(int index) { - return errors_.get(index); - } - /** - * - * - *
-   * A list of errors returned by the validator. If the list is empty, there
-   * were no errors.
-   * 
- * - * - * repeated .google.cloud.securitycentermanagement.v1.ValidateEventThreatDetectionCustomModuleResponse.CustomModuleValidationError errors = 2; - * - */ - @java.lang.Override - public com.google.cloud.securitycentermanagement.v1 - .ValidateEventThreatDetectionCustomModuleResponse.CustomModuleValidationErrorOrBuilder - getErrorsOrBuilder(int index) { - return errors_.get(index); - } - - private byte memoizedIsInitialized = -1; - - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - for (int i = 0; i < errors_.size(); i++) { - output.writeMessage(2, errors_.get(i)); - } - getUnknownFields().writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - for (int i = 0; i < errors_.size(); i++) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, errors_.get(i)); - } - size += getUnknownFields().getSerializedSize(); - memoizedSize = size; - return size; - } - - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj - instanceof - com.google.cloud.securitycentermanagement.v1 - .ValidateEventThreatDetectionCustomModuleResponse)) { - return super.equals(obj); - } - com.google.cloud.securitycentermanagement.v1.ValidateEventThreatDetectionCustomModuleResponse - other = - (com.google.cloud.securitycentermanagement.v1 - .ValidateEventThreatDetectionCustomModuleResponse) - obj; - - if (!getErrorsList().equals(other.getErrorsList())) return false; - if (!getUnknownFields().equals(other.getUnknownFields())) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - if (getErrorsCount() > 0) { - hash = (37 * hash) + ERRORS_FIELD_NUMBER; - hash = (53 * hash) + getErrorsList().hashCode(); - } - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static com.google.cloud.securitycentermanagement.v1 - .ValidateEventThreatDetectionCustomModuleResponse - parseFrom(java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.securitycentermanagement.v1 - .ValidateEventThreatDetectionCustomModuleResponse - 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.securitycentermanagement.v1 - .ValidateEventThreatDetectionCustomModuleResponse - parseFrom(com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.securitycentermanagement.v1 - .ValidateEventThreatDetectionCustomModuleResponse - parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.securitycentermanagement.v1 - .ValidateEventThreatDetectionCustomModuleResponse - parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.securitycentermanagement.v1 - .ValidateEventThreatDetectionCustomModuleResponse - parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.securitycentermanagement.v1 - .ValidateEventThreatDetectionCustomModuleResponse - parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.cloud.securitycentermanagement.v1 - .ValidateEventThreatDetectionCustomModuleResponse - 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.securitycentermanagement.v1 - .ValidateEventThreatDetectionCustomModuleResponse - parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); - } - - public static com.google.cloud.securitycentermanagement.v1 - .ValidateEventThreatDetectionCustomModuleResponse - parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); - } - - public static com.google.cloud.securitycentermanagement.v1 - .ValidateEventThreatDetectionCustomModuleResponse - parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.cloud.securitycentermanagement.v1 - .ValidateEventThreatDetectionCustomModuleResponse - 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.securitycentermanagement.v1.ValidateEventThreatDetectionCustomModuleResponse - prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - * - * - *
-   * Response to validating an Event Threat Detection custom module.
-   * 
- * - * Protobuf type {@code - * google.cloud.securitycentermanagement.v1.ValidateEventThreatDetectionCustomModuleResponse} - */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements - // @@protoc_insertion_point(builder_implements:google.cloud.securitycentermanagement.v1.ValidateEventThreatDetectionCustomModuleResponse) - com.google.cloud.securitycentermanagement.v1 - .ValidateEventThreatDetectionCustomModuleResponseOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.securitycentermanagement.v1.SecurityCenterManagementProto - .internal_static_google_cloud_securitycentermanagement_v1_ValidateEventThreatDetectionCustomModuleResponse_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.securitycentermanagement.v1.SecurityCenterManagementProto - .internal_static_google_cloud_securitycentermanagement_v1_ValidateEventThreatDetectionCustomModuleResponse_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.securitycentermanagement.v1 - .ValidateEventThreatDetectionCustomModuleResponse.class, - com.google.cloud.securitycentermanagement.v1 - .ValidateEventThreatDetectionCustomModuleResponse.Builder.class); - } - - // Construct using - // com.google.cloud.securitycentermanagement.v1.ValidateEventThreatDetectionCustomModuleResponse.newBuilder() - private Builder() {} - - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - } - - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - if (errorsBuilder_ == null) { - errors_ = java.util.Collections.emptyList(); - } else { - errors_ = null; - errorsBuilder_.clear(); - } - bitField0_ = (bitField0_ & ~0x00000001); - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.securitycentermanagement.v1.SecurityCenterManagementProto - .internal_static_google_cloud_securitycentermanagement_v1_ValidateEventThreatDetectionCustomModuleResponse_descriptor; - } - - @java.lang.Override - public com.google.cloud.securitycentermanagement.v1 - .ValidateEventThreatDetectionCustomModuleResponse - getDefaultInstanceForType() { - return com.google.cloud.securitycentermanagement.v1 - .ValidateEventThreatDetectionCustomModuleResponse.getDefaultInstance(); - } - - @java.lang.Override - public com.google.cloud.securitycentermanagement.v1 - .ValidateEventThreatDetectionCustomModuleResponse - build() { - com.google.cloud.securitycentermanagement.v1.ValidateEventThreatDetectionCustomModuleResponse - result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.cloud.securitycentermanagement.v1 - .ValidateEventThreatDetectionCustomModuleResponse - buildPartial() { - com.google.cloud.securitycentermanagement.v1.ValidateEventThreatDetectionCustomModuleResponse - result = - new com.google.cloud.securitycentermanagement.v1 - .ValidateEventThreatDetectionCustomModuleResponse(this); - buildPartialRepeatedFields(result); - if (bitField0_ != 0) { - buildPartial0(result); - } - onBuilt(); - return result; - } - - private void buildPartialRepeatedFields( - com.google.cloud.securitycentermanagement.v1 - .ValidateEventThreatDetectionCustomModuleResponse - result) { - if (errorsBuilder_ == null) { - if (((bitField0_ & 0x00000001) != 0)) { - errors_ = java.util.Collections.unmodifiableList(errors_); - bitField0_ = (bitField0_ & ~0x00000001); - } - result.errors_ = errors_; - } else { - result.errors_ = errorsBuilder_.build(); - } - } - - private void buildPartial0( - com.google.cloud.securitycentermanagement.v1 - .ValidateEventThreatDetectionCustomModuleResponse - result) { - int from_bitField0_ = bitField0_; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.setField(field, value); - } - - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.addRepeatedField(field, value); - } - - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other - instanceof - com.google.cloud.securitycentermanagement.v1 - .ValidateEventThreatDetectionCustomModuleResponse) { - return mergeFrom( - (com.google.cloud.securitycentermanagement.v1 - .ValidateEventThreatDetectionCustomModuleResponse) - other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom( - com.google.cloud.securitycentermanagement.v1 - .ValidateEventThreatDetectionCustomModuleResponse - other) { - if (other - == com.google.cloud.securitycentermanagement.v1 - .ValidateEventThreatDetectionCustomModuleResponse.getDefaultInstance()) return this; - if (errorsBuilder_ == null) { - if (!other.errors_.isEmpty()) { - if (errors_.isEmpty()) { - errors_ = other.errors_; - bitField0_ = (bitField0_ & ~0x00000001); - } else { - ensureErrorsIsMutable(); - errors_.addAll(other.errors_); - } - onChanged(); - } - } else { - if (!other.errors_.isEmpty()) { - if (errorsBuilder_.isEmpty()) { - errorsBuilder_.dispose(); - errorsBuilder_ = null; - errors_ = other.errors_; - bitField0_ = (bitField0_ & ~0x00000001); - errorsBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders - ? getErrorsFieldBuilder() - : null; - } else { - errorsBuilder_.addAllMessages(other.errors_); - } - } - } - this.mergeUnknownFields(other.getUnknownFields()); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 18: - { - com.google.cloud.securitycentermanagement.v1 - .ValidateEventThreatDetectionCustomModuleResponse - .CustomModuleValidationError - m = - input.readMessage( - com.google.cloud.securitycentermanagement.v1 - .ValidateEventThreatDetectionCustomModuleResponse - .CustomModuleValidationError.parser(), - extensionRegistry); - if (errorsBuilder_ == null) { - ensureErrorsIsMutable(); - errors_.add(m); - } else { - errorsBuilder_.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) { - throw e.unwrapIOException(); - } finally { - onChanged(); - } // finally - return this; - } - - private int bitField0_; - - private java.util.List< - com.google.cloud.securitycentermanagement.v1 - .ValidateEventThreatDetectionCustomModuleResponse.CustomModuleValidationError> - errors_ = java.util.Collections.emptyList(); - - private void ensureErrorsIsMutable() { - if (!((bitField0_ & 0x00000001) != 0)) { - errors_ = - new java.util.ArrayList< - com.google.cloud.securitycentermanagement.v1 - .ValidateEventThreatDetectionCustomModuleResponse.CustomModuleValidationError>( - errors_); - bitField0_ |= 0x00000001; - } - } - - private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.securitycentermanagement.v1 - .ValidateEventThreatDetectionCustomModuleResponse.CustomModuleValidationError, - com.google.cloud.securitycentermanagement.v1 - .ValidateEventThreatDetectionCustomModuleResponse.CustomModuleValidationError - .Builder, - com.google.cloud.securitycentermanagement.v1 - .ValidateEventThreatDetectionCustomModuleResponse - .CustomModuleValidationErrorOrBuilder> - errorsBuilder_; - - /** - * - * - *
-     * A list of errors returned by the validator. If the list is empty, there
-     * were no errors.
-     * 
- * - * - * repeated .google.cloud.securitycentermanagement.v1.ValidateEventThreatDetectionCustomModuleResponse.CustomModuleValidationError errors = 2; - * - */ - public java.util.List< - com.google.cloud.securitycentermanagement.v1 - .ValidateEventThreatDetectionCustomModuleResponse.CustomModuleValidationError> - getErrorsList() { - if (errorsBuilder_ == null) { - return java.util.Collections.unmodifiableList(errors_); - } else { - return errorsBuilder_.getMessageList(); - } - } - /** - * - * - *
-     * A list of errors returned by the validator. If the list is empty, there
-     * were no errors.
-     * 
- * - * - * repeated .google.cloud.securitycentermanagement.v1.ValidateEventThreatDetectionCustomModuleResponse.CustomModuleValidationError errors = 2; - * - */ - public int getErrorsCount() { - if (errorsBuilder_ == null) { - return errors_.size(); - } else { - return errorsBuilder_.getCount(); - } - } - /** - * - * - *
-     * A list of errors returned by the validator. If the list is empty, there
-     * were no errors.
-     * 
- * - * - * repeated .google.cloud.securitycentermanagement.v1.ValidateEventThreatDetectionCustomModuleResponse.CustomModuleValidationError errors = 2; - * - */ - public com.google.cloud.securitycentermanagement.v1 - .ValidateEventThreatDetectionCustomModuleResponse.CustomModuleValidationError - getErrors(int index) { - if (errorsBuilder_ == null) { - return errors_.get(index); - } else { - return errorsBuilder_.getMessage(index); - } - } - /** - * - * - *
-     * A list of errors returned by the validator. If the list is empty, there
-     * were no errors.
-     * 
- * - * - * repeated .google.cloud.securitycentermanagement.v1.ValidateEventThreatDetectionCustomModuleResponse.CustomModuleValidationError errors = 2; - * - */ - public Builder setErrors( - int index, - com.google.cloud.securitycentermanagement.v1 - .ValidateEventThreatDetectionCustomModuleResponse.CustomModuleValidationError - value) { - if (errorsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureErrorsIsMutable(); - errors_.set(index, value); - onChanged(); - } else { - errorsBuilder_.setMessage(index, value); - } - return this; - } - /** - * - * - *
-     * A list of errors returned by the validator. If the list is empty, there
-     * were no errors.
-     * 
- * - * - * repeated .google.cloud.securitycentermanagement.v1.ValidateEventThreatDetectionCustomModuleResponse.CustomModuleValidationError errors = 2; - * - */ - public Builder setErrors( - int index, - com.google.cloud.securitycentermanagement.v1 - .ValidateEventThreatDetectionCustomModuleResponse.CustomModuleValidationError - .Builder - builderForValue) { - if (errorsBuilder_ == null) { - ensureErrorsIsMutable(); - errors_.set(index, builderForValue.build()); - onChanged(); - } else { - errorsBuilder_.setMessage(index, builderForValue.build()); - } - return this; - } - /** - * - * - *
-     * A list of errors returned by the validator. If the list is empty, there
-     * were no errors.
-     * 
- * - * - * repeated .google.cloud.securitycentermanagement.v1.ValidateEventThreatDetectionCustomModuleResponse.CustomModuleValidationError errors = 2; - * - */ - public Builder addErrors( - com.google.cloud.securitycentermanagement.v1 - .ValidateEventThreatDetectionCustomModuleResponse.CustomModuleValidationError - value) { - if (errorsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureErrorsIsMutable(); - errors_.add(value); - onChanged(); - } else { - errorsBuilder_.addMessage(value); - } - return this; - } - /** - * - * - *
-     * A list of errors returned by the validator. If the list is empty, there
-     * were no errors.
-     * 
- * - * - * repeated .google.cloud.securitycentermanagement.v1.ValidateEventThreatDetectionCustomModuleResponse.CustomModuleValidationError errors = 2; - * - */ - public Builder addErrors( - int index, - com.google.cloud.securitycentermanagement.v1 - .ValidateEventThreatDetectionCustomModuleResponse.CustomModuleValidationError - value) { - if (errorsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureErrorsIsMutable(); - errors_.add(index, value); - onChanged(); - } else { - errorsBuilder_.addMessage(index, value); - } - return this; - } - /** - * - * - *
-     * A list of errors returned by the validator. If the list is empty, there
-     * were no errors.
-     * 
- * - * - * repeated .google.cloud.securitycentermanagement.v1.ValidateEventThreatDetectionCustomModuleResponse.CustomModuleValidationError errors = 2; - * - */ - public Builder addErrors( - com.google.cloud.securitycentermanagement.v1 - .ValidateEventThreatDetectionCustomModuleResponse.CustomModuleValidationError - .Builder - builderForValue) { - if (errorsBuilder_ == null) { - ensureErrorsIsMutable(); - errors_.add(builderForValue.build()); - onChanged(); - } else { - errorsBuilder_.addMessage(builderForValue.build()); - } - return this; - } - /** - * - * - *
-     * A list of errors returned by the validator. If the list is empty, there
-     * were no errors.
-     * 
- * - * - * repeated .google.cloud.securitycentermanagement.v1.ValidateEventThreatDetectionCustomModuleResponse.CustomModuleValidationError errors = 2; - * - */ - public Builder addErrors( - int index, - com.google.cloud.securitycentermanagement.v1 - .ValidateEventThreatDetectionCustomModuleResponse.CustomModuleValidationError - .Builder - builderForValue) { - if (errorsBuilder_ == null) { - ensureErrorsIsMutable(); - errors_.add(index, builderForValue.build()); - onChanged(); - } else { - errorsBuilder_.addMessage(index, builderForValue.build()); - } - return this; - } - /** - * - * - *
-     * A list of errors returned by the validator. If the list is empty, there
-     * were no errors.
-     * 
- * - * - * repeated .google.cloud.securitycentermanagement.v1.ValidateEventThreatDetectionCustomModuleResponse.CustomModuleValidationError errors = 2; - * - */ - public Builder addAllErrors( - java.lang.Iterable< - ? extends - com.google.cloud.securitycentermanagement.v1 - .ValidateEventThreatDetectionCustomModuleResponse - .CustomModuleValidationError> - values) { - if (errorsBuilder_ == null) { - ensureErrorsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, errors_); - onChanged(); - } else { - errorsBuilder_.addAllMessages(values); - } - return this; - } - /** - * - * - *
-     * A list of errors returned by the validator. If the list is empty, there
-     * were no errors.
-     * 
- * - * - * repeated .google.cloud.securitycentermanagement.v1.ValidateEventThreatDetectionCustomModuleResponse.CustomModuleValidationError errors = 2; - * - */ - public Builder clearErrors() { - if (errorsBuilder_ == null) { - errors_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000001); - onChanged(); - } else { - errorsBuilder_.clear(); - } - return this; - } - /** - * - * - *
-     * A list of errors returned by the validator. If the list is empty, there
-     * were no errors.
-     * 
- * - * - * repeated .google.cloud.securitycentermanagement.v1.ValidateEventThreatDetectionCustomModuleResponse.CustomModuleValidationError errors = 2; - * - */ - public Builder removeErrors(int index) { - if (errorsBuilder_ == null) { - ensureErrorsIsMutable(); - errors_.remove(index); - onChanged(); - } else { - errorsBuilder_.remove(index); - } - return this; - } - /** - * - * - *
-     * A list of errors returned by the validator. If the list is empty, there
-     * were no errors.
-     * 
- * - * - * repeated .google.cloud.securitycentermanagement.v1.ValidateEventThreatDetectionCustomModuleResponse.CustomModuleValidationError errors = 2; - * - */ - public com.google.cloud.securitycentermanagement.v1 - .ValidateEventThreatDetectionCustomModuleResponse.CustomModuleValidationError.Builder - getErrorsBuilder(int index) { - return getErrorsFieldBuilder().getBuilder(index); - } - /** - * - * - *
-     * A list of errors returned by the validator. If the list is empty, there
-     * were no errors.
-     * 
- * - * - * repeated .google.cloud.securitycentermanagement.v1.ValidateEventThreatDetectionCustomModuleResponse.CustomModuleValidationError errors = 2; - * - */ - public com.google.cloud.securitycentermanagement.v1 - .ValidateEventThreatDetectionCustomModuleResponse.CustomModuleValidationErrorOrBuilder - getErrorsOrBuilder(int index) { - if (errorsBuilder_ == null) { - return errors_.get(index); - } else { - return errorsBuilder_.getMessageOrBuilder(index); - } - } - /** - * - * - *
-     * A list of errors returned by the validator. If the list is empty, there
-     * were no errors.
-     * 
- * - * - * repeated .google.cloud.securitycentermanagement.v1.ValidateEventThreatDetectionCustomModuleResponse.CustomModuleValidationError errors = 2; - * - */ - public java.util.List< - ? extends - com.google.cloud.securitycentermanagement.v1 - .ValidateEventThreatDetectionCustomModuleResponse - .CustomModuleValidationErrorOrBuilder> - getErrorsOrBuilderList() { - if (errorsBuilder_ != null) { - return errorsBuilder_.getMessageOrBuilderList(); - } else { - return java.util.Collections.unmodifiableList(errors_); - } - } - /** - * - * - *
-     * A list of errors returned by the validator. If the list is empty, there
-     * were no errors.
-     * 
- * - * - * repeated .google.cloud.securitycentermanagement.v1.ValidateEventThreatDetectionCustomModuleResponse.CustomModuleValidationError errors = 2; - * - */ - public com.google.cloud.securitycentermanagement.v1 - .ValidateEventThreatDetectionCustomModuleResponse.CustomModuleValidationError.Builder - addErrorsBuilder() { - return getErrorsFieldBuilder() - .addBuilder( - com.google.cloud.securitycentermanagement.v1 - .ValidateEventThreatDetectionCustomModuleResponse.CustomModuleValidationError - .getDefaultInstance()); - } - /** - * - * - *
-     * A list of errors returned by the validator. If the list is empty, there
-     * were no errors.
-     * 
- * - * - * repeated .google.cloud.securitycentermanagement.v1.ValidateEventThreatDetectionCustomModuleResponse.CustomModuleValidationError errors = 2; - * - */ - public com.google.cloud.securitycentermanagement.v1 - .ValidateEventThreatDetectionCustomModuleResponse.CustomModuleValidationError.Builder - addErrorsBuilder(int index) { - return getErrorsFieldBuilder() - .addBuilder( - index, - com.google.cloud.securitycentermanagement.v1 - .ValidateEventThreatDetectionCustomModuleResponse.CustomModuleValidationError - .getDefaultInstance()); - } - /** - * - * - *
-     * A list of errors returned by the validator. If the list is empty, there
-     * were no errors.
-     * 
- * - * - * repeated .google.cloud.securitycentermanagement.v1.ValidateEventThreatDetectionCustomModuleResponse.CustomModuleValidationError errors = 2; - * - */ - public java.util.List< - com.google.cloud.securitycentermanagement.v1 - .ValidateEventThreatDetectionCustomModuleResponse.CustomModuleValidationError - .Builder> - getErrorsBuilderList() { - return getErrorsFieldBuilder().getBuilderList(); - } - - private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.securitycentermanagement.v1 - .ValidateEventThreatDetectionCustomModuleResponse.CustomModuleValidationError, - com.google.cloud.securitycentermanagement.v1 - .ValidateEventThreatDetectionCustomModuleResponse.CustomModuleValidationError - .Builder, - com.google.cloud.securitycentermanagement.v1 - .ValidateEventThreatDetectionCustomModuleResponse - .CustomModuleValidationErrorOrBuilder> - getErrorsFieldBuilder() { - if (errorsBuilder_ == null) { - errorsBuilder_ = - new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.securitycentermanagement.v1 - .ValidateEventThreatDetectionCustomModuleResponse.CustomModuleValidationError, - com.google.cloud.securitycentermanagement.v1 - .ValidateEventThreatDetectionCustomModuleResponse.CustomModuleValidationError - .Builder, - com.google.cloud.securitycentermanagement.v1 - .ValidateEventThreatDetectionCustomModuleResponse - .CustomModuleValidationErrorOrBuilder>( - errors_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean()); - errors_ = null; - } - return errorsBuilder_; - } - - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - // @@protoc_insertion_point(builder_scope:google.cloud.securitycentermanagement.v1.ValidateEventThreatDetectionCustomModuleResponse) - } - - // @@protoc_insertion_point(class_scope:google.cloud.securitycentermanagement.v1.ValidateEventThreatDetectionCustomModuleResponse) - private static final com.google.cloud.securitycentermanagement.v1 - .ValidateEventThreatDetectionCustomModuleResponse - DEFAULT_INSTANCE; - - static { - DEFAULT_INSTANCE = - new com.google.cloud.securitycentermanagement.v1 - .ValidateEventThreatDetectionCustomModuleResponse(); - } - - public static com.google.cloud.securitycentermanagement.v1 - .ValidateEventThreatDetectionCustomModuleResponse - getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = - new com.google.protobuf.AbstractParser< - ValidateEventThreatDetectionCustomModuleResponse>() { - @java.lang.Override - public ValidateEventThreatDetectionCustomModuleResponse parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException() - .setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; - - public static com.google.protobuf.Parser - parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser - getParserForType() { - return PARSER; - } - - @java.lang.Override - public com.google.cloud.securitycentermanagement.v1 - .ValidateEventThreatDetectionCustomModuleResponse - getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } -} diff --git a/java-securitycentermanagement/proto-google-cloud-securitycentermanagement-v1/src/main/java/com/google/cloud/securitycentermanagement/v1/ValidateEventThreatDetectionCustomModuleResponseOrBuilder.java b/java-securitycentermanagement/proto-google-cloud-securitycentermanagement-v1/src/main/java/com/google/cloud/securitycentermanagement/v1/ValidateEventThreatDetectionCustomModuleResponseOrBuilder.java deleted file mode 100644 index 62546dd8b71c..000000000000 --- a/java-securitycentermanagement/proto-google-cloud-securitycentermanagement-v1/src/main/java/com/google/cloud/securitycentermanagement/v1/ValidateEventThreatDetectionCustomModuleResponseOrBuilder.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/securitycentermanagement/v1/security_center_management.proto - -package com.google.cloud.securitycentermanagement.v1; - -public interface ValidateEventThreatDetectionCustomModuleResponseOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.cloud.securitycentermanagement.v1.ValidateEventThreatDetectionCustomModuleResponse) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
-   * A list of errors returned by the validator. If the list is empty, there
-   * were no errors.
-   * 
- * - * - * repeated .google.cloud.securitycentermanagement.v1.ValidateEventThreatDetectionCustomModuleResponse.CustomModuleValidationError errors = 2; - * - */ - java.util.List< - com.google.cloud.securitycentermanagement.v1 - .ValidateEventThreatDetectionCustomModuleResponse.CustomModuleValidationError> - getErrorsList(); - /** - * - * - *
-   * A list of errors returned by the validator. If the list is empty, there
-   * were no errors.
-   * 
- * - * - * repeated .google.cloud.securitycentermanagement.v1.ValidateEventThreatDetectionCustomModuleResponse.CustomModuleValidationError errors = 2; - * - */ - com.google.cloud.securitycentermanagement.v1.ValidateEventThreatDetectionCustomModuleResponse - .CustomModuleValidationError - getErrors(int index); - /** - * - * - *
-   * A list of errors returned by the validator. If the list is empty, there
-   * were no errors.
-   * 
- * - * - * repeated .google.cloud.securitycentermanagement.v1.ValidateEventThreatDetectionCustomModuleResponse.CustomModuleValidationError errors = 2; - * - */ - int getErrorsCount(); - /** - * - * - *
-   * A list of errors returned by the validator. If the list is empty, there
-   * were no errors.
-   * 
- * - * - * repeated .google.cloud.securitycentermanagement.v1.ValidateEventThreatDetectionCustomModuleResponse.CustomModuleValidationError errors = 2; - * - */ - java.util.List< - ? extends - com.google.cloud.securitycentermanagement.v1 - .ValidateEventThreatDetectionCustomModuleResponse - .CustomModuleValidationErrorOrBuilder> - getErrorsOrBuilderList(); - /** - * - * - *
-   * A list of errors returned by the validator. If the list is empty, there
-   * were no errors.
-   * 
- * - * - * repeated .google.cloud.securitycentermanagement.v1.ValidateEventThreatDetectionCustomModuleResponse.CustomModuleValidationError errors = 2; - * - */ - com.google.cloud.securitycentermanagement.v1.ValidateEventThreatDetectionCustomModuleResponse - .CustomModuleValidationErrorOrBuilder - getErrorsOrBuilder(int index); -} diff --git a/java-securitycentermanagement/google-cloud-securitycentermanagement/src/main/java/com/google/cloud/securitycentermanagement/v1/SecurityCenterManagementClient.java b/owl-bot-staging/java-securitycentermanagement/v1/google-cloud-securitycentermanagement/src/main/java/com/google/cloud/securitycentermanagement/v1/SecurityCenterManagementClient.java similarity index 99% rename from java-securitycentermanagement/google-cloud-securitycentermanagement/src/main/java/com/google/cloud/securitycentermanagement/v1/SecurityCenterManagementClient.java rename to owl-bot-staging/java-securitycentermanagement/v1/google-cloud-securitycentermanagement/src/main/java/com/google/cloud/securitycentermanagement/v1/SecurityCenterManagementClient.java index a05bd19c8897..ddf2a3094059 100644 --- a/java-securitycentermanagement/google-cloud-securitycentermanagement/src/main/java/com/google/cloud/securitycentermanagement/v1/SecurityCenterManagementClient.java +++ b/owl-bot-staging/java-securitycentermanagement/v1/google-cloud-securitycentermanagement/src/main/java/com/google/cloud/securitycentermanagement/v1/SecurityCenterManagementClient.java @@ -1995,11 +1995,9 @@ public final SecurityHealthAnalyticsCustomModule createSecurityHealthAnalyticsCu * } * * @param securityHealthAnalyticsCustomModule Required. The resource being updated - * @param updateMask Required. Field mask is used to specify the fields to be overwritten in the - * SecurityHealthAnalyticsCustomModule resource by the update. The fields specified in the - * update_mask are relative to the resource, not the full request. A field will be overwritten - * if it is in the mask. If the user does not provide a mask then all fields will be - * overwritten. + * @param updateMask Required. The list of fields to be updated. The only fields that can be + * updated are `enablement_state` and `custom_config`. If empty or set to the wildcard value + * `*`, both `enablement_state` and `custom_config` are updated. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final SecurityHealthAnalyticsCustomModule updateSecurityHealthAnalyticsCustomModule( diff --git a/java-securitycentermanagement/google-cloud-securitycentermanagement/src/main/java/com/google/cloud/securitycentermanagement/v1/SecurityCenterManagementSettings.java b/owl-bot-staging/java-securitycentermanagement/v1/google-cloud-securitycentermanagement/src/main/java/com/google/cloud/securitycentermanagement/v1/SecurityCenterManagementSettings.java similarity index 99% rename from java-securitycentermanagement/google-cloud-securitycentermanagement/src/main/java/com/google/cloud/securitycentermanagement/v1/SecurityCenterManagementSettings.java rename to owl-bot-staging/java-securitycentermanagement/v1/google-cloud-securitycentermanagement/src/main/java/com/google/cloud/securitycentermanagement/v1/SecurityCenterManagementSettings.java index 708e8b06c4d0..63dfa60e9d42 100644 --- a/java-securitycentermanagement/google-cloud-securitycentermanagement/src/main/java/com/google/cloud/securitycentermanagement/v1/SecurityCenterManagementSettings.java +++ b/owl-bot-staging/java-securitycentermanagement/v1/google-cloud-securitycentermanagement/src/main/java/com/google/cloud/securitycentermanagement/v1/SecurityCenterManagementSettings.java @@ -34,6 +34,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.location.GetLocationRequest; diff --git a/java-securitycentermanagement/google-cloud-securitycentermanagement/src/main/java/com/google/cloud/securitycentermanagement/v1/gapic_metadata.json b/owl-bot-staging/java-securitycentermanagement/v1/google-cloud-securitycentermanagement/src/main/java/com/google/cloud/securitycentermanagement/v1/gapic_metadata.json similarity index 100% rename from java-securitycentermanagement/google-cloud-securitycentermanagement/src/main/java/com/google/cloud/securitycentermanagement/v1/gapic_metadata.json rename to owl-bot-staging/java-securitycentermanagement/v1/google-cloud-securitycentermanagement/src/main/java/com/google/cloud/securitycentermanagement/v1/gapic_metadata.json diff --git a/java-securitycentermanagement/google-cloud-securitycentermanagement/src/main/java/com/google/cloud/securitycentermanagement/v1/package-info.java b/owl-bot-staging/java-securitycentermanagement/v1/google-cloud-securitycentermanagement/src/main/java/com/google/cloud/securitycentermanagement/v1/package-info.java similarity index 100% rename from java-securitycentermanagement/google-cloud-securitycentermanagement/src/main/java/com/google/cloud/securitycentermanagement/v1/package-info.java rename to owl-bot-staging/java-securitycentermanagement/v1/google-cloud-securitycentermanagement/src/main/java/com/google/cloud/securitycentermanagement/v1/package-info.java diff --git a/java-securitycentermanagement/google-cloud-securitycentermanagement/src/main/java/com/google/cloud/securitycentermanagement/v1/stub/GrpcSecurityCenterManagementCallableFactory.java b/owl-bot-staging/java-securitycentermanagement/v1/google-cloud-securitycentermanagement/src/main/java/com/google/cloud/securitycentermanagement/v1/stub/GrpcSecurityCenterManagementCallableFactory.java similarity index 100% rename from java-securitycentermanagement/google-cloud-securitycentermanagement/src/main/java/com/google/cloud/securitycentermanagement/v1/stub/GrpcSecurityCenterManagementCallableFactory.java rename to owl-bot-staging/java-securitycentermanagement/v1/google-cloud-securitycentermanagement/src/main/java/com/google/cloud/securitycentermanagement/v1/stub/GrpcSecurityCenterManagementCallableFactory.java diff --git a/java-securitycentermanagement/google-cloud-securitycentermanagement/src/main/java/com/google/cloud/securitycentermanagement/v1/stub/GrpcSecurityCenterManagementStub.java b/owl-bot-staging/java-securitycentermanagement/v1/google-cloud-securitycentermanagement/src/main/java/com/google/cloud/securitycentermanagement/v1/stub/GrpcSecurityCenterManagementStub.java similarity index 99% rename from java-securitycentermanagement/google-cloud-securitycentermanagement/src/main/java/com/google/cloud/securitycentermanagement/v1/stub/GrpcSecurityCenterManagementStub.java rename to owl-bot-staging/java-securitycentermanagement/v1/google-cloud-securitycentermanagement/src/main/java/com/google/cloud/securitycentermanagement/v1/stub/GrpcSecurityCenterManagementStub.java index ec52e612c4d8..0ef914ece725 100644 --- a/java-securitycentermanagement/google-cloud-securitycentermanagement/src/main/java/com/google/cloud/securitycentermanagement/v1/stub/GrpcSecurityCenterManagementStub.java +++ b/owl-bot-staging/java-securitycentermanagement/v1/google-cloud-securitycentermanagement/src/main/java/com/google/cloud/securitycentermanagement/v1/stub/GrpcSecurityCenterManagementStub.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-securitycentermanagement/google-cloud-securitycentermanagement/src/main/java/com/google/cloud/securitycentermanagement/v1/stub/HttpJsonSecurityCenterManagementCallableFactory.java b/owl-bot-staging/java-securitycentermanagement/v1/google-cloud-securitycentermanagement/src/main/java/com/google/cloud/securitycentermanagement/v1/stub/HttpJsonSecurityCenterManagementCallableFactory.java similarity index 100% rename from java-securitycentermanagement/google-cloud-securitycentermanagement/src/main/java/com/google/cloud/securitycentermanagement/v1/stub/HttpJsonSecurityCenterManagementCallableFactory.java rename to owl-bot-staging/java-securitycentermanagement/v1/google-cloud-securitycentermanagement/src/main/java/com/google/cloud/securitycentermanagement/v1/stub/HttpJsonSecurityCenterManagementCallableFactory.java diff --git a/java-securitycentermanagement/google-cloud-securitycentermanagement/src/main/java/com/google/cloud/securitycentermanagement/v1/stub/HttpJsonSecurityCenterManagementStub.java b/owl-bot-staging/java-securitycentermanagement/v1/google-cloud-securitycentermanagement/src/main/java/com/google/cloud/securitycentermanagement/v1/stub/HttpJsonSecurityCenterManagementStub.java similarity index 100% rename from java-securitycentermanagement/google-cloud-securitycentermanagement/src/main/java/com/google/cloud/securitycentermanagement/v1/stub/HttpJsonSecurityCenterManagementStub.java rename to owl-bot-staging/java-securitycentermanagement/v1/google-cloud-securitycentermanagement/src/main/java/com/google/cloud/securitycentermanagement/v1/stub/HttpJsonSecurityCenterManagementStub.java diff --git a/java-securitycentermanagement/google-cloud-securitycentermanagement/src/main/java/com/google/cloud/securitycentermanagement/v1/stub/SecurityCenterManagementStub.java b/owl-bot-staging/java-securitycentermanagement/v1/google-cloud-securitycentermanagement/src/main/java/com/google/cloud/securitycentermanagement/v1/stub/SecurityCenterManagementStub.java similarity index 100% rename from java-securitycentermanagement/google-cloud-securitycentermanagement/src/main/java/com/google/cloud/securitycentermanagement/v1/stub/SecurityCenterManagementStub.java rename to owl-bot-staging/java-securitycentermanagement/v1/google-cloud-securitycentermanagement/src/main/java/com/google/cloud/securitycentermanagement/v1/stub/SecurityCenterManagementStub.java diff --git a/java-securitycentermanagement/google-cloud-securitycentermanagement/src/main/java/com/google/cloud/securitycentermanagement/v1/stub/SecurityCenterManagementStubSettings.java b/owl-bot-staging/java-securitycentermanagement/v1/google-cloud-securitycentermanagement/src/main/java/com/google/cloud/securitycentermanagement/v1/stub/SecurityCenterManagementStubSettings.java similarity index 100% rename from java-securitycentermanagement/google-cloud-securitycentermanagement/src/main/java/com/google/cloud/securitycentermanagement/v1/stub/SecurityCenterManagementStubSettings.java rename to owl-bot-staging/java-securitycentermanagement/v1/google-cloud-securitycentermanagement/src/main/java/com/google/cloud/securitycentermanagement/v1/stub/SecurityCenterManagementStubSettings.java diff --git a/java-securitycentermanagement/google-cloud-securitycentermanagement/src/main/resources/META-INF/native-image/com.google.cloud.securitycentermanagement.v1/reflect-config.json b/owl-bot-staging/java-securitycentermanagement/v1/google-cloud-securitycentermanagement/src/main/resources/META-INF/native-image/com.google.cloud.securitycentermanagement.v1/reflect-config.json similarity index 100% rename from java-securitycentermanagement/google-cloud-securitycentermanagement/src/main/resources/META-INF/native-image/com.google.cloud.securitycentermanagement.v1/reflect-config.json rename to owl-bot-staging/java-securitycentermanagement/v1/google-cloud-securitycentermanagement/src/main/resources/META-INF/native-image/com.google.cloud.securitycentermanagement.v1/reflect-config.json diff --git a/java-securitycentermanagement/google-cloud-securitycentermanagement/src/test/java/com/google/cloud/securitycentermanagement/v1/MockLocations.java b/owl-bot-staging/java-securitycentermanagement/v1/google-cloud-securitycentermanagement/src/test/java/com/google/cloud/securitycentermanagement/v1/MockLocations.java similarity index 100% rename from java-securitycentermanagement/google-cloud-securitycentermanagement/src/test/java/com/google/cloud/securitycentermanagement/v1/MockLocations.java rename to owl-bot-staging/java-securitycentermanagement/v1/google-cloud-securitycentermanagement/src/test/java/com/google/cloud/securitycentermanagement/v1/MockLocations.java diff --git a/java-securitycentermanagement/google-cloud-securitycentermanagement/src/test/java/com/google/cloud/securitycentermanagement/v1/MockLocationsImpl.java b/owl-bot-staging/java-securitycentermanagement/v1/google-cloud-securitycentermanagement/src/test/java/com/google/cloud/securitycentermanagement/v1/MockLocationsImpl.java similarity index 100% rename from java-securitycentermanagement/google-cloud-securitycentermanagement/src/test/java/com/google/cloud/securitycentermanagement/v1/MockLocationsImpl.java rename to owl-bot-staging/java-securitycentermanagement/v1/google-cloud-securitycentermanagement/src/test/java/com/google/cloud/securitycentermanagement/v1/MockLocationsImpl.java diff --git a/java-securitycentermanagement/google-cloud-securitycentermanagement/src/test/java/com/google/cloud/securitycentermanagement/v1/MockSecurityCenterManagement.java b/owl-bot-staging/java-securitycentermanagement/v1/google-cloud-securitycentermanagement/src/test/java/com/google/cloud/securitycentermanagement/v1/MockSecurityCenterManagement.java similarity index 100% rename from java-securitycentermanagement/google-cloud-securitycentermanagement/src/test/java/com/google/cloud/securitycentermanagement/v1/MockSecurityCenterManagement.java rename to owl-bot-staging/java-securitycentermanagement/v1/google-cloud-securitycentermanagement/src/test/java/com/google/cloud/securitycentermanagement/v1/MockSecurityCenterManagement.java diff --git a/java-securitycentermanagement/google-cloud-securitycentermanagement/src/test/java/com/google/cloud/securitycentermanagement/v1/MockSecurityCenterManagementImpl.java b/owl-bot-staging/java-securitycentermanagement/v1/google-cloud-securitycentermanagement/src/test/java/com/google/cloud/securitycentermanagement/v1/MockSecurityCenterManagementImpl.java similarity index 100% rename from java-securitycentermanagement/google-cloud-securitycentermanagement/src/test/java/com/google/cloud/securitycentermanagement/v1/MockSecurityCenterManagementImpl.java rename to owl-bot-staging/java-securitycentermanagement/v1/google-cloud-securitycentermanagement/src/test/java/com/google/cloud/securitycentermanagement/v1/MockSecurityCenterManagementImpl.java diff --git a/java-securitycentermanagement/google-cloud-securitycentermanagement/src/test/java/com/google/cloud/securitycentermanagement/v1/SecurityCenterManagementClientHttpJsonTest.java b/owl-bot-staging/java-securitycentermanagement/v1/google-cloud-securitycentermanagement/src/test/java/com/google/cloud/securitycentermanagement/v1/SecurityCenterManagementClientHttpJsonTest.java similarity index 100% rename from java-securitycentermanagement/google-cloud-securitycentermanagement/src/test/java/com/google/cloud/securitycentermanagement/v1/SecurityCenterManagementClientHttpJsonTest.java rename to owl-bot-staging/java-securitycentermanagement/v1/google-cloud-securitycentermanagement/src/test/java/com/google/cloud/securitycentermanagement/v1/SecurityCenterManagementClientHttpJsonTest.java diff --git a/java-securitycentermanagement/google-cloud-securitycentermanagement/src/test/java/com/google/cloud/securitycentermanagement/v1/SecurityCenterManagementClientTest.java b/owl-bot-staging/java-securitycentermanagement/v1/google-cloud-securitycentermanagement/src/test/java/com/google/cloud/securitycentermanagement/v1/SecurityCenterManagementClientTest.java similarity index 100% rename from java-securitycentermanagement/google-cloud-securitycentermanagement/src/test/java/com/google/cloud/securitycentermanagement/v1/SecurityCenterManagementClientTest.java rename to owl-bot-staging/java-securitycentermanagement/v1/google-cloud-securitycentermanagement/src/test/java/com/google/cloud/securitycentermanagement/v1/SecurityCenterManagementClientTest.java diff --git a/owl-bot-staging/java-securitycentermanagement/v1/grpc-google-cloud-securitycentermanagement-v1/src/main/java/com/google/cloud/securitycentermanagement/v1/SecurityCenterManagementGrpc.java b/owl-bot-staging/java-securitycentermanagement/v1/grpc-google-cloud-securitycentermanagement-v1/src/main/java/com/google/cloud/securitycentermanagement/v1/SecurityCenterManagementGrpc.java new file mode 100644 index 000000000000..4728c1a73894 --- /dev/null +++ b/owl-bot-staging/java-securitycentermanagement/v1/grpc-google-cloud-securitycentermanagement-v1/src/main/java/com/google/cloud/securitycentermanagement/v1/SecurityCenterManagementGrpc.java @@ -0,0 +1,1929 @@ +package com.google.cloud.securitycentermanagement.v1; + +import static io.grpc.MethodDescriptor.generateFullMethodName; + +/** + *
+ * Service describing handlers for resources
+ * 
+ */ +@javax.annotation.Generated( + value = "by gRPC proto compiler", + comments = "Source: google/cloud/securitycentermanagement/v1/security_center_management.proto") +@io.grpc.stub.annotations.GrpcGenerated +public final class SecurityCenterManagementGrpc { + + private SecurityCenterManagementGrpc() {} + + public static final java.lang.String SERVICE_NAME = "google.cloud.securitycentermanagement.v1.SecurityCenterManagement"; + + // Static method descriptors that strictly reflect the proto. + private static volatile io.grpc.MethodDescriptor getListEffectiveSecurityHealthAnalyticsCustomModulesMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "ListEffectiveSecurityHealthAnalyticsCustomModules", + requestType = com.google.cloud.securitycentermanagement.v1.ListEffectiveSecurityHealthAnalyticsCustomModulesRequest.class, + responseType = com.google.cloud.securitycentermanagement.v1.ListEffectiveSecurityHealthAnalyticsCustomModulesResponse.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor getListEffectiveSecurityHealthAnalyticsCustomModulesMethod() { + io.grpc.MethodDescriptor getListEffectiveSecurityHealthAnalyticsCustomModulesMethod; + if ((getListEffectiveSecurityHealthAnalyticsCustomModulesMethod = SecurityCenterManagementGrpc.getListEffectiveSecurityHealthAnalyticsCustomModulesMethod) == null) { + synchronized (SecurityCenterManagementGrpc.class) { + if ((getListEffectiveSecurityHealthAnalyticsCustomModulesMethod = SecurityCenterManagementGrpc.getListEffectiveSecurityHealthAnalyticsCustomModulesMethod) == null) { + SecurityCenterManagementGrpc.getListEffectiveSecurityHealthAnalyticsCustomModulesMethod = getListEffectiveSecurityHealthAnalyticsCustomModulesMethod = + io.grpc.MethodDescriptor.newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "ListEffectiveSecurityHealthAnalyticsCustomModules")) + .setSampledToLocalTracing(true) + .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.securitycentermanagement.v1.ListEffectiveSecurityHealthAnalyticsCustomModulesRequest.getDefaultInstance())) + .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.securitycentermanagement.v1.ListEffectiveSecurityHealthAnalyticsCustomModulesResponse.getDefaultInstance())) + .setSchemaDescriptor(new SecurityCenterManagementMethodDescriptorSupplier("ListEffectiveSecurityHealthAnalyticsCustomModules")) + .build(); + } + } + } + return getListEffectiveSecurityHealthAnalyticsCustomModulesMethod; + } + + private static volatile io.grpc.MethodDescriptor getGetEffectiveSecurityHealthAnalyticsCustomModuleMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "GetEffectiveSecurityHealthAnalyticsCustomModule", + requestType = com.google.cloud.securitycentermanagement.v1.GetEffectiveSecurityHealthAnalyticsCustomModuleRequest.class, + responseType = com.google.cloud.securitycentermanagement.v1.EffectiveSecurityHealthAnalyticsCustomModule.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor getGetEffectiveSecurityHealthAnalyticsCustomModuleMethod() { + io.grpc.MethodDescriptor getGetEffectiveSecurityHealthAnalyticsCustomModuleMethod; + if ((getGetEffectiveSecurityHealthAnalyticsCustomModuleMethod = SecurityCenterManagementGrpc.getGetEffectiveSecurityHealthAnalyticsCustomModuleMethod) == null) { + synchronized (SecurityCenterManagementGrpc.class) { + if ((getGetEffectiveSecurityHealthAnalyticsCustomModuleMethod = SecurityCenterManagementGrpc.getGetEffectiveSecurityHealthAnalyticsCustomModuleMethod) == null) { + SecurityCenterManagementGrpc.getGetEffectiveSecurityHealthAnalyticsCustomModuleMethod = getGetEffectiveSecurityHealthAnalyticsCustomModuleMethod = + io.grpc.MethodDescriptor.newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetEffectiveSecurityHealthAnalyticsCustomModule")) + .setSampledToLocalTracing(true) + .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.securitycentermanagement.v1.GetEffectiveSecurityHealthAnalyticsCustomModuleRequest.getDefaultInstance())) + .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.securitycentermanagement.v1.EffectiveSecurityHealthAnalyticsCustomModule.getDefaultInstance())) + .setSchemaDescriptor(new SecurityCenterManagementMethodDescriptorSupplier("GetEffectiveSecurityHealthAnalyticsCustomModule")) + .build(); + } + } + } + return getGetEffectiveSecurityHealthAnalyticsCustomModuleMethod; + } + + private static volatile io.grpc.MethodDescriptor getListSecurityHealthAnalyticsCustomModulesMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "ListSecurityHealthAnalyticsCustomModules", + requestType = com.google.cloud.securitycentermanagement.v1.ListSecurityHealthAnalyticsCustomModulesRequest.class, + responseType = com.google.cloud.securitycentermanagement.v1.ListSecurityHealthAnalyticsCustomModulesResponse.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor getListSecurityHealthAnalyticsCustomModulesMethod() { + io.grpc.MethodDescriptor getListSecurityHealthAnalyticsCustomModulesMethod; + if ((getListSecurityHealthAnalyticsCustomModulesMethod = SecurityCenterManagementGrpc.getListSecurityHealthAnalyticsCustomModulesMethod) == null) { + synchronized (SecurityCenterManagementGrpc.class) { + if ((getListSecurityHealthAnalyticsCustomModulesMethod = SecurityCenterManagementGrpc.getListSecurityHealthAnalyticsCustomModulesMethod) == null) { + SecurityCenterManagementGrpc.getListSecurityHealthAnalyticsCustomModulesMethod = getListSecurityHealthAnalyticsCustomModulesMethod = + io.grpc.MethodDescriptor.newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "ListSecurityHealthAnalyticsCustomModules")) + .setSampledToLocalTracing(true) + .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.securitycentermanagement.v1.ListSecurityHealthAnalyticsCustomModulesRequest.getDefaultInstance())) + .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.securitycentermanagement.v1.ListSecurityHealthAnalyticsCustomModulesResponse.getDefaultInstance())) + .setSchemaDescriptor(new SecurityCenterManagementMethodDescriptorSupplier("ListSecurityHealthAnalyticsCustomModules")) + .build(); + } + } + } + return getListSecurityHealthAnalyticsCustomModulesMethod; + } + + private static volatile io.grpc.MethodDescriptor getListDescendantSecurityHealthAnalyticsCustomModulesMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "ListDescendantSecurityHealthAnalyticsCustomModules", + requestType = com.google.cloud.securitycentermanagement.v1.ListDescendantSecurityHealthAnalyticsCustomModulesRequest.class, + responseType = com.google.cloud.securitycentermanagement.v1.ListDescendantSecurityHealthAnalyticsCustomModulesResponse.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor getListDescendantSecurityHealthAnalyticsCustomModulesMethod() { + io.grpc.MethodDescriptor getListDescendantSecurityHealthAnalyticsCustomModulesMethod; + if ((getListDescendantSecurityHealthAnalyticsCustomModulesMethod = SecurityCenterManagementGrpc.getListDescendantSecurityHealthAnalyticsCustomModulesMethod) == null) { + synchronized (SecurityCenterManagementGrpc.class) { + if ((getListDescendantSecurityHealthAnalyticsCustomModulesMethod = SecurityCenterManagementGrpc.getListDescendantSecurityHealthAnalyticsCustomModulesMethod) == null) { + SecurityCenterManagementGrpc.getListDescendantSecurityHealthAnalyticsCustomModulesMethod = getListDescendantSecurityHealthAnalyticsCustomModulesMethod = + io.grpc.MethodDescriptor.newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "ListDescendantSecurityHealthAnalyticsCustomModules")) + .setSampledToLocalTracing(true) + .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.securitycentermanagement.v1.ListDescendantSecurityHealthAnalyticsCustomModulesRequest.getDefaultInstance())) + .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.securitycentermanagement.v1.ListDescendantSecurityHealthAnalyticsCustomModulesResponse.getDefaultInstance())) + .setSchemaDescriptor(new SecurityCenterManagementMethodDescriptorSupplier("ListDescendantSecurityHealthAnalyticsCustomModules")) + .build(); + } + } + } + return getListDescendantSecurityHealthAnalyticsCustomModulesMethod; + } + + private static volatile io.grpc.MethodDescriptor getGetSecurityHealthAnalyticsCustomModuleMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "GetSecurityHealthAnalyticsCustomModule", + requestType = com.google.cloud.securitycentermanagement.v1.GetSecurityHealthAnalyticsCustomModuleRequest.class, + responseType = com.google.cloud.securitycentermanagement.v1.SecurityHealthAnalyticsCustomModule.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor getGetSecurityHealthAnalyticsCustomModuleMethod() { + io.grpc.MethodDescriptor getGetSecurityHealthAnalyticsCustomModuleMethod; + if ((getGetSecurityHealthAnalyticsCustomModuleMethod = SecurityCenterManagementGrpc.getGetSecurityHealthAnalyticsCustomModuleMethod) == null) { + synchronized (SecurityCenterManagementGrpc.class) { + if ((getGetSecurityHealthAnalyticsCustomModuleMethod = SecurityCenterManagementGrpc.getGetSecurityHealthAnalyticsCustomModuleMethod) == null) { + SecurityCenterManagementGrpc.getGetSecurityHealthAnalyticsCustomModuleMethod = getGetSecurityHealthAnalyticsCustomModuleMethod = + io.grpc.MethodDescriptor.newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetSecurityHealthAnalyticsCustomModule")) + .setSampledToLocalTracing(true) + .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.securitycentermanagement.v1.GetSecurityHealthAnalyticsCustomModuleRequest.getDefaultInstance())) + .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.securitycentermanagement.v1.SecurityHealthAnalyticsCustomModule.getDefaultInstance())) + .setSchemaDescriptor(new SecurityCenterManagementMethodDescriptorSupplier("GetSecurityHealthAnalyticsCustomModule")) + .build(); + } + } + } + return getGetSecurityHealthAnalyticsCustomModuleMethod; + } + + private static volatile io.grpc.MethodDescriptor getCreateSecurityHealthAnalyticsCustomModuleMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "CreateSecurityHealthAnalyticsCustomModule", + requestType = com.google.cloud.securitycentermanagement.v1.CreateSecurityHealthAnalyticsCustomModuleRequest.class, + responseType = com.google.cloud.securitycentermanagement.v1.SecurityHealthAnalyticsCustomModule.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor getCreateSecurityHealthAnalyticsCustomModuleMethod() { + io.grpc.MethodDescriptor getCreateSecurityHealthAnalyticsCustomModuleMethod; + if ((getCreateSecurityHealthAnalyticsCustomModuleMethod = SecurityCenterManagementGrpc.getCreateSecurityHealthAnalyticsCustomModuleMethod) == null) { + synchronized (SecurityCenterManagementGrpc.class) { + if ((getCreateSecurityHealthAnalyticsCustomModuleMethod = SecurityCenterManagementGrpc.getCreateSecurityHealthAnalyticsCustomModuleMethod) == null) { + SecurityCenterManagementGrpc.getCreateSecurityHealthAnalyticsCustomModuleMethod = getCreateSecurityHealthAnalyticsCustomModuleMethod = + io.grpc.MethodDescriptor.newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "CreateSecurityHealthAnalyticsCustomModule")) + .setSampledToLocalTracing(true) + .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.securitycentermanagement.v1.CreateSecurityHealthAnalyticsCustomModuleRequest.getDefaultInstance())) + .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.securitycentermanagement.v1.SecurityHealthAnalyticsCustomModule.getDefaultInstance())) + .setSchemaDescriptor(new SecurityCenterManagementMethodDescriptorSupplier("CreateSecurityHealthAnalyticsCustomModule")) + .build(); + } + } + } + return getCreateSecurityHealthAnalyticsCustomModuleMethod; + } + + private static volatile io.grpc.MethodDescriptor getUpdateSecurityHealthAnalyticsCustomModuleMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "UpdateSecurityHealthAnalyticsCustomModule", + requestType = com.google.cloud.securitycentermanagement.v1.UpdateSecurityHealthAnalyticsCustomModuleRequest.class, + responseType = com.google.cloud.securitycentermanagement.v1.SecurityHealthAnalyticsCustomModule.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor getUpdateSecurityHealthAnalyticsCustomModuleMethod() { + io.grpc.MethodDescriptor getUpdateSecurityHealthAnalyticsCustomModuleMethod; + if ((getUpdateSecurityHealthAnalyticsCustomModuleMethod = SecurityCenterManagementGrpc.getUpdateSecurityHealthAnalyticsCustomModuleMethod) == null) { + synchronized (SecurityCenterManagementGrpc.class) { + if ((getUpdateSecurityHealthAnalyticsCustomModuleMethod = SecurityCenterManagementGrpc.getUpdateSecurityHealthAnalyticsCustomModuleMethod) == null) { + SecurityCenterManagementGrpc.getUpdateSecurityHealthAnalyticsCustomModuleMethod = getUpdateSecurityHealthAnalyticsCustomModuleMethod = + io.grpc.MethodDescriptor.newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "UpdateSecurityHealthAnalyticsCustomModule")) + .setSampledToLocalTracing(true) + .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.securitycentermanagement.v1.UpdateSecurityHealthAnalyticsCustomModuleRequest.getDefaultInstance())) + .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.securitycentermanagement.v1.SecurityHealthAnalyticsCustomModule.getDefaultInstance())) + .setSchemaDescriptor(new SecurityCenterManagementMethodDescriptorSupplier("UpdateSecurityHealthAnalyticsCustomModule")) + .build(); + } + } + } + return getUpdateSecurityHealthAnalyticsCustomModuleMethod; + } + + private static volatile io.grpc.MethodDescriptor getDeleteSecurityHealthAnalyticsCustomModuleMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "DeleteSecurityHealthAnalyticsCustomModule", + requestType = com.google.cloud.securitycentermanagement.v1.DeleteSecurityHealthAnalyticsCustomModuleRequest.class, + responseType = com.google.protobuf.Empty.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor getDeleteSecurityHealthAnalyticsCustomModuleMethod() { + io.grpc.MethodDescriptor getDeleteSecurityHealthAnalyticsCustomModuleMethod; + if ((getDeleteSecurityHealthAnalyticsCustomModuleMethod = SecurityCenterManagementGrpc.getDeleteSecurityHealthAnalyticsCustomModuleMethod) == null) { + synchronized (SecurityCenterManagementGrpc.class) { + if ((getDeleteSecurityHealthAnalyticsCustomModuleMethod = SecurityCenterManagementGrpc.getDeleteSecurityHealthAnalyticsCustomModuleMethod) == null) { + SecurityCenterManagementGrpc.getDeleteSecurityHealthAnalyticsCustomModuleMethod = getDeleteSecurityHealthAnalyticsCustomModuleMethod = + io.grpc.MethodDescriptor.newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "DeleteSecurityHealthAnalyticsCustomModule")) + .setSampledToLocalTracing(true) + .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.securitycentermanagement.v1.DeleteSecurityHealthAnalyticsCustomModuleRequest.getDefaultInstance())) + .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.protobuf.Empty.getDefaultInstance())) + .setSchemaDescriptor(new SecurityCenterManagementMethodDescriptorSupplier("DeleteSecurityHealthAnalyticsCustomModule")) + .build(); + } + } + } + return getDeleteSecurityHealthAnalyticsCustomModuleMethod; + } + + private static volatile io.grpc.MethodDescriptor getSimulateSecurityHealthAnalyticsCustomModuleMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "SimulateSecurityHealthAnalyticsCustomModule", + requestType = com.google.cloud.securitycentermanagement.v1.SimulateSecurityHealthAnalyticsCustomModuleRequest.class, + responseType = com.google.cloud.securitycentermanagement.v1.SimulateSecurityHealthAnalyticsCustomModuleResponse.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor getSimulateSecurityHealthAnalyticsCustomModuleMethod() { + io.grpc.MethodDescriptor getSimulateSecurityHealthAnalyticsCustomModuleMethod; + if ((getSimulateSecurityHealthAnalyticsCustomModuleMethod = SecurityCenterManagementGrpc.getSimulateSecurityHealthAnalyticsCustomModuleMethod) == null) { + synchronized (SecurityCenterManagementGrpc.class) { + if ((getSimulateSecurityHealthAnalyticsCustomModuleMethod = SecurityCenterManagementGrpc.getSimulateSecurityHealthAnalyticsCustomModuleMethod) == null) { + SecurityCenterManagementGrpc.getSimulateSecurityHealthAnalyticsCustomModuleMethod = getSimulateSecurityHealthAnalyticsCustomModuleMethod = + io.grpc.MethodDescriptor.newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "SimulateSecurityHealthAnalyticsCustomModule")) + .setSampledToLocalTracing(true) + .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.securitycentermanagement.v1.SimulateSecurityHealthAnalyticsCustomModuleRequest.getDefaultInstance())) + .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.securitycentermanagement.v1.SimulateSecurityHealthAnalyticsCustomModuleResponse.getDefaultInstance())) + .setSchemaDescriptor(new SecurityCenterManagementMethodDescriptorSupplier("SimulateSecurityHealthAnalyticsCustomModule")) + .build(); + } + } + } + return getSimulateSecurityHealthAnalyticsCustomModuleMethod; + } + + private static volatile io.grpc.MethodDescriptor getListEffectiveEventThreatDetectionCustomModulesMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "ListEffectiveEventThreatDetectionCustomModules", + requestType = com.google.cloud.securitycentermanagement.v1.ListEffectiveEventThreatDetectionCustomModulesRequest.class, + responseType = com.google.cloud.securitycentermanagement.v1.ListEffectiveEventThreatDetectionCustomModulesResponse.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor getListEffectiveEventThreatDetectionCustomModulesMethod() { + io.grpc.MethodDescriptor getListEffectiveEventThreatDetectionCustomModulesMethod; + if ((getListEffectiveEventThreatDetectionCustomModulesMethod = SecurityCenterManagementGrpc.getListEffectiveEventThreatDetectionCustomModulesMethod) == null) { + synchronized (SecurityCenterManagementGrpc.class) { + if ((getListEffectiveEventThreatDetectionCustomModulesMethod = SecurityCenterManagementGrpc.getListEffectiveEventThreatDetectionCustomModulesMethod) == null) { + SecurityCenterManagementGrpc.getListEffectiveEventThreatDetectionCustomModulesMethod = getListEffectiveEventThreatDetectionCustomModulesMethod = + io.grpc.MethodDescriptor.newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "ListEffectiveEventThreatDetectionCustomModules")) + .setSampledToLocalTracing(true) + .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.securitycentermanagement.v1.ListEffectiveEventThreatDetectionCustomModulesRequest.getDefaultInstance())) + .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.securitycentermanagement.v1.ListEffectiveEventThreatDetectionCustomModulesResponse.getDefaultInstance())) + .setSchemaDescriptor(new SecurityCenterManagementMethodDescriptorSupplier("ListEffectiveEventThreatDetectionCustomModules")) + .build(); + } + } + } + return getListEffectiveEventThreatDetectionCustomModulesMethod; + } + + private static volatile io.grpc.MethodDescriptor getGetEffectiveEventThreatDetectionCustomModuleMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "GetEffectiveEventThreatDetectionCustomModule", + requestType = com.google.cloud.securitycentermanagement.v1.GetEffectiveEventThreatDetectionCustomModuleRequest.class, + responseType = com.google.cloud.securitycentermanagement.v1.EffectiveEventThreatDetectionCustomModule.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor getGetEffectiveEventThreatDetectionCustomModuleMethod() { + io.grpc.MethodDescriptor getGetEffectiveEventThreatDetectionCustomModuleMethod; + if ((getGetEffectiveEventThreatDetectionCustomModuleMethod = SecurityCenterManagementGrpc.getGetEffectiveEventThreatDetectionCustomModuleMethod) == null) { + synchronized (SecurityCenterManagementGrpc.class) { + if ((getGetEffectiveEventThreatDetectionCustomModuleMethod = SecurityCenterManagementGrpc.getGetEffectiveEventThreatDetectionCustomModuleMethod) == null) { + SecurityCenterManagementGrpc.getGetEffectiveEventThreatDetectionCustomModuleMethod = getGetEffectiveEventThreatDetectionCustomModuleMethod = + io.grpc.MethodDescriptor.newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetEffectiveEventThreatDetectionCustomModule")) + .setSampledToLocalTracing(true) + .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.securitycentermanagement.v1.GetEffectiveEventThreatDetectionCustomModuleRequest.getDefaultInstance())) + .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.securitycentermanagement.v1.EffectiveEventThreatDetectionCustomModule.getDefaultInstance())) + .setSchemaDescriptor(new SecurityCenterManagementMethodDescriptorSupplier("GetEffectiveEventThreatDetectionCustomModule")) + .build(); + } + } + } + return getGetEffectiveEventThreatDetectionCustomModuleMethod; + } + + private static volatile io.grpc.MethodDescriptor getListEventThreatDetectionCustomModulesMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "ListEventThreatDetectionCustomModules", + requestType = com.google.cloud.securitycentermanagement.v1.ListEventThreatDetectionCustomModulesRequest.class, + responseType = com.google.cloud.securitycentermanagement.v1.ListEventThreatDetectionCustomModulesResponse.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor getListEventThreatDetectionCustomModulesMethod() { + io.grpc.MethodDescriptor getListEventThreatDetectionCustomModulesMethod; + if ((getListEventThreatDetectionCustomModulesMethod = SecurityCenterManagementGrpc.getListEventThreatDetectionCustomModulesMethod) == null) { + synchronized (SecurityCenterManagementGrpc.class) { + if ((getListEventThreatDetectionCustomModulesMethod = SecurityCenterManagementGrpc.getListEventThreatDetectionCustomModulesMethod) == null) { + SecurityCenterManagementGrpc.getListEventThreatDetectionCustomModulesMethod = getListEventThreatDetectionCustomModulesMethod = + io.grpc.MethodDescriptor.newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "ListEventThreatDetectionCustomModules")) + .setSampledToLocalTracing(true) + .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.securitycentermanagement.v1.ListEventThreatDetectionCustomModulesRequest.getDefaultInstance())) + .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.securitycentermanagement.v1.ListEventThreatDetectionCustomModulesResponse.getDefaultInstance())) + .setSchemaDescriptor(new SecurityCenterManagementMethodDescriptorSupplier("ListEventThreatDetectionCustomModules")) + .build(); + } + } + } + return getListEventThreatDetectionCustomModulesMethod; + } + + private static volatile io.grpc.MethodDescriptor getListDescendantEventThreatDetectionCustomModulesMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "ListDescendantEventThreatDetectionCustomModules", + requestType = com.google.cloud.securitycentermanagement.v1.ListDescendantEventThreatDetectionCustomModulesRequest.class, + responseType = com.google.cloud.securitycentermanagement.v1.ListDescendantEventThreatDetectionCustomModulesResponse.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor getListDescendantEventThreatDetectionCustomModulesMethod() { + io.grpc.MethodDescriptor getListDescendantEventThreatDetectionCustomModulesMethod; + if ((getListDescendantEventThreatDetectionCustomModulesMethod = SecurityCenterManagementGrpc.getListDescendantEventThreatDetectionCustomModulesMethod) == null) { + synchronized (SecurityCenterManagementGrpc.class) { + if ((getListDescendantEventThreatDetectionCustomModulesMethod = SecurityCenterManagementGrpc.getListDescendantEventThreatDetectionCustomModulesMethod) == null) { + SecurityCenterManagementGrpc.getListDescendantEventThreatDetectionCustomModulesMethod = getListDescendantEventThreatDetectionCustomModulesMethod = + io.grpc.MethodDescriptor.newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "ListDescendantEventThreatDetectionCustomModules")) + .setSampledToLocalTracing(true) + .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.securitycentermanagement.v1.ListDescendantEventThreatDetectionCustomModulesRequest.getDefaultInstance())) + .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.securitycentermanagement.v1.ListDescendantEventThreatDetectionCustomModulesResponse.getDefaultInstance())) + .setSchemaDescriptor(new SecurityCenterManagementMethodDescriptorSupplier("ListDescendantEventThreatDetectionCustomModules")) + .build(); + } + } + } + return getListDescendantEventThreatDetectionCustomModulesMethod; + } + + private static volatile io.grpc.MethodDescriptor getGetEventThreatDetectionCustomModuleMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "GetEventThreatDetectionCustomModule", + requestType = com.google.cloud.securitycentermanagement.v1.GetEventThreatDetectionCustomModuleRequest.class, + responseType = com.google.cloud.securitycentermanagement.v1.EventThreatDetectionCustomModule.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor getGetEventThreatDetectionCustomModuleMethod() { + io.grpc.MethodDescriptor getGetEventThreatDetectionCustomModuleMethod; + if ((getGetEventThreatDetectionCustomModuleMethod = SecurityCenterManagementGrpc.getGetEventThreatDetectionCustomModuleMethod) == null) { + synchronized (SecurityCenterManagementGrpc.class) { + if ((getGetEventThreatDetectionCustomModuleMethod = SecurityCenterManagementGrpc.getGetEventThreatDetectionCustomModuleMethod) == null) { + SecurityCenterManagementGrpc.getGetEventThreatDetectionCustomModuleMethod = getGetEventThreatDetectionCustomModuleMethod = + io.grpc.MethodDescriptor.newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetEventThreatDetectionCustomModule")) + .setSampledToLocalTracing(true) + .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.securitycentermanagement.v1.GetEventThreatDetectionCustomModuleRequest.getDefaultInstance())) + .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.securitycentermanagement.v1.EventThreatDetectionCustomModule.getDefaultInstance())) + .setSchemaDescriptor(new SecurityCenterManagementMethodDescriptorSupplier("GetEventThreatDetectionCustomModule")) + .build(); + } + } + } + return getGetEventThreatDetectionCustomModuleMethod; + } + + private static volatile io.grpc.MethodDescriptor getCreateEventThreatDetectionCustomModuleMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "CreateEventThreatDetectionCustomModule", + requestType = com.google.cloud.securitycentermanagement.v1.CreateEventThreatDetectionCustomModuleRequest.class, + responseType = com.google.cloud.securitycentermanagement.v1.EventThreatDetectionCustomModule.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor getCreateEventThreatDetectionCustomModuleMethod() { + io.grpc.MethodDescriptor getCreateEventThreatDetectionCustomModuleMethod; + if ((getCreateEventThreatDetectionCustomModuleMethod = SecurityCenterManagementGrpc.getCreateEventThreatDetectionCustomModuleMethod) == null) { + synchronized (SecurityCenterManagementGrpc.class) { + if ((getCreateEventThreatDetectionCustomModuleMethod = SecurityCenterManagementGrpc.getCreateEventThreatDetectionCustomModuleMethod) == null) { + SecurityCenterManagementGrpc.getCreateEventThreatDetectionCustomModuleMethod = getCreateEventThreatDetectionCustomModuleMethod = + io.grpc.MethodDescriptor.newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "CreateEventThreatDetectionCustomModule")) + .setSampledToLocalTracing(true) + .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.securitycentermanagement.v1.CreateEventThreatDetectionCustomModuleRequest.getDefaultInstance())) + .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.securitycentermanagement.v1.EventThreatDetectionCustomModule.getDefaultInstance())) + .setSchemaDescriptor(new SecurityCenterManagementMethodDescriptorSupplier("CreateEventThreatDetectionCustomModule")) + .build(); + } + } + } + return getCreateEventThreatDetectionCustomModuleMethod; + } + + private static volatile io.grpc.MethodDescriptor getUpdateEventThreatDetectionCustomModuleMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "UpdateEventThreatDetectionCustomModule", + requestType = com.google.cloud.securitycentermanagement.v1.UpdateEventThreatDetectionCustomModuleRequest.class, + responseType = com.google.cloud.securitycentermanagement.v1.EventThreatDetectionCustomModule.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor getUpdateEventThreatDetectionCustomModuleMethod() { + io.grpc.MethodDescriptor getUpdateEventThreatDetectionCustomModuleMethod; + if ((getUpdateEventThreatDetectionCustomModuleMethod = SecurityCenterManagementGrpc.getUpdateEventThreatDetectionCustomModuleMethod) == null) { + synchronized (SecurityCenterManagementGrpc.class) { + if ((getUpdateEventThreatDetectionCustomModuleMethod = SecurityCenterManagementGrpc.getUpdateEventThreatDetectionCustomModuleMethod) == null) { + SecurityCenterManagementGrpc.getUpdateEventThreatDetectionCustomModuleMethod = getUpdateEventThreatDetectionCustomModuleMethod = + io.grpc.MethodDescriptor.newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "UpdateEventThreatDetectionCustomModule")) + .setSampledToLocalTracing(true) + .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.securitycentermanagement.v1.UpdateEventThreatDetectionCustomModuleRequest.getDefaultInstance())) + .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.securitycentermanagement.v1.EventThreatDetectionCustomModule.getDefaultInstance())) + .setSchemaDescriptor(new SecurityCenterManagementMethodDescriptorSupplier("UpdateEventThreatDetectionCustomModule")) + .build(); + } + } + } + return getUpdateEventThreatDetectionCustomModuleMethod; + } + + private static volatile io.grpc.MethodDescriptor getDeleteEventThreatDetectionCustomModuleMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "DeleteEventThreatDetectionCustomModule", + requestType = com.google.cloud.securitycentermanagement.v1.DeleteEventThreatDetectionCustomModuleRequest.class, + responseType = com.google.protobuf.Empty.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor getDeleteEventThreatDetectionCustomModuleMethod() { + io.grpc.MethodDescriptor getDeleteEventThreatDetectionCustomModuleMethod; + if ((getDeleteEventThreatDetectionCustomModuleMethod = SecurityCenterManagementGrpc.getDeleteEventThreatDetectionCustomModuleMethod) == null) { + synchronized (SecurityCenterManagementGrpc.class) { + if ((getDeleteEventThreatDetectionCustomModuleMethod = SecurityCenterManagementGrpc.getDeleteEventThreatDetectionCustomModuleMethod) == null) { + SecurityCenterManagementGrpc.getDeleteEventThreatDetectionCustomModuleMethod = getDeleteEventThreatDetectionCustomModuleMethod = + io.grpc.MethodDescriptor.newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "DeleteEventThreatDetectionCustomModule")) + .setSampledToLocalTracing(true) + .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.securitycentermanagement.v1.DeleteEventThreatDetectionCustomModuleRequest.getDefaultInstance())) + .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.protobuf.Empty.getDefaultInstance())) + .setSchemaDescriptor(new SecurityCenterManagementMethodDescriptorSupplier("DeleteEventThreatDetectionCustomModule")) + .build(); + } + } + } + return getDeleteEventThreatDetectionCustomModuleMethod; + } + + private static volatile io.grpc.MethodDescriptor getValidateEventThreatDetectionCustomModuleMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "ValidateEventThreatDetectionCustomModule", + requestType = com.google.cloud.securitycentermanagement.v1.ValidateEventThreatDetectionCustomModuleRequest.class, + responseType = com.google.cloud.securitycentermanagement.v1.ValidateEventThreatDetectionCustomModuleResponse.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor getValidateEventThreatDetectionCustomModuleMethod() { + io.grpc.MethodDescriptor getValidateEventThreatDetectionCustomModuleMethod; + if ((getValidateEventThreatDetectionCustomModuleMethod = SecurityCenterManagementGrpc.getValidateEventThreatDetectionCustomModuleMethod) == null) { + synchronized (SecurityCenterManagementGrpc.class) { + if ((getValidateEventThreatDetectionCustomModuleMethod = SecurityCenterManagementGrpc.getValidateEventThreatDetectionCustomModuleMethod) == null) { + SecurityCenterManagementGrpc.getValidateEventThreatDetectionCustomModuleMethod = getValidateEventThreatDetectionCustomModuleMethod = + io.grpc.MethodDescriptor.newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "ValidateEventThreatDetectionCustomModule")) + .setSampledToLocalTracing(true) + .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.securitycentermanagement.v1.ValidateEventThreatDetectionCustomModuleRequest.getDefaultInstance())) + .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.securitycentermanagement.v1.ValidateEventThreatDetectionCustomModuleResponse.getDefaultInstance())) + .setSchemaDescriptor(new SecurityCenterManagementMethodDescriptorSupplier("ValidateEventThreatDetectionCustomModule")) + .build(); + } + } + } + return getValidateEventThreatDetectionCustomModuleMethod; + } + + /** + * Creates a new async stub that supports all call types for the service + */ + public static SecurityCenterManagementStub newStub(io.grpc.Channel channel) { + io.grpc.stub.AbstractStub.StubFactory factory = + new io.grpc.stub.AbstractStub.StubFactory() { + @java.lang.Override + public SecurityCenterManagementStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new SecurityCenterManagementStub(channel, callOptions); + } + }; + return SecurityCenterManagementStub.newStub(factory, channel); + } + + /** + * Creates a new blocking-style stub that supports unary and streaming output calls on the service + */ + public static SecurityCenterManagementBlockingStub newBlockingStub( + io.grpc.Channel channel) { + io.grpc.stub.AbstractStub.StubFactory factory = + new io.grpc.stub.AbstractStub.StubFactory() { + @java.lang.Override + public SecurityCenterManagementBlockingStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new SecurityCenterManagementBlockingStub(channel, callOptions); + } + }; + return SecurityCenterManagementBlockingStub.newStub(factory, channel); + } + + /** + * Creates a new ListenableFuture-style stub that supports unary calls on the service + */ + public static SecurityCenterManagementFutureStub newFutureStub( + io.grpc.Channel channel) { + io.grpc.stub.AbstractStub.StubFactory factory = + new io.grpc.stub.AbstractStub.StubFactory() { + @java.lang.Override + public SecurityCenterManagementFutureStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new SecurityCenterManagementFutureStub(channel, callOptions); + } + }; + return SecurityCenterManagementFutureStub.newStub(factory, channel); + } + + /** + *
+   * Service describing handlers for resources
+   * 
+ */ + public interface AsyncService { + + /** + *
+     * Returns a list of all EffectiveSecurityHealthAnalyticsCustomModules for the
+     * given parent. This includes resident modules defined at the scope of the
+     * parent, and inherited modules, inherited from CRM ancestors (no
+     * descendants).
+     * 
+ */ + default void listEffectiveSecurityHealthAnalyticsCustomModules(com.google.cloud.securitycentermanagement.v1.ListEffectiveSecurityHealthAnalyticsCustomModulesRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getListEffectiveSecurityHealthAnalyticsCustomModulesMethod(), responseObserver); + } + + /** + *
+     * Gets details of a single EffectiveSecurityHealthAnalyticsCustomModule.
+     * 
+ */ + default void getEffectiveSecurityHealthAnalyticsCustomModule(com.google.cloud.securitycentermanagement.v1.GetEffectiveSecurityHealthAnalyticsCustomModuleRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getGetEffectiveSecurityHealthAnalyticsCustomModuleMethod(), responseObserver); + } + + /** + *
+     * Returns a list of all SecurityHealthAnalyticsCustomModules for the given
+     * parent. This includes resident modules defined at the scope of the parent,
+     * and inherited modules, inherited from CRM ancestors (no descendants).
+     * 
+ */ + default void listSecurityHealthAnalyticsCustomModules(com.google.cloud.securitycentermanagement.v1.ListSecurityHealthAnalyticsCustomModulesRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getListSecurityHealthAnalyticsCustomModulesMethod(), responseObserver); + } + + /** + *
+     * Returns a list of all resident SecurityHealthAnalyticsCustomModules under
+     * the given CRM parent and all of the parent’s CRM descendants.
+     * 
+ */ + default void listDescendantSecurityHealthAnalyticsCustomModules(com.google.cloud.securitycentermanagement.v1.ListDescendantSecurityHealthAnalyticsCustomModulesRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getListDescendantSecurityHealthAnalyticsCustomModulesMethod(), responseObserver); + } + + /** + *
+     * Retrieves a SecurityHealthAnalyticsCustomModule.
+     * 
+ */ + default void getSecurityHealthAnalyticsCustomModule(com.google.cloud.securitycentermanagement.v1.GetSecurityHealthAnalyticsCustomModuleRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getGetSecurityHealthAnalyticsCustomModuleMethod(), responseObserver); + } + + /** + *
+     * Creates a resident SecurityHealthAnalyticsCustomModule at the scope of the
+     * given CRM parent, and also creates inherited
+     * SecurityHealthAnalyticsCustomModules for all CRM descendants of the given
+     * parent. These modules are enabled by default.
+     * 
+ */ + default void createSecurityHealthAnalyticsCustomModule(com.google.cloud.securitycentermanagement.v1.CreateSecurityHealthAnalyticsCustomModuleRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getCreateSecurityHealthAnalyticsCustomModuleMethod(), responseObserver); + } + + /** + *
+     * Updates the SecurityHealthAnalyticsCustomModule under the given name based
+     * on the given update mask. Updating the enablement state is supported on
+     * both resident and inherited modules (though resident modules cannot have an
+     * enablement state of "inherited"). Updating the display name and custom
+     * config of a module is supported on resident modules only.
+     * 
+ */ + default void updateSecurityHealthAnalyticsCustomModule(com.google.cloud.securitycentermanagement.v1.UpdateSecurityHealthAnalyticsCustomModuleRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getUpdateSecurityHealthAnalyticsCustomModuleMethod(), responseObserver); + } + + /** + *
+     * Deletes the specified SecurityHealthAnalyticsCustomModule and all of its
+     * descendants in the CRM hierarchy. This method is only supported for
+     * resident custom modules.
+     * 
+ */ + default void deleteSecurityHealthAnalyticsCustomModule(com.google.cloud.securitycentermanagement.v1.DeleteSecurityHealthAnalyticsCustomModuleRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getDeleteSecurityHealthAnalyticsCustomModuleMethod(), responseObserver); + } + + /** + *
+     * Simulates a given SecurityHealthAnalyticsCustomModule and Resource.
+     * 
+ */ + default void simulateSecurityHealthAnalyticsCustomModule(com.google.cloud.securitycentermanagement.v1.SimulateSecurityHealthAnalyticsCustomModuleRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getSimulateSecurityHealthAnalyticsCustomModuleMethod(), responseObserver); + } + + /** + *
+     * Lists all effective Event Threat Detection custom modules for the
+     * given parent. This includes resident modules defined at the scope of the
+     * parent along with modules inherited from its ancestors.
+     * 
+ */ + default void listEffectiveEventThreatDetectionCustomModules(com.google.cloud.securitycentermanagement.v1.ListEffectiveEventThreatDetectionCustomModulesRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getListEffectiveEventThreatDetectionCustomModulesMethod(), responseObserver); + } + + /** + *
+     * Gets an effective ETD custom module. Retrieves the effective module at the
+     * given level. The difference between an EffectiveCustomModule and a
+     * CustomModule is that the fields for an EffectiveCustomModule are computed
+     * from ancestors if needed. For example, the enablement_state for a
+     * CustomModule can be either ENABLED, DISABLED, or INHERITED. Where as the
+     * enablement_state for an EffectiveCustomModule is always computed to ENABLED
+     * or DISABLED (the effective enablement_state).
+     * 
+ */ + default void getEffectiveEventThreatDetectionCustomModule(com.google.cloud.securitycentermanagement.v1.GetEffectiveEventThreatDetectionCustomModuleRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getGetEffectiveEventThreatDetectionCustomModuleMethod(), responseObserver); + } + + /** + *
+     * Lists all Event Threat Detection custom modules for the given
+     * Resource Manager parent. This includes resident modules defined at the
+     * scope of the parent along with modules inherited from ancestors.
+     * 
+ */ + default void listEventThreatDetectionCustomModules(com.google.cloud.securitycentermanagement.v1.ListEventThreatDetectionCustomModulesRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getListEventThreatDetectionCustomModulesMethod(), responseObserver); + } + + /** + *
+     * Lists all resident Event Threat Detection custom modules under the
+     * given Resource Manager parent and its descendants.
+     * 
+ */ + default void listDescendantEventThreatDetectionCustomModules(com.google.cloud.securitycentermanagement.v1.ListDescendantEventThreatDetectionCustomModulesRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getListDescendantEventThreatDetectionCustomModulesMethod(), responseObserver); + } + + /** + *
+     * Gets an Event Threat Detection custom module.
+     * 
+ */ + default void getEventThreatDetectionCustomModule(com.google.cloud.securitycentermanagement.v1.GetEventThreatDetectionCustomModuleRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getGetEventThreatDetectionCustomModuleMethod(), responseObserver); + } + + /** + *
+     * Creates a resident Event Threat Detection custom module at the scope of the
+     * given Resource Manager parent, and also creates inherited custom modules
+     * for all descendants of the given parent. These modules are enabled by
+     * default.
+     * 
+ */ + default void createEventThreatDetectionCustomModule(com.google.cloud.securitycentermanagement.v1.CreateEventThreatDetectionCustomModuleRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getCreateEventThreatDetectionCustomModuleMethod(), responseObserver); + } + + /** + *
+     * Updates the Event Threat Detection custom module with the given name based
+     * on the given update mask. Updating the enablement state is supported for
+     * both resident and inherited modules (though resident modules cannot have an
+     * enablement state of "inherited"). Updating the display name or
+     * configuration of a module is supported for resident modules only. The type
+     * of a module cannot be changed.
+     * 
+ */ + default void updateEventThreatDetectionCustomModule(com.google.cloud.securitycentermanagement.v1.UpdateEventThreatDetectionCustomModuleRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getUpdateEventThreatDetectionCustomModuleMethod(), responseObserver); + } + + /** + *
+     * Deletes the specified Event Threat Detection custom module and all of its
+     * descendants in the Resource Manager hierarchy. This method is only
+     * supported for resident custom modules.
+     * 
+ */ + default void deleteEventThreatDetectionCustomModule(com.google.cloud.securitycentermanagement.v1.DeleteEventThreatDetectionCustomModuleRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getDeleteEventThreatDetectionCustomModuleMethod(), responseObserver); + } + + /** + *
+     * Validates the given Event Threat Detection custom module.
+     * 
+ */ + default void validateEventThreatDetectionCustomModule(com.google.cloud.securitycentermanagement.v1.ValidateEventThreatDetectionCustomModuleRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getValidateEventThreatDetectionCustomModuleMethod(), responseObserver); + } + } + + /** + * Base class for the server implementation of the service SecurityCenterManagement. + *
+   * Service describing handlers for resources
+   * 
+ */ + public static abstract class SecurityCenterManagementImplBase + implements io.grpc.BindableService, AsyncService { + + @java.lang.Override public final io.grpc.ServerServiceDefinition bindService() { + return SecurityCenterManagementGrpc.bindService(this); + } + } + + /** + * A stub to allow clients to do asynchronous rpc calls to service SecurityCenterManagement. + *
+   * Service describing handlers for resources
+   * 
+ */ + public static final class SecurityCenterManagementStub + extends io.grpc.stub.AbstractAsyncStub { + private SecurityCenterManagementStub( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + super(channel, callOptions); + } + + @java.lang.Override + protected SecurityCenterManagementStub build( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new SecurityCenterManagementStub(channel, callOptions); + } + + /** + *
+     * Returns a list of all EffectiveSecurityHealthAnalyticsCustomModules for the
+     * given parent. This includes resident modules defined at the scope of the
+     * parent, and inherited modules, inherited from CRM ancestors (no
+     * descendants).
+     * 
+ */ + public void listEffectiveSecurityHealthAnalyticsCustomModules(com.google.cloud.securitycentermanagement.v1.ListEffectiveSecurityHealthAnalyticsCustomModulesRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getListEffectiveSecurityHealthAnalyticsCustomModulesMethod(), getCallOptions()), request, responseObserver); + } + + /** + *
+     * Gets details of a single EffectiveSecurityHealthAnalyticsCustomModule.
+     * 
+ */ + public void getEffectiveSecurityHealthAnalyticsCustomModule(com.google.cloud.securitycentermanagement.v1.GetEffectiveSecurityHealthAnalyticsCustomModuleRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getGetEffectiveSecurityHealthAnalyticsCustomModuleMethod(), getCallOptions()), request, responseObserver); + } + + /** + *
+     * Returns a list of all SecurityHealthAnalyticsCustomModules for the given
+     * parent. This includes resident modules defined at the scope of the parent,
+     * and inherited modules, inherited from CRM ancestors (no descendants).
+     * 
+ */ + public void listSecurityHealthAnalyticsCustomModules(com.google.cloud.securitycentermanagement.v1.ListSecurityHealthAnalyticsCustomModulesRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getListSecurityHealthAnalyticsCustomModulesMethod(), getCallOptions()), request, responseObserver); + } + + /** + *
+     * Returns a list of all resident SecurityHealthAnalyticsCustomModules under
+     * the given CRM parent and all of the parent’s CRM descendants.
+     * 
+ */ + public void listDescendantSecurityHealthAnalyticsCustomModules(com.google.cloud.securitycentermanagement.v1.ListDescendantSecurityHealthAnalyticsCustomModulesRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getListDescendantSecurityHealthAnalyticsCustomModulesMethod(), getCallOptions()), request, responseObserver); + } + + /** + *
+     * Retrieves a SecurityHealthAnalyticsCustomModule.
+     * 
+ */ + public void getSecurityHealthAnalyticsCustomModule(com.google.cloud.securitycentermanagement.v1.GetSecurityHealthAnalyticsCustomModuleRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getGetSecurityHealthAnalyticsCustomModuleMethod(), getCallOptions()), request, responseObserver); + } + + /** + *
+     * Creates a resident SecurityHealthAnalyticsCustomModule at the scope of the
+     * given CRM parent, and also creates inherited
+     * SecurityHealthAnalyticsCustomModules for all CRM descendants of the given
+     * parent. These modules are enabled by default.
+     * 
+ */ + public void createSecurityHealthAnalyticsCustomModule(com.google.cloud.securitycentermanagement.v1.CreateSecurityHealthAnalyticsCustomModuleRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getCreateSecurityHealthAnalyticsCustomModuleMethod(), getCallOptions()), request, responseObserver); + } + + /** + *
+     * Updates the SecurityHealthAnalyticsCustomModule under the given name based
+     * on the given update mask. Updating the enablement state is supported on
+     * both resident and inherited modules (though resident modules cannot have an
+     * enablement state of "inherited"). Updating the display name and custom
+     * config of a module is supported on resident modules only.
+     * 
+ */ + public void updateSecurityHealthAnalyticsCustomModule(com.google.cloud.securitycentermanagement.v1.UpdateSecurityHealthAnalyticsCustomModuleRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getUpdateSecurityHealthAnalyticsCustomModuleMethod(), getCallOptions()), request, responseObserver); + } + + /** + *
+     * Deletes the specified SecurityHealthAnalyticsCustomModule and all of its
+     * descendants in the CRM hierarchy. This method is only supported for
+     * resident custom modules.
+     * 
+ */ + public void deleteSecurityHealthAnalyticsCustomModule(com.google.cloud.securitycentermanagement.v1.DeleteSecurityHealthAnalyticsCustomModuleRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getDeleteSecurityHealthAnalyticsCustomModuleMethod(), getCallOptions()), request, responseObserver); + } + + /** + *
+     * Simulates a given SecurityHealthAnalyticsCustomModule and Resource.
+     * 
+ */ + public void simulateSecurityHealthAnalyticsCustomModule(com.google.cloud.securitycentermanagement.v1.SimulateSecurityHealthAnalyticsCustomModuleRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getSimulateSecurityHealthAnalyticsCustomModuleMethod(), getCallOptions()), request, responseObserver); + } + + /** + *
+     * Lists all effective Event Threat Detection custom modules for the
+     * given parent. This includes resident modules defined at the scope of the
+     * parent along with modules inherited from its ancestors.
+     * 
+ */ + public void listEffectiveEventThreatDetectionCustomModules(com.google.cloud.securitycentermanagement.v1.ListEffectiveEventThreatDetectionCustomModulesRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getListEffectiveEventThreatDetectionCustomModulesMethod(), getCallOptions()), request, responseObserver); + } + + /** + *
+     * Gets an effective ETD custom module. Retrieves the effective module at the
+     * given level. The difference between an EffectiveCustomModule and a
+     * CustomModule is that the fields for an EffectiveCustomModule are computed
+     * from ancestors if needed. For example, the enablement_state for a
+     * CustomModule can be either ENABLED, DISABLED, or INHERITED. Where as the
+     * enablement_state for an EffectiveCustomModule is always computed to ENABLED
+     * or DISABLED (the effective enablement_state).
+     * 
+ */ + public void getEffectiveEventThreatDetectionCustomModule(com.google.cloud.securitycentermanagement.v1.GetEffectiveEventThreatDetectionCustomModuleRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getGetEffectiveEventThreatDetectionCustomModuleMethod(), getCallOptions()), request, responseObserver); + } + + /** + *
+     * Lists all Event Threat Detection custom modules for the given
+     * Resource Manager parent. This includes resident modules defined at the
+     * scope of the parent along with modules inherited from ancestors.
+     * 
+ */ + public void listEventThreatDetectionCustomModules(com.google.cloud.securitycentermanagement.v1.ListEventThreatDetectionCustomModulesRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getListEventThreatDetectionCustomModulesMethod(), getCallOptions()), request, responseObserver); + } + + /** + *
+     * Lists all resident Event Threat Detection custom modules under the
+     * given Resource Manager parent and its descendants.
+     * 
+ */ + public void listDescendantEventThreatDetectionCustomModules(com.google.cloud.securitycentermanagement.v1.ListDescendantEventThreatDetectionCustomModulesRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getListDescendantEventThreatDetectionCustomModulesMethod(), getCallOptions()), request, responseObserver); + } + + /** + *
+     * Gets an Event Threat Detection custom module.
+     * 
+ */ + public void getEventThreatDetectionCustomModule(com.google.cloud.securitycentermanagement.v1.GetEventThreatDetectionCustomModuleRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getGetEventThreatDetectionCustomModuleMethod(), getCallOptions()), request, responseObserver); + } + + /** + *
+     * Creates a resident Event Threat Detection custom module at the scope of the
+     * given Resource Manager parent, and also creates inherited custom modules
+     * for all descendants of the given parent. These modules are enabled by
+     * default.
+     * 
+ */ + public void createEventThreatDetectionCustomModule(com.google.cloud.securitycentermanagement.v1.CreateEventThreatDetectionCustomModuleRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getCreateEventThreatDetectionCustomModuleMethod(), getCallOptions()), request, responseObserver); + } + + /** + *
+     * Updates the Event Threat Detection custom module with the given name based
+     * on the given update mask. Updating the enablement state is supported for
+     * both resident and inherited modules (though resident modules cannot have an
+     * enablement state of "inherited"). Updating the display name or
+     * configuration of a module is supported for resident modules only. The type
+     * of a module cannot be changed.
+     * 
+ */ + public void updateEventThreatDetectionCustomModule(com.google.cloud.securitycentermanagement.v1.UpdateEventThreatDetectionCustomModuleRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getUpdateEventThreatDetectionCustomModuleMethod(), getCallOptions()), request, responseObserver); + } + + /** + *
+     * Deletes the specified Event Threat Detection custom module and all of its
+     * descendants in the Resource Manager hierarchy. This method is only
+     * supported for resident custom modules.
+     * 
+ */ + public void deleteEventThreatDetectionCustomModule(com.google.cloud.securitycentermanagement.v1.DeleteEventThreatDetectionCustomModuleRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getDeleteEventThreatDetectionCustomModuleMethod(), getCallOptions()), request, responseObserver); + } + + /** + *
+     * Validates the given Event Threat Detection custom module.
+     * 
+ */ + public void validateEventThreatDetectionCustomModule(com.google.cloud.securitycentermanagement.v1.ValidateEventThreatDetectionCustomModuleRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getValidateEventThreatDetectionCustomModuleMethod(), getCallOptions()), request, responseObserver); + } + } + + /** + * A stub to allow clients to do synchronous rpc calls to service SecurityCenterManagement. + *
+   * Service describing handlers for resources
+   * 
+ */ + public static final class SecurityCenterManagementBlockingStub + extends io.grpc.stub.AbstractBlockingStub { + private SecurityCenterManagementBlockingStub( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + super(channel, callOptions); + } + + @java.lang.Override + protected SecurityCenterManagementBlockingStub build( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new SecurityCenterManagementBlockingStub(channel, callOptions); + } + + /** + *
+     * Returns a list of all EffectiveSecurityHealthAnalyticsCustomModules for the
+     * given parent. This includes resident modules defined at the scope of the
+     * parent, and inherited modules, inherited from CRM ancestors (no
+     * descendants).
+     * 
+ */ + public com.google.cloud.securitycentermanagement.v1.ListEffectiveSecurityHealthAnalyticsCustomModulesResponse listEffectiveSecurityHealthAnalyticsCustomModules(com.google.cloud.securitycentermanagement.v1.ListEffectiveSecurityHealthAnalyticsCustomModulesRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getListEffectiveSecurityHealthAnalyticsCustomModulesMethod(), getCallOptions(), request); + } + + /** + *
+     * Gets details of a single EffectiveSecurityHealthAnalyticsCustomModule.
+     * 
+ */ + public com.google.cloud.securitycentermanagement.v1.EffectiveSecurityHealthAnalyticsCustomModule getEffectiveSecurityHealthAnalyticsCustomModule(com.google.cloud.securitycentermanagement.v1.GetEffectiveSecurityHealthAnalyticsCustomModuleRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getGetEffectiveSecurityHealthAnalyticsCustomModuleMethod(), getCallOptions(), request); + } + + /** + *
+     * Returns a list of all SecurityHealthAnalyticsCustomModules for the given
+     * parent. This includes resident modules defined at the scope of the parent,
+     * and inherited modules, inherited from CRM ancestors (no descendants).
+     * 
+ */ + public com.google.cloud.securitycentermanagement.v1.ListSecurityHealthAnalyticsCustomModulesResponse listSecurityHealthAnalyticsCustomModules(com.google.cloud.securitycentermanagement.v1.ListSecurityHealthAnalyticsCustomModulesRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getListSecurityHealthAnalyticsCustomModulesMethod(), getCallOptions(), request); + } + + /** + *
+     * Returns a list of all resident SecurityHealthAnalyticsCustomModules under
+     * the given CRM parent and all of the parent’s CRM descendants.
+     * 
+ */ + public com.google.cloud.securitycentermanagement.v1.ListDescendantSecurityHealthAnalyticsCustomModulesResponse listDescendantSecurityHealthAnalyticsCustomModules(com.google.cloud.securitycentermanagement.v1.ListDescendantSecurityHealthAnalyticsCustomModulesRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getListDescendantSecurityHealthAnalyticsCustomModulesMethod(), getCallOptions(), request); + } + + /** + *
+     * Retrieves a SecurityHealthAnalyticsCustomModule.
+     * 
+ */ + public com.google.cloud.securitycentermanagement.v1.SecurityHealthAnalyticsCustomModule getSecurityHealthAnalyticsCustomModule(com.google.cloud.securitycentermanagement.v1.GetSecurityHealthAnalyticsCustomModuleRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getGetSecurityHealthAnalyticsCustomModuleMethod(), getCallOptions(), request); + } + + /** + *
+     * Creates a resident SecurityHealthAnalyticsCustomModule at the scope of the
+     * given CRM parent, and also creates inherited
+     * SecurityHealthAnalyticsCustomModules for all CRM descendants of the given
+     * parent. These modules are enabled by default.
+     * 
+ */ + public com.google.cloud.securitycentermanagement.v1.SecurityHealthAnalyticsCustomModule createSecurityHealthAnalyticsCustomModule(com.google.cloud.securitycentermanagement.v1.CreateSecurityHealthAnalyticsCustomModuleRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getCreateSecurityHealthAnalyticsCustomModuleMethod(), getCallOptions(), request); + } + + /** + *
+     * Updates the SecurityHealthAnalyticsCustomModule under the given name based
+     * on the given update mask. Updating the enablement state is supported on
+     * both resident and inherited modules (though resident modules cannot have an
+     * enablement state of "inherited"). Updating the display name and custom
+     * config of a module is supported on resident modules only.
+     * 
+ */ + public com.google.cloud.securitycentermanagement.v1.SecurityHealthAnalyticsCustomModule updateSecurityHealthAnalyticsCustomModule(com.google.cloud.securitycentermanagement.v1.UpdateSecurityHealthAnalyticsCustomModuleRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getUpdateSecurityHealthAnalyticsCustomModuleMethod(), getCallOptions(), request); + } + + /** + *
+     * Deletes the specified SecurityHealthAnalyticsCustomModule and all of its
+     * descendants in the CRM hierarchy. This method is only supported for
+     * resident custom modules.
+     * 
+ */ + public com.google.protobuf.Empty deleteSecurityHealthAnalyticsCustomModule(com.google.cloud.securitycentermanagement.v1.DeleteSecurityHealthAnalyticsCustomModuleRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getDeleteSecurityHealthAnalyticsCustomModuleMethod(), getCallOptions(), request); + } + + /** + *
+     * Simulates a given SecurityHealthAnalyticsCustomModule and Resource.
+     * 
+ */ + public com.google.cloud.securitycentermanagement.v1.SimulateSecurityHealthAnalyticsCustomModuleResponse simulateSecurityHealthAnalyticsCustomModule(com.google.cloud.securitycentermanagement.v1.SimulateSecurityHealthAnalyticsCustomModuleRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getSimulateSecurityHealthAnalyticsCustomModuleMethod(), getCallOptions(), request); + } + + /** + *
+     * Lists all effective Event Threat Detection custom modules for the
+     * given parent. This includes resident modules defined at the scope of the
+     * parent along with modules inherited from its ancestors.
+     * 
+ */ + public com.google.cloud.securitycentermanagement.v1.ListEffectiveEventThreatDetectionCustomModulesResponse listEffectiveEventThreatDetectionCustomModules(com.google.cloud.securitycentermanagement.v1.ListEffectiveEventThreatDetectionCustomModulesRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getListEffectiveEventThreatDetectionCustomModulesMethod(), getCallOptions(), request); + } + + /** + *
+     * Gets an effective ETD custom module. Retrieves the effective module at the
+     * given level. The difference between an EffectiveCustomModule and a
+     * CustomModule is that the fields for an EffectiveCustomModule are computed
+     * from ancestors if needed. For example, the enablement_state for a
+     * CustomModule can be either ENABLED, DISABLED, or INHERITED. Where as the
+     * enablement_state for an EffectiveCustomModule is always computed to ENABLED
+     * or DISABLED (the effective enablement_state).
+     * 
+ */ + public com.google.cloud.securitycentermanagement.v1.EffectiveEventThreatDetectionCustomModule getEffectiveEventThreatDetectionCustomModule(com.google.cloud.securitycentermanagement.v1.GetEffectiveEventThreatDetectionCustomModuleRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getGetEffectiveEventThreatDetectionCustomModuleMethod(), getCallOptions(), request); + } + + /** + *
+     * Lists all Event Threat Detection custom modules for the given
+     * Resource Manager parent. This includes resident modules defined at the
+     * scope of the parent along with modules inherited from ancestors.
+     * 
+ */ + public com.google.cloud.securitycentermanagement.v1.ListEventThreatDetectionCustomModulesResponse listEventThreatDetectionCustomModules(com.google.cloud.securitycentermanagement.v1.ListEventThreatDetectionCustomModulesRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getListEventThreatDetectionCustomModulesMethod(), getCallOptions(), request); + } + + /** + *
+     * Lists all resident Event Threat Detection custom modules under the
+     * given Resource Manager parent and its descendants.
+     * 
+ */ + public com.google.cloud.securitycentermanagement.v1.ListDescendantEventThreatDetectionCustomModulesResponse listDescendantEventThreatDetectionCustomModules(com.google.cloud.securitycentermanagement.v1.ListDescendantEventThreatDetectionCustomModulesRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getListDescendantEventThreatDetectionCustomModulesMethod(), getCallOptions(), request); + } + + /** + *
+     * Gets an Event Threat Detection custom module.
+     * 
+ */ + public com.google.cloud.securitycentermanagement.v1.EventThreatDetectionCustomModule getEventThreatDetectionCustomModule(com.google.cloud.securitycentermanagement.v1.GetEventThreatDetectionCustomModuleRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getGetEventThreatDetectionCustomModuleMethod(), getCallOptions(), request); + } + + /** + *
+     * Creates a resident Event Threat Detection custom module at the scope of the
+     * given Resource Manager parent, and also creates inherited custom modules
+     * for all descendants of the given parent. These modules are enabled by
+     * default.
+     * 
+ */ + public com.google.cloud.securitycentermanagement.v1.EventThreatDetectionCustomModule createEventThreatDetectionCustomModule(com.google.cloud.securitycentermanagement.v1.CreateEventThreatDetectionCustomModuleRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getCreateEventThreatDetectionCustomModuleMethod(), getCallOptions(), request); + } + + /** + *
+     * Updates the Event Threat Detection custom module with the given name based
+     * on the given update mask. Updating the enablement state is supported for
+     * both resident and inherited modules (though resident modules cannot have an
+     * enablement state of "inherited"). Updating the display name or
+     * configuration of a module is supported for resident modules only. The type
+     * of a module cannot be changed.
+     * 
+ */ + public com.google.cloud.securitycentermanagement.v1.EventThreatDetectionCustomModule updateEventThreatDetectionCustomModule(com.google.cloud.securitycentermanagement.v1.UpdateEventThreatDetectionCustomModuleRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getUpdateEventThreatDetectionCustomModuleMethod(), getCallOptions(), request); + } + + /** + *
+     * Deletes the specified Event Threat Detection custom module and all of its
+     * descendants in the Resource Manager hierarchy. This method is only
+     * supported for resident custom modules.
+     * 
+ */ + public com.google.protobuf.Empty deleteEventThreatDetectionCustomModule(com.google.cloud.securitycentermanagement.v1.DeleteEventThreatDetectionCustomModuleRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getDeleteEventThreatDetectionCustomModuleMethod(), getCallOptions(), request); + } + + /** + *
+     * Validates the given Event Threat Detection custom module.
+     * 
+ */ + public com.google.cloud.securitycentermanagement.v1.ValidateEventThreatDetectionCustomModuleResponse validateEventThreatDetectionCustomModule(com.google.cloud.securitycentermanagement.v1.ValidateEventThreatDetectionCustomModuleRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getValidateEventThreatDetectionCustomModuleMethod(), getCallOptions(), request); + } + } + + /** + * A stub to allow clients to do ListenableFuture-style rpc calls to service SecurityCenterManagement. + *
+   * Service describing handlers for resources
+   * 
+ */ + public static final class SecurityCenterManagementFutureStub + extends io.grpc.stub.AbstractFutureStub { + private SecurityCenterManagementFutureStub( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + super(channel, callOptions); + } + + @java.lang.Override + protected SecurityCenterManagementFutureStub build( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new SecurityCenterManagementFutureStub(channel, callOptions); + } + + /** + *
+     * Returns a list of all EffectiveSecurityHealthAnalyticsCustomModules for the
+     * given parent. This includes resident modules defined at the scope of the
+     * parent, and inherited modules, inherited from CRM ancestors (no
+     * descendants).
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture listEffectiveSecurityHealthAnalyticsCustomModules( + com.google.cloud.securitycentermanagement.v1.ListEffectiveSecurityHealthAnalyticsCustomModulesRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getListEffectiveSecurityHealthAnalyticsCustomModulesMethod(), getCallOptions()), request); + } + + /** + *
+     * Gets details of a single EffectiveSecurityHealthAnalyticsCustomModule.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture getEffectiveSecurityHealthAnalyticsCustomModule( + com.google.cloud.securitycentermanagement.v1.GetEffectiveSecurityHealthAnalyticsCustomModuleRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getGetEffectiveSecurityHealthAnalyticsCustomModuleMethod(), getCallOptions()), request); + } + + /** + *
+     * Returns a list of all SecurityHealthAnalyticsCustomModules for the given
+     * parent. This includes resident modules defined at the scope of the parent,
+     * and inherited modules, inherited from CRM ancestors (no descendants).
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture listSecurityHealthAnalyticsCustomModules( + com.google.cloud.securitycentermanagement.v1.ListSecurityHealthAnalyticsCustomModulesRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getListSecurityHealthAnalyticsCustomModulesMethod(), getCallOptions()), request); + } + + /** + *
+     * Returns a list of all resident SecurityHealthAnalyticsCustomModules under
+     * the given CRM parent and all of the parent’s CRM descendants.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture listDescendantSecurityHealthAnalyticsCustomModules( + com.google.cloud.securitycentermanagement.v1.ListDescendantSecurityHealthAnalyticsCustomModulesRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getListDescendantSecurityHealthAnalyticsCustomModulesMethod(), getCallOptions()), request); + } + + /** + *
+     * Retrieves a SecurityHealthAnalyticsCustomModule.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture getSecurityHealthAnalyticsCustomModule( + com.google.cloud.securitycentermanagement.v1.GetSecurityHealthAnalyticsCustomModuleRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getGetSecurityHealthAnalyticsCustomModuleMethod(), getCallOptions()), request); + } + + /** + *
+     * Creates a resident SecurityHealthAnalyticsCustomModule at the scope of the
+     * given CRM parent, and also creates inherited
+     * SecurityHealthAnalyticsCustomModules for all CRM descendants of the given
+     * parent. These modules are enabled by default.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture createSecurityHealthAnalyticsCustomModule( + com.google.cloud.securitycentermanagement.v1.CreateSecurityHealthAnalyticsCustomModuleRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getCreateSecurityHealthAnalyticsCustomModuleMethod(), getCallOptions()), request); + } + + /** + *
+     * Updates the SecurityHealthAnalyticsCustomModule under the given name based
+     * on the given update mask. Updating the enablement state is supported on
+     * both resident and inherited modules (though resident modules cannot have an
+     * enablement state of "inherited"). Updating the display name and custom
+     * config of a module is supported on resident modules only.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture updateSecurityHealthAnalyticsCustomModule( + com.google.cloud.securitycentermanagement.v1.UpdateSecurityHealthAnalyticsCustomModuleRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getUpdateSecurityHealthAnalyticsCustomModuleMethod(), getCallOptions()), request); + } + + /** + *
+     * Deletes the specified SecurityHealthAnalyticsCustomModule and all of its
+     * descendants in the CRM hierarchy. This method is only supported for
+     * resident custom modules.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture deleteSecurityHealthAnalyticsCustomModule( + com.google.cloud.securitycentermanagement.v1.DeleteSecurityHealthAnalyticsCustomModuleRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getDeleteSecurityHealthAnalyticsCustomModuleMethod(), getCallOptions()), request); + } + + /** + *
+     * Simulates a given SecurityHealthAnalyticsCustomModule and Resource.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture simulateSecurityHealthAnalyticsCustomModule( + com.google.cloud.securitycentermanagement.v1.SimulateSecurityHealthAnalyticsCustomModuleRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getSimulateSecurityHealthAnalyticsCustomModuleMethod(), getCallOptions()), request); + } + + /** + *
+     * Lists all effective Event Threat Detection custom modules for the
+     * given parent. This includes resident modules defined at the scope of the
+     * parent along with modules inherited from its ancestors.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture listEffectiveEventThreatDetectionCustomModules( + com.google.cloud.securitycentermanagement.v1.ListEffectiveEventThreatDetectionCustomModulesRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getListEffectiveEventThreatDetectionCustomModulesMethod(), getCallOptions()), request); + } + + /** + *
+     * Gets an effective ETD custom module. Retrieves the effective module at the
+     * given level. The difference between an EffectiveCustomModule and a
+     * CustomModule is that the fields for an EffectiveCustomModule are computed
+     * from ancestors if needed. For example, the enablement_state for a
+     * CustomModule can be either ENABLED, DISABLED, or INHERITED. Where as the
+     * enablement_state for an EffectiveCustomModule is always computed to ENABLED
+     * or DISABLED (the effective enablement_state).
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture getEffectiveEventThreatDetectionCustomModule( + com.google.cloud.securitycentermanagement.v1.GetEffectiveEventThreatDetectionCustomModuleRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getGetEffectiveEventThreatDetectionCustomModuleMethod(), getCallOptions()), request); + } + + /** + *
+     * Lists all Event Threat Detection custom modules for the given
+     * Resource Manager parent. This includes resident modules defined at the
+     * scope of the parent along with modules inherited from ancestors.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture listEventThreatDetectionCustomModules( + com.google.cloud.securitycentermanagement.v1.ListEventThreatDetectionCustomModulesRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getListEventThreatDetectionCustomModulesMethod(), getCallOptions()), request); + } + + /** + *
+     * Lists all resident Event Threat Detection custom modules under the
+     * given Resource Manager parent and its descendants.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture listDescendantEventThreatDetectionCustomModules( + com.google.cloud.securitycentermanagement.v1.ListDescendantEventThreatDetectionCustomModulesRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getListDescendantEventThreatDetectionCustomModulesMethod(), getCallOptions()), request); + } + + /** + *
+     * Gets an Event Threat Detection custom module.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture getEventThreatDetectionCustomModule( + com.google.cloud.securitycentermanagement.v1.GetEventThreatDetectionCustomModuleRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getGetEventThreatDetectionCustomModuleMethod(), getCallOptions()), request); + } + + /** + *
+     * Creates a resident Event Threat Detection custom module at the scope of the
+     * given Resource Manager parent, and also creates inherited custom modules
+     * for all descendants of the given parent. These modules are enabled by
+     * default.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture createEventThreatDetectionCustomModule( + com.google.cloud.securitycentermanagement.v1.CreateEventThreatDetectionCustomModuleRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getCreateEventThreatDetectionCustomModuleMethod(), getCallOptions()), request); + } + + /** + *
+     * Updates the Event Threat Detection custom module with the given name based
+     * on the given update mask. Updating the enablement state is supported for
+     * both resident and inherited modules (though resident modules cannot have an
+     * enablement state of "inherited"). Updating the display name or
+     * configuration of a module is supported for resident modules only. The type
+     * of a module cannot be changed.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture updateEventThreatDetectionCustomModule( + com.google.cloud.securitycentermanagement.v1.UpdateEventThreatDetectionCustomModuleRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getUpdateEventThreatDetectionCustomModuleMethod(), getCallOptions()), request); + } + + /** + *
+     * Deletes the specified Event Threat Detection custom module and all of its
+     * descendants in the Resource Manager hierarchy. This method is only
+     * supported for resident custom modules.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture deleteEventThreatDetectionCustomModule( + com.google.cloud.securitycentermanagement.v1.DeleteEventThreatDetectionCustomModuleRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getDeleteEventThreatDetectionCustomModuleMethod(), getCallOptions()), request); + } + + /** + *
+     * Validates the given Event Threat Detection custom module.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture validateEventThreatDetectionCustomModule( + com.google.cloud.securitycentermanagement.v1.ValidateEventThreatDetectionCustomModuleRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getValidateEventThreatDetectionCustomModuleMethod(), getCallOptions()), request); + } + } + + private static final int METHODID_LIST_EFFECTIVE_SECURITY_HEALTH_ANALYTICS_CUSTOM_MODULES = 0; + private static final int METHODID_GET_EFFECTIVE_SECURITY_HEALTH_ANALYTICS_CUSTOM_MODULE = 1; + private static final int METHODID_LIST_SECURITY_HEALTH_ANALYTICS_CUSTOM_MODULES = 2; + private static final int METHODID_LIST_DESCENDANT_SECURITY_HEALTH_ANALYTICS_CUSTOM_MODULES = 3; + private static final int METHODID_GET_SECURITY_HEALTH_ANALYTICS_CUSTOM_MODULE = 4; + private static final int METHODID_CREATE_SECURITY_HEALTH_ANALYTICS_CUSTOM_MODULE = 5; + private static final int METHODID_UPDATE_SECURITY_HEALTH_ANALYTICS_CUSTOM_MODULE = 6; + private static final int METHODID_DELETE_SECURITY_HEALTH_ANALYTICS_CUSTOM_MODULE = 7; + private static final int METHODID_SIMULATE_SECURITY_HEALTH_ANALYTICS_CUSTOM_MODULE = 8; + private static final int METHODID_LIST_EFFECTIVE_EVENT_THREAT_DETECTION_CUSTOM_MODULES = 9; + private static final int METHODID_GET_EFFECTIVE_EVENT_THREAT_DETECTION_CUSTOM_MODULE = 10; + private static final int METHODID_LIST_EVENT_THREAT_DETECTION_CUSTOM_MODULES = 11; + private static final int METHODID_LIST_DESCENDANT_EVENT_THREAT_DETECTION_CUSTOM_MODULES = 12; + private static final int METHODID_GET_EVENT_THREAT_DETECTION_CUSTOM_MODULE = 13; + private static final int METHODID_CREATE_EVENT_THREAT_DETECTION_CUSTOM_MODULE = 14; + private static final int METHODID_UPDATE_EVENT_THREAT_DETECTION_CUSTOM_MODULE = 15; + private static final int METHODID_DELETE_EVENT_THREAT_DETECTION_CUSTOM_MODULE = 16; + private static final int METHODID_VALIDATE_EVENT_THREAT_DETECTION_CUSTOM_MODULE = 17; + + 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_EFFECTIVE_SECURITY_HEALTH_ANALYTICS_CUSTOM_MODULES: + serviceImpl.listEffectiveSecurityHealthAnalyticsCustomModules((com.google.cloud.securitycentermanagement.v1.ListEffectiveSecurityHealthAnalyticsCustomModulesRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_GET_EFFECTIVE_SECURITY_HEALTH_ANALYTICS_CUSTOM_MODULE: + serviceImpl.getEffectiveSecurityHealthAnalyticsCustomModule((com.google.cloud.securitycentermanagement.v1.GetEffectiveSecurityHealthAnalyticsCustomModuleRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_LIST_SECURITY_HEALTH_ANALYTICS_CUSTOM_MODULES: + serviceImpl.listSecurityHealthAnalyticsCustomModules((com.google.cloud.securitycentermanagement.v1.ListSecurityHealthAnalyticsCustomModulesRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_LIST_DESCENDANT_SECURITY_HEALTH_ANALYTICS_CUSTOM_MODULES: + serviceImpl.listDescendantSecurityHealthAnalyticsCustomModules((com.google.cloud.securitycentermanagement.v1.ListDescendantSecurityHealthAnalyticsCustomModulesRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_GET_SECURITY_HEALTH_ANALYTICS_CUSTOM_MODULE: + serviceImpl.getSecurityHealthAnalyticsCustomModule((com.google.cloud.securitycentermanagement.v1.GetSecurityHealthAnalyticsCustomModuleRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_CREATE_SECURITY_HEALTH_ANALYTICS_CUSTOM_MODULE: + serviceImpl.createSecurityHealthAnalyticsCustomModule((com.google.cloud.securitycentermanagement.v1.CreateSecurityHealthAnalyticsCustomModuleRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_UPDATE_SECURITY_HEALTH_ANALYTICS_CUSTOM_MODULE: + serviceImpl.updateSecurityHealthAnalyticsCustomModule((com.google.cloud.securitycentermanagement.v1.UpdateSecurityHealthAnalyticsCustomModuleRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_DELETE_SECURITY_HEALTH_ANALYTICS_CUSTOM_MODULE: + serviceImpl.deleteSecurityHealthAnalyticsCustomModule((com.google.cloud.securitycentermanagement.v1.DeleteSecurityHealthAnalyticsCustomModuleRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_SIMULATE_SECURITY_HEALTH_ANALYTICS_CUSTOM_MODULE: + serviceImpl.simulateSecurityHealthAnalyticsCustomModule((com.google.cloud.securitycentermanagement.v1.SimulateSecurityHealthAnalyticsCustomModuleRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_LIST_EFFECTIVE_EVENT_THREAT_DETECTION_CUSTOM_MODULES: + serviceImpl.listEffectiveEventThreatDetectionCustomModules((com.google.cloud.securitycentermanagement.v1.ListEffectiveEventThreatDetectionCustomModulesRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_GET_EFFECTIVE_EVENT_THREAT_DETECTION_CUSTOM_MODULE: + serviceImpl.getEffectiveEventThreatDetectionCustomModule((com.google.cloud.securitycentermanagement.v1.GetEffectiveEventThreatDetectionCustomModuleRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_LIST_EVENT_THREAT_DETECTION_CUSTOM_MODULES: + serviceImpl.listEventThreatDetectionCustomModules((com.google.cloud.securitycentermanagement.v1.ListEventThreatDetectionCustomModulesRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_LIST_DESCENDANT_EVENT_THREAT_DETECTION_CUSTOM_MODULES: + serviceImpl.listDescendantEventThreatDetectionCustomModules((com.google.cloud.securitycentermanagement.v1.ListDescendantEventThreatDetectionCustomModulesRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_GET_EVENT_THREAT_DETECTION_CUSTOM_MODULE: + serviceImpl.getEventThreatDetectionCustomModule((com.google.cloud.securitycentermanagement.v1.GetEventThreatDetectionCustomModuleRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_CREATE_EVENT_THREAT_DETECTION_CUSTOM_MODULE: + serviceImpl.createEventThreatDetectionCustomModule((com.google.cloud.securitycentermanagement.v1.CreateEventThreatDetectionCustomModuleRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_UPDATE_EVENT_THREAT_DETECTION_CUSTOM_MODULE: + serviceImpl.updateEventThreatDetectionCustomModule((com.google.cloud.securitycentermanagement.v1.UpdateEventThreatDetectionCustomModuleRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_DELETE_EVENT_THREAT_DETECTION_CUSTOM_MODULE: + serviceImpl.deleteEventThreatDetectionCustomModule((com.google.cloud.securitycentermanagement.v1.DeleteEventThreatDetectionCustomModuleRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_VALIDATE_EVENT_THREAT_DETECTION_CUSTOM_MODULE: + serviceImpl.validateEventThreatDetectionCustomModule((com.google.cloud.securitycentermanagement.v1.ValidateEventThreatDetectionCustomModuleRequest) 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( + getListEffectiveSecurityHealthAnalyticsCustomModulesMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.securitycentermanagement.v1.ListEffectiveSecurityHealthAnalyticsCustomModulesRequest, + com.google.cloud.securitycentermanagement.v1.ListEffectiveSecurityHealthAnalyticsCustomModulesResponse>( + service, METHODID_LIST_EFFECTIVE_SECURITY_HEALTH_ANALYTICS_CUSTOM_MODULES))) + .addMethod( + getGetEffectiveSecurityHealthAnalyticsCustomModuleMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.securitycentermanagement.v1.GetEffectiveSecurityHealthAnalyticsCustomModuleRequest, + com.google.cloud.securitycentermanagement.v1.EffectiveSecurityHealthAnalyticsCustomModule>( + service, METHODID_GET_EFFECTIVE_SECURITY_HEALTH_ANALYTICS_CUSTOM_MODULE))) + .addMethod( + getListSecurityHealthAnalyticsCustomModulesMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.securitycentermanagement.v1.ListSecurityHealthAnalyticsCustomModulesRequest, + com.google.cloud.securitycentermanagement.v1.ListSecurityHealthAnalyticsCustomModulesResponse>( + service, METHODID_LIST_SECURITY_HEALTH_ANALYTICS_CUSTOM_MODULES))) + .addMethod( + getListDescendantSecurityHealthAnalyticsCustomModulesMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.securitycentermanagement.v1.ListDescendantSecurityHealthAnalyticsCustomModulesRequest, + com.google.cloud.securitycentermanagement.v1.ListDescendantSecurityHealthAnalyticsCustomModulesResponse>( + service, METHODID_LIST_DESCENDANT_SECURITY_HEALTH_ANALYTICS_CUSTOM_MODULES))) + .addMethod( + getGetSecurityHealthAnalyticsCustomModuleMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.securitycentermanagement.v1.GetSecurityHealthAnalyticsCustomModuleRequest, + com.google.cloud.securitycentermanagement.v1.SecurityHealthAnalyticsCustomModule>( + service, METHODID_GET_SECURITY_HEALTH_ANALYTICS_CUSTOM_MODULE))) + .addMethod( + getCreateSecurityHealthAnalyticsCustomModuleMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.securitycentermanagement.v1.CreateSecurityHealthAnalyticsCustomModuleRequest, + com.google.cloud.securitycentermanagement.v1.SecurityHealthAnalyticsCustomModule>( + service, METHODID_CREATE_SECURITY_HEALTH_ANALYTICS_CUSTOM_MODULE))) + .addMethod( + getUpdateSecurityHealthAnalyticsCustomModuleMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.securitycentermanagement.v1.UpdateSecurityHealthAnalyticsCustomModuleRequest, + com.google.cloud.securitycentermanagement.v1.SecurityHealthAnalyticsCustomModule>( + service, METHODID_UPDATE_SECURITY_HEALTH_ANALYTICS_CUSTOM_MODULE))) + .addMethod( + getDeleteSecurityHealthAnalyticsCustomModuleMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.securitycentermanagement.v1.DeleteSecurityHealthAnalyticsCustomModuleRequest, + com.google.protobuf.Empty>( + service, METHODID_DELETE_SECURITY_HEALTH_ANALYTICS_CUSTOM_MODULE))) + .addMethod( + getSimulateSecurityHealthAnalyticsCustomModuleMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.securitycentermanagement.v1.SimulateSecurityHealthAnalyticsCustomModuleRequest, + com.google.cloud.securitycentermanagement.v1.SimulateSecurityHealthAnalyticsCustomModuleResponse>( + service, METHODID_SIMULATE_SECURITY_HEALTH_ANALYTICS_CUSTOM_MODULE))) + .addMethod( + getListEffectiveEventThreatDetectionCustomModulesMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.securitycentermanagement.v1.ListEffectiveEventThreatDetectionCustomModulesRequest, + com.google.cloud.securitycentermanagement.v1.ListEffectiveEventThreatDetectionCustomModulesResponse>( + service, METHODID_LIST_EFFECTIVE_EVENT_THREAT_DETECTION_CUSTOM_MODULES))) + .addMethod( + getGetEffectiveEventThreatDetectionCustomModuleMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.securitycentermanagement.v1.GetEffectiveEventThreatDetectionCustomModuleRequest, + com.google.cloud.securitycentermanagement.v1.EffectiveEventThreatDetectionCustomModule>( + service, METHODID_GET_EFFECTIVE_EVENT_THREAT_DETECTION_CUSTOM_MODULE))) + .addMethod( + getListEventThreatDetectionCustomModulesMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.securitycentermanagement.v1.ListEventThreatDetectionCustomModulesRequest, + com.google.cloud.securitycentermanagement.v1.ListEventThreatDetectionCustomModulesResponse>( + service, METHODID_LIST_EVENT_THREAT_DETECTION_CUSTOM_MODULES))) + .addMethod( + getListDescendantEventThreatDetectionCustomModulesMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.securitycentermanagement.v1.ListDescendantEventThreatDetectionCustomModulesRequest, + com.google.cloud.securitycentermanagement.v1.ListDescendantEventThreatDetectionCustomModulesResponse>( + service, METHODID_LIST_DESCENDANT_EVENT_THREAT_DETECTION_CUSTOM_MODULES))) + .addMethod( + getGetEventThreatDetectionCustomModuleMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.securitycentermanagement.v1.GetEventThreatDetectionCustomModuleRequest, + com.google.cloud.securitycentermanagement.v1.EventThreatDetectionCustomModule>( + service, METHODID_GET_EVENT_THREAT_DETECTION_CUSTOM_MODULE))) + .addMethod( + getCreateEventThreatDetectionCustomModuleMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.securitycentermanagement.v1.CreateEventThreatDetectionCustomModuleRequest, + com.google.cloud.securitycentermanagement.v1.EventThreatDetectionCustomModule>( + service, METHODID_CREATE_EVENT_THREAT_DETECTION_CUSTOM_MODULE))) + .addMethod( + getUpdateEventThreatDetectionCustomModuleMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.securitycentermanagement.v1.UpdateEventThreatDetectionCustomModuleRequest, + com.google.cloud.securitycentermanagement.v1.EventThreatDetectionCustomModule>( + service, METHODID_UPDATE_EVENT_THREAT_DETECTION_CUSTOM_MODULE))) + .addMethod( + getDeleteEventThreatDetectionCustomModuleMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.securitycentermanagement.v1.DeleteEventThreatDetectionCustomModuleRequest, + com.google.protobuf.Empty>( + service, METHODID_DELETE_EVENT_THREAT_DETECTION_CUSTOM_MODULE))) + .addMethod( + getValidateEventThreatDetectionCustomModuleMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.securitycentermanagement.v1.ValidateEventThreatDetectionCustomModuleRequest, + com.google.cloud.securitycentermanagement.v1.ValidateEventThreatDetectionCustomModuleResponse>( + service, METHODID_VALIDATE_EVENT_THREAT_DETECTION_CUSTOM_MODULE))) + .build(); + } + + private static abstract class SecurityCenterManagementBaseDescriptorSupplier + implements io.grpc.protobuf.ProtoFileDescriptorSupplier, io.grpc.protobuf.ProtoServiceDescriptorSupplier { + SecurityCenterManagementBaseDescriptorSupplier() {} + + @java.lang.Override + public com.google.protobuf.Descriptors.FileDescriptor getFileDescriptor() { + return com.google.cloud.securitycentermanagement.v1.SecurityCenterManagementProto.getDescriptor(); + } + + @java.lang.Override + public com.google.protobuf.Descriptors.ServiceDescriptor getServiceDescriptor() { + return getFileDescriptor().findServiceByName("SecurityCenterManagement"); + } + } + + private static final class SecurityCenterManagementFileDescriptorSupplier + extends SecurityCenterManagementBaseDescriptorSupplier { + SecurityCenterManagementFileDescriptorSupplier() {} + } + + private static final class SecurityCenterManagementMethodDescriptorSupplier + extends SecurityCenterManagementBaseDescriptorSupplier + implements io.grpc.protobuf.ProtoMethodDescriptorSupplier { + private final java.lang.String methodName; + + SecurityCenterManagementMethodDescriptorSupplier(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 (SecurityCenterManagementGrpc.class) { + result = serviceDescriptor; + if (result == null) { + serviceDescriptor = result = io.grpc.ServiceDescriptor.newBuilder(SERVICE_NAME) + .setSchemaDescriptor(new SecurityCenterManagementFileDescriptorSupplier()) + .addMethod(getListEffectiveSecurityHealthAnalyticsCustomModulesMethod()) + .addMethod(getGetEffectiveSecurityHealthAnalyticsCustomModuleMethod()) + .addMethod(getListSecurityHealthAnalyticsCustomModulesMethod()) + .addMethod(getListDescendantSecurityHealthAnalyticsCustomModulesMethod()) + .addMethod(getGetSecurityHealthAnalyticsCustomModuleMethod()) + .addMethod(getCreateSecurityHealthAnalyticsCustomModuleMethod()) + .addMethod(getUpdateSecurityHealthAnalyticsCustomModuleMethod()) + .addMethod(getDeleteSecurityHealthAnalyticsCustomModuleMethod()) + .addMethod(getSimulateSecurityHealthAnalyticsCustomModuleMethod()) + .addMethod(getListEffectiveEventThreatDetectionCustomModulesMethod()) + .addMethod(getGetEffectiveEventThreatDetectionCustomModuleMethod()) + .addMethod(getListEventThreatDetectionCustomModulesMethod()) + .addMethod(getListDescendantEventThreatDetectionCustomModulesMethod()) + .addMethod(getGetEventThreatDetectionCustomModuleMethod()) + .addMethod(getCreateEventThreatDetectionCustomModuleMethod()) + .addMethod(getUpdateEventThreatDetectionCustomModuleMethod()) + .addMethod(getDeleteEventThreatDetectionCustomModuleMethod()) + .addMethod(getValidateEventThreatDetectionCustomModuleMethod()) + .build(); + } + } + } + return result; + } +} diff --git a/java-securitycentermanagement/proto-google-cloud-securitycentermanagement-v1/src/main/java/com/google/cloud/securitycentermanagement/v1/CreateEventThreatDetectionCustomModuleRequest.java b/owl-bot-staging/java-securitycentermanagement/v1/proto-google-cloud-securitycentermanagement-v1/src/main/java/com/google/cloud/securitycentermanagement/v1/CreateEventThreatDetectionCustomModuleRequest.java similarity index 52% rename from java-securitycentermanagement/proto-google-cloud-securitycentermanagement-v1/src/main/java/com/google/cloud/securitycentermanagement/v1/CreateEventThreatDetectionCustomModuleRequest.java rename to owl-bot-staging/java-securitycentermanagement/v1/proto-google-cloud-securitycentermanagement-v1/src/main/java/com/google/cloud/securitycentermanagement/v1/CreateEventThreatDetectionCustomModuleRequest.java index c5291789294a..02c0f56f996a 100644 --- a/java-securitycentermanagement/proto-google-cloud-securitycentermanagement-v1/src/main/java/com/google/cloud/securitycentermanagement/v1/CreateEventThreatDetectionCustomModuleRequest.java +++ b/owl-bot-staging/java-securitycentermanagement/v1/proto-google-cloud-securitycentermanagement-v1/src/main/java/com/google/cloud/securitycentermanagement/v1/CreateEventThreatDetectionCustomModuleRequest.java @@ -1,79 +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/securitycentermanagement/v1/security_center_management.proto package com.google.cloud.securitycentermanagement.v1; /** - * - * *
  * Message for creating a EventThreatDetectionCustomModule
  * 
* - * Protobuf type {@code - * google.cloud.securitycentermanagement.v1.CreateEventThreatDetectionCustomModuleRequest} + * Protobuf type {@code google.cloud.securitycentermanagement.v1.CreateEventThreatDetectionCustomModuleRequest} */ -public final class CreateEventThreatDetectionCustomModuleRequest - extends com.google.protobuf.GeneratedMessageV3 - implements +public final class CreateEventThreatDetectionCustomModuleRequest extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.securitycentermanagement.v1.CreateEventThreatDetectionCustomModuleRequest) CreateEventThreatDetectionCustomModuleRequestOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use CreateEventThreatDetectionCustomModuleRequest.newBuilder() to construct. - private CreateEventThreatDetectionCustomModuleRequest( - com.google.protobuf.GeneratedMessageV3.Builder builder) { + private CreateEventThreatDetectionCustomModuleRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private CreateEventThreatDetectionCustomModuleRequest() { parent_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new CreateEventThreatDetectionCustomModuleRequest(); } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.securitycentermanagement.v1.SecurityCenterManagementProto - .internal_static_google_cloud_securitycentermanagement_v1_CreateEventThreatDetectionCustomModuleRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.securitycentermanagement.v1.SecurityCenterManagementProto.internal_static_google_cloud_securitycentermanagement_v1_CreateEventThreatDetectionCustomModuleRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.securitycentermanagement.v1.SecurityCenterManagementProto - .internal_static_google_cloud_securitycentermanagement_v1_CreateEventThreatDetectionCustomModuleRequest_fieldAccessorTable + return com.google.cloud.securitycentermanagement.v1.SecurityCenterManagementProto.internal_static_google_cloud_securitycentermanagement_v1_CreateEventThreatDetectionCustomModuleRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.securitycentermanagement.v1 - .CreateEventThreatDetectionCustomModuleRequest.class, - com.google.cloud.securitycentermanagement.v1 - .CreateEventThreatDetectionCustomModuleRequest.Builder.class); + com.google.cloud.securitycentermanagement.v1.CreateEventThreatDetectionCustomModuleRequest.class, com.google.cloud.securitycentermanagement.v1.CreateEventThreatDetectionCustomModuleRequest.Builder.class); } public static final int PARENT_FIELD_NUMBER = 1; - @SuppressWarnings("serial") private volatile java.lang.Object parent_ = ""; /** - * - * *
    * Required. Name of parent for the module. Its format is
    * "organizations/{organization}/locations/{location}",
@@ -82,10 +55,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
    * "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 @@ -94,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. Name of parent for the module. Its format is
    * "organizations/{organization}/locations/{location}",
@@ -111,18 +80,17 @@ public java.lang.String getParent() {
    * "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 { @@ -131,21 +99,15 @@ public com.google.protobuf.ByteString getParentBytes() { } public static final int EVENT_THREAT_DETECTION_CUSTOM_MODULE_FIELD_NUMBER = 3; - private com.google.cloud.securitycentermanagement.v1.EventThreatDetectionCustomModule - eventThreatDetectionCustomModule_; + private com.google.cloud.securitycentermanagement.v1.EventThreatDetectionCustomModule eventThreatDetectionCustomModule_; /** - * - * *
    * Required. The module to create. The
    * event_threat_detection_custom_module.name will be ignored and server
    * generated.
    * 
* - * - * .google.cloud.securitycentermanagement.v1.EventThreatDetectionCustomModule event_threat_detection_custom_module = 3 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.securitycentermanagement.v1.EventThreatDetectionCustomModule event_threat_detection_custom_module = 3 [(.google.api.field_behavior) = REQUIRED]; * @return Whether the eventThreatDetectionCustomModule field is set. */ @java.lang.Override @@ -153,55 +115,36 @@ public boolean hasEventThreatDetectionCustomModule() { return eventThreatDetectionCustomModule_ != null; } /** - * - * *
    * Required. The module to create. The
    * event_threat_detection_custom_module.name will be ignored and server
    * generated.
    * 
* - * - * .google.cloud.securitycentermanagement.v1.EventThreatDetectionCustomModule event_threat_detection_custom_module = 3 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.securitycentermanagement.v1.EventThreatDetectionCustomModule event_threat_detection_custom_module = 3 [(.google.api.field_behavior) = REQUIRED]; * @return The eventThreatDetectionCustomModule. */ @java.lang.Override - public com.google.cloud.securitycentermanagement.v1.EventThreatDetectionCustomModule - getEventThreatDetectionCustomModule() { - return eventThreatDetectionCustomModule_ == null - ? com.google.cloud.securitycentermanagement.v1.EventThreatDetectionCustomModule - .getDefaultInstance() - : eventThreatDetectionCustomModule_; + public com.google.cloud.securitycentermanagement.v1.EventThreatDetectionCustomModule getEventThreatDetectionCustomModule() { + return eventThreatDetectionCustomModule_ == null ? com.google.cloud.securitycentermanagement.v1.EventThreatDetectionCustomModule.getDefaultInstance() : eventThreatDetectionCustomModule_; } /** - * - * *
    * Required. The module to create. The
    * event_threat_detection_custom_module.name will be ignored and server
    * generated.
    * 
* - * - * .google.cloud.securitycentermanagement.v1.EventThreatDetectionCustomModule event_threat_detection_custom_module = 3 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.securitycentermanagement.v1.EventThreatDetectionCustomModule event_threat_detection_custom_module = 3 [(.google.api.field_behavior) = REQUIRED]; */ @java.lang.Override - public com.google.cloud.securitycentermanagement.v1.EventThreatDetectionCustomModuleOrBuilder - getEventThreatDetectionCustomModuleOrBuilder() { - return eventThreatDetectionCustomModule_ == null - ? com.google.cloud.securitycentermanagement.v1.EventThreatDetectionCustomModule - .getDefaultInstance() - : eventThreatDetectionCustomModule_; + public com.google.cloud.securitycentermanagement.v1.EventThreatDetectionCustomModuleOrBuilder getEventThreatDetectionCustomModuleOrBuilder() { + return eventThreatDetectionCustomModule_ == null ? com.google.cloud.securitycentermanagement.v1.EventThreatDetectionCustomModule.getDefaultInstance() : eventThreatDetectionCustomModule_; } public static final int VALIDATE_ONLY_FIELD_NUMBER = 4; private boolean validateOnly_ = false; /** - * - * *
    * Optional. When set to true, only validations (including IAM checks) will
    * done for the request (no module will be created). An OK response indicates
@@ -213,7 +156,6 @@ public boolean hasEventThreatDetectionCustomModule() {
    * 
* * bool validate_only = 4 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The validateOnly. */ @java.lang.Override @@ -222,7 +164,6 @@ public boolean getValidateOnly() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -234,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_); } @@ -257,12 +199,12 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, parent_); } if (eventThreatDetectionCustomModule_ != null) { - size += - com.google.protobuf.CodedOutputStream.computeMessageSize( - 3, getEventThreatDetectionCustomModule()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(3, getEventThreatDetectionCustomModule()); } if (validateOnly_ != false) { - size += com.google.protobuf.CodedOutputStream.computeBoolSize(4, validateOnly_); + size += com.google.protobuf.CodedOutputStream + .computeBoolSize(4, validateOnly_); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -272,28 +214,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.securitycentermanagement.v1 - .CreateEventThreatDetectionCustomModuleRequest)) { + if (!(obj instanceof com.google.cloud.securitycentermanagement.v1.CreateEventThreatDetectionCustomModuleRequest)) { return super.equals(obj); } - com.google.cloud.securitycentermanagement.v1.CreateEventThreatDetectionCustomModuleRequest - other = - (com.google.cloud.securitycentermanagement.v1 - .CreateEventThreatDetectionCustomModuleRequest) - obj; + com.google.cloud.securitycentermanagement.v1.CreateEventThreatDetectionCustomModuleRequest other = (com.google.cloud.securitycentermanagement.v1.CreateEventThreatDetectionCustomModuleRequest) obj; - if (!getParent().equals(other.getParent())) return false; - if (hasEventThreatDetectionCustomModule() != other.hasEventThreatDetectionCustomModule()) - return false; + if (!getParent() + .equals(other.getParent())) return false; + if (hasEventThreatDetectionCustomModule() != other.hasEventThreatDetectionCustomModule()) return false; if (hasEventThreatDetectionCustomModule()) { if (!getEventThreatDetectionCustomModule() .equals(other.getEventThreatDetectionCustomModule())) return false; } - if (getValidateOnly() != other.getValidateOnly()) return false; + if (getValidateOnly() + != other.getValidateOnly()) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -312,167 +248,139 @@ public int hashCode() { hash = (53 * hash) + getEventThreatDetectionCustomModule().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.securitycentermanagement.v1 - .CreateEventThreatDetectionCustomModuleRequest - parseFrom(java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.securitycentermanagement.v1.CreateEventThreatDetectionCustomModuleRequest parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - - public static com.google.cloud.securitycentermanagement.v1 - .CreateEventThreatDetectionCustomModuleRequest - parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.securitycentermanagement.v1.CreateEventThreatDetectionCustomModuleRequest 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.securitycentermanagement.v1 - .CreateEventThreatDetectionCustomModuleRequest - parseFrom(com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.securitycentermanagement.v1.CreateEventThreatDetectionCustomModuleRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - - public static com.google.cloud.securitycentermanagement.v1 - .CreateEventThreatDetectionCustomModuleRequest - parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.securitycentermanagement.v1.CreateEventThreatDetectionCustomModuleRequest parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.securitycentermanagement.v1 - .CreateEventThreatDetectionCustomModuleRequest - parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.securitycentermanagement.v1.CreateEventThreatDetectionCustomModuleRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - - public static com.google.cloud.securitycentermanagement.v1 - .CreateEventThreatDetectionCustomModuleRequest - parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.securitycentermanagement.v1.CreateEventThreatDetectionCustomModuleRequest parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.securitycentermanagement.v1 - .CreateEventThreatDetectionCustomModuleRequest - parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.securitycentermanagement.v1.CreateEventThreatDetectionCustomModuleRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - - public static com.google.cloud.securitycentermanagement.v1 - .CreateEventThreatDetectionCustomModuleRequest - 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.securitycentermanagement.v1.CreateEventThreatDetectionCustomModuleRequest 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.securitycentermanagement.v1 - .CreateEventThreatDetectionCustomModuleRequest - parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.securitycentermanagement.v1.CreateEventThreatDetectionCustomModuleRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.securitycentermanagement.v1 - .CreateEventThreatDetectionCustomModuleRequest - parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + public static com.google.cloud.securitycentermanagement.v1.CreateEventThreatDetectionCustomModuleRequest parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.securitycentermanagement.v1 - .CreateEventThreatDetectionCustomModuleRequest - parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.securitycentermanagement.v1.CreateEventThreatDetectionCustomModuleRequest parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - - public static com.google.cloud.securitycentermanagement.v1 - .CreateEventThreatDetectionCustomModuleRequest - 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.securitycentermanagement.v1.CreateEventThreatDetectionCustomModuleRequest 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.securitycentermanagement.v1.CreateEventThreatDetectionCustomModuleRequest - prototype) { + public static Builder newBuilder(com.google.cloud.securitycentermanagement.v1.CreateEventThreatDetectionCustomModuleRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected 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 EventThreatDetectionCustomModule
    * 
* - * Protobuf type {@code - * google.cloud.securitycentermanagement.v1.CreateEventThreatDetectionCustomModuleRequest} + * Protobuf type {@code google.cloud.securitycentermanagement.v1.CreateEventThreatDetectionCustomModuleRequest} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.securitycentermanagement.v1.CreateEventThreatDetectionCustomModuleRequest) - com.google.cloud.securitycentermanagement.v1 - .CreateEventThreatDetectionCustomModuleRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.securitycentermanagement.v1.SecurityCenterManagementProto - .internal_static_google_cloud_securitycentermanagement_v1_CreateEventThreatDetectionCustomModuleRequest_descriptor; + com.google.cloud.securitycentermanagement.v1.CreateEventThreatDetectionCustomModuleRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.securitycentermanagement.v1.SecurityCenterManagementProto.internal_static_google_cloud_securitycentermanagement_v1_CreateEventThreatDetectionCustomModuleRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.securitycentermanagement.v1.SecurityCenterManagementProto - .internal_static_google_cloud_securitycentermanagement_v1_CreateEventThreatDetectionCustomModuleRequest_fieldAccessorTable + return com.google.cloud.securitycentermanagement.v1.SecurityCenterManagementProto.internal_static_google_cloud_securitycentermanagement_v1_CreateEventThreatDetectionCustomModuleRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.securitycentermanagement.v1 - .CreateEventThreatDetectionCustomModuleRequest.class, - com.google.cloud.securitycentermanagement.v1 - .CreateEventThreatDetectionCustomModuleRequest.Builder.class); + com.google.cloud.securitycentermanagement.v1.CreateEventThreatDetectionCustomModuleRequest.class, com.google.cloud.securitycentermanagement.v1.CreateEventThreatDetectionCustomModuleRequest.Builder.class); } - // Construct using - // com.google.cloud.securitycentermanagement.v1.CreateEventThreatDetectionCustomModuleRequest.newBuilder() - private Builder() {} + // Construct using com.google.cloud.securitycentermanagement.v1.CreateEventThreatDetectionCustomModuleRequest.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(); @@ -488,25 +396,19 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.securitycentermanagement.v1.SecurityCenterManagementProto - .internal_static_google_cloud_securitycentermanagement_v1_CreateEventThreatDetectionCustomModuleRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.securitycentermanagement.v1.SecurityCenterManagementProto.internal_static_google_cloud_securitycentermanagement_v1_CreateEventThreatDetectionCustomModuleRequest_descriptor; } @java.lang.Override - public com.google.cloud.securitycentermanagement.v1 - .CreateEventThreatDetectionCustomModuleRequest - getDefaultInstanceForType() { - return com.google.cloud.securitycentermanagement.v1 - .CreateEventThreatDetectionCustomModuleRequest.getDefaultInstance(); + public com.google.cloud.securitycentermanagement.v1.CreateEventThreatDetectionCustomModuleRequest getDefaultInstanceForType() { + return com.google.cloud.securitycentermanagement.v1.CreateEventThreatDetectionCustomModuleRequest.getDefaultInstance(); } @java.lang.Override - public com.google.cloud.securitycentermanagement.v1 - .CreateEventThreatDetectionCustomModuleRequest - build() { - com.google.cloud.securitycentermanagement.v1.CreateEventThreatDetectionCustomModuleRequest - result = buildPartial(); + public com.google.cloud.securitycentermanagement.v1.CreateEventThreatDetectionCustomModuleRequest build() { + com.google.cloud.securitycentermanagement.v1.CreateEventThreatDetectionCustomModuleRequest result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } @@ -514,32 +416,22 @@ public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { } @java.lang.Override - public com.google.cloud.securitycentermanagement.v1 - .CreateEventThreatDetectionCustomModuleRequest - buildPartial() { - com.google.cloud.securitycentermanagement.v1.CreateEventThreatDetectionCustomModuleRequest - result = - new com.google.cloud.securitycentermanagement.v1 - .CreateEventThreatDetectionCustomModuleRequest(this); - if (bitField0_ != 0) { - buildPartial0(result); - } + public com.google.cloud.securitycentermanagement.v1.CreateEventThreatDetectionCustomModuleRequest buildPartial() { + com.google.cloud.securitycentermanagement.v1.CreateEventThreatDetectionCustomModuleRequest result = new com.google.cloud.securitycentermanagement.v1.CreateEventThreatDetectionCustomModuleRequest(this); + if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } - private void buildPartial0( - com.google.cloud.securitycentermanagement.v1.CreateEventThreatDetectionCustomModuleRequest - result) { + private void buildPartial0(com.google.cloud.securitycentermanagement.v1.CreateEventThreatDetectionCustomModuleRequest result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000001) != 0)) { result.parent_ = parent_; } if (((from_bitField0_ & 0x00000002) != 0)) { - result.eventThreatDetectionCustomModule_ = - eventThreatDetectionCustomModuleBuilder_ == null - ? eventThreatDetectionCustomModule_ - : eventThreatDetectionCustomModuleBuilder_.build(); + result.eventThreatDetectionCustomModule_ = eventThreatDetectionCustomModuleBuilder_ == null + ? eventThreatDetectionCustomModule_ + : eventThreatDetectionCustomModuleBuilder_.build(); } if (((from_bitField0_ & 0x00000004) != 0)) { result.validateOnly_ = validateOnly_; @@ -550,57 +442,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.securitycentermanagement.v1 - .CreateEventThreatDetectionCustomModuleRequest) { - return mergeFrom( - (com.google.cloud.securitycentermanagement.v1 - .CreateEventThreatDetectionCustomModuleRequest) - other); + if (other instanceof com.google.cloud.securitycentermanagement.v1.CreateEventThreatDetectionCustomModuleRequest) { + return mergeFrom((com.google.cloud.securitycentermanagement.v1.CreateEventThreatDetectionCustomModuleRequest)other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom( - com.google.cloud.securitycentermanagement.v1.CreateEventThreatDetectionCustomModuleRequest - other) { - if (other - == com.google.cloud.securitycentermanagement.v1 - .CreateEventThreatDetectionCustomModuleRequest.getDefaultInstance()) return this; + public Builder mergeFrom(com.google.cloud.securitycentermanagement.v1.CreateEventThreatDetectionCustomModuleRequest other) { + if (other == com.google.cloud.securitycentermanagement.v1.CreateEventThreatDetectionCustomModuleRequest.getDefaultInstance()) return this; if (!other.getParent().isEmpty()) { parent_ = other.parent_; bitField0_ |= 0x00000001; @@ -638,33 +519,29 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: - { - parent_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 26: - { - input.readMessage( - getEventThreatDetectionCustomModuleFieldBuilder().getBuilder(), - extensionRegistry); - bitField0_ |= 0x00000002; - break; - } // case 26 - case 32: - { - validateOnly_ = input.readBool(); - bitField0_ |= 0x00000004; - 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 26: { + input.readMessage( + getEventThreatDetectionCustomModuleFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000002; + break; + } // case 26 + case 32: { + validateOnly_ = input.readBool(); + bitField0_ |= 0x00000004; + 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) { @@ -674,13 +551,10 @@ public Builder mergeFrom( } // finally return this; } - private int bitField0_; private java.lang.Object parent_ = ""; /** - * - * *
      * Required. Name of parent for the module. Its format is
      * "organizations/{organization}/locations/{location}",
@@ -689,16 +563,14 @@ public Builder mergeFrom(
      * "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; @@ -707,8 +579,6 @@ public java.lang.String getParent() { } } /** - * - * *
      * Required. Name of parent for the module. Its format is
      * "organizations/{organization}/locations/{location}",
@@ -717,17 +587,16 @@ public java.lang.String getParent() {
      * "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 { @@ -735,8 +604,6 @@ public com.google.protobuf.ByteString getParentBytes() { } } /** - * - * *
      * Required. Name of parent for the module. Its format is
      * "organizations/{organization}/locations/{location}",
@@ -745,25 +612,19 @@ public com.google.protobuf.ByteString getParentBytes() {
      * "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. Name of parent for the module. Its format is
      * "organizations/{organization}/locations/{location}",
@@ -772,10 +633,7 @@ public Builder setParent(java.lang.String value) {
      * "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() { @@ -785,8 +643,6 @@ public Builder clearParent() { return this; } /** - * - * *
      * Required. Name of parent for the module. Its format is
      * "organizations/{organization}/locations/{location}",
@@ -795,17 +651,13 @@ public Builder clearParent() {
      * "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; @@ -813,72 +665,49 @@ public Builder setParentBytes(com.google.protobuf.ByteString value) { return this; } - private com.google.cloud.securitycentermanagement.v1.EventThreatDetectionCustomModule - eventThreatDetectionCustomModule_; + private com.google.cloud.securitycentermanagement.v1.EventThreatDetectionCustomModule eventThreatDetectionCustomModule_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.securitycentermanagement.v1.EventThreatDetectionCustomModule, - com.google.cloud.securitycentermanagement.v1.EventThreatDetectionCustomModule.Builder, - com.google.cloud.securitycentermanagement.v1.EventThreatDetectionCustomModuleOrBuilder> - eventThreatDetectionCustomModuleBuilder_; + com.google.cloud.securitycentermanagement.v1.EventThreatDetectionCustomModule, com.google.cloud.securitycentermanagement.v1.EventThreatDetectionCustomModule.Builder, com.google.cloud.securitycentermanagement.v1.EventThreatDetectionCustomModuleOrBuilder> eventThreatDetectionCustomModuleBuilder_; /** - * - * *
      * Required. The module to create. The
      * event_threat_detection_custom_module.name will be ignored and server
      * generated.
      * 
* - * - * .google.cloud.securitycentermanagement.v1.EventThreatDetectionCustomModule event_threat_detection_custom_module = 3 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.securitycentermanagement.v1.EventThreatDetectionCustomModule event_threat_detection_custom_module = 3 [(.google.api.field_behavior) = REQUIRED]; * @return Whether the eventThreatDetectionCustomModule field is set. */ public boolean hasEventThreatDetectionCustomModule() { return ((bitField0_ & 0x00000002) != 0); } /** - * - * *
      * Required. The module to create. The
      * event_threat_detection_custom_module.name will be ignored and server
      * generated.
      * 
* - * - * .google.cloud.securitycentermanagement.v1.EventThreatDetectionCustomModule event_threat_detection_custom_module = 3 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.securitycentermanagement.v1.EventThreatDetectionCustomModule event_threat_detection_custom_module = 3 [(.google.api.field_behavior) = REQUIRED]; * @return The eventThreatDetectionCustomModule. */ - public com.google.cloud.securitycentermanagement.v1.EventThreatDetectionCustomModule - getEventThreatDetectionCustomModule() { + public com.google.cloud.securitycentermanagement.v1.EventThreatDetectionCustomModule getEventThreatDetectionCustomModule() { if (eventThreatDetectionCustomModuleBuilder_ == null) { - return eventThreatDetectionCustomModule_ == null - ? com.google.cloud.securitycentermanagement.v1.EventThreatDetectionCustomModule - .getDefaultInstance() - : eventThreatDetectionCustomModule_; + return eventThreatDetectionCustomModule_ == null ? com.google.cloud.securitycentermanagement.v1.EventThreatDetectionCustomModule.getDefaultInstance() : eventThreatDetectionCustomModule_; } else { return eventThreatDetectionCustomModuleBuilder_.getMessage(); } } /** - * - * *
      * Required. The module to create. The
      * event_threat_detection_custom_module.name will be ignored and server
      * generated.
      * 
* - * - * .google.cloud.securitycentermanagement.v1.EventThreatDetectionCustomModule event_threat_detection_custom_module = 3 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.securitycentermanagement.v1.EventThreatDetectionCustomModule event_threat_detection_custom_module = 3 [(.google.api.field_behavior) = REQUIRED]; */ - public Builder setEventThreatDetectionCustomModule( - com.google.cloud.securitycentermanagement.v1.EventThreatDetectionCustomModule value) { + public Builder setEventThreatDetectionCustomModule(com.google.cloud.securitycentermanagement.v1.EventThreatDetectionCustomModule value) { if (eventThreatDetectionCustomModuleBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -892,21 +721,16 @@ public Builder setEventThreatDetectionCustomModule( return this; } /** - * - * *
      * Required. The module to create. The
      * event_threat_detection_custom_module.name will be ignored and server
      * generated.
      * 
* - * - * .google.cloud.securitycentermanagement.v1.EventThreatDetectionCustomModule event_threat_detection_custom_module = 3 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.securitycentermanagement.v1.EventThreatDetectionCustomModule event_threat_detection_custom_module = 3 [(.google.api.field_behavior) = REQUIRED]; */ public Builder setEventThreatDetectionCustomModule( - com.google.cloud.securitycentermanagement.v1.EventThreatDetectionCustomModule.Builder - builderForValue) { + com.google.cloud.securitycentermanagement.v1.EventThreatDetectionCustomModule.Builder builderForValue) { if (eventThreatDetectionCustomModuleBuilder_ == null) { eventThreatDetectionCustomModule_ = builderForValue.build(); } else { @@ -917,26 +741,19 @@ public Builder setEventThreatDetectionCustomModule( return this; } /** - * - * *
      * Required. The module to create. The
      * event_threat_detection_custom_module.name will be ignored and server
      * generated.
      * 
* - * - * .google.cloud.securitycentermanagement.v1.EventThreatDetectionCustomModule event_threat_detection_custom_module = 3 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.securitycentermanagement.v1.EventThreatDetectionCustomModule event_threat_detection_custom_module = 3 [(.google.api.field_behavior) = REQUIRED]; */ - public Builder mergeEventThreatDetectionCustomModule( - com.google.cloud.securitycentermanagement.v1.EventThreatDetectionCustomModule value) { + public Builder mergeEventThreatDetectionCustomModule(com.google.cloud.securitycentermanagement.v1.EventThreatDetectionCustomModule value) { if (eventThreatDetectionCustomModuleBuilder_ == null) { - if (((bitField0_ & 0x00000002) != 0) - && eventThreatDetectionCustomModule_ != null - && eventThreatDetectionCustomModule_ - != com.google.cloud.securitycentermanagement.v1.EventThreatDetectionCustomModule - .getDefaultInstance()) { + if (((bitField0_ & 0x00000002) != 0) && + eventThreatDetectionCustomModule_ != null && + eventThreatDetectionCustomModule_ != com.google.cloud.securitycentermanagement.v1.EventThreatDetectionCustomModule.getDefaultInstance()) { getEventThreatDetectionCustomModuleBuilder().mergeFrom(value); } else { eventThreatDetectionCustomModule_ = value; @@ -949,17 +766,13 @@ public Builder mergeEventThreatDetectionCustomModule( return this; } /** - * - * *
      * Required. The module to create. The
      * event_threat_detection_custom_module.name will be ignored and server
      * generated.
      * 
* - * - * .google.cloud.securitycentermanagement.v1.EventThreatDetectionCustomModule event_threat_detection_custom_module = 3 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.securitycentermanagement.v1.EventThreatDetectionCustomModule event_threat_detection_custom_module = 3 [(.google.api.field_behavior) = REQUIRED]; */ public Builder clearEventThreatDetectionCustomModule() { bitField0_ = (bitField0_ & ~0x00000002); @@ -972,84 +785,61 @@ public Builder clearEventThreatDetectionCustomModule() { return this; } /** - * - * *
      * Required. The module to create. The
      * event_threat_detection_custom_module.name will be ignored and server
      * generated.
      * 
* - * - * .google.cloud.securitycentermanagement.v1.EventThreatDetectionCustomModule event_threat_detection_custom_module = 3 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.securitycentermanagement.v1.EventThreatDetectionCustomModule event_threat_detection_custom_module = 3 [(.google.api.field_behavior) = REQUIRED]; */ - public com.google.cloud.securitycentermanagement.v1.EventThreatDetectionCustomModule.Builder - getEventThreatDetectionCustomModuleBuilder() { + public com.google.cloud.securitycentermanagement.v1.EventThreatDetectionCustomModule.Builder getEventThreatDetectionCustomModuleBuilder() { bitField0_ |= 0x00000002; onChanged(); return getEventThreatDetectionCustomModuleFieldBuilder().getBuilder(); } /** - * - * *
      * Required. The module to create. The
      * event_threat_detection_custom_module.name will be ignored and server
      * generated.
      * 
* - * - * .google.cloud.securitycentermanagement.v1.EventThreatDetectionCustomModule event_threat_detection_custom_module = 3 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.securitycentermanagement.v1.EventThreatDetectionCustomModule event_threat_detection_custom_module = 3 [(.google.api.field_behavior) = REQUIRED]; */ - public com.google.cloud.securitycentermanagement.v1.EventThreatDetectionCustomModuleOrBuilder - getEventThreatDetectionCustomModuleOrBuilder() { + public com.google.cloud.securitycentermanagement.v1.EventThreatDetectionCustomModuleOrBuilder getEventThreatDetectionCustomModuleOrBuilder() { if (eventThreatDetectionCustomModuleBuilder_ != null) { return eventThreatDetectionCustomModuleBuilder_.getMessageOrBuilder(); } else { - return eventThreatDetectionCustomModule_ == null - ? com.google.cloud.securitycentermanagement.v1.EventThreatDetectionCustomModule - .getDefaultInstance() - : eventThreatDetectionCustomModule_; + return eventThreatDetectionCustomModule_ == null ? + com.google.cloud.securitycentermanagement.v1.EventThreatDetectionCustomModule.getDefaultInstance() : eventThreatDetectionCustomModule_; } } /** - * - * *
      * Required. The module to create. The
      * event_threat_detection_custom_module.name will be ignored and server
      * generated.
      * 
* - * - * .google.cloud.securitycentermanagement.v1.EventThreatDetectionCustomModule event_threat_detection_custom_module = 3 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.securitycentermanagement.v1.EventThreatDetectionCustomModule event_threat_detection_custom_module = 3 [(.google.api.field_behavior) = REQUIRED]; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.securitycentermanagement.v1.EventThreatDetectionCustomModule, - com.google.cloud.securitycentermanagement.v1.EventThreatDetectionCustomModule.Builder, - com.google.cloud.securitycentermanagement.v1.EventThreatDetectionCustomModuleOrBuilder> + com.google.cloud.securitycentermanagement.v1.EventThreatDetectionCustomModule, com.google.cloud.securitycentermanagement.v1.EventThreatDetectionCustomModule.Builder, com.google.cloud.securitycentermanagement.v1.EventThreatDetectionCustomModuleOrBuilder> getEventThreatDetectionCustomModuleFieldBuilder() { if (eventThreatDetectionCustomModuleBuilder_ == null) { - eventThreatDetectionCustomModuleBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.securitycentermanagement.v1.EventThreatDetectionCustomModule, - com.google.cloud.securitycentermanagement.v1.EventThreatDetectionCustomModule - .Builder, - com.google.cloud.securitycentermanagement.v1 - .EventThreatDetectionCustomModuleOrBuilder>( - getEventThreatDetectionCustomModule(), getParentForChildren(), isClean()); + eventThreatDetectionCustomModuleBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.securitycentermanagement.v1.EventThreatDetectionCustomModule, com.google.cloud.securitycentermanagement.v1.EventThreatDetectionCustomModule.Builder, com.google.cloud.securitycentermanagement.v1.EventThreatDetectionCustomModuleOrBuilder>( + getEventThreatDetectionCustomModule(), + getParentForChildren(), + isClean()); eventThreatDetectionCustomModule_ = null; } return eventThreatDetectionCustomModuleBuilder_; } - private boolean validateOnly_; + private boolean validateOnly_ ; /** - * - * *
      * Optional. When set to true, only validations (including IAM checks) will
      * done for the request (no module will be created). An OK response indicates
@@ -1061,7 +851,6 @@ public Builder clearEventThreatDetectionCustomModule() {
      * 
* * bool validate_only = 4 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The validateOnly. */ @java.lang.Override @@ -1069,8 +858,6 @@ public boolean getValidateOnly() { return validateOnly_; } /** - * - * *
      * Optional. When set to true, only validations (including IAM checks) will
      * done for the request (no module will be created). An OK response indicates
@@ -1082,7 +869,6 @@ public boolean getValidateOnly() {
      * 
* * bool validate_only = 4 [(.google.api.field_behavior) = OPTIONAL]; - * * @param value The validateOnly to set. * @return This builder for chaining. */ @@ -1094,8 +880,6 @@ public Builder setValidateOnly(boolean value) { return this; } /** - * - * *
      * Optional. When set to true, only validations (including IAM checks) will
      * done for the request (no module will be created). An OK response indicates
@@ -1107,7 +891,6 @@ public Builder setValidateOnly(boolean value) {
      * 
* * bool validate_only = 4 [(.google.api.field_behavior) = OPTIONAL]; - * * @return This builder for chaining. */ public Builder clearValidateOnly() { @@ -1116,9 +899,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); } @@ -1128,63 +911,55 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.securitycentermanagement.v1.CreateEventThreatDetectionCustomModuleRequest) } // @@protoc_insertion_point(class_scope:google.cloud.securitycentermanagement.v1.CreateEventThreatDetectionCustomModuleRequest) - private static final com.google.cloud.securitycentermanagement.v1 - .CreateEventThreatDetectionCustomModuleRequest - DEFAULT_INSTANCE; - + private static final com.google.cloud.securitycentermanagement.v1.CreateEventThreatDetectionCustomModuleRequest DEFAULT_INSTANCE; static { - DEFAULT_INSTANCE = - new com.google.cloud.securitycentermanagement.v1 - .CreateEventThreatDetectionCustomModuleRequest(); + DEFAULT_INSTANCE = new com.google.cloud.securitycentermanagement.v1.CreateEventThreatDetectionCustomModuleRequest(); } - public static com.google.cloud.securitycentermanagement.v1 - .CreateEventThreatDetectionCustomModuleRequest - getDefaultInstance() { + public static com.google.cloud.securitycentermanagement.v1.CreateEventThreatDetectionCustomModuleRequest getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser - PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public CreateEventThreatDetectionCustomModuleRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException() - .setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public CreateEventThreatDetectionCustomModuleRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; } @java.lang.Override - public com.google.protobuf.Parser - getParserForType() { + public com.google.protobuf.Parser getParserForType() { return PARSER; } @java.lang.Override - public com.google.cloud.securitycentermanagement.v1.CreateEventThreatDetectionCustomModuleRequest - getDefaultInstanceForType() { + public com.google.cloud.securitycentermanagement.v1.CreateEventThreatDetectionCustomModuleRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/java-securitycentermanagement/proto-google-cloud-securitycentermanagement-v1/src/main/java/com/google/cloud/securitycentermanagement/v1/CreateEventThreatDetectionCustomModuleRequestOrBuilder.java b/owl-bot-staging/java-securitycentermanagement/v1/proto-google-cloud-securitycentermanagement-v1/src/main/java/com/google/cloud/securitycentermanagement/v1/CreateEventThreatDetectionCustomModuleRequestOrBuilder.java similarity index 59% rename from java-securitycentermanagement/proto-google-cloud-securitycentermanagement-v1/src/main/java/com/google/cloud/securitycentermanagement/v1/CreateEventThreatDetectionCustomModuleRequestOrBuilder.java rename to owl-bot-staging/java-securitycentermanagement/v1/proto-google-cloud-securitycentermanagement-v1/src/main/java/com/google/cloud/securitycentermanagement/v1/CreateEventThreatDetectionCustomModuleRequestOrBuilder.java index b11bd8256393..b4cc121a854f 100644 --- a/java-securitycentermanagement/proto-google-cloud-securitycentermanagement-v1/src/main/java/com/google/cloud/securitycentermanagement/v1/CreateEventThreatDetectionCustomModuleRequestOrBuilder.java +++ b/owl-bot-staging/java-securitycentermanagement/v1/proto-google-cloud-securitycentermanagement-v1/src/main/java/com/google/cloud/securitycentermanagement/v1/CreateEventThreatDetectionCustomModuleRequestOrBuilder.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/securitycentermanagement/v1/security_center_management.proto package com.google.cloud.securitycentermanagement.v1; -public interface CreateEventThreatDetectionCustomModuleRequestOrBuilder - extends +public interface CreateEventThreatDetectionCustomModuleRequestOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.securitycentermanagement.v1.CreateEventThreatDetectionCustomModuleRequest) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * Required. Name of parent for the module. Its format is
    * "organizations/{organization}/locations/{location}",
@@ -34,16 +16,11 @@ public interface CreateEventThreatDetectionCustomModuleRequestOrBuilder
    * "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. Name of parent for the module. Its format is
    * "organizations/{organization}/locations/{location}",
@@ -52,66 +29,46 @@ public interface CreateEventThreatDetectionCustomModuleRequestOrBuilder
    * "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. The module to create. The
    * event_threat_detection_custom_module.name will be ignored and server
    * generated.
    * 
* - * - * .google.cloud.securitycentermanagement.v1.EventThreatDetectionCustomModule event_threat_detection_custom_module = 3 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.securitycentermanagement.v1.EventThreatDetectionCustomModule event_threat_detection_custom_module = 3 [(.google.api.field_behavior) = REQUIRED]; * @return Whether the eventThreatDetectionCustomModule field is set. */ boolean hasEventThreatDetectionCustomModule(); /** - * - * *
    * Required. The module to create. The
    * event_threat_detection_custom_module.name will be ignored and server
    * generated.
    * 
* - * - * .google.cloud.securitycentermanagement.v1.EventThreatDetectionCustomModule event_threat_detection_custom_module = 3 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.securitycentermanagement.v1.EventThreatDetectionCustomModule event_threat_detection_custom_module = 3 [(.google.api.field_behavior) = REQUIRED]; * @return The eventThreatDetectionCustomModule. */ - com.google.cloud.securitycentermanagement.v1.EventThreatDetectionCustomModule - getEventThreatDetectionCustomModule(); + com.google.cloud.securitycentermanagement.v1.EventThreatDetectionCustomModule getEventThreatDetectionCustomModule(); /** - * - * *
    * Required. The module to create. The
    * event_threat_detection_custom_module.name will be ignored and server
    * generated.
    * 
* - * - * .google.cloud.securitycentermanagement.v1.EventThreatDetectionCustomModule event_threat_detection_custom_module = 3 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.securitycentermanagement.v1.EventThreatDetectionCustomModule event_threat_detection_custom_module = 3 [(.google.api.field_behavior) = REQUIRED]; */ - com.google.cloud.securitycentermanagement.v1.EventThreatDetectionCustomModuleOrBuilder - getEventThreatDetectionCustomModuleOrBuilder(); + com.google.cloud.securitycentermanagement.v1.EventThreatDetectionCustomModuleOrBuilder getEventThreatDetectionCustomModuleOrBuilder(); /** - * - * *
    * Optional. When set to true, only validations (including IAM checks) will
    * done for the request (no module will be created). An OK response indicates
@@ -123,7 +80,6 @@ public interface CreateEventThreatDetectionCustomModuleRequestOrBuilder
    * 
* * bool validate_only = 4 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The validateOnly. */ boolean getValidateOnly(); diff --git a/java-securitycentermanagement/proto-google-cloud-securitycentermanagement-v1/src/main/java/com/google/cloud/securitycentermanagement/v1/CreateSecurityHealthAnalyticsCustomModuleRequest.java b/owl-bot-staging/java-securitycentermanagement/v1/proto-google-cloud-securitycentermanagement-v1/src/main/java/com/google/cloud/securitycentermanagement/v1/CreateSecurityHealthAnalyticsCustomModuleRequest.java similarity index 50% rename from java-securitycentermanagement/proto-google-cloud-securitycentermanagement-v1/src/main/java/com/google/cloud/securitycentermanagement/v1/CreateSecurityHealthAnalyticsCustomModuleRequest.java rename to owl-bot-staging/java-securitycentermanagement/v1/proto-google-cloud-securitycentermanagement-v1/src/main/java/com/google/cloud/securitycentermanagement/v1/CreateSecurityHealthAnalyticsCustomModuleRequest.java index 8de9ee853503..302fc8934b24 100644 --- a/java-securitycentermanagement/proto-google-cloud-securitycentermanagement-v1/src/main/java/com/google/cloud/securitycentermanagement/v1/CreateSecurityHealthAnalyticsCustomModuleRequest.java +++ b/owl-bot-staging/java-securitycentermanagement/v1/proto-google-cloud-securitycentermanagement-v1/src/main/java/com/google/cloud/securitycentermanagement/v1/CreateSecurityHealthAnalyticsCustomModuleRequest.java @@ -1,79 +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/securitycentermanagement/v1/security_center_management.proto package com.google.cloud.securitycentermanagement.v1; /** - * - * *
  * Message for creating a SecurityHealthAnalyticsCustomModule
  * 
* - * Protobuf type {@code - * google.cloud.securitycentermanagement.v1.CreateSecurityHealthAnalyticsCustomModuleRequest} + * Protobuf type {@code google.cloud.securitycentermanagement.v1.CreateSecurityHealthAnalyticsCustomModuleRequest} */ -public final class CreateSecurityHealthAnalyticsCustomModuleRequest - extends com.google.protobuf.GeneratedMessageV3 - implements +public final class CreateSecurityHealthAnalyticsCustomModuleRequest extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.securitycentermanagement.v1.CreateSecurityHealthAnalyticsCustomModuleRequest) CreateSecurityHealthAnalyticsCustomModuleRequestOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use CreateSecurityHealthAnalyticsCustomModuleRequest.newBuilder() to construct. - private CreateSecurityHealthAnalyticsCustomModuleRequest( - com.google.protobuf.GeneratedMessageV3.Builder builder) { + private CreateSecurityHealthAnalyticsCustomModuleRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private CreateSecurityHealthAnalyticsCustomModuleRequest() { parent_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new CreateSecurityHealthAnalyticsCustomModuleRequest(); } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.securitycentermanagement.v1.SecurityCenterManagementProto - .internal_static_google_cloud_securitycentermanagement_v1_CreateSecurityHealthAnalyticsCustomModuleRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.securitycentermanagement.v1.SecurityCenterManagementProto.internal_static_google_cloud_securitycentermanagement_v1_CreateSecurityHealthAnalyticsCustomModuleRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.securitycentermanagement.v1.SecurityCenterManagementProto - .internal_static_google_cloud_securitycentermanagement_v1_CreateSecurityHealthAnalyticsCustomModuleRequest_fieldAccessorTable + return com.google.cloud.securitycentermanagement.v1.SecurityCenterManagementProto.internal_static_google_cloud_securitycentermanagement_v1_CreateSecurityHealthAnalyticsCustomModuleRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.securitycentermanagement.v1 - .CreateSecurityHealthAnalyticsCustomModuleRequest.class, - com.google.cloud.securitycentermanagement.v1 - .CreateSecurityHealthAnalyticsCustomModuleRequest.Builder.class); + com.google.cloud.securitycentermanagement.v1.CreateSecurityHealthAnalyticsCustomModuleRequest.class, com.google.cloud.securitycentermanagement.v1.CreateSecurityHealthAnalyticsCustomModuleRequest.Builder.class); } public static final int PARENT_FIELD_NUMBER = 1; - @SuppressWarnings("serial") private volatile java.lang.Object parent_ = ""; /** - * - * *
    * Required. Name of the parent for the module. Its format is
    * "organizations/{organization}/locations/{location}",
@@ -82,10 +55,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
    * "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 @@ -94,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. Name of the parent for the module. Its format is
    * "organizations/{organization}/locations/{location}",
@@ -111,18 +80,17 @@ public java.lang.String getParent() {
    * "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 { @@ -131,19 +99,13 @@ public com.google.protobuf.ByteString getParentBytes() { } public static final int SECURITY_HEALTH_ANALYTICS_CUSTOM_MODULE_FIELD_NUMBER = 2; - private com.google.cloud.securitycentermanagement.v1.SecurityHealthAnalyticsCustomModule - securityHealthAnalyticsCustomModule_; + private com.google.cloud.securitycentermanagement.v1.SecurityHealthAnalyticsCustomModule securityHealthAnalyticsCustomModule_; /** - * - * *
    * Required. The resource being created
    * 
* - * - * .google.cloud.securitycentermanagement.v1.SecurityHealthAnalyticsCustomModule security_health_analytics_custom_module = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.securitycentermanagement.v1.SecurityHealthAnalyticsCustomModule security_health_analytics_custom_module = 2 [(.google.api.field_behavior) = REQUIRED]; * @return Whether the securityHealthAnalyticsCustomModule field is set. */ @java.lang.Override @@ -151,51 +113,32 @@ public boolean hasSecurityHealthAnalyticsCustomModule() { return securityHealthAnalyticsCustomModule_ != null; } /** - * - * *
    * Required. The resource being created
    * 
* - * - * .google.cloud.securitycentermanagement.v1.SecurityHealthAnalyticsCustomModule security_health_analytics_custom_module = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.securitycentermanagement.v1.SecurityHealthAnalyticsCustomModule security_health_analytics_custom_module = 2 [(.google.api.field_behavior) = REQUIRED]; * @return The securityHealthAnalyticsCustomModule. */ @java.lang.Override - public com.google.cloud.securitycentermanagement.v1.SecurityHealthAnalyticsCustomModule - getSecurityHealthAnalyticsCustomModule() { - return securityHealthAnalyticsCustomModule_ == null - ? com.google.cloud.securitycentermanagement.v1.SecurityHealthAnalyticsCustomModule - .getDefaultInstance() - : securityHealthAnalyticsCustomModule_; + public com.google.cloud.securitycentermanagement.v1.SecurityHealthAnalyticsCustomModule getSecurityHealthAnalyticsCustomModule() { + return securityHealthAnalyticsCustomModule_ == null ? com.google.cloud.securitycentermanagement.v1.SecurityHealthAnalyticsCustomModule.getDefaultInstance() : securityHealthAnalyticsCustomModule_; } /** - * - * *
    * Required. The resource being created
    * 
* - * - * .google.cloud.securitycentermanagement.v1.SecurityHealthAnalyticsCustomModule security_health_analytics_custom_module = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.securitycentermanagement.v1.SecurityHealthAnalyticsCustomModule security_health_analytics_custom_module = 2 [(.google.api.field_behavior) = REQUIRED]; */ @java.lang.Override - public com.google.cloud.securitycentermanagement.v1.SecurityHealthAnalyticsCustomModuleOrBuilder - getSecurityHealthAnalyticsCustomModuleOrBuilder() { - return securityHealthAnalyticsCustomModule_ == null - ? com.google.cloud.securitycentermanagement.v1.SecurityHealthAnalyticsCustomModule - .getDefaultInstance() - : securityHealthAnalyticsCustomModule_; + public com.google.cloud.securitycentermanagement.v1.SecurityHealthAnalyticsCustomModuleOrBuilder getSecurityHealthAnalyticsCustomModuleOrBuilder() { + return securityHealthAnalyticsCustomModule_ == null ? com.google.cloud.securitycentermanagement.v1.SecurityHealthAnalyticsCustomModule.getDefaultInstance() : securityHealthAnalyticsCustomModule_; } public static final int VALIDATE_ONLY_FIELD_NUMBER = 3; private boolean validateOnly_ = false; /** - * - * *
    * Optional. When set to true, only validations (including IAM checks) will
    * done for the request (no module will be created). An OK response indicates
@@ -208,7 +151,6 @@ public boolean hasSecurityHealthAnalyticsCustomModule() {
    * 
* * bool validate_only = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The validateOnly. */ @java.lang.Override @@ -217,7 +159,6 @@ public boolean getValidateOnly() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -229,7 +170,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.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_); } @@ -252,12 +194,12 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, parent_); } if (securityHealthAnalyticsCustomModule_ != null) { - size += - com.google.protobuf.CodedOutputStream.computeMessageSize( - 2, getSecurityHealthAnalyticsCustomModule()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(2, getSecurityHealthAnalyticsCustomModule()); } if (validateOnly_ != false) { - size += com.google.protobuf.CodedOutputStream.computeBoolSize(3, validateOnly_); + size += com.google.protobuf.CodedOutputStream + .computeBoolSize(3, validateOnly_); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -267,28 +209,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.securitycentermanagement.v1 - .CreateSecurityHealthAnalyticsCustomModuleRequest)) { + if (!(obj instanceof com.google.cloud.securitycentermanagement.v1.CreateSecurityHealthAnalyticsCustomModuleRequest)) { return super.equals(obj); } - com.google.cloud.securitycentermanagement.v1.CreateSecurityHealthAnalyticsCustomModuleRequest - other = - (com.google.cloud.securitycentermanagement.v1 - .CreateSecurityHealthAnalyticsCustomModuleRequest) - obj; + com.google.cloud.securitycentermanagement.v1.CreateSecurityHealthAnalyticsCustomModuleRequest other = (com.google.cloud.securitycentermanagement.v1.CreateSecurityHealthAnalyticsCustomModuleRequest) obj; - if (!getParent().equals(other.getParent())) return false; - if (hasSecurityHealthAnalyticsCustomModule() != other.hasSecurityHealthAnalyticsCustomModule()) - return false; + if (!getParent() + .equals(other.getParent())) return false; + if (hasSecurityHealthAnalyticsCustomModule() != other.hasSecurityHealthAnalyticsCustomModule()) return false; if (hasSecurityHealthAnalyticsCustomModule()) { if (!getSecurityHealthAnalyticsCustomModule() .equals(other.getSecurityHealthAnalyticsCustomModule())) return false; } - if (getValidateOnly() != other.getValidateOnly()) return false; + if (getValidateOnly() + != other.getValidateOnly()) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -307,167 +243,139 @@ public int hashCode() { hash = (53 * hash) + getSecurityHealthAnalyticsCustomModule().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.securitycentermanagement.v1 - .CreateSecurityHealthAnalyticsCustomModuleRequest - parseFrom(java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.securitycentermanagement.v1.CreateSecurityHealthAnalyticsCustomModuleRequest parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - - public static com.google.cloud.securitycentermanagement.v1 - .CreateSecurityHealthAnalyticsCustomModuleRequest - parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.securitycentermanagement.v1.CreateSecurityHealthAnalyticsCustomModuleRequest 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.securitycentermanagement.v1 - .CreateSecurityHealthAnalyticsCustomModuleRequest - parseFrom(com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.securitycentermanagement.v1.CreateSecurityHealthAnalyticsCustomModuleRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - - public static com.google.cloud.securitycentermanagement.v1 - .CreateSecurityHealthAnalyticsCustomModuleRequest - parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.securitycentermanagement.v1.CreateSecurityHealthAnalyticsCustomModuleRequest parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.securitycentermanagement.v1 - .CreateSecurityHealthAnalyticsCustomModuleRequest - parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.securitycentermanagement.v1.CreateSecurityHealthAnalyticsCustomModuleRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - - public static com.google.cloud.securitycentermanagement.v1 - .CreateSecurityHealthAnalyticsCustomModuleRequest - parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.securitycentermanagement.v1.CreateSecurityHealthAnalyticsCustomModuleRequest parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.securitycentermanagement.v1 - .CreateSecurityHealthAnalyticsCustomModuleRequest - parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.securitycentermanagement.v1.CreateSecurityHealthAnalyticsCustomModuleRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - - public static com.google.cloud.securitycentermanagement.v1 - .CreateSecurityHealthAnalyticsCustomModuleRequest - 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.securitycentermanagement.v1.CreateSecurityHealthAnalyticsCustomModuleRequest 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.securitycentermanagement.v1 - .CreateSecurityHealthAnalyticsCustomModuleRequest - parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.securitycentermanagement.v1.CreateSecurityHealthAnalyticsCustomModuleRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.securitycentermanagement.v1 - .CreateSecurityHealthAnalyticsCustomModuleRequest - parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + public static com.google.cloud.securitycentermanagement.v1.CreateSecurityHealthAnalyticsCustomModuleRequest parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.securitycentermanagement.v1 - .CreateSecurityHealthAnalyticsCustomModuleRequest - parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.securitycentermanagement.v1.CreateSecurityHealthAnalyticsCustomModuleRequest parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - - public static com.google.cloud.securitycentermanagement.v1 - .CreateSecurityHealthAnalyticsCustomModuleRequest - 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.securitycentermanagement.v1.CreateSecurityHealthAnalyticsCustomModuleRequest 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.securitycentermanagement.v1.CreateSecurityHealthAnalyticsCustomModuleRequest - prototype) { + public static Builder newBuilder(com.google.cloud.securitycentermanagement.v1.CreateSecurityHealthAnalyticsCustomModuleRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected 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 SecurityHealthAnalyticsCustomModule
    * 
* - * Protobuf type {@code - * google.cloud.securitycentermanagement.v1.CreateSecurityHealthAnalyticsCustomModuleRequest} + * Protobuf type {@code google.cloud.securitycentermanagement.v1.CreateSecurityHealthAnalyticsCustomModuleRequest} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.securitycentermanagement.v1.CreateSecurityHealthAnalyticsCustomModuleRequest) - com.google.cloud.securitycentermanagement.v1 - .CreateSecurityHealthAnalyticsCustomModuleRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.securitycentermanagement.v1.SecurityCenterManagementProto - .internal_static_google_cloud_securitycentermanagement_v1_CreateSecurityHealthAnalyticsCustomModuleRequest_descriptor; + com.google.cloud.securitycentermanagement.v1.CreateSecurityHealthAnalyticsCustomModuleRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.securitycentermanagement.v1.SecurityCenterManagementProto.internal_static_google_cloud_securitycentermanagement_v1_CreateSecurityHealthAnalyticsCustomModuleRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.securitycentermanagement.v1.SecurityCenterManagementProto - .internal_static_google_cloud_securitycentermanagement_v1_CreateSecurityHealthAnalyticsCustomModuleRequest_fieldAccessorTable + return com.google.cloud.securitycentermanagement.v1.SecurityCenterManagementProto.internal_static_google_cloud_securitycentermanagement_v1_CreateSecurityHealthAnalyticsCustomModuleRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.securitycentermanagement.v1 - .CreateSecurityHealthAnalyticsCustomModuleRequest.class, - com.google.cloud.securitycentermanagement.v1 - .CreateSecurityHealthAnalyticsCustomModuleRequest.Builder.class); + com.google.cloud.securitycentermanagement.v1.CreateSecurityHealthAnalyticsCustomModuleRequest.class, com.google.cloud.securitycentermanagement.v1.CreateSecurityHealthAnalyticsCustomModuleRequest.Builder.class); } - // Construct using - // com.google.cloud.securitycentermanagement.v1.CreateSecurityHealthAnalyticsCustomModuleRequest.newBuilder() - private Builder() {} + // Construct using com.google.cloud.securitycentermanagement.v1.CreateSecurityHealthAnalyticsCustomModuleRequest.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,25 +391,19 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.securitycentermanagement.v1.SecurityCenterManagementProto - .internal_static_google_cloud_securitycentermanagement_v1_CreateSecurityHealthAnalyticsCustomModuleRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.securitycentermanagement.v1.SecurityCenterManagementProto.internal_static_google_cloud_securitycentermanagement_v1_CreateSecurityHealthAnalyticsCustomModuleRequest_descriptor; } @java.lang.Override - public com.google.cloud.securitycentermanagement.v1 - .CreateSecurityHealthAnalyticsCustomModuleRequest - getDefaultInstanceForType() { - return com.google.cloud.securitycentermanagement.v1 - .CreateSecurityHealthAnalyticsCustomModuleRequest.getDefaultInstance(); + public com.google.cloud.securitycentermanagement.v1.CreateSecurityHealthAnalyticsCustomModuleRequest getDefaultInstanceForType() { + return com.google.cloud.securitycentermanagement.v1.CreateSecurityHealthAnalyticsCustomModuleRequest.getDefaultInstance(); } @java.lang.Override - public com.google.cloud.securitycentermanagement.v1 - .CreateSecurityHealthAnalyticsCustomModuleRequest - build() { - com.google.cloud.securitycentermanagement.v1.CreateSecurityHealthAnalyticsCustomModuleRequest - result = buildPartial(); + public com.google.cloud.securitycentermanagement.v1.CreateSecurityHealthAnalyticsCustomModuleRequest build() { + com.google.cloud.securitycentermanagement.v1.CreateSecurityHealthAnalyticsCustomModuleRequest result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } @@ -509,33 +411,22 @@ public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { } @java.lang.Override - public com.google.cloud.securitycentermanagement.v1 - .CreateSecurityHealthAnalyticsCustomModuleRequest - buildPartial() { - com.google.cloud.securitycentermanagement.v1.CreateSecurityHealthAnalyticsCustomModuleRequest - result = - new com.google.cloud.securitycentermanagement.v1 - .CreateSecurityHealthAnalyticsCustomModuleRequest(this); - if (bitField0_ != 0) { - buildPartial0(result); - } + public com.google.cloud.securitycentermanagement.v1.CreateSecurityHealthAnalyticsCustomModuleRequest buildPartial() { + com.google.cloud.securitycentermanagement.v1.CreateSecurityHealthAnalyticsCustomModuleRequest result = new com.google.cloud.securitycentermanagement.v1.CreateSecurityHealthAnalyticsCustomModuleRequest(this); + if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } - private void buildPartial0( - com.google.cloud.securitycentermanagement.v1 - .CreateSecurityHealthAnalyticsCustomModuleRequest - result) { + private void buildPartial0(com.google.cloud.securitycentermanagement.v1.CreateSecurityHealthAnalyticsCustomModuleRequest result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000001) != 0)) { result.parent_ = parent_; } if (((from_bitField0_ & 0x00000002) != 0)) { - result.securityHealthAnalyticsCustomModule_ = - securityHealthAnalyticsCustomModuleBuilder_ == null - ? securityHealthAnalyticsCustomModule_ - : securityHealthAnalyticsCustomModuleBuilder_.build(); + result.securityHealthAnalyticsCustomModule_ = securityHealthAnalyticsCustomModuleBuilder_ == null + ? securityHealthAnalyticsCustomModule_ + : securityHealthAnalyticsCustomModuleBuilder_.build(); } if (((from_bitField0_ & 0x00000004) != 0)) { result.validateOnly_ = validateOnly_; @@ -546,58 +437,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.securitycentermanagement.v1 - .CreateSecurityHealthAnalyticsCustomModuleRequest) { - return mergeFrom( - (com.google.cloud.securitycentermanagement.v1 - .CreateSecurityHealthAnalyticsCustomModuleRequest) - other); + if (other instanceof com.google.cloud.securitycentermanagement.v1.CreateSecurityHealthAnalyticsCustomModuleRequest) { + return mergeFrom((com.google.cloud.securitycentermanagement.v1.CreateSecurityHealthAnalyticsCustomModuleRequest)other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom( - com.google.cloud.securitycentermanagement.v1 - .CreateSecurityHealthAnalyticsCustomModuleRequest - other) { - if (other - == com.google.cloud.securitycentermanagement.v1 - .CreateSecurityHealthAnalyticsCustomModuleRequest.getDefaultInstance()) return this; + public Builder mergeFrom(com.google.cloud.securitycentermanagement.v1.CreateSecurityHealthAnalyticsCustomModuleRequest other) { + if (other == com.google.cloud.securitycentermanagement.v1.CreateSecurityHealthAnalyticsCustomModuleRequest.getDefaultInstance()) return this; if (!other.getParent().isEmpty()) { parent_ = other.parent_; bitField0_ |= 0x00000001; @@ -635,33 +514,29 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: - { - parent_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 18: - { - input.readMessage( - getSecurityHealthAnalyticsCustomModuleFieldBuilder().getBuilder(), - extensionRegistry); - bitField0_ |= 0x00000002; - break; - } // case 18 - case 24: - { - validateOnly_ = input.readBool(); - 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: { + input.readMessage( + getSecurityHealthAnalyticsCustomModuleFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 24: { + validateOnly_ = 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) { @@ -671,13 +546,10 @@ public Builder mergeFrom( } // finally return this; } - private int bitField0_; private java.lang.Object parent_ = ""; /** - * - * *
      * Required. Name of the parent for the module. Its format is
      * "organizations/{organization}/locations/{location}",
@@ -686,16 +558,14 @@ public Builder mergeFrom(
      * "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; @@ -704,8 +574,6 @@ public java.lang.String getParent() { } } /** - * - * *
      * Required. Name of the parent for the module. Its format is
      * "organizations/{organization}/locations/{location}",
@@ -714,17 +582,16 @@ public java.lang.String getParent() {
      * "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 { @@ -732,8 +599,6 @@ public com.google.protobuf.ByteString getParentBytes() { } } /** - * - * *
      * Required. Name of the parent for the module. Its format is
      * "organizations/{organization}/locations/{location}",
@@ -742,25 +607,19 @@ public com.google.protobuf.ByteString getParentBytes() {
      * "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. Name of the parent for the module. Its format is
      * "organizations/{organization}/locations/{location}",
@@ -769,10 +628,7 @@ public Builder setParent(java.lang.String value) {
      * "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() { @@ -782,8 +638,6 @@ public Builder clearParent() { return this; } /** - * - * *
      * Required. Name of the parent for the module. Its format is
      * "organizations/{organization}/locations/{location}",
@@ -792,17 +646,13 @@ public Builder clearParent() {
      * "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; @@ -810,68 +660,43 @@ public Builder setParentBytes(com.google.protobuf.ByteString value) { return this; } - private com.google.cloud.securitycentermanagement.v1.SecurityHealthAnalyticsCustomModule - securityHealthAnalyticsCustomModule_; + private com.google.cloud.securitycentermanagement.v1.SecurityHealthAnalyticsCustomModule securityHealthAnalyticsCustomModule_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.securitycentermanagement.v1.SecurityHealthAnalyticsCustomModule, - com.google.cloud.securitycentermanagement.v1.SecurityHealthAnalyticsCustomModule - .Builder, - com.google.cloud.securitycentermanagement.v1 - .SecurityHealthAnalyticsCustomModuleOrBuilder> - securityHealthAnalyticsCustomModuleBuilder_; + com.google.cloud.securitycentermanagement.v1.SecurityHealthAnalyticsCustomModule, com.google.cloud.securitycentermanagement.v1.SecurityHealthAnalyticsCustomModule.Builder, com.google.cloud.securitycentermanagement.v1.SecurityHealthAnalyticsCustomModuleOrBuilder> securityHealthAnalyticsCustomModuleBuilder_; /** - * - * *
      * Required. The resource being created
      * 
* - * - * .google.cloud.securitycentermanagement.v1.SecurityHealthAnalyticsCustomModule security_health_analytics_custom_module = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.securitycentermanagement.v1.SecurityHealthAnalyticsCustomModule security_health_analytics_custom_module = 2 [(.google.api.field_behavior) = REQUIRED]; * @return Whether the securityHealthAnalyticsCustomModule field is set. */ public boolean hasSecurityHealthAnalyticsCustomModule() { return ((bitField0_ & 0x00000002) != 0); } /** - * - * *
      * Required. The resource being created
      * 
* - * - * .google.cloud.securitycentermanagement.v1.SecurityHealthAnalyticsCustomModule security_health_analytics_custom_module = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.securitycentermanagement.v1.SecurityHealthAnalyticsCustomModule security_health_analytics_custom_module = 2 [(.google.api.field_behavior) = REQUIRED]; * @return The securityHealthAnalyticsCustomModule. */ - public com.google.cloud.securitycentermanagement.v1.SecurityHealthAnalyticsCustomModule - getSecurityHealthAnalyticsCustomModule() { + public com.google.cloud.securitycentermanagement.v1.SecurityHealthAnalyticsCustomModule getSecurityHealthAnalyticsCustomModule() { if (securityHealthAnalyticsCustomModuleBuilder_ == null) { - return securityHealthAnalyticsCustomModule_ == null - ? com.google.cloud.securitycentermanagement.v1.SecurityHealthAnalyticsCustomModule - .getDefaultInstance() - : securityHealthAnalyticsCustomModule_; + return securityHealthAnalyticsCustomModule_ == null ? com.google.cloud.securitycentermanagement.v1.SecurityHealthAnalyticsCustomModule.getDefaultInstance() : securityHealthAnalyticsCustomModule_; } else { return securityHealthAnalyticsCustomModuleBuilder_.getMessage(); } } /** - * - * *
      * Required. The resource being created
      * 
* - * - * .google.cloud.securitycentermanagement.v1.SecurityHealthAnalyticsCustomModule security_health_analytics_custom_module = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.securitycentermanagement.v1.SecurityHealthAnalyticsCustomModule security_health_analytics_custom_module = 2 [(.google.api.field_behavior) = REQUIRED]; */ - public Builder setSecurityHealthAnalyticsCustomModule( - com.google.cloud.securitycentermanagement.v1.SecurityHealthAnalyticsCustomModule value) { + public Builder setSecurityHealthAnalyticsCustomModule(com.google.cloud.securitycentermanagement.v1.SecurityHealthAnalyticsCustomModule value) { if (securityHealthAnalyticsCustomModuleBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -885,19 +710,14 @@ public Builder setSecurityHealthAnalyticsCustomModule( return this; } /** - * - * *
      * Required. The resource being created
      * 
* - * - * .google.cloud.securitycentermanagement.v1.SecurityHealthAnalyticsCustomModule security_health_analytics_custom_module = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.securitycentermanagement.v1.SecurityHealthAnalyticsCustomModule security_health_analytics_custom_module = 2 [(.google.api.field_behavior) = REQUIRED]; */ public Builder setSecurityHealthAnalyticsCustomModule( - com.google.cloud.securitycentermanagement.v1.SecurityHealthAnalyticsCustomModule.Builder - builderForValue) { + com.google.cloud.securitycentermanagement.v1.SecurityHealthAnalyticsCustomModule.Builder builderForValue) { if (securityHealthAnalyticsCustomModuleBuilder_ == null) { securityHealthAnalyticsCustomModule_ = builderForValue.build(); } else { @@ -908,24 +728,17 @@ public Builder setSecurityHealthAnalyticsCustomModule( return this; } /** - * - * *
      * Required. The resource being created
      * 
* - * - * .google.cloud.securitycentermanagement.v1.SecurityHealthAnalyticsCustomModule security_health_analytics_custom_module = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.securitycentermanagement.v1.SecurityHealthAnalyticsCustomModule security_health_analytics_custom_module = 2 [(.google.api.field_behavior) = REQUIRED]; */ - public Builder mergeSecurityHealthAnalyticsCustomModule( - com.google.cloud.securitycentermanagement.v1.SecurityHealthAnalyticsCustomModule value) { + public Builder mergeSecurityHealthAnalyticsCustomModule(com.google.cloud.securitycentermanagement.v1.SecurityHealthAnalyticsCustomModule value) { if (securityHealthAnalyticsCustomModuleBuilder_ == null) { - if (((bitField0_ & 0x00000002) != 0) - && securityHealthAnalyticsCustomModule_ != null - && securityHealthAnalyticsCustomModule_ - != com.google.cloud.securitycentermanagement.v1.SecurityHealthAnalyticsCustomModule - .getDefaultInstance()) { + if (((bitField0_ & 0x00000002) != 0) && + securityHealthAnalyticsCustomModule_ != null && + securityHealthAnalyticsCustomModule_ != com.google.cloud.securitycentermanagement.v1.SecurityHealthAnalyticsCustomModule.getDefaultInstance()) { getSecurityHealthAnalyticsCustomModuleBuilder().mergeFrom(value); } else { securityHealthAnalyticsCustomModule_ = value; @@ -938,15 +751,11 @@ public Builder mergeSecurityHealthAnalyticsCustomModule( return this; } /** - * - * *
      * Required. The resource being created
      * 
* - * - * .google.cloud.securitycentermanagement.v1.SecurityHealthAnalyticsCustomModule security_health_analytics_custom_module = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.securitycentermanagement.v1.SecurityHealthAnalyticsCustomModule security_health_analytics_custom_module = 2 [(.google.api.field_behavior) = REQUIRED]; */ public Builder clearSecurityHealthAnalyticsCustomModule() { bitField0_ = (bitField0_ & ~0x00000002); @@ -959,80 +768,55 @@ public Builder clearSecurityHealthAnalyticsCustomModule() { return this; } /** - * - * *
      * Required. The resource being created
      * 
* - * - * .google.cloud.securitycentermanagement.v1.SecurityHealthAnalyticsCustomModule security_health_analytics_custom_module = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.securitycentermanagement.v1.SecurityHealthAnalyticsCustomModule security_health_analytics_custom_module = 2 [(.google.api.field_behavior) = REQUIRED]; */ - public com.google.cloud.securitycentermanagement.v1.SecurityHealthAnalyticsCustomModule.Builder - getSecurityHealthAnalyticsCustomModuleBuilder() { + public com.google.cloud.securitycentermanagement.v1.SecurityHealthAnalyticsCustomModule.Builder getSecurityHealthAnalyticsCustomModuleBuilder() { bitField0_ |= 0x00000002; onChanged(); return getSecurityHealthAnalyticsCustomModuleFieldBuilder().getBuilder(); } /** - * - * *
      * Required. The resource being created
      * 
* - * - * .google.cloud.securitycentermanagement.v1.SecurityHealthAnalyticsCustomModule security_health_analytics_custom_module = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.securitycentermanagement.v1.SecurityHealthAnalyticsCustomModule security_health_analytics_custom_module = 2 [(.google.api.field_behavior) = REQUIRED]; */ - public com.google.cloud.securitycentermanagement.v1.SecurityHealthAnalyticsCustomModuleOrBuilder - getSecurityHealthAnalyticsCustomModuleOrBuilder() { + public com.google.cloud.securitycentermanagement.v1.SecurityHealthAnalyticsCustomModuleOrBuilder getSecurityHealthAnalyticsCustomModuleOrBuilder() { if (securityHealthAnalyticsCustomModuleBuilder_ != null) { return securityHealthAnalyticsCustomModuleBuilder_.getMessageOrBuilder(); } else { - return securityHealthAnalyticsCustomModule_ == null - ? com.google.cloud.securitycentermanagement.v1.SecurityHealthAnalyticsCustomModule - .getDefaultInstance() - : securityHealthAnalyticsCustomModule_; + return securityHealthAnalyticsCustomModule_ == null ? + com.google.cloud.securitycentermanagement.v1.SecurityHealthAnalyticsCustomModule.getDefaultInstance() : securityHealthAnalyticsCustomModule_; } } /** - * - * *
      * Required. The resource being created
      * 
* - * - * .google.cloud.securitycentermanagement.v1.SecurityHealthAnalyticsCustomModule security_health_analytics_custom_module = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.securitycentermanagement.v1.SecurityHealthAnalyticsCustomModule security_health_analytics_custom_module = 2 [(.google.api.field_behavior) = REQUIRED]; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.securitycentermanagement.v1.SecurityHealthAnalyticsCustomModule, - com.google.cloud.securitycentermanagement.v1.SecurityHealthAnalyticsCustomModule - .Builder, - com.google.cloud.securitycentermanagement.v1 - .SecurityHealthAnalyticsCustomModuleOrBuilder> + com.google.cloud.securitycentermanagement.v1.SecurityHealthAnalyticsCustomModule, com.google.cloud.securitycentermanagement.v1.SecurityHealthAnalyticsCustomModule.Builder, com.google.cloud.securitycentermanagement.v1.SecurityHealthAnalyticsCustomModuleOrBuilder> getSecurityHealthAnalyticsCustomModuleFieldBuilder() { if (securityHealthAnalyticsCustomModuleBuilder_ == null) { - securityHealthAnalyticsCustomModuleBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.securitycentermanagement.v1.SecurityHealthAnalyticsCustomModule, - com.google.cloud.securitycentermanagement.v1.SecurityHealthAnalyticsCustomModule - .Builder, - com.google.cloud.securitycentermanagement.v1 - .SecurityHealthAnalyticsCustomModuleOrBuilder>( - getSecurityHealthAnalyticsCustomModule(), getParentForChildren(), isClean()); + securityHealthAnalyticsCustomModuleBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.securitycentermanagement.v1.SecurityHealthAnalyticsCustomModule, com.google.cloud.securitycentermanagement.v1.SecurityHealthAnalyticsCustomModule.Builder, com.google.cloud.securitycentermanagement.v1.SecurityHealthAnalyticsCustomModuleOrBuilder>( + getSecurityHealthAnalyticsCustomModule(), + getParentForChildren(), + isClean()); securityHealthAnalyticsCustomModule_ = null; } return securityHealthAnalyticsCustomModuleBuilder_; } - private boolean validateOnly_; + private boolean validateOnly_ ; /** - * - * *
      * Optional. When set to true, only validations (including IAM checks) will
      * done for the request (no module will be created). An OK response indicates
@@ -1045,7 +829,6 @@ public Builder clearSecurityHealthAnalyticsCustomModule() {
      * 
* * bool validate_only = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The validateOnly. */ @java.lang.Override @@ -1053,8 +836,6 @@ public boolean getValidateOnly() { return validateOnly_; } /** - * - * *
      * Optional. When set to true, only validations (including IAM checks) will
      * done for the request (no module will be created). An OK response indicates
@@ -1067,7 +848,6 @@ public boolean getValidateOnly() {
      * 
* * bool validate_only = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @param value The validateOnly to set. * @return This builder for chaining. */ @@ -1079,8 +859,6 @@ public Builder setValidateOnly(boolean value) { return this; } /** - * - * *
      * Optional. When set to true, only validations (including IAM checks) will
      * done for the request (no module will be created). An OK response indicates
@@ -1093,7 +871,6 @@ public Builder setValidateOnly(boolean value) {
      * 
* * bool validate_only = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @return This builder for chaining. */ public Builder clearValidateOnly() { @@ -1102,9 +879,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); } @@ -1114,66 +891,55 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.securitycentermanagement.v1.CreateSecurityHealthAnalyticsCustomModuleRequest) } // @@protoc_insertion_point(class_scope:google.cloud.securitycentermanagement.v1.CreateSecurityHealthAnalyticsCustomModuleRequest) - private static final com.google.cloud.securitycentermanagement.v1 - .CreateSecurityHealthAnalyticsCustomModuleRequest - DEFAULT_INSTANCE; - + private static final com.google.cloud.securitycentermanagement.v1.CreateSecurityHealthAnalyticsCustomModuleRequest DEFAULT_INSTANCE; static { - DEFAULT_INSTANCE = - new com.google.cloud.securitycentermanagement.v1 - .CreateSecurityHealthAnalyticsCustomModuleRequest(); + DEFAULT_INSTANCE = new com.google.cloud.securitycentermanagement.v1.CreateSecurityHealthAnalyticsCustomModuleRequest(); } - public static com.google.cloud.securitycentermanagement.v1 - .CreateSecurityHealthAnalyticsCustomModuleRequest - getDefaultInstance() { + public static com.google.cloud.securitycentermanagement.v1.CreateSecurityHealthAnalyticsCustomModuleRequest getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser - PARSER = - new com.google.protobuf.AbstractParser< - CreateSecurityHealthAnalyticsCustomModuleRequest>() { - @java.lang.Override - public CreateSecurityHealthAnalyticsCustomModuleRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException() - .setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public CreateSecurityHealthAnalyticsCustomModuleRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; - public static com.google.protobuf.Parser - parser() { + public static com.google.protobuf.Parser parser() { return PARSER; } @java.lang.Override - public com.google.protobuf.Parser - getParserForType() { + public com.google.protobuf.Parser getParserForType() { return PARSER; } @java.lang.Override - public com.google.cloud.securitycentermanagement.v1 - .CreateSecurityHealthAnalyticsCustomModuleRequest - getDefaultInstanceForType() { + public com.google.cloud.securitycentermanagement.v1.CreateSecurityHealthAnalyticsCustomModuleRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/java-securitycentermanagement/proto-google-cloud-securitycentermanagement-v1/src/main/java/com/google/cloud/securitycentermanagement/v1/CreateSecurityHealthAnalyticsCustomModuleRequestOrBuilder.java b/owl-bot-staging/java-securitycentermanagement/v1/proto-google-cloud-securitycentermanagement-v1/src/main/java/com/google/cloud/securitycentermanagement/v1/CreateSecurityHealthAnalyticsCustomModuleRequestOrBuilder.java similarity index 56% rename from java-securitycentermanagement/proto-google-cloud-securitycentermanagement-v1/src/main/java/com/google/cloud/securitycentermanagement/v1/CreateSecurityHealthAnalyticsCustomModuleRequestOrBuilder.java rename to owl-bot-staging/java-securitycentermanagement/v1/proto-google-cloud-securitycentermanagement-v1/src/main/java/com/google/cloud/securitycentermanagement/v1/CreateSecurityHealthAnalyticsCustomModuleRequestOrBuilder.java index 6e9f871a7b2e..a3430718ffb6 100644 --- a/java-securitycentermanagement/proto-google-cloud-securitycentermanagement-v1/src/main/java/com/google/cloud/securitycentermanagement/v1/CreateSecurityHealthAnalyticsCustomModuleRequestOrBuilder.java +++ b/owl-bot-staging/java-securitycentermanagement/v1/proto-google-cloud-securitycentermanagement-v1/src/main/java/com/google/cloud/securitycentermanagement/v1/CreateSecurityHealthAnalyticsCustomModuleRequestOrBuilder.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/securitycentermanagement/v1/security_center_management.proto package com.google.cloud.securitycentermanagement.v1; -public interface CreateSecurityHealthAnalyticsCustomModuleRequestOrBuilder - extends +public interface CreateSecurityHealthAnalyticsCustomModuleRequestOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.securitycentermanagement.v1.CreateSecurityHealthAnalyticsCustomModuleRequest) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * Required. Name of the parent for the module. Its format is
    * "organizations/{organization}/locations/{location}",
@@ -34,16 +16,11 @@ public interface CreateSecurityHealthAnalyticsCustomModuleRequestOrBuilder
    * "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. Name of the parent for the module. Its format is
    * "organizations/{organization}/locations/{location}",
@@ -52,60 +29,40 @@ public interface CreateSecurityHealthAnalyticsCustomModuleRequestOrBuilder
    * "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. The resource being created
    * 
* - * - * .google.cloud.securitycentermanagement.v1.SecurityHealthAnalyticsCustomModule security_health_analytics_custom_module = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.securitycentermanagement.v1.SecurityHealthAnalyticsCustomModule security_health_analytics_custom_module = 2 [(.google.api.field_behavior) = REQUIRED]; * @return Whether the securityHealthAnalyticsCustomModule field is set. */ boolean hasSecurityHealthAnalyticsCustomModule(); /** - * - * *
    * Required. The resource being created
    * 
* - * - * .google.cloud.securitycentermanagement.v1.SecurityHealthAnalyticsCustomModule security_health_analytics_custom_module = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.securitycentermanagement.v1.SecurityHealthAnalyticsCustomModule security_health_analytics_custom_module = 2 [(.google.api.field_behavior) = REQUIRED]; * @return The securityHealthAnalyticsCustomModule. */ - com.google.cloud.securitycentermanagement.v1.SecurityHealthAnalyticsCustomModule - getSecurityHealthAnalyticsCustomModule(); + com.google.cloud.securitycentermanagement.v1.SecurityHealthAnalyticsCustomModule getSecurityHealthAnalyticsCustomModule(); /** - * - * *
    * Required. The resource being created
    * 
* - * - * .google.cloud.securitycentermanagement.v1.SecurityHealthAnalyticsCustomModule security_health_analytics_custom_module = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.securitycentermanagement.v1.SecurityHealthAnalyticsCustomModule security_health_analytics_custom_module = 2 [(.google.api.field_behavior) = REQUIRED]; */ - com.google.cloud.securitycentermanagement.v1.SecurityHealthAnalyticsCustomModuleOrBuilder - getSecurityHealthAnalyticsCustomModuleOrBuilder(); + com.google.cloud.securitycentermanagement.v1.SecurityHealthAnalyticsCustomModuleOrBuilder getSecurityHealthAnalyticsCustomModuleOrBuilder(); /** - * - * *
    * Optional. When set to true, only validations (including IAM checks) will
    * done for the request (no module will be created). An OK response indicates
@@ -118,7 +75,6 @@ public interface CreateSecurityHealthAnalyticsCustomModuleRequestOrBuilder
    * 
* * bool validate_only = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The validateOnly. */ boolean getValidateOnly(); diff --git a/java-securitycentermanagement/proto-google-cloud-securitycentermanagement-v1/src/main/java/com/google/cloud/securitycentermanagement/v1/CustomConfig.java b/owl-bot-staging/java-securitycentermanagement/v1/proto-google-cloud-securitycentermanagement-v1/src/main/java/com/google/cloud/securitycentermanagement/v1/CustomConfig.java similarity index 62% rename from java-securitycentermanagement/proto-google-cloud-securitycentermanagement-v1/src/main/java/com/google/cloud/securitycentermanagement/v1/CustomConfig.java rename to owl-bot-staging/java-securitycentermanagement/v1/proto-google-cloud-securitycentermanagement-v1/src/main/java/com/google/cloud/securitycentermanagement/v1/CustomConfig.java index 4c855702a134..0e38ce2063fe 100644 --- a/java-securitycentermanagement/proto-google-cloud-securitycentermanagement-v1/src/main/java/com/google/cloud/securitycentermanagement/v1/CustomConfig.java +++ b/owl-bot-staging/java-securitycentermanagement/v1/proto-google-cloud-securitycentermanagement-v1/src/main/java/com/google/cloud/securitycentermanagement/v1/CustomConfig.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/securitycentermanagement/v1/security_center_management.proto package com.google.cloud.securitycentermanagement.v1; /** - * - * *
  * Defines the properties in a custom module configuration for Security
  * Health Analytics. Use the custom module configuration to create custom
@@ -29,16 +12,15 @@
  *
  * Protobuf type {@code google.cloud.securitycentermanagement.v1.CustomConfig}
  */
-public final class CustomConfig extends com.google.protobuf.GeneratedMessageV3
-    implements
+public final class CustomConfig extends
+    com.google.protobuf.GeneratedMessageV3 implements
     // @@protoc_insertion_point(message_implements:google.cloud.securitycentermanagement.v1.CustomConfig)
     CustomConfigOrBuilder {
-  private static final long serialVersionUID = 0L;
+private static final long serialVersionUID = 0L;
   // Use CustomConfig.newBuilder() to construct.
   private CustomConfig(com.google.protobuf.GeneratedMessageV3.Builder builder) {
     super(builder);
   }
-
   private CustomConfig() {
     severity_ = 0;
     description_ = "";
@@ -47,38 +29,34 @@ private CustomConfig() {
 
   @java.lang.Override
   @SuppressWarnings({"unused"})
-  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
+  protected java.lang.Object newInstance(
+      UnusedPrivateParameter unused) {
     return new CustomConfig();
   }
 
-  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-    return com.google.cloud.securitycentermanagement.v1.SecurityCenterManagementProto
-        .internal_static_google_cloud_securitycentermanagement_v1_CustomConfig_descriptor;
+  public static final com.google.protobuf.Descriptors.Descriptor
+      getDescriptor() {
+    return com.google.cloud.securitycentermanagement.v1.SecurityCenterManagementProto.internal_static_google_cloud_securitycentermanagement_v1_CustomConfig_descriptor;
   }
 
   @java.lang.Override
   protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
       internalGetFieldAccessorTable() {
-    return com.google.cloud.securitycentermanagement.v1.SecurityCenterManagementProto
-        .internal_static_google_cloud_securitycentermanagement_v1_CustomConfig_fieldAccessorTable
+    return com.google.cloud.securitycentermanagement.v1.SecurityCenterManagementProto.internal_static_google_cloud_securitycentermanagement_v1_CustomConfig_fieldAccessorTable
         .ensureFieldAccessorsInitialized(
-            com.google.cloud.securitycentermanagement.v1.CustomConfig.class,
-            com.google.cloud.securitycentermanagement.v1.CustomConfig.Builder.class);
+            com.google.cloud.securitycentermanagement.v1.CustomConfig.class, com.google.cloud.securitycentermanagement.v1.CustomConfig.Builder.class);
   }
 
   /**
-   *
-   *
    * 
    * Defines the valid value options for the severity of a finding.
    * 
* * Protobuf enum {@code google.cloud.securitycentermanagement.v1.CustomConfig.Severity} */ - public enum Severity implements com.google.protobuf.ProtocolMessageEnum { + public enum Severity + implements com.google.protobuf.ProtocolMessageEnum { /** - * - * *
      * Unspecified severity.
      * 
@@ -87,8 +65,6 @@ public enum Severity implements com.google.protobuf.ProtocolMessageEnum { */ SEVERITY_UNSPECIFIED(0), /** - * - * *
      * Critical severity.
      * 
@@ -97,8 +73,6 @@ public enum Severity implements com.google.protobuf.ProtocolMessageEnum { */ CRITICAL(1), /** - * - * *
      * High severity.
      * 
@@ -107,8 +81,6 @@ public enum Severity implements com.google.protobuf.ProtocolMessageEnum { */ HIGH(2), /** - * - * *
      * Medium severity.
      * 
@@ -117,8 +89,6 @@ public enum Severity implements com.google.protobuf.ProtocolMessageEnum { */ MEDIUM(3), /** - * - * *
      * Low severity.
      * 
@@ -130,8 +100,6 @@ public enum Severity implements com.google.protobuf.ProtocolMessageEnum { ; /** - * - * *
      * Unspecified severity.
      * 
@@ -140,8 +108,6 @@ public enum Severity implements com.google.protobuf.ProtocolMessageEnum { */ public static final int SEVERITY_UNSPECIFIED_VALUE = 0; /** - * - * *
      * Critical severity.
      * 
@@ -150,8 +116,6 @@ public enum Severity implements com.google.protobuf.ProtocolMessageEnum { */ public static final int CRITICAL_VALUE = 1; /** - * - * *
      * High severity.
      * 
@@ -160,8 +124,6 @@ public enum Severity implements com.google.protobuf.ProtocolMessageEnum { */ public static final int HIGH_VALUE = 2; /** - * - * *
      * Medium severity.
      * 
@@ -170,8 +132,6 @@ public enum Severity implements com.google.protobuf.ProtocolMessageEnum { */ public static final int MEDIUM_VALUE = 3; /** - * - * *
      * Low severity.
      * 
@@ -180,6 +140,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( @@ -204,55 +165,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; - } - } - - public static com.google.protobuf.Internal.EnumLiteMap internalGetValueMap() { - return internalValueMap; + case 0: return SEVERITY_UNSPECIFIED; + case 1: return CRITICAL; + case 2: return HIGH; + case 3: return MEDIUM; + case 4: return LOW; + default: return null; + } } - 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 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() { + 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.securitycentermanagement.v1.CustomConfig.getDescriptor() - .getEnumTypes() - .get(0); + public static final com.google.protobuf.Descriptors.EnumDescriptor + getDescriptor() { + return com.google.cloud.securitycentermanagement.v1.CustomConfig.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; @@ -269,83 +226,55 @@ private Severity(int value) { // @@protoc_insertion_point(enum_scope:google.cloud.securitycentermanagement.v1.CustomConfig.Severity) } - public interface CustomOutputSpecOrBuilder - extends + public interface CustomOutputSpecOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.securitycentermanagement.v1.CustomConfig.CustomOutputSpec) com.google.protobuf.MessageOrBuilder { /** - * - * *
      * Optional. A list of custom output properties to add to the finding.
      * 
* - * - * repeated .google.cloud.securitycentermanagement.v1.CustomConfig.CustomOutputSpec.Property properties = 1 [(.google.api.field_behavior) = OPTIONAL]; - * + * repeated .google.cloud.securitycentermanagement.v1.CustomConfig.CustomOutputSpec.Property properties = 1 [(.google.api.field_behavior) = OPTIONAL]; */ - java.util.List< - com.google.cloud.securitycentermanagement.v1.CustomConfig.CustomOutputSpec.Property> + java.util.List getPropertiesList(); /** - * - * *
      * Optional. A list of custom output properties to add to the finding.
      * 
* - * - * repeated .google.cloud.securitycentermanagement.v1.CustomConfig.CustomOutputSpec.Property properties = 1 [(.google.api.field_behavior) = OPTIONAL]; - * + * repeated .google.cloud.securitycentermanagement.v1.CustomConfig.CustomOutputSpec.Property properties = 1 [(.google.api.field_behavior) = OPTIONAL]; */ - com.google.cloud.securitycentermanagement.v1.CustomConfig.CustomOutputSpec.Property - getProperties(int index); + com.google.cloud.securitycentermanagement.v1.CustomConfig.CustomOutputSpec.Property getProperties(int index); /** - * - * *
      * Optional. A list of custom output properties to add to the finding.
      * 
* - * - * repeated .google.cloud.securitycentermanagement.v1.CustomConfig.CustomOutputSpec.Property properties = 1 [(.google.api.field_behavior) = OPTIONAL]; - * + * repeated .google.cloud.securitycentermanagement.v1.CustomConfig.CustomOutputSpec.Property properties = 1 [(.google.api.field_behavior) = OPTIONAL]; */ int getPropertiesCount(); /** - * - * *
      * Optional. A list of custom output properties to add to the finding.
      * 
* - * - * repeated .google.cloud.securitycentermanagement.v1.CustomConfig.CustomOutputSpec.Property properties = 1 [(.google.api.field_behavior) = OPTIONAL]; - * + * repeated .google.cloud.securitycentermanagement.v1.CustomConfig.CustomOutputSpec.Property properties = 1 [(.google.api.field_behavior) = OPTIONAL]; */ - java.util.List< - ? extends - com.google.cloud.securitycentermanagement.v1.CustomConfig.CustomOutputSpec - .PropertyOrBuilder> + java.util.List getPropertiesOrBuilderList(); /** - * - * *
      * Optional. A list of custom output properties to add to the finding.
      * 
* - * - * repeated .google.cloud.securitycentermanagement.v1.CustomConfig.CustomOutputSpec.Property properties = 1 [(.google.api.field_behavior) = OPTIONAL]; - * + * repeated .google.cloud.securitycentermanagement.v1.CustomConfig.CustomOutputSpec.Property properties = 1 [(.google.api.field_behavior) = OPTIONAL]; */ - com.google.cloud.securitycentermanagement.v1.CustomConfig.CustomOutputSpec.PropertyOrBuilder - getPropertiesOrBuilder(int index); + com.google.cloud.securitycentermanagement.v1.CustomConfig.CustomOutputSpec.PropertyOrBuilder getPropertiesOrBuilder( + int index); } /** - * - * *
    * A set of optional name-value pairs that define custom source properties to
    * return with each finding that is generated by the custom module. The custom
@@ -355,176 +284,145 @@ public interface CustomOutputSpecOrBuilder
    *
    * Protobuf type {@code google.cloud.securitycentermanagement.v1.CustomConfig.CustomOutputSpec}
    */
-  public static final class CustomOutputSpec extends com.google.protobuf.GeneratedMessageV3
-      implements
+  public static final class CustomOutputSpec extends
+      com.google.protobuf.GeneratedMessageV3 implements
       // @@protoc_insertion_point(message_implements:google.cloud.securitycentermanagement.v1.CustomConfig.CustomOutputSpec)
       CustomOutputSpecOrBuilder {
-    private static final long serialVersionUID = 0L;
+  private static final long serialVersionUID = 0L;
     // Use CustomOutputSpec.newBuilder() to construct.
     private CustomOutputSpec(com.google.protobuf.GeneratedMessageV3.Builder builder) {
       super(builder);
     }
-
     private CustomOutputSpec() {
       properties_ = 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 CustomOutputSpec();
     }
 
-    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-      return com.google.cloud.securitycentermanagement.v1.SecurityCenterManagementProto
-          .internal_static_google_cloud_securitycentermanagement_v1_CustomConfig_CustomOutputSpec_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor
+        getDescriptor() {
+      return com.google.cloud.securitycentermanagement.v1.SecurityCenterManagementProto.internal_static_google_cloud_securitycentermanagement_v1_CustomConfig_CustomOutputSpec_descriptor;
     }
 
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.cloud.securitycentermanagement.v1.SecurityCenterManagementProto
-          .internal_static_google_cloud_securitycentermanagement_v1_CustomConfig_CustomOutputSpec_fieldAccessorTable
+      return com.google.cloud.securitycentermanagement.v1.SecurityCenterManagementProto.internal_static_google_cloud_securitycentermanagement_v1_CustomConfig_CustomOutputSpec_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.cloud.securitycentermanagement.v1.CustomConfig.CustomOutputSpec.class,
-              com.google.cloud.securitycentermanagement.v1.CustomConfig.CustomOutputSpec.Builder
-                  .class);
+              com.google.cloud.securitycentermanagement.v1.CustomConfig.CustomOutputSpec.class, com.google.cloud.securitycentermanagement.v1.CustomConfig.CustomOutputSpec.Builder.class);
     }
 
-    public interface PropertyOrBuilder
-        extends
+    public interface PropertyOrBuilder extends
         // @@protoc_insertion_point(interface_extends:google.cloud.securitycentermanagement.v1.CustomConfig.CustomOutputSpec.Property)
         com.google.protobuf.MessageOrBuilder {
 
       /**
-       *
-       *
        * 
        * Optional. Name of the property for the custom output.
        * 
* * string name = 1 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The name. */ java.lang.String getName(); /** - * - * *
        * Optional. Name of the property for the custom output.
        * 
* * string name = 1 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The bytes for name. */ - com.google.protobuf.ByteString getNameBytes(); + com.google.protobuf.ByteString + getNameBytes(); /** - * - * *
        * Optional. The CEL expression for the custom output. A resource property
        * can be specified to return the value of the property or a text string
        * enclosed in quotation marks.
        * 
* - * .google.type.Expr value_expression = 2 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.type.Expr value_expression = 2 [(.google.api.field_behavior) = OPTIONAL]; * @return Whether the valueExpression field is set. */ boolean hasValueExpression(); /** - * - * *
        * Optional. The CEL expression for the custom output. A resource property
        * can be specified to return the value of the property or a text string
        * enclosed in quotation marks.
        * 
* - * .google.type.Expr value_expression = 2 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.type.Expr value_expression = 2 [(.google.api.field_behavior) = OPTIONAL]; * @return The valueExpression. */ com.google.type.Expr getValueExpression(); /** - * - * *
        * Optional. The CEL expression for the custom output. A resource property
        * can be specified to return the value of the property or a text string
        * enclosed in quotation marks.
        * 
* - * .google.type.Expr value_expression = 2 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.type.Expr value_expression = 2 [(.google.api.field_behavior) = OPTIONAL]; */ com.google.type.ExprOrBuilder getValueExpressionOrBuilder(); } /** - * - * *
      * An individual name-value pair that defines a custom source property.
      * 
* - * Protobuf type {@code - * google.cloud.securitycentermanagement.v1.CustomConfig.CustomOutputSpec.Property} + * Protobuf type {@code google.cloud.securitycentermanagement.v1.CustomConfig.CustomOutputSpec.Property} */ - public static final class Property extends com.google.protobuf.GeneratedMessageV3 - implements + public static final class Property extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.securitycentermanagement.v1.CustomConfig.CustomOutputSpec.Property) PropertyOrBuilder { - private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use Property.newBuilder() to construct. private Property(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private Property() { name_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new Property(); } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.securitycentermanagement.v1.SecurityCenterManagementProto - .internal_static_google_cloud_securitycentermanagement_v1_CustomConfig_CustomOutputSpec_Property_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.securitycentermanagement.v1.SecurityCenterManagementProto.internal_static_google_cloud_securitycentermanagement_v1_CustomConfig_CustomOutputSpec_Property_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.securitycentermanagement.v1.SecurityCenterManagementProto - .internal_static_google_cloud_securitycentermanagement_v1_CustomConfig_CustomOutputSpec_Property_fieldAccessorTable + return com.google.cloud.securitycentermanagement.v1.SecurityCenterManagementProto.internal_static_google_cloud_securitycentermanagement_v1_CustomConfig_CustomOutputSpec_Property_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.securitycentermanagement.v1.CustomConfig.CustomOutputSpec.Property - .class, - com.google.cloud.securitycentermanagement.v1.CustomConfig.CustomOutputSpec.Property - .Builder.class); + com.google.cloud.securitycentermanagement.v1.CustomConfig.CustomOutputSpec.Property.class, com.google.cloud.securitycentermanagement.v1.CustomConfig.CustomOutputSpec.Property.Builder.class); } public static final int NAME_FIELD_NUMBER = 1; - @SuppressWarnings("serial") private volatile java.lang.Object name_ = ""; /** - * - * *
        * Optional. Name of the property for the custom output.
        * 
* * string name = 1 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The name. */ @java.lang.Override @@ -533,29 +431,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; } } /** - * - * *
        * Optional. Name of the property for the custom output.
        * 
* * string name = 1 [(.google.api.field_behavior) = OPTIONAL]; - * * @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 { @@ -566,17 +464,13 @@ public com.google.protobuf.ByteString getNameBytes() { public static final int VALUE_EXPRESSION_FIELD_NUMBER = 2; private com.google.type.Expr valueExpression_; /** - * - * *
        * Optional. The CEL expression for the custom output. A resource property
        * can be specified to return the value of the property or a text string
        * enclosed in quotation marks.
        * 
* - * .google.type.Expr value_expression = 2 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.type.Expr value_expression = 2 [(.google.api.field_behavior) = OPTIONAL]; * @return Whether the valueExpression field is set. */ @java.lang.Override @@ -584,46 +478,34 @@ public boolean hasValueExpression() { return valueExpression_ != null; } /** - * - * *
        * Optional. The CEL expression for the custom output. A resource property
        * can be specified to return the value of the property or a text string
        * enclosed in quotation marks.
        * 
* - * .google.type.Expr value_expression = 2 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.type.Expr value_expression = 2 [(.google.api.field_behavior) = OPTIONAL]; * @return The valueExpression. */ @java.lang.Override public com.google.type.Expr getValueExpression() { - return valueExpression_ == null - ? com.google.type.Expr.getDefaultInstance() - : valueExpression_; + return valueExpression_ == null ? com.google.type.Expr.getDefaultInstance() : valueExpression_; } /** - * - * *
        * Optional. The CEL expression for the custom output. A resource property
        * can be specified to return the value of the property or a text string
        * enclosed in quotation marks.
        * 
* - * .google.type.Expr value_expression = 2 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.type.Expr value_expression = 2 [(.google.api.field_behavior) = OPTIONAL]; */ @java.lang.Override public com.google.type.ExprOrBuilder getValueExpressionOrBuilder() { - return valueExpression_ == null - ? com.google.type.Expr.getDefaultInstance() - : valueExpression_; + return valueExpression_ == null ? com.google.type.Expr.getDefaultInstance() : valueExpression_; } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -635,7 +517,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.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_); } @@ -655,7 +538,8 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); } if (valueExpression_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getValueExpression()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(2, getValueExpression()); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -665,21 +549,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.securitycentermanagement.v1.CustomConfig.CustomOutputSpec.Property)) { + if (!(obj instanceof com.google.cloud.securitycentermanagement.v1.CustomConfig.CustomOutputSpec.Property)) { return super.equals(obj); } - com.google.cloud.securitycentermanagement.v1.CustomConfig.CustomOutputSpec.Property other = - (com.google.cloud.securitycentermanagement.v1.CustomConfig.CustomOutputSpec.Property) - obj; + com.google.cloud.securitycentermanagement.v1.CustomConfig.CustomOutputSpec.Property other = (com.google.cloud.securitycentermanagement.v1.CustomConfig.CustomOutputSpec.Property) obj; - if (!getName().equals(other.getName())) return false; + if (!getName() + .equals(other.getName())) return false; if (hasValueExpression() != other.hasValueExpression()) return false; if (hasValueExpression()) { - if (!getValueExpression().equals(other.getValueExpression())) return false; + if (!getValueExpression() + .equals(other.getValueExpression())) return false; } if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; @@ -703,116 +585,90 @@ public int hashCode() { return hash; } - public static com.google.cloud.securitycentermanagement.v1.CustomConfig.CustomOutputSpec - .Property - parseFrom(java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.securitycentermanagement.v1.CustomConfig.CustomOutputSpec.Property parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - - public static com.google.cloud.securitycentermanagement.v1.CustomConfig.CustomOutputSpec - .Property - parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.securitycentermanagement.v1.CustomConfig.CustomOutputSpec.Property 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.securitycentermanagement.v1.CustomConfig.CustomOutputSpec - .Property - parseFrom(com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.securitycentermanagement.v1.CustomConfig.CustomOutputSpec.Property parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - - public static com.google.cloud.securitycentermanagement.v1.CustomConfig.CustomOutputSpec - .Property - parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.securitycentermanagement.v1.CustomConfig.CustomOutputSpec.Property parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.securitycentermanagement.v1.CustomConfig.CustomOutputSpec - .Property - parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.securitycentermanagement.v1.CustomConfig.CustomOutputSpec.Property parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - - public static com.google.cloud.securitycentermanagement.v1.CustomConfig.CustomOutputSpec - .Property - parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.securitycentermanagement.v1.CustomConfig.CustomOutputSpec.Property parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.securitycentermanagement.v1.CustomConfig.CustomOutputSpec - .Property - parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.securitycentermanagement.v1.CustomConfig.CustomOutputSpec.Property parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - - public static com.google.cloud.securitycentermanagement.v1.CustomConfig.CustomOutputSpec - .Property - 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.securitycentermanagement.v1.CustomConfig.CustomOutputSpec.Property 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.securitycentermanagement.v1.CustomConfig.CustomOutputSpec - .Property - parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.securitycentermanagement.v1.CustomConfig.CustomOutputSpec.Property parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.securitycentermanagement.v1.CustomConfig.CustomOutputSpec - .Property - parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + public static com.google.cloud.securitycentermanagement.v1.CustomConfig.CustomOutputSpec.Property parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.securitycentermanagement.v1.CustomConfig.CustomOutputSpec - .Property - parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.securitycentermanagement.v1.CustomConfig.CustomOutputSpec.Property parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - - public static com.google.cloud.securitycentermanagement.v1.CustomConfig.CustomOutputSpec - .Property - 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.securitycentermanagement.v1.CustomConfig.CustomOutputSpec.Property 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.securitycentermanagement.v1.CustomConfig.CustomOutputSpec.Property - prototype) { + public static Builder newBuilder(com.google.cloud.securitycentermanagement.v1.CustomConfig.CustomOutputSpec.Property prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override @@ -822,46 +678,39 @@ protected Builder newBuilderForType( return builder; } /** - * - * *
        * An individual name-value pair that defines a custom source property.
        * 
* - * Protobuf type {@code - * google.cloud.securitycentermanagement.v1.CustomConfig.CustomOutputSpec.Property} + * Protobuf type {@code google.cloud.securitycentermanagement.v1.CustomConfig.CustomOutputSpec.Property} */ - public static final class Builder - extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.securitycentermanagement.v1.CustomConfig.CustomOutputSpec.Property) - com.google.cloud.securitycentermanagement.v1.CustomConfig.CustomOutputSpec - .PropertyOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.securitycentermanagement.v1.SecurityCenterManagementProto - .internal_static_google_cloud_securitycentermanagement_v1_CustomConfig_CustomOutputSpec_Property_descriptor; + com.google.cloud.securitycentermanagement.v1.CustomConfig.CustomOutputSpec.PropertyOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.securitycentermanagement.v1.SecurityCenterManagementProto.internal_static_google_cloud_securitycentermanagement_v1_CustomConfig_CustomOutputSpec_Property_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.securitycentermanagement.v1.SecurityCenterManagementProto - .internal_static_google_cloud_securitycentermanagement_v1_CustomConfig_CustomOutputSpec_Property_fieldAccessorTable + return com.google.cloud.securitycentermanagement.v1.SecurityCenterManagementProto.internal_static_google_cloud_securitycentermanagement_v1_CustomConfig_CustomOutputSpec_Property_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.securitycentermanagement.v1.CustomConfig.CustomOutputSpec - .Property.class, - com.google.cloud.securitycentermanagement.v1.CustomConfig.CustomOutputSpec - .Property.Builder.class); + com.google.cloud.securitycentermanagement.v1.CustomConfig.CustomOutputSpec.Property.class, com.google.cloud.securitycentermanagement.v1.CustomConfig.CustomOutputSpec.Property.Builder.class); } - // Construct using - // com.google.cloud.securitycentermanagement.v1.CustomConfig.CustomOutputSpec.Property.newBuilder() - private Builder() {} + // Construct using com.google.cloud.securitycentermanagement.v1.CustomConfig.CustomOutputSpec.Property.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(); @@ -876,23 +725,19 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.securitycentermanagement.v1.SecurityCenterManagementProto - .internal_static_google_cloud_securitycentermanagement_v1_CustomConfig_CustomOutputSpec_Property_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.securitycentermanagement.v1.SecurityCenterManagementProto.internal_static_google_cloud_securitycentermanagement_v1_CustomConfig_CustomOutputSpec_Property_descriptor; } @java.lang.Override - public com.google.cloud.securitycentermanagement.v1.CustomConfig.CustomOutputSpec.Property - getDefaultInstanceForType() { - return com.google.cloud.securitycentermanagement.v1.CustomConfig.CustomOutputSpec.Property - .getDefaultInstance(); + public com.google.cloud.securitycentermanagement.v1.CustomConfig.CustomOutputSpec.Property getDefaultInstanceForType() { + return com.google.cloud.securitycentermanagement.v1.CustomConfig.CustomOutputSpec.Property.getDefaultInstance(); } @java.lang.Override - public com.google.cloud.securitycentermanagement.v1.CustomConfig.CustomOutputSpec.Property - build() { - com.google.cloud.securitycentermanagement.v1.CustomConfig.CustomOutputSpec.Property - result = buildPartial(); + public com.google.cloud.securitycentermanagement.v1.CustomConfig.CustomOutputSpec.Property build() { + com.google.cloud.securitycentermanagement.v1.CustomConfig.CustomOutputSpec.Property result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } @@ -900,31 +745,22 @@ public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { } @java.lang.Override - public com.google.cloud.securitycentermanagement.v1.CustomConfig.CustomOutputSpec.Property - buildPartial() { - com.google.cloud.securitycentermanagement.v1.CustomConfig.CustomOutputSpec.Property - result = - new com.google.cloud.securitycentermanagement.v1.CustomConfig.CustomOutputSpec - .Property(this); - if (bitField0_ != 0) { - buildPartial0(result); - } + public com.google.cloud.securitycentermanagement.v1.CustomConfig.CustomOutputSpec.Property buildPartial() { + com.google.cloud.securitycentermanagement.v1.CustomConfig.CustomOutputSpec.Property result = new com.google.cloud.securitycentermanagement.v1.CustomConfig.CustomOutputSpec.Property(this); + if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } - private void buildPartial0( - com.google.cloud.securitycentermanagement.v1.CustomConfig.CustomOutputSpec.Property - result) { + private void buildPartial0(com.google.cloud.securitycentermanagement.v1.CustomConfig.CustomOutputSpec.Property result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000001) != 0)) { result.name_ = name_; } if (((from_bitField0_ & 0x00000002) != 0)) { - result.valueExpression_ = - valueExpressionBuilder_ == null - ? valueExpression_ - : valueExpressionBuilder_.build(); + result.valueExpression_ = valueExpressionBuilder_ == null + ? valueExpression_ + : valueExpressionBuilder_.build(); } } @@ -932,58 +768,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.securitycentermanagement.v1.CustomConfig.CustomOutputSpec.Property) { - return mergeFrom( - (com.google.cloud.securitycentermanagement.v1.CustomConfig.CustomOutputSpec - .Property) - other); + if (other instanceof com.google.cloud.securitycentermanagement.v1.CustomConfig.CustomOutputSpec.Property) { + return mergeFrom((com.google.cloud.securitycentermanagement.v1.CustomConfig.CustomOutputSpec.Property)other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom( - com.google.cloud.securitycentermanagement.v1.CustomConfig.CustomOutputSpec.Property - other) { - if (other - == com.google.cloud.securitycentermanagement.v1.CustomConfig.CustomOutputSpec.Property - .getDefaultInstance()) return this; + public Builder mergeFrom(com.google.cloud.securitycentermanagement.v1.CustomConfig.CustomOutputSpec.Property other) { + if (other == com.google.cloud.securitycentermanagement.v1.CustomConfig.CustomOutputSpec.Property.getDefaultInstance()) return this; if (!other.getName().isEmpty()) { name_ = other.name_; bitField0_ |= 0x00000001; @@ -1018,26 +842,24 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: - { - name_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 18: - { - input.readMessage( - getValueExpressionFieldBuilder().getBuilder(), extensionRegistry); - 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: { + input.readMessage( + getValueExpressionFieldBuilder().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) { @@ -1047,25 +869,22 @@ public Builder mergeFrom( } // finally return this; } - private int bitField0_; private java.lang.Object name_ = ""; /** - * - * *
          * Optional. Name of the property for the custom output.
          * 
* * string name = 1 [(.google.api.field_behavior) = OPTIONAL]; - * * @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; @@ -1074,21 +893,20 @@ public java.lang.String getName() { } } /** - * - * *
          * Optional. Name of the property for the custom output.
          * 
* * string name = 1 [(.google.api.field_behavior) = OPTIONAL]; - * * @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 { @@ -1096,35 +914,28 @@ public com.google.protobuf.ByteString getNameBytes() { } } /** - * - * *
          * Optional. Name of the property for the custom output.
          * 
* * string name = 1 [(.google.api.field_behavior) = OPTIONAL]; - * * @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; } /** - * - * *
          * Optional. Name of the property for the custom output.
          * 
* * string name = 1 [(.google.api.field_behavior) = OPTIONAL]; - * * @return This builder for chaining. */ public Builder clearName() { @@ -1134,21 +945,17 @@ public Builder clearName() { return this; } /** - * - * *
          * Optional. Name of the property for the custom output.
          * 
* * string name = 1 [(.google.api.field_behavior) = OPTIONAL]; - * * @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; @@ -1158,59 +965,45 @@ public Builder setNameBytes(com.google.protobuf.ByteString value) { private com.google.type.Expr valueExpression_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.type.Expr, com.google.type.Expr.Builder, com.google.type.ExprOrBuilder> - valueExpressionBuilder_; + com.google.type.Expr, com.google.type.Expr.Builder, com.google.type.ExprOrBuilder> valueExpressionBuilder_; /** - * - * *
          * Optional. The CEL expression for the custom output. A resource property
          * can be specified to return the value of the property or a text string
          * enclosed in quotation marks.
          * 
* - * .google.type.Expr value_expression = 2 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.type.Expr value_expression = 2 [(.google.api.field_behavior) = OPTIONAL]; * @return Whether the valueExpression field is set. */ public boolean hasValueExpression() { return ((bitField0_ & 0x00000002) != 0); } /** - * - * *
          * Optional. The CEL expression for the custom output. A resource property
          * can be specified to return the value of the property or a text string
          * enclosed in quotation marks.
          * 
* - * .google.type.Expr value_expression = 2 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.type.Expr value_expression = 2 [(.google.api.field_behavior) = OPTIONAL]; * @return The valueExpression. */ public com.google.type.Expr getValueExpression() { if (valueExpressionBuilder_ == null) { - return valueExpression_ == null - ? com.google.type.Expr.getDefaultInstance() - : valueExpression_; + return valueExpression_ == null ? com.google.type.Expr.getDefaultInstance() : valueExpression_; } else { return valueExpressionBuilder_.getMessage(); } } /** - * - * *
          * Optional. The CEL expression for the custom output. A resource property
          * can be specified to return the value of the property or a text string
          * enclosed in quotation marks.
          * 
* - * .google.type.Expr value_expression = 2 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.type.Expr value_expression = 2 [(.google.api.field_behavior) = OPTIONAL]; */ public Builder setValueExpression(com.google.type.Expr value) { if (valueExpressionBuilder_ == null) { @@ -1226,18 +1019,16 @@ public Builder setValueExpression(com.google.type.Expr value) { return this; } /** - * - * *
          * Optional. The CEL expression for the custom output. A resource property
          * can be specified to return the value of the property or a text string
          * enclosed in quotation marks.
          * 
* - * .google.type.Expr value_expression = 2 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.type.Expr value_expression = 2 [(.google.api.field_behavior) = OPTIONAL]; */ - public Builder setValueExpression(com.google.type.Expr.Builder builderForValue) { + public Builder setValueExpression( + com.google.type.Expr.Builder builderForValue) { if (valueExpressionBuilder_ == null) { valueExpression_ = builderForValue.build(); } else { @@ -1248,22 +1039,19 @@ public Builder setValueExpression(com.google.type.Expr.Builder builderForValue) return this; } /** - * - * *
          * Optional. The CEL expression for the custom output. A resource property
          * can be specified to return the value of the property or a text string
          * enclosed in quotation marks.
          * 
* - * .google.type.Expr value_expression = 2 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.type.Expr value_expression = 2 [(.google.api.field_behavior) = OPTIONAL]; */ public Builder mergeValueExpression(com.google.type.Expr value) { if (valueExpressionBuilder_ == null) { - if (((bitField0_ & 0x00000002) != 0) - && valueExpression_ != null - && valueExpression_ != com.google.type.Expr.getDefaultInstance()) { + if (((bitField0_ & 0x00000002) != 0) && + valueExpression_ != null && + valueExpression_ != com.google.type.Expr.getDefaultInstance()) { getValueExpressionBuilder().mergeFrom(value); } else { valueExpression_ = value; @@ -1276,16 +1064,13 @@ public Builder mergeValueExpression(com.google.type.Expr value) { return this; } /** - * - * *
          * Optional. The CEL expression for the custom output. A resource property
          * can be specified to return the value of the property or a text string
          * enclosed in quotation marks.
          * 
* - * .google.type.Expr value_expression = 2 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.type.Expr value_expression = 2 [(.google.api.field_behavior) = OPTIONAL]; */ public Builder clearValueExpression() { bitField0_ = (bitField0_ & ~0x00000002); @@ -1298,16 +1083,13 @@ public Builder clearValueExpression() { return this; } /** - * - * *
          * Optional. The CEL expression for the custom output. A resource property
          * can be specified to return the value of the property or a text string
          * enclosed in quotation marks.
          * 
* - * .google.type.Expr value_expression = 2 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.type.Expr value_expression = 2 [(.google.api.field_behavior) = OPTIONAL]; */ public com.google.type.Expr.Builder getValueExpressionBuilder() { bitField0_ |= 0x00000002; @@ -1315,53 +1097,44 @@ public com.google.type.Expr.Builder getValueExpressionBuilder() { return getValueExpressionFieldBuilder().getBuilder(); } /** - * - * *
          * Optional. The CEL expression for the custom output. A resource property
          * can be specified to return the value of the property or a text string
          * enclosed in quotation marks.
          * 
* - * .google.type.Expr value_expression = 2 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.type.Expr value_expression = 2 [(.google.api.field_behavior) = OPTIONAL]; */ public com.google.type.ExprOrBuilder getValueExpressionOrBuilder() { if (valueExpressionBuilder_ != null) { return valueExpressionBuilder_.getMessageOrBuilder(); } else { - return valueExpression_ == null - ? com.google.type.Expr.getDefaultInstance() - : valueExpression_; + return valueExpression_ == null ? + com.google.type.Expr.getDefaultInstance() : valueExpression_; } } /** - * - * *
          * Optional. The CEL expression for the custom output. A resource property
          * can be specified to return the value of the property or a text string
          * enclosed in quotation marks.
          * 
* - * .google.type.Expr value_expression = 2 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.type.Expr value_expression = 2 [(.google.api.field_behavior) = OPTIONAL]; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.type.Expr, com.google.type.Expr.Builder, com.google.type.ExprOrBuilder> + com.google.type.Expr, com.google.type.Expr.Builder, com.google.type.ExprOrBuilder> getValueExpressionFieldBuilder() { if (valueExpressionBuilder_ == null) { - valueExpressionBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.type.Expr, - com.google.type.Expr.Builder, - com.google.type.ExprOrBuilder>( - getValueExpression(), getParentForChildren(), isClean()); + valueExpressionBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.type.Expr, com.google.type.Expr.Builder, com.google.type.ExprOrBuilder>( + getValueExpression(), + getParentForChildren(), + isClean()); valueExpression_ = null; } return valueExpressionBuilder_; } - @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { @@ -1374,48 +1147,41 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.securitycentermanagement.v1.CustomConfig.CustomOutputSpec.Property) } // @@protoc_insertion_point(class_scope:google.cloud.securitycentermanagement.v1.CustomConfig.CustomOutputSpec.Property) - private static final com.google.cloud.securitycentermanagement.v1.CustomConfig - .CustomOutputSpec.Property - DEFAULT_INSTANCE; - + private static final com.google.cloud.securitycentermanagement.v1.CustomConfig.CustomOutputSpec.Property DEFAULT_INSTANCE; static { - DEFAULT_INSTANCE = - new com.google.cloud.securitycentermanagement.v1.CustomConfig.CustomOutputSpec - .Property(); + DEFAULT_INSTANCE = new com.google.cloud.securitycentermanagement.v1.CustomConfig.CustomOutputSpec.Property(); } - public static com.google.cloud.securitycentermanagement.v1.CustomConfig.CustomOutputSpec - .Property - getDefaultInstance() { + public static com.google.cloud.securitycentermanagement.v1.CustomConfig.CustomOutputSpec.Property getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public Property parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException() - .setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public Property parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1427,105 +1193,74 @@ public com.google.protobuf.Parser getParserForType() { } @java.lang.Override - public com.google.cloud.securitycentermanagement.v1.CustomConfig.CustomOutputSpec.Property - getDefaultInstanceForType() { + public com.google.cloud.securitycentermanagement.v1.CustomConfig.CustomOutputSpec.Property getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } public static final int PROPERTIES_FIELD_NUMBER = 1; - @SuppressWarnings("serial") - private java.util.List< - com.google.cloud.securitycentermanagement.v1.CustomConfig.CustomOutputSpec.Property> - properties_; + private java.util.List properties_; /** - * - * *
      * Optional. A list of custom output properties to add to the finding.
      * 
* - * - * repeated .google.cloud.securitycentermanagement.v1.CustomConfig.CustomOutputSpec.Property properties = 1 [(.google.api.field_behavior) = OPTIONAL]; - * + * repeated .google.cloud.securitycentermanagement.v1.CustomConfig.CustomOutputSpec.Property properties = 1 [(.google.api.field_behavior) = OPTIONAL]; */ @java.lang.Override - public java.util.List< - com.google.cloud.securitycentermanagement.v1.CustomConfig.CustomOutputSpec.Property> - getPropertiesList() { + public java.util.List getPropertiesList() { return properties_; } /** - * - * *
      * Optional. A list of custom output properties to add to the finding.
      * 
* - * - * repeated .google.cloud.securitycentermanagement.v1.CustomConfig.CustomOutputSpec.Property properties = 1 [(.google.api.field_behavior) = OPTIONAL]; - * + * repeated .google.cloud.securitycentermanagement.v1.CustomConfig.CustomOutputSpec.Property properties = 1 [(.google.api.field_behavior) = OPTIONAL]; */ @java.lang.Override - public java.util.List< - ? extends - com.google.cloud.securitycentermanagement.v1.CustomConfig.CustomOutputSpec - .PropertyOrBuilder> + public java.util.List getPropertiesOrBuilderList() { return properties_; } /** - * - * *
      * Optional. A list of custom output properties to add to the finding.
      * 
* - * - * repeated .google.cloud.securitycentermanagement.v1.CustomConfig.CustomOutputSpec.Property properties = 1 [(.google.api.field_behavior) = OPTIONAL]; - * + * repeated .google.cloud.securitycentermanagement.v1.CustomConfig.CustomOutputSpec.Property properties = 1 [(.google.api.field_behavior) = OPTIONAL]; */ @java.lang.Override public int getPropertiesCount() { return properties_.size(); } /** - * - * *
      * Optional. A list of custom output properties to add to the finding.
      * 
* - * - * repeated .google.cloud.securitycentermanagement.v1.CustomConfig.CustomOutputSpec.Property properties = 1 [(.google.api.field_behavior) = OPTIONAL]; - * + * repeated .google.cloud.securitycentermanagement.v1.CustomConfig.CustomOutputSpec.Property properties = 1 [(.google.api.field_behavior) = OPTIONAL]; */ @java.lang.Override - public com.google.cloud.securitycentermanagement.v1.CustomConfig.CustomOutputSpec.Property - getProperties(int index) { + public com.google.cloud.securitycentermanagement.v1.CustomConfig.CustomOutputSpec.Property getProperties(int index) { return properties_.get(index); } /** - * - * *
      * Optional. A list of custom output properties to add to the finding.
      * 
* - * - * repeated .google.cloud.securitycentermanagement.v1.CustomConfig.CustomOutputSpec.Property properties = 1 [(.google.api.field_behavior) = OPTIONAL]; - * + * repeated .google.cloud.securitycentermanagement.v1.CustomConfig.CustomOutputSpec.Property properties = 1 [(.google.api.field_behavior) = OPTIONAL]; */ @java.lang.Override - public com.google.cloud.securitycentermanagement.v1.CustomConfig.CustomOutputSpec - .PropertyOrBuilder - getPropertiesOrBuilder(int index) { + public com.google.cloud.securitycentermanagement.v1.CustomConfig.CustomOutputSpec.PropertyOrBuilder getPropertiesOrBuilder( + int index) { return properties_.get(index); } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -1537,7 +1272,8 @@ public final boolean isInitialized() { } @java.lang.Override - 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 < properties_.size(); i++) { output.writeMessage(1, properties_.get(i)); } @@ -1551,7 +1287,8 @@ public int getSerializedSize() { size = 0; for (int i = 0; i < properties_.size(); i++) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, properties_.get(i)); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, properties_.get(i)); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -1561,16 +1298,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.securitycentermanagement.v1.CustomConfig.CustomOutputSpec)) { + if (!(obj instanceof com.google.cloud.securitycentermanagement.v1.CustomConfig.CustomOutputSpec)) { return super.equals(obj); } - com.google.cloud.securitycentermanagement.v1.CustomConfig.CustomOutputSpec other = - (com.google.cloud.securitycentermanagement.v1.CustomConfig.CustomOutputSpec) obj; + com.google.cloud.securitycentermanagement.v1.CustomConfig.CustomOutputSpec other = (com.google.cloud.securitycentermanagement.v1.CustomConfig.CustomOutputSpec) obj; - if (!getPropertiesList().equals(other.getPropertiesList())) return false; + if (!getPropertiesList() + .equals(other.getPropertiesList())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -1591,101 +1327,90 @@ public int hashCode() { return hash; } - public static com.google.cloud.securitycentermanagement.v1.CustomConfig.CustomOutputSpec - parseFrom(java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.securitycentermanagement.v1.CustomConfig.CustomOutputSpec parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - - public static com.google.cloud.securitycentermanagement.v1.CustomConfig.CustomOutputSpec - parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.securitycentermanagement.v1.CustomConfig.CustomOutputSpec 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.securitycentermanagement.v1.CustomConfig.CustomOutputSpec - parseFrom(com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.securitycentermanagement.v1.CustomConfig.CustomOutputSpec parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - - public static com.google.cloud.securitycentermanagement.v1.CustomConfig.CustomOutputSpec - parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.securitycentermanagement.v1.CustomConfig.CustomOutputSpec parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.securitycentermanagement.v1.CustomConfig.CustomOutputSpec - parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.securitycentermanagement.v1.CustomConfig.CustomOutputSpec parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - - public static com.google.cloud.securitycentermanagement.v1.CustomConfig.CustomOutputSpec - parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.securitycentermanagement.v1.CustomConfig.CustomOutputSpec parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.securitycentermanagement.v1.CustomConfig.CustomOutputSpec - parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.securitycentermanagement.v1.CustomConfig.CustomOutputSpec parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - - public static com.google.cloud.securitycentermanagement.v1.CustomConfig.CustomOutputSpec - 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.securitycentermanagement.v1.CustomConfig.CustomOutputSpec 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.securitycentermanagement.v1.CustomConfig.CustomOutputSpec - parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.securitycentermanagement.v1.CustomConfig.CustomOutputSpec parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.securitycentermanagement.v1.CustomConfig.CustomOutputSpec - parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + public static com.google.cloud.securitycentermanagement.v1.CustomConfig.CustomOutputSpec parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.securitycentermanagement.v1.CustomConfig.CustomOutputSpec - parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.cloud.securitycentermanagement.v1.CustomConfig.CustomOutputSpec - 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.securitycentermanagement.v1.CustomConfig.CustomOutputSpec parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.google.cloud.securitycentermanagement.v1.CustomConfig.CustomOutputSpec 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.securitycentermanagement.v1.CustomConfig.CustomOutputSpec prototype) { + public static Builder newBuilder(com.google.cloud.securitycentermanagement.v1.CustomConfig.CustomOutputSpec prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override @@ -1695,8 +1420,6 @@ protected Builder newBuilderForType( return builder; } /** - * - * *
      * A set of optional name-value pairs that define custom source properties to
      * return with each finding that is generated by the custom module. The custom
@@ -1706,35 +1429,33 @@ protected Builder newBuilderForType(
      *
      * Protobuf type {@code google.cloud.securitycentermanagement.v1.CustomConfig.CustomOutputSpec}
      */
-    public static final class Builder
-        extends com.google.protobuf.GeneratedMessageV3.Builder
-        implements
+    public static final class Builder extends
+        com.google.protobuf.GeneratedMessageV3.Builder implements
         // @@protoc_insertion_point(builder_implements:google.cloud.securitycentermanagement.v1.CustomConfig.CustomOutputSpec)
         com.google.cloud.securitycentermanagement.v1.CustomConfig.CustomOutputSpecOrBuilder {
-      public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-        return com.google.cloud.securitycentermanagement.v1.SecurityCenterManagementProto
-            .internal_static_google_cloud_securitycentermanagement_v1_CustomConfig_CustomOutputSpec_descriptor;
+      public static final com.google.protobuf.Descriptors.Descriptor
+          getDescriptor() {
+        return com.google.cloud.securitycentermanagement.v1.SecurityCenterManagementProto.internal_static_google_cloud_securitycentermanagement_v1_CustomConfig_CustomOutputSpec_descriptor;
       }
 
       @java.lang.Override
       protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
           internalGetFieldAccessorTable() {
-        return com.google.cloud.securitycentermanagement.v1.SecurityCenterManagementProto
-            .internal_static_google_cloud_securitycentermanagement_v1_CustomConfig_CustomOutputSpec_fieldAccessorTable
+        return com.google.cloud.securitycentermanagement.v1.SecurityCenterManagementProto.internal_static_google_cloud_securitycentermanagement_v1_CustomConfig_CustomOutputSpec_fieldAccessorTable
             .ensureFieldAccessorsInitialized(
-                com.google.cloud.securitycentermanagement.v1.CustomConfig.CustomOutputSpec.class,
-                com.google.cloud.securitycentermanagement.v1.CustomConfig.CustomOutputSpec.Builder
-                    .class);
+                com.google.cloud.securitycentermanagement.v1.CustomConfig.CustomOutputSpec.class, com.google.cloud.securitycentermanagement.v1.CustomConfig.CustomOutputSpec.Builder.class);
       }
 
-      // Construct using
-      // com.google.cloud.securitycentermanagement.v1.CustomConfig.CustomOutputSpec.newBuilder()
-      private Builder() {}
+      // Construct using com.google.cloud.securitycentermanagement.v1.CustomConfig.CustomOutputSpec.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();
@@ -1750,22 +1471,19 @@ public Builder clear() {
       }
 
       @java.lang.Override
-      public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
-        return com.google.cloud.securitycentermanagement.v1.SecurityCenterManagementProto
-            .internal_static_google_cloud_securitycentermanagement_v1_CustomConfig_CustomOutputSpec_descriptor;
+      public com.google.protobuf.Descriptors.Descriptor
+          getDescriptorForType() {
+        return com.google.cloud.securitycentermanagement.v1.SecurityCenterManagementProto.internal_static_google_cloud_securitycentermanagement_v1_CustomConfig_CustomOutputSpec_descriptor;
       }
 
       @java.lang.Override
-      public com.google.cloud.securitycentermanagement.v1.CustomConfig.CustomOutputSpec
-          getDefaultInstanceForType() {
-        return com.google.cloud.securitycentermanagement.v1.CustomConfig.CustomOutputSpec
-            .getDefaultInstance();
+      public com.google.cloud.securitycentermanagement.v1.CustomConfig.CustomOutputSpec getDefaultInstanceForType() {
+        return com.google.cloud.securitycentermanagement.v1.CustomConfig.CustomOutputSpec.getDefaultInstance();
       }
 
       @java.lang.Override
       public com.google.cloud.securitycentermanagement.v1.CustomConfig.CustomOutputSpec build() {
-        com.google.cloud.securitycentermanagement.v1.CustomConfig.CustomOutputSpec result =
-            buildPartial();
+        com.google.cloud.securitycentermanagement.v1.CustomConfig.CustomOutputSpec result = buildPartial();
         if (!result.isInitialized()) {
           throw newUninitializedMessageException(result);
         }
@@ -1773,20 +1491,15 @@ public com.google.cloud.securitycentermanagement.v1.CustomConfig.CustomOutputSpe
       }
 
       @java.lang.Override
-      public com.google.cloud.securitycentermanagement.v1.CustomConfig.CustomOutputSpec
-          buildPartial() {
-        com.google.cloud.securitycentermanagement.v1.CustomConfig.CustomOutputSpec result =
-            new com.google.cloud.securitycentermanagement.v1.CustomConfig.CustomOutputSpec(this);
+      public com.google.cloud.securitycentermanagement.v1.CustomConfig.CustomOutputSpec buildPartial() {
+        com.google.cloud.securitycentermanagement.v1.CustomConfig.CustomOutputSpec result = new com.google.cloud.securitycentermanagement.v1.CustomConfig.CustomOutputSpec(this);
         buildPartialRepeatedFields(result);
-        if (bitField0_ != 0) {
-          buildPartial0(result);
-        }
+        if (bitField0_ != 0) { buildPartial0(result); }
         onBuilt();
         return result;
       }
 
-      private void buildPartialRepeatedFields(
-          com.google.cloud.securitycentermanagement.v1.CustomConfig.CustomOutputSpec result) {
+      private void buildPartialRepeatedFields(com.google.cloud.securitycentermanagement.v1.CustomConfig.CustomOutputSpec result) {
         if (propertiesBuilder_ == null) {
           if (((bitField0_ & 0x00000001) != 0)) {
             properties_ = java.util.Collections.unmodifiableList(properties_);
@@ -1798,8 +1511,7 @@ private void buildPartialRepeatedFields(
         }
       }
 
-      private void buildPartial0(
-          com.google.cloud.securitycentermanagement.v1.CustomConfig.CustomOutputSpec result) {
+      private void buildPartial0(com.google.cloud.securitycentermanagement.v1.CustomConfig.CustomOutputSpec result) {
         int from_bitField0_ = bitField0_;
       }
 
@@ -1807,54 +1519,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.securitycentermanagement.v1.CustomConfig.CustomOutputSpec) {
-          return mergeFrom(
-              (com.google.cloud.securitycentermanagement.v1.CustomConfig.CustomOutputSpec) other);
+        if (other instanceof com.google.cloud.securitycentermanagement.v1.CustomConfig.CustomOutputSpec) {
+          return mergeFrom((com.google.cloud.securitycentermanagement.v1.CustomConfig.CustomOutputSpec)other);
         } else {
           super.mergeFrom(other);
           return this;
         }
       }
 
-      public Builder mergeFrom(
-          com.google.cloud.securitycentermanagement.v1.CustomConfig.CustomOutputSpec other) {
-        if (other
-            == com.google.cloud.securitycentermanagement.v1.CustomConfig.CustomOutputSpec
-                .getDefaultInstance()) return this;
+      public Builder mergeFrom(com.google.cloud.securitycentermanagement.v1.CustomConfig.CustomOutputSpec other) {
+        if (other == com.google.cloud.securitycentermanagement.v1.CustomConfig.CustomOutputSpec.getDefaultInstance()) return this;
         if (propertiesBuilder_ == null) {
           if (!other.properties_.isEmpty()) {
             if (properties_.isEmpty()) {
@@ -1873,10 +1577,9 @@ public Builder mergeFrom(
               propertiesBuilder_ = null;
               properties_ = other.properties_;
               bitField0_ = (bitField0_ & ~0x00000001);
-              propertiesBuilder_ =
-                  com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders
-                      ? getPropertiesFieldBuilder()
-                      : null;
+              propertiesBuilder_ = 
+                com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
+                   getPropertiesFieldBuilder() : null;
             } else {
               propertiesBuilder_.addAllMessages(other.properties_);
             }
@@ -1908,30 +1611,25 @@ public Builder mergeFrom(
               case 0:
                 done = true;
                 break;
-              case 10:
-                {
-                  com.google.cloud.securitycentermanagement.v1.CustomConfig.CustomOutputSpec
-                          .Property
-                      m =
-                          input.readMessage(
-                              com.google.cloud.securitycentermanagement.v1.CustomConfig
-                                  .CustomOutputSpec.Property.parser(),
-                              extensionRegistry);
-                  if (propertiesBuilder_ == null) {
-                    ensurePropertiesIsMutable();
-                    properties_.add(m);
-                  } else {
-                    propertiesBuilder_.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.securitycentermanagement.v1.CustomConfig.CustomOutputSpec.Property m =
+                    input.readMessage(
+                        com.google.cloud.securitycentermanagement.v1.CustomConfig.CustomOutputSpec.Property.parser(),
+                        extensionRegistry);
+                if (propertiesBuilder_ == null) {
+                  ensurePropertiesIsMutable();
+                  properties_.add(m);
+                } else {
+                  propertiesBuilder_.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) {
@@ -1941,45 +1639,28 @@ public Builder mergeFrom(
         } // finally
         return this;
       }
-
       private int bitField0_;
 
-      private java.util.List<
-              com.google.cloud.securitycentermanagement.v1.CustomConfig.CustomOutputSpec.Property>
-          properties_ = java.util.Collections.emptyList();
-
+      private java.util.List properties_ =
+        java.util.Collections.emptyList();
       private void ensurePropertiesIsMutable() {
         if (!((bitField0_ & 0x00000001) != 0)) {
-          properties_ =
-              new java.util.ArrayList<
-                  com.google.cloud.securitycentermanagement.v1.CustomConfig.CustomOutputSpec
-                      .Property>(properties_);
+          properties_ = new java.util.ArrayList(properties_);
           bitField0_ |= 0x00000001;
-        }
+         }
       }
 
       private com.google.protobuf.RepeatedFieldBuilderV3<
-              com.google.cloud.securitycentermanagement.v1.CustomConfig.CustomOutputSpec.Property,
-              com.google.cloud.securitycentermanagement.v1.CustomConfig.CustomOutputSpec.Property
-                  .Builder,
-              com.google.cloud.securitycentermanagement.v1.CustomConfig.CustomOutputSpec
-                  .PropertyOrBuilder>
-          propertiesBuilder_;
+          com.google.cloud.securitycentermanagement.v1.CustomConfig.CustomOutputSpec.Property, com.google.cloud.securitycentermanagement.v1.CustomConfig.CustomOutputSpec.Property.Builder, com.google.cloud.securitycentermanagement.v1.CustomConfig.CustomOutputSpec.PropertyOrBuilder> propertiesBuilder_;
 
       /**
-       *
-       *
        * 
        * Optional. A list of custom output properties to add to the finding.
        * 
* - * - * repeated .google.cloud.securitycentermanagement.v1.CustomConfig.CustomOutputSpec.Property properties = 1 [(.google.api.field_behavior) = OPTIONAL]; - * + * repeated .google.cloud.securitycentermanagement.v1.CustomConfig.CustomOutputSpec.Property properties = 1 [(.google.api.field_behavior) = OPTIONAL]; */ - public java.util.List< - com.google.cloud.securitycentermanagement.v1.CustomConfig.CustomOutputSpec.Property> - getPropertiesList() { + public java.util.List getPropertiesList() { if (propertiesBuilder_ == null) { return java.util.Collections.unmodifiableList(properties_); } else { @@ -1987,15 +1668,11 @@ private void ensurePropertiesIsMutable() { } } /** - * - * *
        * Optional. A list of custom output properties to add to the finding.
        * 
* - * - * repeated .google.cloud.securitycentermanagement.v1.CustomConfig.CustomOutputSpec.Property properties = 1 [(.google.api.field_behavior) = OPTIONAL]; - * + * repeated .google.cloud.securitycentermanagement.v1.CustomConfig.CustomOutputSpec.Property properties = 1 [(.google.api.field_behavior) = OPTIONAL]; */ public int getPropertiesCount() { if (propertiesBuilder_ == null) { @@ -2005,18 +1682,13 @@ public int getPropertiesCount() { } } /** - * - * *
        * Optional. A list of custom output properties to add to the finding.
        * 
* - * - * repeated .google.cloud.securitycentermanagement.v1.CustomConfig.CustomOutputSpec.Property properties = 1 [(.google.api.field_behavior) = OPTIONAL]; - * + * repeated .google.cloud.securitycentermanagement.v1.CustomConfig.CustomOutputSpec.Property properties = 1 [(.google.api.field_behavior) = OPTIONAL]; */ - public com.google.cloud.securitycentermanagement.v1.CustomConfig.CustomOutputSpec.Property - getProperties(int index) { + public com.google.cloud.securitycentermanagement.v1.CustomConfig.CustomOutputSpec.Property getProperties(int index) { if (propertiesBuilder_ == null) { return properties_.get(index); } else { @@ -2024,20 +1696,14 @@ public int getPropertiesCount() { } } /** - * - * *
        * Optional. A list of custom output properties to add to the finding.
        * 
* - * - * repeated .google.cloud.securitycentermanagement.v1.CustomConfig.CustomOutputSpec.Property properties = 1 [(.google.api.field_behavior) = OPTIONAL]; - * + * repeated .google.cloud.securitycentermanagement.v1.CustomConfig.CustomOutputSpec.Property properties = 1 [(.google.api.field_behavior) = OPTIONAL]; */ public Builder setProperties( - int index, - com.google.cloud.securitycentermanagement.v1.CustomConfig.CustomOutputSpec.Property - value) { + int index, com.google.cloud.securitycentermanagement.v1.CustomConfig.CustomOutputSpec.Property value) { if (propertiesBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -2051,21 +1717,14 @@ public Builder setProperties( return this; } /** - * - * *
        * Optional. A list of custom output properties to add to the finding.
        * 
* - * - * repeated .google.cloud.securitycentermanagement.v1.CustomConfig.CustomOutputSpec.Property properties = 1 [(.google.api.field_behavior) = OPTIONAL]; - * + * repeated .google.cloud.securitycentermanagement.v1.CustomConfig.CustomOutputSpec.Property properties = 1 [(.google.api.field_behavior) = OPTIONAL]; */ public Builder setProperties( - int index, - com.google.cloud.securitycentermanagement.v1.CustomConfig.CustomOutputSpec.Property - .Builder - builderForValue) { + int index, com.google.cloud.securitycentermanagement.v1.CustomConfig.CustomOutputSpec.Property.Builder builderForValue) { if (propertiesBuilder_ == null) { ensurePropertiesIsMutable(); properties_.set(index, builderForValue.build()); @@ -2076,19 +1735,13 @@ public Builder setProperties( return this; } /** - * - * *
        * Optional. A list of custom output properties to add to the finding.
        * 
* - * - * repeated .google.cloud.securitycentermanagement.v1.CustomConfig.CustomOutputSpec.Property properties = 1 [(.google.api.field_behavior) = OPTIONAL]; - * + * repeated .google.cloud.securitycentermanagement.v1.CustomConfig.CustomOutputSpec.Property properties = 1 [(.google.api.field_behavior) = OPTIONAL]; */ - public Builder addProperties( - com.google.cloud.securitycentermanagement.v1.CustomConfig.CustomOutputSpec.Property - value) { + public Builder addProperties(com.google.cloud.securitycentermanagement.v1.CustomConfig.CustomOutputSpec.Property value) { if (propertiesBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -2102,20 +1755,14 @@ public Builder addProperties( return this; } /** - * - * *
        * Optional. A list of custom output properties to add to the finding.
        * 
* - * - * repeated .google.cloud.securitycentermanagement.v1.CustomConfig.CustomOutputSpec.Property properties = 1 [(.google.api.field_behavior) = OPTIONAL]; - * + * repeated .google.cloud.securitycentermanagement.v1.CustomConfig.CustomOutputSpec.Property properties = 1 [(.google.api.field_behavior) = OPTIONAL]; */ public Builder addProperties( - int index, - com.google.cloud.securitycentermanagement.v1.CustomConfig.CustomOutputSpec.Property - value) { + int index, com.google.cloud.securitycentermanagement.v1.CustomConfig.CustomOutputSpec.Property value) { if (propertiesBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -2129,20 +1776,14 @@ public Builder addProperties( return this; } /** - * - * *
        * Optional. A list of custom output properties to add to the finding.
        * 
* - * - * repeated .google.cloud.securitycentermanagement.v1.CustomConfig.CustomOutputSpec.Property properties = 1 [(.google.api.field_behavior) = OPTIONAL]; - * + * repeated .google.cloud.securitycentermanagement.v1.CustomConfig.CustomOutputSpec.Property properties = 1 [(.google.api.field_behavior) = OPTIONAL]; */ public Builder addProperties( - com.google.cloud.securitycentermanagement.v1.CustomConfig.CustomOutputSpec.Property - .Builder - builderForValue) { + com.google.cloud.securitycentermanagement.v1.CustomConfig.CustomOutputSpec.Property.Builder builderForValue) { if (propertiesBuilder_ == null) { ensurePropertiesIsMutable(); properties_.add(builderForValue.build()); @@ -2153,21 +1794,14 @@ public Builder addProperties( return this; } /** - * - * *
        * Optional. A list of custom output properties to add to the finding.
        * 
* - * - * repeated .google.cloud.securitycentermanagement.v1.CustomConfig.CustomOutputSpec.Property properties = 1 [(.google.api.field_behavior) = OPTIONAL]; - * + * repeated .google.cloud.securitycentermanagement.v1.CustomConfig.CustomOutputSpec.Property properties = 1 [(.google.api.field_behavior) = OPTIONAL]; */ public Builder addProperties( - int index, - com.google.cloud.securitycentermanagement.v1.CustomConfig.CustomOutputSpec.Property - .Builder - builderForValue) { + int index, com.google.cloud.securitycentermanagement.v1.CustomConfig.CustomOutputSpec.Property.Builder builderForValue) { if (propertiesBuilder_ == null) { ensurePropertiesIsMutable(); properties_.add(index, builderForValue.build()); @@ -2178,25 +1812,18 @@ public Builder addProperties( return this; } /** - * - * *
        * Optional. A list of custom output properties to add to the finding.
        * 
* - * - * repeated .google.cloud.securitycentermanagement.v1.CustomConfig.CustomOutputSpec.Property properties = 1 [(.google.api.field_behavior) = OPTIONAL]; - * + * repeated .google.cloud.securitycentermanagement.v1.CustomConfig.CustomOutputSpec.Property properties = 1 [(.google.api.field_behavior) = OPTIONAL]; */ public Builder addAllProperties( - java.lang.Iterable< - ? extends - com.google.cloud.securitycentermanagement.v1.CustomConfig.CustomOutputSpec - .Property> - values) { + java.lang.Iterable values) { if (propertiesBuilder_ == null) { ensurePropertiesIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, properties_); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, properties_); onChanged(); } else { propertiesBuilder_.addAllMessages(values); @@ -2204,15 +1831,11 @@ public Builder addAllProperties( return this; } /** - * - * *
        * Optional. A list of custom output properties to add to the finding.
        * 
* - * - * repeated .google.cloud.securitycentermanagement.v1.CustomConfig.CustomOutputSpec.Property properties = 1 [(.google.api.field_behavior) = OPTIONAL]; - * + * repeated .google.cloud.securitycentermanagement.v1.CustomConfig.CustomOutputSpec.Property properties = 1 [(.google.api.field_behavior) = OPTIONAL]; */ public Builder clearProperties() { if (propertiesBuilder_ == null) { @@ -2225,15 +1848,11 @@ public Builder clearProperties() { return this; } /** - * - * *
        * Optional. A list of custom output properties to add to the finding.
        * 
* - * - * repeated .google.cloud.securitycentermanagement.v1.CustomConfig.CustomOutputSpec.Property properties = 1 [(.google.api.field_behavior) = OPTIONAL]; - * + * repeated .google.cloud.securitycentermanagement.v1.CustomConfig.CustomOutputSpec.Property properties = 1 [(.google.api.field_behavior) = OPTIONAL]; */ public Builder removeProperties(int index) { if (propertiesBuilder_ == null) { @@ -2246,57 +1865,39 @@ public Builder removeProperties(int index) { return this; } /** - * - * *
        * Optional. A list of custom output properties to add to the finding.
        * 
* - * - * repeated .google.cloud.securitycentermanagement.v1.CustomConfig.CustomOutputSpec.Property properties = 1 [(.google.api.field_behavior) = OPTIONAL]; - * + * repeated .google.cloud.securitycentermanagement.v1.CustomConfig.CustomOutputSpec.Property properties = 1 [(.google.api.field_behavior) = OPTIONAL]; */ - public com.google.cloud.securitycentermanagement.v1.CustomConfig.CustomOutputSpec.Property - .Builder - getPropertiesBuilder(int index) { + public com.google.cloud.securitycentermanagement.v1.CustomConfig.CustomOutputSpec.Property.Builder getPropertiesBuilder( + int index) { return getPropertiesFieldBuilder().getBuilder(index); } /** - * - * *
        * Optional. A list of custom output properties to add to the finding.
        * 
* - * - * repeated .google.cloud.securitycentermanagement.v1.CustomConfig.CustomOutputSpec.Property properties = 1 [(.google.api.field_behavior) = OPTIONAL]; - * + * repeated .google.cloud.securitycentermanagement.v1.CustomConfig.CustomOutputSpec.Property properties = 1 [(.google.api.field_behavior) = OPTIONAL]; */ - public com.google.cloud.securitycentermanagement.v1.CustomConfig.CustomOutputSpec - .PropertyOrBuilder - getPropertiesOrBuilder(int index) { + public com.google.cloud.securitycentermanagement.v1.CustomConfig.CustomOutputSpec.PropertyOrBuilder getPropertiesOrBuilder( + int index) { if (propertiesBuilder_ == null) { - return properties_.get(index); - } else { + return properties_.get(index); } else { return propertiesBuilder_.getMessageOrBuilder(index); } } /** - * - * *
        * Optional. A list of custom output properties to add to the finding.
        * 
* - * - * repeated .google.cloud.securitycentermanagement.v1.CustomConfig.CustomOutputSpec.Property properties = 1 [(.google.api.field_behavior) = OPTIONAL]; - * + * repeated .google.cloud.securitycentermanagement.v1.CustomConfig.CustomOutputSpec.Property properties = 1 [(.google.api.field_behavior) = OPTIONAL]; */ - public java.util.List< - ? extends - com.google.cloud.securitycentermanagement.v1.CustomConfig.CustomOutputSpec - .PropertyOrBuilder> - getPropertiesOrBuilderList() { + public java.util.List + getPropertiesOrBuilderList() { if (propertiesBuilder_ != null) { return propertiesBuilder_.getMessageOrBuilderList(); } else { @@ -2304,84 +1905,53 @@ public Builder removeProperties(int index) { } } /** - * - * *
        * Optional. A list of custom output properties to add to the finding.
        * 
* - * - * repeated .google.cloud.securitycentermanagement.v1.CustomConfig.CustomOutputSpec.Property properties = 1 [(.google.api.field_behavior) = OPTIONAL]; - * + * repeated .google.cloud.securitycentermanagement.v1.CustomConfig.CustomOutputSpec.Property properties = 1 [(.google.api.field_behavior) = OPTIONAL]; */ - public com.google.cloud.securitycentermanagement.v1.CustomConfig.CustomOutputSpec.Property - .Builder - addPropertiesBuilder() { - return getPropertiesFieldBuilder() - .addBuilder( - com.google.cloud.securitycentermanagement.v1.CustomConfig.CustomOutputSpec.Property - .getDefaultInstance()); + public com.google.cloud.securitycentermanagement.v1.CustomConfig.CustomOutputSpec.Property.Builder addPropertiesBuilder() { + return getPropertiesFieldBuilder().addBuilder( + com.google.cloud.securitycentermanagement.v1.CustomConfig.CustomOutputSpec.Property.getDefaultInstance()); } /** - * - * *
        * Optional. A list of custom output properties to add to the finding.
        * 
* - * - * repeated .google.cloud.securitycentermanagement.v1.CustomConfig.CustomOutputSpec.Property properties = 1 [(.google.api.field_behavior) = OPTIONAL]; - * + * repeated .google.cloud.securitycentermanagement.v1.CustomConfig.CustomOutputSpec.Property properties = 1 [(.google.api.field_behavior) = OPTIONAL]; */ - public com.google.cloud.securitycentermanagement.v1.CustomConfig.CustomOutputSpec.Property - .Builder - addPropertiesBuilder(int index) { - return getPropertiesFieldBuilder() - .addBuilder( - index, - com.google.cloud.securitycentermanagement.v1.CustomConfig.CustomOutputSpec.Property - .getDefaultInstance()); + public com.google.cloud.securitycentermanagement.v1.CustomConfig.CustomOutputSpec.Property.Builder addPropertiesBuilder( + int index) { + return getPropertiesFieldBuilder().addBuilder( + index, com.google.cloud.securitycentermanagement.v1.CustomConfig.CustomOutputSpec.Property.getDefaultInstance()); } /** - * - * *
        * Optional. A list of custom output properties to add to the finding.
        * 
* - * - * repeated .google.cloud.securitycentermanagement.v1.CustomConfig.CustomOutputSpec.Property properties = 1 [(.google.api.field_behavior) = OPTIONAL]; - * + * repeated .google.cloud.securitycentermanagement.v1.CustomConfig.CustomOutputSpec.Property properties = 1 [(.google.api.field_behavior) = OPTIONAL]; */ - public java.util.List< - com.google.cloud.securitycentermanagement.v1.CustomConfig.CustomOutputSpec.Property - .Builder> - getPropertiesBuilderList() { + public java.util.List + getPropertiesBuilderList() { return getPropertiesFieldBuilder().getBuilderList(); } - private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.securitycentermanagement.v1.CustomConfig.CustomOutputSpec.Property, - com.google.cloud.securitycentermanagement.v1.CustomConfig.CustomOutputSpec.Property - .Builder, - com.google.cloud.securitycentermanagement.v1.CustomConfig.CustomOutputSpec - .PropertyOrBuilder> + com.google.cloud.securitycentermanagement.v1.CustomConfig.CustomOutputSpec.Property, com.google.cloud.securitycentermanagement.v1.CustomConfig.CustomOutputSpec.Property.Builder, com.google.cloud.securitycentermanagement.v1.CustomConfig.CustomOutputSpec.PropertyOrBuilder> getPropertiesFieldBuilder() { if (propertiesBuilder_ == null) { - propertiesBuilder_ = - new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.securitycentermanagement.v1.CustomConfig.CustomOutputSpec - .Property, - com.google.cloud.securitycentermanagement.v1.CustomConfig.CustomOutputSpec - .Property.Builder, - com.google.cloud.securitycentermanagement.v1.CustomConfig.CustomOutputSpec - .PropertyOrBuilder>( - properties_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean()); + propertiesBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.securitycentermanagement.v1.CustomConfig.CustomOutputSpec.Property, com.google.cloud.securitycentermanagement.v1.CustomConfig.CustomOutputSpec.Property.Builder, com.google.cloud.securitycentermanagement.v1.CustomConfig.CustomOutputSpec.PropertyOrBuilder>( + properties_, + ((bitField0_ & 0x00000001) != 0), + getParentForChildren(), + isClean()); properties_ = null; } return propertiesBuilder_; } - @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { @@ -2394,45 +1964,41 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.securitycentermanagement.v1.CustomConfig.CustomOutputSpec) } // @@protoc_insertion_point(class_scope:google.cloud.securitycentermanagement.v1.CustomConfig.CustomOutputSpec) - private static final com.google.cloud.securitycentermanagement.v1.CustomConfig.CustomOutputSpec - DEFAULT_INSTANCE; - + private static final com.google.cloud.securitycentermanagement.v1.CustomConfig.CustomOutputSpec DEFAULT_INSTANCE; static { - DEFAULT_INSTANCE = - new com.google.cloud.securitycentermanagement.v1.CustomConfig.CustomOutputSpec(); + DEFAULT_INSTANCE = new com.google.cloud.securitycentermanagement.v1.CustomConfig.CustomOutputSpec(); } - public static com.google.cloud.securitycentermanagement.v1.CustomConfig.CustomOutputSpec - getDefaultInstance() { + public static com.google.cloud.securitycentermanagement.v1.CustomConfig.CustomOutputSpec getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public CustomOutputSpec parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException() - .setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public CustomOutputSpec parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -2444,155 +2010,131 @@ public com.google.protobuf.Parser getParserForType() { } @java.lang.Override - public com.google.cloud.securitycentermanagement.v1.CustomConfig.CustomOutputSpec - getDefaultInstanceForType() { + public com.google.cloud.securitycentermanagement.v1.CustomConfig.CustomOutputSpec getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } - public interface ResourceSelectorOrBuilder - extends + public interface ResourceSelectorOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.securitycentermanagement.v1.CustomConfig.ResourceSelector) com.google.protobuf.MessageOrBuilder { /** - * - * *
      * Optional. The resource types to run the detector on.
      * 
* * repeated string resource_types = 1 [(.google.api.field_behavior) = OPTIONAL]; - * * @return A list containing the resourceTypes. */ - java.util.List getResourceTypesList(); + java.util.List + getResourceTypesList(); /** - * - * *
      * Optional. The resource types to run the detector on.
      * 
* * repeated string resource_types = 1 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The count of resourceTypes. */ int getResourceTypesCount(); /** - * - * *
      * Optional. The resource types to run the detector on.
      * 
* * repeated string resource_types = 1 [(.google.api.field_behavior) = OPTIONAL]; - * * @param index The index of the element to return. * @return The resourceTypes at the given index. */ java.lang.String getResourceTypes(int index); /** - * - * *
      * Optional. The resource types to run the detector on.
      * 
* * repeated string resource_types = 1 [(.google.api.field_behavior) = OPTIONAL]; - * * @param index The index of the value to return. * @return The bytes of the resourceTypes at the given index. */ - com.google.protobuf.ByteString getResourceTypesBytes(int index); + com.google.protobuf.ByteString + getResourceTypesBytes(int index); } /** - * - * *
    * Resource for selecting resource type.
    * 
* * Protobuf type {@code google.cloud.securitycentermanagement.v1.CustomConfig.ResourceSelector} */ - public static final class ResourceSelector extends com.google.protobuf.GeneratedMessageV3 - implements + public static final class ResourceSelector extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.securitycentermanagement.v1.CustomConfig.ResourceSelector) ResourceSelectorOrBuilder { - private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use ResourceSelector.newBuilder() to construct. private ResourceSelector(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private ResourceSelector() { - resourceTypes_ = com.google.protobuf.LazyStringArrayList.emptyList(); + resourceTypes_ = + 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 ResourceSelector(); } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.securitycentermanagement.v1.SecurityCenterManagementProto - .internal_static_google_cloud_securitycentermanagement_v1_CustomConfig_ResourceSelector_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.securitycentermanagement.v1.SecurityCenterManagementProto.internal_static_google_cloud_securitycentermanagement_v1_CustomConfig_ResourceSelector_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.securitycentermanagement.v1.SecurityCenterManagementProto - .internal_static_google_cloud_securitycentermanagement_v1_CustomConfig_ResourceSelector_fieldAccessorTable + return com.google.cloud.securitycentermanagement.v1.SecurityCenterManagementProto.internal_static_google_cloud_securitycentermanagement_v1_CustomConfig_ResourceSelector_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.securitycentermanagement.v1.CustomConfig.ResourceSelector.class, - com.google.cloud.securitycentermanagement.v1.CustomConfig.ResourceSelector.Builder - .class); + com.google.cloud.securitycentermanagement.v1.CustomConfig.ResourceSelector.class, com.google.cloud.securitycentermanagement.v1.CustomConfig.ResourceSelector.Builder.class); } public static final int RESOURCE_TYPES_FIELD_NUMBER = 1; - @SuppressWarnings("serial") private com.google.protobuf.LazyStringArrayList resourceTypes_ = com.google.protobuf.LazyStringArrayList.emptyList(); /** - * - * *
      * Optional. The resource types to run the detector on.
      * 
* * repeated string resource_types = 1 [(.google.api.field_behavior) = OPTIONAL]; - * * @return A list containing the resourceTypes. */ - public com.google.protobuf.ProtocolStringList getResourceTypesList() { + public com.google.protobuf.ProtocolStringList + getResourceTypesList() { return resourceTypes_; } /** - * - * *
      * Optional. The resource types to run the detector on.
      * 
* * repeated string resource_types = 1 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The count of resourceTypes. */ public int getResourceTypesCount() { return resourceTypes_.size(); } /** - * - * *
      * Optional. The resource types to run the detector on.
      * 
* * repeated string resource_types = 1 [(.google.api.field_behavior) = OPTIONAL]; - * * @param index The index of the element to return. * @return The resourceTypes at the given index. */ @@ -2600,23 +2142,20 @@ public java.lang.String getResourceTypes(int index) { return resourceTypes_.get(index); } /** - * - * *
      * Optional. The resource types to run the detector on.
      * 
* * repeated string resource_types = 1 [(.google.api.field_behavior) = OPTIONAL]; - * * @param index The index of the value to return. * @return The bytes of the resourceTypes at the given index. */ - public com.google.protobuf.ByteString getResourceTypesBytes(int index) { + public com.google.protobuf.ByteString + getResourceTypesBytes(int index) { return resourceTypes_.getByteString(index); } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -2628,7 +2167,8 @@ public final boolean isInitialized() { } @java.lang.Override - 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 < resourceTypes_.size(); i++) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, resourceTypes_.getRaw(i)); } @@ -2657,16 +2197,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.securitycentermanagement.v1.CustomConfig.ResourceSelector)) { + if (!(obj instanceof com.google.cloud.securitycentermanagement.v1.CustomConfig.ResourceSelector)) { return super.equals(obj); } - com.google.cloud.securitycentermanagement.v1.CustomConfig.ResourceSelector other = - (com.google.cloud.securitycentermanagement.v1.CustomConfig.ResourceSelector) obj; + com.google.cloud.securitycentermanagement.v1.CustomConfig.ResourceSelector other = (com.google.cloud.securitycentermanagement.v1.CustomConfig.ResourceSelector) obj; - if (!getResourceTypesList().equals(other.getResourceTypesList())) return false; + if (!getResourceTypesList() + .equals(other.getResourceTypesList())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -2687,101 +2226,90 @@ public int hashCode() { return hash; } - public static com.google.cloud.securitycentermanagement.v1.CustomConfig.ResourceSelector - parseFrom(java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.securitycentermanagement.v1.CustomConfig.ResourceSelector parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - - public static com.google.cloud.securitycentermanagement.v1.CustomConfig.ResourceSelector - parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.securitycentermanagement.v1.CustomConfig.ResourceSelector 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.securitycentermanagement.v1.CustomConfig.ResourceSelector - parseFrom(com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.securitycentermanagement.v1.CustomConfig.ResourceSelector parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - - public static com.google.cloud.securitycentermanagement.v1.CustomConfig.ResourceSelector - parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.securitycentermanagement.v1.CustomConfig.ResourceSelector parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.securitycentermanagement.v1.CustomConfig.ResourceSelector - parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.securitycentermanagement.v1.CustomConfig.ResourceSelector parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - - public static com.google.cloud.securitycentermanagement.v1.CustomConfig.ResourceSelector - parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.securitycentermanagement.v1.CustomConfig.ResourceSelector parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.securitycentermanagement.v1.CustomConfig.ResourceSelector - parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.securitycentermanagement.v1.CustomConfig.ResourceSelector parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - - public static com.google.cloud.securitycentermanagement.v1.CustomConfig.ResourceSelector - 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.securitycentermanagement.v1.CustomConfig.ResourceSelector 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.securitycentermanagement.v1.CustomConfig.ResourceSelector - parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.securitycentermanagement.v1.CustomConfig.ResourceSelector parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.securitycentermanagement.v1.CustomConfig.ResourceSelector - parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + public static com.google.cloud.securitycentermanagement.v1.CustomConfig.ResourceSelector parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.securitycentermanagement.v1.CustomConfig.ResourceSelector - parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.securitycentermanagement.v1.CustomConfig.ResourceSelector parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - - public static com.google.cloud.securitycentermanagement.v1.CustomConfig.ResourceSelector - 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.securitycentermanagement.v1.CustomConfig.ResourceSelector 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.securitycentermanagement.v1.CustomConfig.ResourceSelector prototype) { + public static Builder newBuilder(com.google.cloud.securitycentermanagement.v1.CustomConfig.ResourceSelector prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override @@ -2791,68 +2319,62 @@ protected Builder newBuilderForType( return builder; } /** - * - * *
      * Resource for selecting resource type.
      * 
* * Protobuf type {@code google.cloud.securitycentermanagement.v1.CustomConfig.ResourceSelector} */ - public static final class Builder - extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.securitycentermanagement.v1.CustomConfig.ResourceSelector) com.google.cloud.securitycentermanagement.v1.CustomConfig.ResourceSelectorOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.securitycentermanagement.v1.SecurityCenterManagementProto - .internal_static_google_cloud_securitycentermanagement_v1_CustomConfig_ResourceSelector_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.securitycentermanagement.v1.SecurityCenterManagementProto.internal_static_google_cloud_securitycentermanagement_v1_CustomConfig_ResourceSelector_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.securitycentermanagement.v1.SecurityCenterManagementProto - .internal_static_google_cloud_securitycentermanagement_v1_CustomConfig_ResourceSelector_fieldAccessorTable + return com.google.cloud.securitycentermanagement.v1.SecurityCenterManagementProto.internal_static_google_cloud_securitycentermanagement_v1_CustomConfig_ResourceSelector_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.securitycentermanagement.v1.CustomConfig.ResourceSelector.class, - com.google.cloud.securitycentermanagement.v1.CustomConfig.ResourceSelector.Builder - .class); + com.google.cloud.securitycentermanagement.v1.CustomConfig.ResourceSelector.class, com.google.cloud.securitycentermanagement.v1.CustomConfig.ResourceSelector.Builder.class); } - // Construct using - // com.google.cloud.securitycentermanagement.v1.CustomConfig.ResourceSelector.newBuilder() - private Builder() {} + // Construct using com.google.cloud.securitycentermanagement.v1.CustomConfig.ResourceSelector.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; - resourceTypes_ = com.google.protobuf.LazyStringArrayList.emptyList(); + resourceTypes_ = + com.google.protobuf.LazyStringArrayList.emptyList(); return this; } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.securitycentermanagement.v1.SecurityCenterManagementProto - .internal_static_google_cloud_securitycentermanagement_v1_CustomConfig_ResourceSelector_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.securitycentermanagement.v1.SecurityCenterManagementProto.internal_static_google_cloud_securitycentermanagement_v1_CustomConfig_ResourceSelector_descriptor; } @java.lang.Override - public com.google.cloud.securitycentermanagement.v1.CustomConfig.ResourceSelector - getDefaultInstanceForType() { - return com.google.cloud.securitycentermanagement.v1.CustomConfig.ResourceSelector - .getDefaultInstance(); + public com.google.cloud.securitycentermanagement.v1.CustomConfig.ResourceSelector getDefaultInstanceForType() { + return com.google.cloud.securitycentermanagement.v1.CustomConfig.ResourceSelector.getDefaultInstance(); } @java.lang.Override public com.google.cloud.securitycentermanagement.v1.CustomConfig.ResourceSelector build() { - com.google.cloud.securitycentermanagement.v1.CustomConfig.ResourceSelector result = - buildPartial(); + com.google.cloud.securitycentermanagement.v1.CustomConfig.ResourceSelector result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } @@ -2860,19 +2382,14 @@ public com.google.cloud.securitycentermanagement.v1.CustomConfig.ResourceSelecto } @java.lang.Override - public com.google.cloud.securitycentermanagement.v1.CustomConfig.ResourceSelector - buildPartial() { - com.google.cloud.securitycentermanagement.v1.CustomConfig.ResourceSelector result = - new com.google.cloud.securitycentermanagement.v1.CustomConfig.ResourceSelector(this); - if (bitField0_ != 0) { - buildPartial0(result); - } + public com.google.cloud.securitycentermanagement.v1.CustomConfig.ResourceSelector buildPartial() { + com.google.cloud.securitycentermanagement.v1.CustomConfig.ResourceSelector result = new com.google.cloud.securitycentermanagement.v1.CustomConfig.ResourceSelector(this); + if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } - private void buildPartial0( - com.google.cloud.securitycentermanagement.v1.CustomConfig.ResourceSelector result) { + private void buildPartial0(com.google.cloud.securitycentermanagement.v1.CustomConfig.ResourceSelector result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000001) != 0)) { resourceTypes_.makeImmutable(); @@ -2884,54 +2401,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.securitycentermanagement.v1.CustomConfig.ResourceSelector) { - return mergeFrom( - (com.google.cloud.securitycentermanagement.v1.CustomConfig.ResourceSelector) other); + if (other instanceof com.google.cloud.securitycentermanagement.v1.CustomConfig.ResourceSelector) { + return mergeFrom((com.google.cloud.securitycentermanagement.v1.CustomConfig.ResourceSelector)other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom( - com.google.cloud.securitycentermanagement.v1.CustomConfig.ResourceSelector other) { - if (other - == com.google.cloud.securitycentermanagement.v1.CustomConfig.ResourceSelector - .getDefaultInstance()) return this; + public Builder mergeFrom(com.google.cloud.securitycentermanagement.v1.CustomConfig.ResourceSelector other) { + if (other == com.google.cloud.securitycentermanagement.v1.CustomConfig.ResourceSelector.getDefaultInstance()) return this; if (!other.resourceTypes_.isEmpty()) { if (resourceTypes_.isEmpty()) { resourceTypes_ = other.resourceTypes_; @@ -2968,20 +2477,18 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: - { - java.lang.String s = input.readStringRequireUtf8(); - ensureResourceTypesIsMutable(); - resourceTypes_.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(); + ensureResourceTypesIsMutable(); + resourceTypes_.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) { @@ -2991,12 +2498,10 @@ public Builder mergeFrom( } // finally return this; } - private int bitField0_; private com.google.protobuf.LazyStringArrayList resourceTypes_ = com.google.protobuf.LazyStringArrayList.emptyList(); - private void ensureResourceTypesIsMutable() { if (!resourceTypes_.isModifiable()) { resourceTypes_ = new com.google.protobuf.LazyStringArrayList(resourceTypes_); @@ -3004,43 +2509,35 @@ private void ensureResourceTypesIsMutable() { bitField0_ |= 0x00000001; } /** - * - * *
        * Optional. The resource types to run the detector on.
        * 
* * repeated string resource_types = 1 [(.google.api.field_behavior) = OPTIONAL]; - * * @return A list containing the resourceTypes. */ - public com.google.protobuf.ProtocolStringList getResourceTypesList() { + public com.google.protobuf.ProtocolStringList + getResourceTypesList() { resourceTypes_.makeImmutable(); return resourceTypes_; } /** - * - * *
        * Optional. The resource types to run the detector on.
        * 
* * repeated string resource_types = 1 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The count of resourceTypes. */ public int getResourceTypesCount() { return resourceTypes_.size(); } /** - * - * *
        * Optional. The resource types to run the detector on.
        * 
* * repeated string resource_types = 1 [(.google.api.field_behavior) = OPTIONAL]; - * * @param index The index of the element to return. * @return The resourceTypes at the given index. */ @@ -3048,37 +2545,31 @@ public java.lang.String getResourceTypes(int index) { return resourceTypes_.get(index); } /** - * - * *
        * Optional. The resource types to run the detector on.
        * 
* * repeated string resource_types = 1 [(.google.api.field_behavior) = OPTIONAL]; - * * @param index The index of the value to return. * @return The bytes of the resourceTypes at the given index. */ - public com.google.protobuf.ByteString getResourceTypesBytes(int index) { + public com.google.protobuf.ByteString + getResourceTypesBytes(int index) { return resourceTypes_.getByteString(index); } /** - * - * *
        * Optional. The resource types to run the detector on.
        * 
* * repeated string resource_types = 1 [(.google.api.field_behavior) = OPTIONAL]; - * * @param index The index to set the value at. * @param value The resourceTypes to set. * @return This builder for chaining. */ - public Builder setResourceTypes(int index, java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setResourceTypes( + int index, java.lang.String value) { + if (value == null) { throw new NullPointerException(); } ensureResourceTypesIsMutable(); resourceTypes_.set(index, value); bitField0_ |= 0x00000001; @@ -3086,21 +2577,17 @@ public Builder setResourceTypes(int index, java.lang.String value) { return this; } /** - * - * *
        * Optional. The resource types to run the detector on.
        * 
* * repeated string resource_types = 1 [(.google.api.field_behavior) = OPTIONAL]; - * * @param value The resourceTypes to add. * @return This builder for chaining. */ - public Builder addResourceTypes(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder addResourceTypes( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } ensureResourceTypesIsMutable(); resourceTypes_.add(value); bitField0_ |= 0x00000001; @@ -3108,58 +2595,50 @@ public Builder addResourceTypes(java.lang.String value) { return this; } /** - * - * *
        * Optional. The resource types to run the detector on.
        * 
* * repeated string resource_types = 1 [(.google.api.field_behavior) = OPTIONAL]; - * * @param values The resourceTypes to add. * @return This builder for chaining. */ - public Builder addAllResourceTypes(java.lang.Iterable values) { + public Builder addAllResourceTypes( + java.lang.Iterable values) { ensureResourceTypesIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, resourceTypes_); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, resourceTypes_); bitField0_ |= 0x00000001; onChanged(); return this; } /** - * - * *
        * Optional. The resource types to run the detector on.
        * 
* * repeated string resource_types = 1 [(.google.api.field_behavior) = OPTIONAL]; - * * @return This builder for chaining. */ public Builder clearResourceTypes() { - resourceTypes_ = com.google.protobuf.LazyStringArrayList.emptyList(); - bitField0_ = (bitField0_ & ~0x00000001); - ; + resourceTypes_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001);; onChanged(); return this; } /** - * - * *
        * Optional. The resource types to run the detector on.
        * 
* * repeated string resource_types = 1 [(.google.api.field_behavior) = OPTIONAL]; - * * @param value The bytes of the resourceTypes to add. * @return This builder for chaining. */ - public Builder addResourceTypesBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder addResourceTypesBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); ensureResourceTypesIsMutable(); resourceTypes_.add(value); @@ -3167,7 +2646,6 @@ public Builder addResourceTypesBytes(com.google.protobuf.ByteString value) { onChanged(); return this; } - @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { @@ -3180,45 +2658,41 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.securitycentermanagement.v1.CustomConfig.ResourceSelector) } // @@protoc_insertion_point(class_scope:google.cloud.securitycentermanagement.v1.CustomConfig.ResourceSelector) - private static final com.google.cloud.securitycentermanagement.v1.CustomConfig.ResourceSelector - DEFAULT_INSTANCE; - + private static final com.google.cloud.securitycentermanagement.v1.CustomConfig.ResourceSelector DEFAULT_INSTANCE; static { - DEFAULT_INSTANCE = - new com.google.cloud.securitycentermanagement.v1.CustomConfig.ResourceSelector(); + DEFAULT_INSTANCE = new com.google.cloud.securitycentermanagement.v1.CustomConfig.ResourceSelector(); } - public static com.google.cloud.securitycentermanagement.v1.CustomConfig.ResourceSelector - getDefaultInstance() { + public static com.google.cloud.securitycentermanagement.v1.CustomConfig.ResourceSelector getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ResourceSelector parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException() - .setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ResourceSelector parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -3230,40 +2704,34 @@ public com.google.protobuf.Parser getParserForType() { } @java.lang.Override - public com.google.cloud.securitycentermanagement.v1.CustomConfig.ResourceSelector - getDefaultInstanceForType() { + public com.google.cloud.securitycentermanagement.v1.CustomConfig.ResourceSelector getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } public static final int PREDICATE_FIELD_NUMBER = 1; private com.google.type.Expr predicate_; /** - * - * *
    * Optional. The CEL expression to evaluate to produce findings. When the
    * expression evaluates to true against a resource, a finding is generated.
    * 
* * .google.type.Expr predicate = 1 [(.google.api.field_behavior) = OPTIONAL]; - * * @return Whether the predicate field is set. */ @java.lang.Override public boolean hasPredicate() { return predicate_ != null; } - /** - * - * + /** *
    * Optional. The CEL expression to evaluate to produce findings. When the
    * expression evaluates to true against a resource, a finding is generated.
    * 
* * .google.type.Expr predicate = 1 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The predicate. */ @java.lang.Override @@ -3271,8 +2739,6 @@ public com.google.type.Expr getPredicate() { return predicate_ == null ? com.google.type.Expr.getDefaultInstance() : predicate_; } /** - * - * *
    * Optional. The CEL expression to evaluate to produce findings. When the
    * expression evaluates to true against a resource, a finding is generated.
@@ -3288,16 +2754,11 @@ public com.google.type.ExprOrBuilder getPredicateOrBuilder() {
   public static final int CUSTOM_OUTPUT_FIELD_NUMBER = 2;
   private com.google.cloud.securitycentermanagement.v1.CustomConfig.CustomOutputSpec customOutput_;
   /**
-   *
-   *
    * 
    * Optional. Custom output properties.
    * 
* - * - * .google.cloud.securitycentermanagement.v1.CustomConfig.CustomOutputSpec custom_output = 2 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.cloud.securitycentermanagement.v1.CustomConfig.CustomOutputSpec custom_output = 2 [(.google.api.field_behavior) = OPTIONAL]; * @return Whether the customOutput field is set. */ @java.lang.Override @@ -3305,62 +2766,39 @@ public boolean hasCustomOutput() { return customOutput_ != null; } /** - * - * *
    * Optional. Custom output properties.
    * 
* - * - * .google.cloud.securitycentermanagement.v1.CustomConfig.CustomOutputSpec custom_output = 2 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.cloud.securitycentermanagement.v1.CustomConfig.CustomOutputSpec custom_output = 2 [(.google.api.field_behavior) = OPTIONAL]; * @return The customOutput. */ @java.lang.Override - public com.google.cloud.securitycentermanagement.v1.CustomConfig.CustomOutputSpec - getCustomOutput() { - return customOutput_ == null - ? com.google.cloud.securitycentermanagement.v1.CustomConfig.CustomOutputSpec - .getDefaultInstance() - : customOutput_; + public com.google.cloud.securitycentermanagement.v1.CustomConfig.CustomOutputSpec getCustomOutput() { + return customOutput_ == null ? com.google.cloud.securitycentermanagement.v1.CustomConfig.CustomOutputSpec.getDefaultInstance() : customOutput_; } /** - * - * *
    * Optional. Custom output properties.
    * 
* - * - * .google.cloud.securitycentermanagement.v1.CustomConfig.CustomOutputSpec custom_output = 2 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.securitycentermanagement.v1.CustomConfig.CustomOutputSpec custom_output = 2 [(.google.api.field_behavior) = OPTIONAL]; */ @java.lang.Override - public com.google.cloud.securitycentermanagement.v1.CustomConfig.CustomOutputSpecOrBuilder - getCustomOutputOrBuilder() { - return customOutput_ == null - ? com.google.cloud.securitycentermanagement.v1.CustomConfig.CustomOutputSpec - .getDefaultInstance() - : customOutput_; + public com.google.cloud.securitycentermanagement.v1.CustomConfig.CustomOutputSpecOrBuilder getCustomOutputOrBuilder() { + return customOutput_ == null ? com.google.cloud.securitycentermanagement.v1.CustomConfig.CustomOutputSpec.getDefaultInstance() : customOutput_; } public static final int RESOURCE_SELECTOR_FIELD_NUMBER = 3; - private com.google.cloud.securitycentermanagement.v1.CustomConfig.ResourceSelector - resourceSelector_; + private com.google.cloud.securitycentermanagement.v1.CustomConfig.ResourceSelector resourceSelector_; /** - * - * *
    * Optional. The CAI resource types that the custom module operates on (see
    * go/gcp-cai-doc/supported-asset-types). Each custom module can specify up to
    * 5 resource types.
    * 
* - * - * .google.cloud.securitycentermanagement.v1.CustomConfig.ResourceSelector resource_selector = 3 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.cloud.securitycentermanagement.v1.CustomConfig.ResourceSelector resource_selector = 3 [(.google.api.field_behavior) = OPTIONAL]; * @return Whether the resourceSelector field is set. */ @java.lang.Override @@ -3368,98 +2806,63 @@ public boolean hasResourceSelector() { return resourceSelector_ != null; } /** - * - * *
    * Optional. The CAI resource types that the custom module operates on (see
    * go/gcp-cai-doc/supported-asset-types). Each custom module can specify up to
    * 5 resource types.
    * 
* - * - * .google.cloud.securitycentermanagement.v1.CustomConfig.ResourceSelector resource_selector = 3 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.cloud.securitycentermanagement.v1.CustomConfig.ResourceSelector resource_selector = 3 [(.google.api.field_behavior) = OPTIONAL]; * @return The resourceSelector. */ @java.lang.Override - public com.google.cloud.securitycentermanagement.v1.CustomConfig.ResourceSelector - getResourceSelector() { - return resourceSelector_ == null - ? com.google.cloud.securitycentermanagement.v1.CustomConfig.ResourceSelector - .getDefaultInstance() - : resourceSelector_; + public com.google.cloud.securitycentermanagement.v1.CustomConfig.ResourceSelector getResourceSelector() { + return resourceSelector_ == null ? com.google.cloud.securitycentermanagement.v1.CustomConfig.ResourceSelector.getDefaultInstance() : resourceSelector_; } /** - * - * *
    * Optional. The CAI resource types that the custom module operates on (see
    * go/gcp-cai-doc/supported-asset-types). Each custom module can specify up to
    * 5 resource types.
    * 
* - * - * .google.cloud.securitycentermanagement.v1.CustomConfig.ResourceSelector resource_selector = 3 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.securitycentermanagement.v1.CustomConfig.ResourceSelector resource_selector = 3 [(.google.api.field_behavior) = OPTIONAL]; */ @java.lang.Override - public com.google.cloud.securitycentermanagement.v1.CustomConfig.ResourceSelectorOrBuilder - getResourceSelectorOrBuilder() { - return resourceSelector_ == null - ? com.google.cloud.securitycentermanagement.v1.CustomConfig.ResourceSelector - .getDefaultInstance() - : resourceSelector_; + public com.google.cloud.securitycentermanagement.v1.CustomConfig.ResourceSelectorOrBuilder getResourceSelectorOrBuilder() { + return resourceSelector_ == null ? com.google.cloud.securitycentermanagement.v1.CustomConfig.ResourceSelector.getDefaultInstance() : resourceSelector_; } public static final int SEVERITY_FIELD_NUMBER = 4; private int severity_ = 0; /** - * - * *
    * Optional. The severity to assign to findings generated by the module.
    * 
* - * - * .google.cloud.securitycentermanagement.v1.CustomConfig.Severity severity = 4 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.cloud.securitycentermanagement.v1.CustomConfig.Severity severity = 4 [(.google.api.field_behavior) = OPTIONAL]; * @return The enum numeric value on the wire for severity. */ - @java.lang.Override - public int getSeverityValue() { + @java.lang.Override public int getSeverityValue() { return severity_; } /** - * - * *
    * Optional. The severity to assign to findings generated by the module.
    * 
* - * - * .google.cloud.securitycentermanagement.v1.CustomConfig.Severity severity = 4 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.cloud.securitycentermanagement.v1.CustomConfig.Severity severity = 4 [(.google.api.field_behavior) = OPTIONAL]; * @return The severity. */ - @java.lang.Override - public com.google.cloud.securitycentermanagement.v1.CustomConfig.Severity getSeverity() { - com.google.cloud.securitycentermanagement.v1.CustomConfig.Severity result = - com.google.cloud.securitycentermanagement.v1.CustomConfig.Severity.forNumber(severity_); - return result == null - ? com.google.cloud.securitycentermanagement.v1.CustomConfig.Severity.UNRECOGNIZED - : result; + @java.lang.Override public com.google.cloud.securitycentermanagement.v1.CustomConfig.Severity getSeverity() { + com.google.cloud.securitycentermanagement.v1.CustomConfig.Severity result = com.google.cloud.securitycentermanagement.v1.CustomConfig.Severity.forNumber(severity_); + return result == null ? com.google.cloud.securitycentermanagement.v1.CustomConfig.Severity.UNRECOGNIZED : result; } public static final int DESCRIPTION_FIELD_NUMBER = 5; - @SuppressWarnings("serial") private volatile java.lang.Object description_ = ""; /** - * - * *
    * Optional. Text that describes the vulnerability or misconfiguration that
    * the custom module detects. This explanation is returned with each finding
@@ -3468,7 +2871,6 @@ public com.google.cloud.securitycentermanagement.v1.CustomConfig.Severity getSev
    * 
* * string description = 5 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The description. */ @java.lang.Override @@ -3477,15 +2879,14 @@ 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; } } /** - * - * *
    * Optional. Text that describes the vulnerability or misconfiguration that
    * the custom module detects. This explanation is returned with each finding
@@ -3494,15 +2895,16 @@ public java.lang.String getDescription() {
    * 
* * string description = 5 [(.google.api.field_behavior) = OPTIONAL]; - * * @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 { @@ -3511,12 +2913,9 @@ public com.google.protobuf.ByteString getDescriptionBytes() { } public static final int RECOMMENDATION_FIELD_NUMBER = 6; - @SuppressWarnings("serial") private volatile java.lang.Object recommendation_ = ""; /** - * - * *
    * Optional. An explanation of the recommended steps that security teams can
    * take to resolve the detected issue. This explanation is returned with each
@@ -3525,7 +2924,6 @@ public com.google.protobuf.ByteString getDescriptionBytes() {
    * 
* * string recommendation = 6 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The recommendation. */ @java.lang.Override @@ -3534,15 +2932,14 @@ public java.lang.String getRecommendation() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); recommendation_ = s; return s; } } /** - * - * *
    * Optional. An explanation of the recommended steps that security teams can
    * take to resolve the detected issue. This explanation is returned with each
@@ -3551,15 +2948,16 @@ public java.lang.String getRecommendation() {
    * 
* * string recommendation = 6 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The bytes for recommendation. */ @java.lang.Override - public com.google.protobuf.ByteString getRecommendationBytes() { + public com.google.protobuf.ByteString + getRecommendationBytes() { java.lang.Object ref = recommendation_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); recommendation_ = b; return b; } else { @@ -3568,7 +2966,6 @@ public com.google.protobuf.ByteString getRecommendationBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -3580,7 +2977,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (predicate_ != null) { output.writeMessage(1, getPredicate()); } @@ -3590,9 +2988,7 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (resourceSelector_ != null) { output.writeMessage(3, getResourceSelector()); } - if (severity_ - != com.google.cloud.securitycentermanagement.v1.CustomConfig.Severity.SEVERITY_UNSPECIFIED - .getNumber()) { + if (severity_ != com.google.cloud.securitycentermanagement.v1.CustomConfig.Severity.SEVERITY_UNSPECIFIED.getNumber()) { output.writeEnum(4, severity_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(description_)) { @@ -3611,18 +3007,20 @@ public int getSerializedSize() { size = 0; if (predicate_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getPredicate()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, getPredicate()); } if (customOutput_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getCustomOutput()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(2, getCustomOutput()); } if (resourceSelector_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, getResourceSelector()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(3, getResourceSelector()); } - if (severity_ - != com.google.cloud.securitycentermanagement.v1.CustomConfig.Severity.SEVERITY_UNSPECIFIED - .getNumber()) { - size += com.google.protobuf.CodedOutputStream.computeEnumSize(4, severity_); + if (severity_ != com.google.cloud.securitycentermanagement.v1.CustomConfig.Severity.SEVERITY_UNSPECIFIED.getNumber()) { + size += com.google.protobuf.CodedOutputStream + .computeEnumSize(4, severity_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(description_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, description_); @@ -3638,29 +3036,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.securitycentermanagement.v1.CustomConfig)) { return super.equals(obj); } - com.google.cloud.securitycentermanagement.v1.CustomConfig other = - (com.google.cloud.securitycentermanagement.v1.CustomConfig) obj; + com.google.cloud.securitycentermanagement.v1.CustomConfig other = (com.google.cloud.securitycentermanagement.v1.CustomConfig) obj; if (hasPredicate() != other.hasPredicate()) return false; if (hasPredicate()) { - if (!getPredicate().equals(other.getPredicate())) return false; + if (!getPredicate() + .equals(other.getPredicate())) return false; } if (hasCustomOutput() != other.hasCustomOutput()) return false; if (hasCustomOutput()) { - if (!getCustomOutput().equals(other.getCustomOutput())) return false; + if (!getCustomOutput() + .equals(other.getCustomOutput())) return false; } if (hasResourceSelector() != other.hasResourceSelector()) return false; if (hasResourceSelector()) { - if (!getResourceSelector().equals(other.getResourceSelector())) return false; + if (!getResourceSelector() + .equals(other.getResourceSelector())) return false; } if (severity_ != other.severity_) return false; - if (!getDescription().equals(other.getDescription())) return false; - if (!getRecommendation().equals(other.getRecommendation())) return false; + if (!getDescription() + .equals(other.getDescription())) return false; + if (!getRecommendation() + .equals(other.getRecommendation())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -3696,104 +3098,98 @@ public int hashCode() { } public static com.google.cloud.securitycentermanagement.v1.CustomConfig parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.securitycentermanagement.v1.CustomConfig parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.securitycentermanagement.v1.CustomConfig parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.securitycentermanagement.v1.CustomConfig parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.securitycentermanagement.v1.CustomConfig parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.securitycentermanagement.v1.CustomConfig parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.securitycentermanagement.v1.CustomConfig parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.securitycentermanagement.v1.CustomConfig parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.securitycentermanagement.v1.CustomConfig parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.securitycentermanagement.v1.CustomConfig parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.securitycentermanagement.v1.CustomConfig parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } public static com.google.cloud.securitycentermanagement.v1.CustomConfig parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.securitycentermanagement.v1.CustomConfig parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.securitycentermanagement.v1.CustomConfig parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.cloud.securitycentermanagement.v1.CustomConfig prototype) { + public static Builder newBuilder(com.google.cloud.securitycentermanagement.v1.CustomConfig prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected 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 the properties in a custom module configuration for Security
    * Health Analytics. Use the custom module configuration to create custom
@@ -3802,32 +3198,33 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build
    *
    * Protobuf type {@code google.cloud.securitycentermanagement.v1.CustomConfig}
    */
-  public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
-      implements
+  public static final class Builder extends
+      com.google.protobuf.GeneratedMessageV3.Builder implements
       // @@protoc_insertion_point(builder_implements:google.cloud.securitycentermanagement.v1.CustomConfig)
       com.google.cloud.securitycentermanagement.v1.CustomConfigOrBuilder {
-    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-      return com.google.cloud.securitycentermanagement.v1.SecurityCenterManagementProto
-          .internal_static_google_cloud_securitycentermanagement_v1_CustomConfig_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor
+        getDescriptor() {
+      return com.google.cloud.securitycentermanagement.v1.SecurityCenterManagementProto.internal_static_google_cloud_securitycentermanagement_v1_CustomConfig_descriptor;
     }
 
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.cloud.securitycentermanagement.v1.SecurityCenterManagementProto
-          .internal_static_google_cloud_securitycentermanagement_v1_CustomConfig_fieldAccessorTable
+      return com.google.cloud.securitycentermanagement.v1.SecurityCenterManagementProto.internal_static_google_cloud_securitycentermanagement_v1_CustomConfig_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.cloud.securitycentermanagement.v1.CustomConfig.class,
-              com.google.cloud.securitycentermanagement.v1.CustomConfig.Builder.class);
+              com.google.cloud.securitycentermanagement.v1.CustomConfig.class, com.google.cloud.securitycentermanagement.v1.CustomConfig.Builder.class);
     }
 
     // Construct using com.google.cloud.securitycentermanagement.v1.CustomConfig.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();
@@ -3854,9 +3251,9 @@ public Builder clear() {
     }
 
     @java.lang.Override
-    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
-      return com.google.cloud.securitycentermanagement.v1.SecurityCenterManagementProto
-          .internal_static_google_cloud_securitycentermanagement_v1_CustomConfig_descriptor;
+    public com.google.protobuf.Descriptors.Descriptor
+        getDescriptorForType() {
+      return com.google.cloud.securitycentermanagement.v1.SecurityCenterManagementProto.internal_static_google_cloud_securitycentermanagement_v1_CustomConfig_descriptor;
     }
 
     @java.lang.Override
@@ -3875,11 +3272,8 @@ public com.google.cloud.securitycentermanagement.v1.CustomConfig build() {
 
     @java.lang.Override
     public com.google.cloud.securitycentermanagement.v1.CustomConfig buildPartial() {
-      com.google.cloud.securitycentermanagement.v1.CustomConfig result =
-          new com.google.cloud.securitycentermanagement.v1.CustomConfig(this);
-      if (bitField0_ != 0) {
-        buildPartial0(result);
-      }
+      com.google.cloud.securitycentermanagement.v1.CustomConfig result = new com.google.cloud.securitycentermanagement.v1.CustomConfig(this);
+      if (bitField0_ != 0) { buildPartial0(result); }
       onBuilt();
       return result;
     }
@@ -3887,15 +3281,19 @@ public com.google.cloud.securitycentermanagement.v1.CustomConfig buildPartial()
     private void buildPartial0(com.google.cloud.securitycentermanagement.v1.CustomConfig result) {
       int from_bitField0_ = bitField0_;
       if (((from_bitField0_ & 0x00000001) != 0)) {
-        result.predicate_ = predicateBuilder_ == null ? predicate_ : predicateBuilder_.build();
+        result.predicate_ = predicateBuilder_ == null
+            ? predicate_
+            : predicateBuilder_.build();
       }
       if (((from_bitField0_ & 0x00000002) != 0)) {
-        result.customOutput_ =
-            customOutputBuilder_ == null ? customOutput_ : customOutputBuilder_.build();
+        result.customOutput_ = customOutputBuilder_ == null
+            ? customOutput_
+            : customOutputBuilder_.build();
       }
       if (((from_bitField0_ & 0x00000004) != 0)) {
-        result.resourceSelector_ =
-            resourceSelectorBuilder_ == null ? resourceSelector_ : resourceSelectorBuilder_.build();
+        result.resourceSelector_ = resourceSelectorBuilder_ == null
+            ? resourceSelector_
+            : resourceSelectorBuilder_.build();
       }
       if (((from_bitField0_ & 0x00000008) != 0)) {
         result.severity_ = severity_;
@@ -3912,39 +3310,38 @@ private void buildPartial0(com.google.cloud.securitycentermanagement.v1.CustomCo
     public Builder clone() {
       return super.clone();
     }
-
     @java.lang.Override
     public Builder setField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field,
+        java.lang.Object value) {
       return super.setField(field, value);
     }
-
     @java.lang.Override
-    public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
+    public Builder clearField(
+        com.google.protobuf.Descriptors.FieldDescriptor field) {
       return super.clearField(field);
     }
-
     @java.lang.Override
-    public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
+    public Builder clearOneof(
+        com.google.protobuf.Descriptors.OneofDescriptor oneof) {
       return super.clearOneof(oneof);
     }
-
     @java.lang.Override
     public Builder setRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field,
+        int index, java.lang.Object value) {
       return super.setRepeatedField(field, index, value);
     }
-
     @java.lang.Override
     public Builder addRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field,
+        java.lang.Object value) {
       return super.addRepeatedField(field, value);
     }
-
     @java.lang.Override
     public Builder mergeFrom(com.google.protobuf.Message other) {
       if (other instanceof com.google.cloud.securitycentermanagement.v1.CustomConfig) {
-        return mergeFrom((com.google.cloud.securitycentermanagement.v1.CustomConfig) other);
+        return mergeFrom((com.google.cloud.securitycentermanagement.v1.CustomConfig)other);
       } else {
         super.mergeFrom(other);
         return this;
@@ -3952,8 +3349,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) {
     }
 
     public Builder mergeFrom(com.google.cloud.securitycentermanagement.v1.CustomConfig other) {
-      if (other == com.google.cloud.securitycentermanagement.v1.CustomConfig.getDefaultInstance())
-        return this;
+      if (other == com.google.cloud.securitycentermanagement.v1.CustomConfig.getDefaultInstance()) return this;
       if (other.hasPredicate()) {
         mergePredicate(other.getPredicate());
       }
@@ -4002,50 +3398,48 @@ public Builder mergeFrom(
             case 0:
               done = true;
               break;
-            case 10:
-              {
-                input.readMessage(getPredicateFieldBuilder().getBuilder(), extensionRegistry);
-                bitField0_ |= 0x00000001;
-                break;
-              } // case 10
-            case 18:
-              {
-                input.readMessage(getCustomOutputFieldBuilder().getBuilder(), extensionRegistry);
-                bitField0_ |= 0x00000002;
-                break;
-              } // case 18
-            case 26:
-              {
-                input.readMessage(
-                    getResourceSelectorFieldBuilder().getBuilder(), extensionRegistry);
-                bitField0_ |= 0x00000004;
-                break;
-              } // case 26
-            case 32:
-              {
-                severity_ = input.readEnum();
-                bitField0_ |= 0x00000008;
-                break;
-              } // case 32
-            case 42:
-              {
-                description_ = input.readStringRequireUtf8();
-                bitField0_ |= 0x00000010;
-                break;
-              } // case 42
-            case 50:
-              {
-                recommendation_ = input.readStringRequireUtf8();
-                bitField0_ |= 0x00000020;
-                break;
-              } // case 50
-            default:
-              {
-                if (!super.parseUnknownField(input, extensionRegistry, tag)) {
-                  done = true; // was an endgroup tag
-                }
-                break;
-              } // default:
+            case 10: {
+              input.readMessage(
+                  getPredicateFieldBuilder().getBuilder(),
+                  extensionRegistry);
+              bitField0_ |= 0x00000001;
+              break;
+            } // case 10
+            case 18: {
+              input.readMessage(
+                  getCustomOutputFieldBuilder().getBuilder(),
+                  extensionRegistry);
+              bitField0_ |= 0x00000002;
+              break;
+            } // case 18
+            case 26: {
+              input.readMessage(
+                  getResourceSelectorFieldBuilder().getBuilder(),
+                  extensionRegistry);
+              bitField0_ |= 0x00000004;
+              break;
+            } // case 26
+            case 32: {
+              severity_ = input.readEnum();
+              bitField0_ |= 0x00000008;
+              break;
+            } // case 32
+            case 42: {
+              description_ = input.readStringRequireUtf8();
+              bitField0_ |= 0x00000010;
+              break;
+            } // case 42
+            case 50: {
+              recommendation_ = 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) {
@@ -4055,38 +3449,30 @@ public Builder mergeFrom(
       } // finally
       return this;
     }
-
     private int bitField0_;
 
     private com.google.type.Expr predicate_;
     private com.google.protobuf.SingleFieldBuilderV3<
-            com.google.type.Expr, com.google.type.Expr.Builder, com.google.type.ExprOrBuilder>
-        predicateBuilder_;
+        com.google.type.Expr, com.google.type.Expr.Builder, com.google.type.ExprOrBuilder> predicateBuilder_;
     /**
-     *
-     *
      * 
      * Optional. The CEL expression to evaluate to produce findings. When the
      * expression evaluates to true against a resource, a finding is generated.
      * 
* * .google.type.Expr predicate = 1 [(.google.api.field_behavior) = OPTIONAL]; - * * @return Whether the predicate field is set. */ public boolean hasPredicate() { return ((bitField0_ & 0x00000001) != 0); } /** - * - * *
      * Optional. The CEL expression to evaluate to produce findings. When the
      * expression evaluates to true against a resource, a finding is generated.
      * 
* * .google.type.Expr predicate = 1 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The predicate. */ public com.google.type.Expr getPredicate() { @@ -4097,8 +3483,6 @@ public com.google.type.Expr getPredicate() { } } /** - * - * *
      * Optional. The CEL expression to evaluate to produce findings. When the
      * expression evaluates to true against a resource, a finding is generated.
@@ -4120,8 +3504,6 @@ public Builder setPredicate(com.google.type.Expr value) {
       return this;
     }
     /**
-     *
-     *
      * 
      * Optional. The CEL expression to evaluate to produce findings. When the
      * expression evaluates to true against a resource, a finding is generated.
@@ -4129,7 +3511,8 @@ public Builder setPredicate(com.google.type.Expr value) {
      *
      * .google.type.Expr predicate = 1 [(.google.api.field_behavior) = OPTIONAL];
      */
-    public Builder setPredicate(com.google.type.Expr.Builder builderForValue) {
+    public Builder setPredicate(
+        com.google.type.Expr.Builder builderForValue) {
       if (predicateBuilder_ == null) {
         predicate_ = builderForValue.build();
       } else {
@@ -4140,8 +3523,6 @@ public Builder setPredicate(com.google.type.Expr.Builder builderForValue) {
       return this;
     }
     /**
-     *
-     *
      * 
      * Optional. The CEL expression to evaluate to produce findings. When the
      * expression evaluates to true against a resource, a finding is generated.
@@ -4151,9 +3532,9 @@ public Builder setPredicate(com.google.type.Expr.Builder builderForValue) {
      */
     public Builder mergePredicate(com.google.type.Expr value) {
       if (predicateBuilder_ == null) {
-        if (((bitField0_ & 0x00000001) != 0)
-            && predicate_ != null
-            && predicate_ != com.google.type.Expr.getDefaultInstance()) {
+        if (((bitField0_ & 0x00000001) != 0) &&
+          predicate_ != null &&
+          predicate_ != com.google.type.Expr.getDefaultInstance()) {
           getPredicateBuilder().mergeFrom(value);
         } else {
           predicate_ = value;
@@ -4166,8 +3547,6 @@ public Builder mergePredicate(com.google.type.Expr value) {
       return this;
     }
     /**
-     *
-     *
      * 
      * Optional. The CEL expression to evaluate to produce findings. When the
      * expression evaluates to true against a resource, a finding is generated.
@@ -4186,8 +3565,6 @@ public Builder clearPredicate() {
       return this;
     }
     /**
-     *
-     *
      * 
      * Optional. The CEL expression to evaluate to produce findings. When the
      * expression evaluates to true against a resource, a finding is generated.
@@ -4201,8 +3578,6 @@ public com.google.type.Expr.Builder getPredicateBuilder() {
       return getPredicateFieldBuilder().getBuilder();
     }
     /**
-     *
-     *
      * 
      * Optional. The CEL expression to evaluate to produce findings. When the
      * expression evaluates to true against a resource, a finding is generated.
@@ -4214,12 +3589,11 @@ public com.google.type.ExprOrBuilder getPredicateOrBuilder() {
       if (predicateBuilder_ != null) {
         return predicateBuilder_.getMessageOrBuilder();
       } else {
-        return predicate_ == null ? com.google.type.Expr.getDefaultInstance() : predicate_;
+        return predicate_ == null ?
+            com.google.type.Expr.getDefaultInstance() : predicate_;
       }
     }
     /**
-     *
-     *
      * 
      * Optional. The CEL expression to evaluate to produce findings. When the
      * expression evaluates to true against a resource, a finding is generated.
@@ -4228,78 +3602,56 @@ public com.google.type.ExprOrBuilder getPredicateOrBuilder() {
      * .google.type.Expr predicate = 1 [(.google.api.field_behavior) = OPTIONAL];
      */
     private com.google.protobuf.SingleFieldBuilderV3<
-            com.google.type.Expr, com.google.type.Expr.Builder, com.google.type.ExprOrBuilder>
+        com.google.type.Expr, com.google.type.Expr.Builder, com.google.type.ExprOrBuilder> 
         getPredicateFieldBuilder() {
       if (predicateBuilder_ == null) {
-        predicateBuilder_ =
-            new com.google.protobuf.SingleFieldBuilderV3<
-                com.google.type.Expr, com.google.type.Expr.Builder, com.google.type.ExprOrBuilder>(
-                getPredicate(), getParentForChildren(), isClean());
+        predicateBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
+            com.google.type.Expr, com.google.type.Expr.Builder, com.google.type.ExprOrBuilder>(
+                getPredicate(),
+                getParentForChildren(),
+                isClean());
         predicate_ = null;
       }
       return predicateBuilder_;
     }
 
-    private com.google.cloud.securitycentermanagement.v1.CustomConfig.CustomOutputSpec
-        customOutput_;
+    private com.google.cloud.securitycentermanagement.v1.CustomConfig.CustomOutputSpec customOutput_;
     private com.google.protobuf.SingleFieldBuilderV3<
-            com.google.cloud.securitycentermanagement.v1.CustomConfig.CustomOutputSpec,
-            com.google.cloud.securitycentermanagement.v1.CustomConfig.CustomOutputSpec.Builder,
-            com.google.cloud.securitycentermanagement.v1.CustomConfig.CustomOutputSpecOrBuilder>
-        customOutputBuilder_;
+        com.google.cloud.securitycentermanagement.v1.CustomConfig.CustomOutputSpec, com.google.cloud.securitycentermanagement.v1.CustomConfig.CustomOutputSpec.Builder, com.google.cloud.securitycentermanagement.v1.CustomConfig.CustomOutputSpecOrBuilder> customOutputBuilder_;
     /**
-     *
-     *
      * 
      * Optional. Custom output properties.
      * 
* - * - * .google.cloud.securitycentermanagement.v1.CustomConfig.CustomOutputSpec custom_output = 2 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.cloud.securitycentermanagement.v1.CustomConfig.CustomOutputSpec custom_output = 2 [(.google.api.field_behavior) = OPTIONAL]; * @return Whether the customOutput field is set. */ public boolean hasCustomOutput() { return ((bitField0_ & 0x00000002) != 0); } /** - * - * *
      * Optional. Custom output properties.
      * 
* - * - * .google.cloud.securitycentermanagement.v1.CustomConfig.CustomOutputSpec custom_output = 2 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.cloud.securitycentermanagement.v1.CustomConfig.CustomOutputSpec custom_output = 2 [(.google.api.field_behavior) = OPTIONAL]; * @return The customOutput. */ - public com.google.cloud.securitycentermanagement.v1.CustomConfig.CustomOutputSpec - getCustomOutput() { + public com.google.cloud.securitycentermanagement.v1.CustomConfig.CustomOutputSpec getCustomOutput() { if (customOutputBuilder_ == null) { - return customOutput_ == null - ? com.google.cloud.securitycentermanagement.v1.CustomConfig.CustomOutputSpec - .getDefaultInstance() - : customOutput_; + return customOutput_ == null ? com.google.cloud.securitycentermanagement.v1.CustomConfig.CustomOutputSpec.getDefaultInstance() : customOutput_; } else { return customOutputBuilder_.getMessage(); } } /** - * - * *
      * Optional. Custom output properties.
      * 
* - * - * .google.cloud.securitycentermanagement.v1.CustomConfig.CustomOutputSpec custom_output = 2 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.securitycentermanagement.v1.CustomConfig.CustomOutputSpec custom_output = 2 [(.google.api.field_behavior) = OPTIONAL]; */ - public Builder setCustomOutput( - com.google.cloud.securitycentermanagement.v1.CustomConfig.CustomOutputSpec value) { + public Builder setCustomOutput(com.google.cloud.securitycentermanagement.v1.CustomConfig.CustomOutputSpec value) { if (customOutputBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -4313,19 +3665,14 @@ public Builder setCustomOutput( return this; } /** - * - * *
      * Optional. Custom output properties.
      * 
* - * - * .google.cloud.securitycentermanagement.v1.CustomConfig.CustomOutputSpec custom_output = 2 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.securitycentermanagement.v1.CustomConfig.CustomOutputSpec custom_output = 2 [(.google.api.field_behavior) = OPTIONAL]; */ public Builder setCustomOutput( - com.google.cloud.securitycentermanagement.v1.CustomConfig.CustomOutputSpec.Builder - builderForValue) { + com.google.cloud.securitycentermanagement.v1.CustomConfig.CustomOutputSpec.Builder builderForValue) { if (customOutputBuilder_ == null) { customOutput_ = builderForValue.build(); } else { @@ -4336,24 +3683,17 @@ public Builder setCustomOutput( return this; } /** - * - * *
      * Optional. Custom output properties.
      * 
* - * - * .google.cloud.securitycentermanagement.v1.CustomConfig.CustomOutputSpec custom_output = 2 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.securitycentermanagement.v1.CustomConfig.CustomOutputSpec custom_output = 2 [(.google.api.field_behavior) = OPTIONAL]; */ - public Builder mergeCustomOutput( - com.google.cloud.securitycentermanagement.v1.CustomConfig.CustomOutputSpec value) { + public Builder mergeCustomOutput(com.google.cloud.securitycentermanagement.v1.CustomConfig.CustomOutputSpec value) { if (customOutputBuilder_ == null) { - if (((bitField0_ & 0x00000002) != 0) - && customOutput_ != null - && customOutput_ - != com.google.cloud.securitycentermanagement.v1.CustomConfig.CustomOutputSpec - .getDefaultInstance()) { + if (((bitField0_ & 0x00000002) != 0) && + customOutput_ != null && + customOutput_ != com.google.cloud.securitycentermanagement.v1.CustomConfig.CustomOutputSpec.getDefaultInstance()) { getCustomOutputBuilder().mergeFrom(value); } else { customOutput_ = value; @@ -4366,15 +3706,11 @@ public Builder mergeCustomOutput( return this; } /** - * - * *
      * Optional. Custom output properties.
      * 
* - * - * .google.cloud.securitycentermanagement.v1.CustomConfig.CustomOutputSpec custom_output = 2 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.securitycentermanagement.v1.CustomConfig.CustomOutputSpec custom_output = 2 [(.google.api.field_behavior) = OPTIONAL]; */ public Builder clearCustomOutput() { bitField0_ = (bitField0_ & ~0x00000002); @@ -4387,139 +3723,96 @@ public Builder clearCustomOutput() { return this; } /** - * - * *
      * Optional. Custom output properties.
      * 
* - * - * .google.cloud.securitycentermanagement.v1.CustomConfig.CustomOutputSpec custom_output = 2 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.securitycentermanagement.v1.CustomConfig.CustomOutputSpec custom_output = 2 [(.google.api.field_behavior) = OPTIONAL]; */ - public com.google.cloud.securitycentermanagement.v1.CustomConfig.CustomOutputSpec.Builder - getCustomOutputBuilder() { + public com.google.cloud.securitycentermanagement.v1.CustomConfig.CustomOutputSpec.Builder getCustomOutputBuilder() { bitField0_ |= 0x00000002; onChanged(); return getCustomOutputFieldBuilder().getBuilder(); } /** - * - * *
      * Optional. Custom output properties.
      * 
* - * - * .google.cloud.securitycentermanagement.v1.CustomConfig.CustomOutputSpec custom_output = 2 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.securitycentermanagement.v1.CustomConfig.CustomOutputSpec custom_output = 2 [(.google.api.field_behavior) = OPTIONAL]; */ - public com.google.cloud.securitycentermanagement.v1.CustomConfig.CustomOutputSpecOrBuilder - getCustomOutputOrBuilder() { + public com.google.cloud.securitycentermanagement.v1.CustomConfig.CustomOutputSpecOrBuilder getCustomOutputOrBuilder() { if (customOutputBuilder_ != null) { return customOutputBuilder_.getMessageOrBuilder(); } else { - return customOutput_ == null - ? com.google.cloud.securitycentermanagement.v1.CustomConfig.CustomOutputSpec - .getDefaultInstance() - : customOutput_; + return customOutput_ == null ? + com.google.cloud.securitycentermanagement.v1.CustomConfig.CustomOutputSpec.getDefaultInstance() : customOutput_; } } /** - * - * *
      * Optional. Custom output properties.
      * 
* - * - * .google.cloud.securitycentermanagement.v1.CustomConfig.CustomOutputSpec custom_output = 2 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.securitycentermanagement.v1.CustomConfig.CustomOutputSpec custom_output = 2 [(.google.api.field_behavior) = OPTIONAL]; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.securitycentermanagement.v1.CustomConfig.CustomOutputSpec, - com.google.cloud.securitycentermanagement.v1.CustomConfig.CustomOutputSpec.Builder, - com.google.cloud.securitycentermanagement.v1.CustomConfig.CustomOutputSpecOrBuilder> + com.google.cloud.securitycentermanagement.v1.CustomConfig.CustomOutputSpec, com.google.cloud.securitycentermanagement.v1.CustomConfig.CustomOutputSpec.Builder, com.google.cloud.securitycentermanagement.v1.CustomConfig.CustomOutputSpecOrBuilder> getCustomOutputFieldBuilder() { if (customOutputBuilder_ == null) { - customOutputBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.securitycentermanagement.v1.CustomConfig.CustomOutputSpec, - com.google.cloud.securitycentermanagement.v1.CustomConfig.CustomOutputSpec.Builder, - com.google.cloud.securitycentermanagement.v1.CustomConfig - .CustomOutputSpecOrBuilder>( - getCustomOutput(), getParentForChildren(), isClean()); + customOutputBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.securitycentermanagement.v1.CustomConfig.CustomOutputSpec, com.google.cloud.securitycentermanagement.v1.CustomConfig.CustomOutputSpec.Builder, com.google.cloud.securitycentermanagement.v1.CustomConfig.CustomOutputSpecOrBuilder>( + getCustomOutput(), + getParentForChildren(), + isClean()); customOutput_ = null; } return customOutputBuilder_; } - private com.google.cloud.securitycentermanagement.v1.CustomConfig.ResourceSelector - resourceSelector_; + private com.google.cloud.securitycentermanagement.v1.CustomConfig.ResourceSelector resourceSelector_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.securitycentermanagement.v1.CustomConfig.ResourceSelector, - com.google.cloud.securitycentermanagement.v1.CustomConfig.ResourceSelector.Builder, - com.google.cloud.securitycentermanagement.v1.CustomConfig.ResourceSelectorOrBuilder> - resourceSelectorBuilder_; + com.google.cloud.securitycentermanagement.v1.CustomConfig.ResourceSelector, com.google.cloud.securitycentermanagement.v1.CustomConfig.ResourceSelector.Builder, com.google.cloud.securitycentermanagement.v1.CustomConfig.ResourceSelectorOrBuilder> resourceSelectorBuilder_; /** - * - * *
      * Optional. The CAI resource types that the custom module operates on (see
      * go/gcp-cai-doc/supported-asset-types). Each custom module can specify up to
      * 5 resource types.
      * 
* - * - * .google.cloud.securitycentermanagement.v1.CustomConfig.ResourceSelector resource_selector = 3 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.cloud.securitycentermanagement.v1.CustomConfig.ResourceSelector resource_selector = 3 [(.google.api.field_behavior) = OPTIONAL]; * @return Whether the resourceSelector field is set. */ public boolean hasResourceSelector() { return ((bitField0_ & 0x00000004) != 0); } /** - * - * *
      * Optional. The CAI resource types that the custom module operates on (see
      * go/gcp-cai-doc/supported-asset-types). Each custom module can specify up to
      * 5 resource types.
      * 
* - * - * .google.cloud.securitycentermanagement.v1.CustomConfig.ResourceSelector resource_selector = 3 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.cloud.securitycentermanagement.v1.CustomConfig.ResourceSelector resource_selector = 3 [(.google.api.field_behavior) = OPTIONAL]; * @return The resourceSelector. */ - public com.google.cloud.securitycentermanagement.v1.CustomConfig.ResourceSelector - getResourceSelector() { + public com.google.cloud.securitycentermanagement.v1.CustomConfig.ResourceSelector getResourceSelector() { if (resourceSelectorBuilder_ == null) { - return resourceSelector_ == null - ? com.google.cloud.securitycentermanagement.v1.CustomConfig.ResourceSelector - .getDefaultInstance() - : resourceSelector_; + return resourceSelector_ == null ? com.google.cloud.securitycentermanagement.v1.CustomConfig.ResourceSelector.getDefaultInstance() : resourceSelector_; } else { return resourceSelectorBuilder_.getMessage(); } } /** - * - * *
      * Optional. The CAI resource types that the custom module operates on (see
      * go/gcp-cai-doc/supported-asset-types). Each custom module can specify up to
      * 5 resource types.
      * 
* - * - * .google.cloud.securitycentermanagement.v1.CustomConfig.ResourceSelector resource_selector = 3 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.securitycentermanagement.v1.CustomConfig.ResourceSelector resource_selector = 3 [(.google.api.field_behavior) = OPTIONAL]; */ - public Builder setResourceSelector( - com.google.cloud.securitycentermanagement.v1.CustomConfig.ResourceSelector value) { + public Builder setResourceSelector(com.google.cloud.securitycentermanagement.v1.CustomConfig.ResourceSelector value) { if (resourceSelectorBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -4533,21 +3826,16 @@ public Builder setResourceSelector( return this; } /** - * - * *
      * Optional. The CAI resource types that the custom module operates on (see
      * go/gcp-cai-doc/supported-asset-types). Each custom module can specify up to
      * 5 resource types.
      * 
* - * - * .google.cloud.securitycentermanagement.v1.CustomConfig.ResourceSelector resource_selector = 3 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.securitycentermanagement.v1.CustomConfig.ResourceSelector resource_selector = 3 [(.google.api.field_behavior) = OPTIONAL]; */ public Builder setResourceSelector( - com.google.cloud.securitycentermanagement.v1.CustomConfig.ResourceSelector.Builder - builderForValue) { + com.google.cloud.securitycentermanagement.v1.CustomConfig.ResourceSelector.Builder builderForValue) { if (resourceSelectorBuilder_ == null) { resourceSelector_ = builderForValue.build(); } else { @@ -4558,26 +3846,19 @@ public Builder setResourceSelector( return this; } /** - * - * *
      * Optional. The CAI resource types that the custom module operates on (see
      * go/gcp-cai-doc/supported-asset-types). Each custom module can specify up to
      * 5 resource types.
      * 
* - * - * .google.cloud.securitycentermanagement.v1.CustomConfig.ResourceSelector resource_selector = 3 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.securitycentermanagement.v1.CustomConfig.ResourceSelector resource_selector = 3 [(.google.api.field_behavior) = OPTIONAL]; */ - public Builder mergeResourceSelector( - com.google.cloud.securitycentermanagement.v1.CustomConfig.ResourceSelector value) { + public Builder mergeResourceSelector(com.google.cloud.securitycentermanagement.v1.CustomConfig.ResourceSelector value) { if (resourceSelectorBuilder_ == null) { - if (((bitField0_ & 0x00000004) != 0) - && resourceSelector_ != null - && resourceSelector_ - != com.google.cloud.securitycentermanagement.v1.CustomConfig.ResourceSelector - .getDefaultInstance()) { + if (((bitField0_ & 0x00000004) != 0) && + resourceSelector_ != null && + resourceSelector_ != com.google.cloud.securitycentermanagement.v1.CustomConfig.ResourceSelector.getDefaultInstance()) { getResourceSelectorBuilder().mergeFrom(value); } else { resourceSelector_ = value; @@ -4590,17 +3871,13 @@ public Builder mergeResourceSelector( return this; } /** - * - * *
      * Optional. The CAI resource types that the custom module operates on (see
      * go/gcp-cai-doc/supported-asset-types). Each custom module can specify up to
      * 5 resource types.
      * 
* - * - * .google.cloud.securitycentermanagement.v1.CustomConfig.ResourceSelector resource_selector = 3 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.securitycentermanagement.v1.CustomConfig.ResourceSelector resource_selector = 3 [(.google.api.field_behavior) = OPTIONAL]; */ public Builder clearResourceSelector() { bitField0_ = (bitField0_ & ~0x00000004); @@ -4613,74 +3890,54 @@ public Builder clearResourceSelector() { return this; } /** - * - * *
      * Optional. The CAI resource types that the custom module operates on (see
      * go/gcp-cai-doc/supported-asset-types). Each custom module can specify up to
      * 5 resource types.
      * 
* - * - * .google.cloud.securitycentermanagement.v1.CustomConfig.ResourceSelector resource_selector = 3 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.securitycentermanagement.v1.CustomConfig.ResourceSelector resource_selector = 3 [(.google.api.field_behavior) = OPTIONAL]; */ - public com.google.cloud.securitycentermanagement.v1.CustomConfig.ResourceSelector.Builder - getResourceSelectorBuilder() { + public com.google.cloud.securitycentermanagement.v1.CustomConfig.ResourceSelector.Builder getResourceSelectorBuilder() { bitField0_ |= 0x00000004; onChanged(); return getResourceSelectorFieldBuilder().getBuilder(); } /** - * - * *
      * Optional. The CAI resource types that the custom module operates on (see
      * go/gcp-cai-doc/supported-asset-types). Each custom module can specify up to
      * 5 resource types.
      * 
* - * - * .google.cloud.securitycentermanagement.v1.CustomConfig.ResourceSelector resource_selector = 3 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.securitycentermanagement.v1.CustomConfig.ResourceSelector resource_selector = 3 [(.google.api.field_behavior) = OPTIONAL]; */ - public com.google.cloud.securitycentermanagement.v1.CustomConfig.ResourceSelectorOrBuilder - getResourceSelectorOrBuilder() { + public com.google.cloud.securitycentermanagement.v1.CustomConfig.ResourceSelectorOrBuilder getResourceSelectorOrBuilder() { if (resourceSelectorBuilder_ != null) { return resourceSelectorBuilder_.getMessageOrBuilder(); } else { - return resourceSelector_ == null - ? com.google.cloud.securitycentermanagement.v1.CustomConfig.ResourceSelector - .getDefaultInstance() - : resourceSelector_; + return resourceSelector_ == null ? + com.google.cloud.securitycentermanagement.v1.CustomConfig.ResourceSelector.getDefaultInstance() : resourceSelector_; } } /** - * - * *
      * Optional. The CAI resource types that the custom module operates on (see
      * go/gcp-cai-doc/supported-asset-types). Each custom module can specify up to
      * 5 resource types.
      * 
* - * - * .google.cloud.securitycentermanagement.v1.CustomConfig.ResourceSelector resource_selector = 3 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.securitycentermanagement.v1.CustomConfig.ResourceSelector resource_selector = 3 [(.google.api.field_behavior) = OPTIONAL]; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.securitycentermanagement.v1.CustomConfig.ResourceSelector, - com.google.cloud.securitycentermanagement.v1.CustomConfig.ResourceSelector.Builder, - com.google.cloud.securitycentermanagement.v1.CustomConfig.ResourceSelectorOrBuilder> + com.google.cloud.securitycentermanagement.v1.CustomConfig.ResourceSelector, com.google.cloud.securitycentermanagement.v1.CustomConfig.ResourceSelector.Builder, com.google.cloud.securitycentermanagement.v1.CustomConfig.ResourceSelectorOrBuilder> getResourceSelectorFieldBuilder() { if (resourceSelectorBuilder_ == null) { - resourceSelectorBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.securitycentermanagement.v1.CustomConfig.ResourceSelector, - com.google.cloud.securitycentermanagement.v1.CustomConfig.ResourceSelector.Builder, - com.google.cloud.securitycentermanagement.v1.CustomConfig - .ResourceSelectorOrBuilder>( - getResourceSelector(), getParentForChildren(), isClean()); + resourceSelectorBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.securitycentermanagement.v1.CustomConfig.ResourceSelector, com.google.cloud.securitycentermanagement.v1.CustomConfig.ResourceSelector.Builder, com.google.cloud.securitycentermanagement.v1.CustomConfig.ResourceSelectorOrBuilder>( + getResourceSelector(), + getParentForChildren(), + isClean()); resourceSelector_ = null; } return resourceSelectorBuilder_; @@ -4688,33 +3945,22 @@ public Builder clearResourceSelector() { private int severity_ = 0; /** - * - * *
      * Optional. The severity to assign to findings generated by the module.
      * 
* - * - * .google.cloud.securitycentermanagement.v1.CustomConfig.Severity severity = 4 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.cloud.securitycentermanagement.v1.CustomConfig.Severity severity = 4 [(.google.api.field_behavior) = OPTIONAL]; * @return The enum numeric value on the wire for severity. */ - @java.lang.Override - public int getSeverityValue() { + @java.lang.Override public int getSeverityValue() { return severity_; } /** - * - * *
      * Optional. The severity to assign to findings generated by the module.
      * 
* - * - * .google.cloud.securitycentermanagement.v1.CustomConfig.Severity severity = 4 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.cloud.securitycentermanagement.v1.CustomConfig.Severity severity = 4 [(.google.api.field_behavior) = OPTIONAL]; * @param value The enum numeric value on the wire for severity to set. * @return This builder for chaining. */ @@ -4725,42 +3971,28 @@ public Builder setSeverityValue(int value) { return this; } /** - * - * *
      * Optional. The severity to assign to findings generated by the module.
      * 
* - * - * .google.cloud.securitycentermanagement.v1.CustomConfig.Severity severity = 4 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.cloud.securitycentermanagement.v1.CustomConfig.Severity severity = 4 [(.google.api.field_behavior) = OPTIONAL]; * @return The severity. */ @java.lang.Override public com.google.cloud.securitycentermanagement.v1.CustomConfig.Severity getSeverity() { - com.google.cloud.securitycentermanagement.v1.CustomConfig.Severity result = - com.google.cloud.securitycentermanagement.v1.CustomConfig.Severity.forNumber(severity_); - return result == null - ? com.google.cloud.securitycentermanagement.v1.CustomConfig.Severity.UNRECOGNIZED - : result; + com.google.cloud.securitycentermanagement.v1.CustomConfig.Severity result = com.google.cloud.securitycentermanagement.v1.CustomConfig.Severity.forNumber(severity_); + return result == null ? com.google.cloud.securitycentermanagement.v1.CustomConfig.Severity.UNRECOGNIZED : result; } /** - * - * *
      * Optional. The severity to assign to findings generated by the module.
      * 
* - * - * .google.cloud.securitycentermanagement.v1.CustomConfig.Severity severity = 4 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.cloud.securitycentermanagement.v1.CustomConfig.Severity severity = 4 [(.google.api.field_behavior) = OPTIONAL]; * @param value The severity to set. * @return This builder for chaining. */ - public Builder setSeverity( - com.google.cloud.securitycentermanagement.v1.CustomConfig.Severity value) { + public Builder setSeverity(com.google.cloud.securitycentermanagement.v1.CustomConfig.Severity value) { if (value == null) { throw new NullPointerException(); } @@ -4770,16 +4002,11 @@ public Builder setSeverity( return this; } /** - * - * *
      * Optional. The severity to assign to findings generated by the module.
      * 
* - * - * .google.cloud.securitycentermanagement.v1.CustomConfig.Severity severity = 4 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.cloud.securitycentermanagement.v1.CustomConfig.Severity severity = 4 [(.google.api.field_behavior) = OPTIONAL]; * @return This builder for chaining. */ public Builder clearSeverity() { @@ -4791,8 +4018,6 @@ public Builder clearSeverity() { private java.lang.Object description_ = ""; /** - * - * *
      * Optional. Text that describes the vulnerability or misconfiguration that
      * the custom module detects. This explanation is returned with each finding
@@ -4801,13 +4026,13 @@ public Builder clearSeverity() {
      * 
* * string description = 5 [(.google.api.field_behavior) = OPTIONAL]; - * * @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; @@ -4816,8 +4041,6 @@ public java.lang.String getDescription() { } } /** - * - * *
      * Optional. Text that describes the vulnerability or misconfiguration that
      * the custom module detects. This explanation is returned with each finding
@@ -4826,14 +4049,15 @@ public java.lang.String getDescription() {
      * 
* * string description = 5 [(.google.api.field_behavior) = OPTIONAL]; - * * @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 { @@ -4841,8 +4065,6 @@ public com.google.protobuf.ByteString getDescriptionBytes() { } } /** - * - * *
      * Optional. Text that describes the vulnerability or misconfiguration that
      * the custom module detects. This explanation is returned with each finding
@@ -4851,22 +4073,18 @@ public com.google.protobuf.ByteString getDescriptionBytes() {
      * 
* * string description = 5 [(.google.api.field_behavior) = OPTIONAL]; - * * @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_ |= 0x00000010; onChanged(); return this; } /** - * - * *
      * Optional. Text that describes the vulnerability or misconfiguration that
      * the custom module detects. This explanation is returned with each finding
@@ -4875,7 +4093,6 @@ public Builder setDescription(java.lang.String value) {
      * 
* * string description = 5 [(.google.api.field_behavior) = OPTIONAL]; - * * @return This builder for chaining. */ public Builder clearDescription() { @@ -4885,8 +4102,6 @@ public Builder clearDescription() { return this; } /** - * - * *
      * Optional. Text that describes the vulnerability or misconfiguration that
      * the custom module detects. This explanation is returned with each finding
@@ -4895,14 +4110,12 @@ public Builder clearDescription() {
      * 
* * string description = 5 [(.google.api.field_behavior) = OPTIONAL]; - * * @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_ |= 0x00000010; @@ -4912,8 +4125,6 @@ public Builder setDescriptionBytes(com.google.protobuf.ByteString value) { private java.lang.Object recommendation_ = ""; /** - * - * *
      * Optional. An explanation of the recommended steps that security teams can
      * take to resolve the detected issue. This explanation is returned with each
@@ -4922,13 +4133,13 @@ public Builder setDescriptionBytes(com.google.protobuf.ByteString value) {
      * 
* * string recommendation = 6 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The recommendation. */ public java.lang.String getRecommendation() { java.lang.Object ref = recommendation_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); recommendation_ = s; return s; @@ -4937,8 +4148,6 @@ public java.lang.String getRecommendation() { } } /** - * - * *
      * Optional. An explanation of the recommended steps that security teams can
      * take to resolve the detected issue. This explanation is returned with each
@@ -4947,14 +4156,15 @@ public java.lang.String getRecommendation() {
      * 
* * string recommendation = 6 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The bytes for recommendation. */ - public com.google.protobuf.ByteString getRecommendationBytes() { + public com.google.protobuf.ByteString + getRecommendationBytes() { java.lang.Object ref = recommendation_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); recommendation_ = b; return b; } else { @@ -4962,8 +4172,6 @@ public com.google.protobuf.ByteString getRecommendationBytes() { } } /** - * - * *
      * Optional. An explanation of the recommended steps that security teams can
      * take to resolve the detected issue. This explanation is returned with each
@@ -4972,22 +4180,18 @@ public com.google.protobuf.ByteString getRecommendationBytes() {
      * 
* * string recommendation = 6 [(.google.api.field_behavior) = OPTIONAL]; - * * @param value The recommendation to set. * @return This builder for chaining. */ - public Builder setRecommendation(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setRecommendation( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } recommendation_ = value; bitField0_ |= 0x00000020; onChanged(); return this; } /** - * - * *
      * Optional. An explanation of the recommended steps that security teams can
      * take to resolve the detected issue. This explanation is returned with each
@@ -4996,7 +4200,6 @@ public Builder setRecommendation(java.lang.String value) {
      * 
* * string recommendation = 6 [(.google.api.field_behavior) = OPTIONAL]; - * * @return This builder for chaining. */ public Builder clearRecommendation() { @@ -5006,8 +4209,6 @@ public Builder clearRecommendation() { return this; } /** - * - * *
      * Optional. An explanation of the recommended steps that security teams can
      * take to resolve the detected issue. This explanation is returned with each
@@ -5016,23 +4217,21 @@ public Builder clearRecommendation() {
      * 
* * string recommendation = 6 [(.google.api.field_behavior) = OPTIONAL]; - * * @param value The bytes for recommendation to set. * @return This builder for chaining. */ - public Builder setRecommendationBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setRecommendationBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); recommendation_ = 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); } @@ -5042,12 +4241,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.securitycentermanagement.v1.CustomConfig) } // @@protoc_insertion_point(class_scope:google.cloud.securitycentermanagement.v1.CustomConfig) private static final com.google.cloud.securitycentermanagement.v1.CustomConfig DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.securitycentermanagement.v1.CustomConfig(); } @@ -5056,27 +4255,27 @@ public static com.google.cloud.securitycentermanagement.v1.CustomConfig getDefau return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public CustomConfig parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public CustomConfig parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -5091,4 +4290,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.securitycentermanagement.v1.CustomConfig getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/java-securitycentermanagement/proto-google-cloud-securitycentermanagement-v1/src/main/java/com/google/cloud/securitycentermanagement/v1/CustomConfigOrBuilder.java b/owl-bot-staging/java-securitycentermanagement/v1/proto-google-cloud-securitycentermanagement-v1/src/main/java/com/google/cloud/securitycentermanagement/v1/CustomConfigOrBuilder.java similarity index 68% rename from java-securitycentermanagement/proto-google-cloud-securitycentermanagement-v1/src/main/java/com/google/cloud/securitycentermanagement/v1/CustomConfigOrBuilder.java rename to owl-bot-staging/java-securitycentermanagement/v1/proto-google-cloud-securitycentermanagement-v1/src/main/java/com/google/cloud/securitycentermanagement/v1/CustomConfigOrBuilder.java index c235628ee30b..74a438d7239a 100644 --- a/java-securitycentermanagement/proto-google-cloud-securitycentermanagement-v1/src/main/java/com/google/cloud/securitycentermanagement/v1/CustomConfigOrBuilder.java +++ b/owl-bot-staging/java-securitycentermanagement/v1/proto-google-cloud-securitycentermanagement-v1/src/main/java/com/google/cloud/securitycentermanagement/v1/CustomConfigOrBuilder.java @@ -1,57 +1,33 @@ -/* - * Copyright 2023 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/securitycentermanagement/v1/security_center_management.proto package com.google.cloud.securitycentermanagement.v1; -public interface CustomConfigOrBuilder - extends +public interface CustomConfigOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.securitycentermanagement.v1.CustomConfig) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * Optional. The CEL expression to evaluate to produce findings. When the
    * expression evaluates to true against a resource, a finding is generated.
    * 
* * .google.type.Expr predicate = 1 [(.google.api.field_behavior) = OPTIONAL]; - * * @return Whether the predicate field is set. */ boolean hasPredicate(); /** - * - * *
    * Optional. The CEL expression to evaluate to produce findings. When the
    * expression evaluates to true against a resource, a finding is generated.
    * 
* * .google.type.Expr predicate = 1 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The predicate. */ com.google.type.Expr getPredicate(); /** - * - * *
    * Optional. The CEL expression to evaluate to produce findings. When the
    * expression evaluates to true against a resource, a finding is generated.
@@ -62,127 +38,85 @@ public interface CustomConfigOrBuilder
   com.google.type.ExprOrBuilder getPredicateOrBuilder();
 
   /**
-   *
-   *
    * 
    * Optional. Custom output properties.
    * 
* - * - * .google.cloud.securitycentermanagement.v1.CustomConfig.CustomOutputSpec custom_output = 2 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.cloud.securitycentermanagement.v1.CustomConfig.CustomOutputSpec custom_output = 2 [(.google.api.field_behavior) = OPTIONAL]; * @return Whether the customOutput field is set. */ boolean hasCustomOutput(); /** - * - * *
    * Optional. Custom output properties.
    * 
* - * - * .google.cloud.securitycentermanagement.v1.CustomConfig.CustomOutputSpec custom_output = 2 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.cloud.securitycentermanagement.v1.CustomConfig.CustomOutputSpec custom_output = 2 [(.google.api.field_behavior) = OPTIONAL]; * @return The customOutput. */ com.google.cloud.securitycentermanagement.v1.CustomConfig.CustomOutputSpec getCustomOutput(); /** - * - * *
    * Optional. Custom output properties.
    * 
* - * - * .google.cloud.securitycentermanagement.v1.CustomConfig.CustomOutputSpec custom_output = 2 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.securitycentermanagement.v1.CustomConfig.CustomOutputSpec custom_output = 2 [(.google.api.field_behavior) = OPTIONAL]; */ - com.google.cloud.securitycentermanagement.v1.CustomConfig.CustomOutputSpecOrBuilder - getCustomOutputOrBuilder(); + com.google.cloud.securitycentermanagement.v1.CustomConfig.CustomOutputSpecOrBuilder getCustomOutputOrBuilder(); /** - * - * *
    * Optional. The CAI resource types that the custom module operates on (see
    * go/gcp-cai-doc/supported-asset-types). Each custom module can specify up to
    * 5 resource types.
    * 
* - * - * .google.cloud.securitycentermanagement.v1.CustomConfig.ResourceSelector resource_selector = 3 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.cloud.securitycentermanagement.v1.CustomConfig.ResourceSelector resource_selector = 3 [(.google.api.field_behavior) = OPTIONAL]; * @return Whether the resourceSelector field is set. */ boolean hasResourceSelector(); /** - * - * *
    * Optional. The CAI resource types that the custom module operates on (see
    * go/gcp-cai-doc/supported-asset-types). Each custom module can specify up to
    * 5 resource types.
    * 
* - * - * .google.cloud.securitycentermanagement.v1.CustomConfig.ResourceSelector resource_selector = 3 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.cloud.securitycentermanagement.v1.CustomConfig.ResourceSelector resource_selector = 3 [(.google.api.field_behavior) = OPTIONAL]; * @return The resourceSelector. */ com.google.cloud.securitycentermanagement.v1.CustomConfig.ResourceSelector getResourceSelector(); /** - * - * *
    * Optional. The CAI resource types that the custom module operates on (see
    * go/gcp-cai-doc/supported-asset-types). Each custom module can specify up to
    * 5 resource types.
    * 
* - * - * .google.cloud.securitycentermanagement.v1.CustomConfig.ResourceSelector resource_selector = 3 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.securitycentermanagement.v1.CustomConfig.ResourceSelector resource_selector = 3 [(.google.api.field_behavior) = OPTIONAL]; */ - com.google.cloud.securitycentermanagement.v1.CustomConfig.ResourceSelectorOrBuilder - getResourceSelectorOrBuilder(); + com.google.cloud.securitycentermanagement.v1.CustomConfig.ResourceSelectorOrBuilder getResourceSelectorOrBuilder(); /** - * - * *
    * Optional. The severity to assign to findings generated by the module.
    * 
* - * - * .google.cloud.securitycentermanagement.v1.CustomConfig.Severity severity = 4 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.cloud.securitycentermanagement.v1.CustomConfig.Severity severity = 4 [(.google.api.field_behavior) = OPTIONAL]; * @return The enum numeric value on the wire for severity. */ int getSeverityValue(); /** - * - * *
    * Optional. The severity to assign to findings generated by the module.
    * 
* - * - * .google.cloud.securitycentermanagement.v1.CustomConfig.Severity severity = 4 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.cloud.securitycentermanagement.v1.CustomConfig.Severity severity = 4 [(.google.api.field_behavior) = OPTIONAL]; * @return The severity. */ com.google.cloud.securitycentermanagement.v1.CustomConfig.Severity getSeverity(); /** - * - * *
    * Optional. Text that describes the vulnerability or misconfiguration that
    * the custom module detects. This explanation is returned with each finding
@@ -191,13 +125,10 @@ public interface CustomConfigOrBuilder
    * 
* * string description = 5 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The description. */ java.lang.String getDescription(); /** - * - * *
    * Optional. Text that describes the vulnerability or misconfiguration that
    * the custom module detects. This explanation is returned with each finding
@@ -206,14 +137,12 @@ public interface CustomConfigOrBuilder
    * 
* * string description = 5 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The bytes for description. */ - com.google.protobuf.ByteString getDescriptionBytes(); + com.google.protobuf.ByteString + getDescriptionBytes(); /** - * - * *
    * Optional. An explanation of the recommended steps that security teams can
    * take to resolve the detected issue. This explanation is returned with each
@@ -222,13 +151,10 @@ public interface CustomConfigOrBuilder
    * 
* * string recommendation = 6 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The recommendation. */ java.lang.String getRecommendation(); /** - * - * *
    * Optional. An explanation of the recommended steps that security teams can
    * take to resolve the detected issue. This explanation is returned with each
@@ -237,8 +163,8 @@ public interface CustomConfigOrBuilder
    * 
* * string recommendation = 6 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The bytes for recommendation. */ - com.google.protobuf.ByteString getRecommendationBytes(); + com.google.protobuf.ByteString + getRecommendationBytes(); } diff --git a/java-securitycentermanagement/proto-google-cloud-securitycentermanagement-v1/src/main/java/com/google/cloud/securitycentermanagement/v1/DeleteEventThreatDetectionCustomModuleRequest.java b/owl-bot-staging/java-securitycentermanagement/v1/proto-google-cloud-securitycentermanagement-v1/src/main/java/com/google/cloud/securitycentermanagement/v1/DeleteEventThreatDetectionCustomModuleRequest.java similarity index 54% rename from java-securitycentermanagement/proto-google-cloud-securitycentermanagement-v1/src/main/java/com/google/cloud/securitycentermanagement/v1/DeleteEventThreatDetectionCustomModuleRequest.java rename to owl-bot-staging/java-securitycentermanagement/v1/proto-google-cloud-securitycentermanagement-v1/src/main/java/com/google/cloud/securitycentermanagement/v1/DeleteEventThreatDetectionCustomModuleRequest.java index 22111294de65..347d6baa4612 100644 --- a/java-securitycentermanagement/proto-google-cloud-securitycentermanagement-v1/src/main/java/com/google/cloud/securitycentermanagement/v1/DeleteEventThreatDetectionCustomModuleRequest.java +++ b/owl-bot-staging/java-securitycentermanagement/v1/proto-google-cloud-securitycentermanagement-v1/src/main/java/com/google/cloud/securitycentermanagement/v1/DeleteEventThreatDetectionCustomModuleRequest.java @@ -1,79 +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/securitycentermanagement/v1/security_center_management.proto package com.google.cloud.securitycentermanagement.v1; /** - * - * *
  * Message for deleting a EventThreatDetectionCustomModule
  * 
* - * Protobuf type {@code - * google.cloud.securitycentermanagement.v1.DeleteEventThreatDetectionCustomModuleRequest} + * Protobuf type {@code google.cloud.securitycentermanagement.v1.DeleteEventThreatDetectionCustomModuleRequest} */ -public final class DeleteEventThreatDetectionCustomModuleRequest - extends com.google.protobuf.GeneratedMessageV3 - implements +public final class DeleteEventThreatDetectionCustomModuleRequest extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.securitycentermanagement.v1.DeleteEventThreatDetectionCustomModuleRequest) DeleteEventThreatDetectionCustomModuleRequestOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use DeleteEventThreatDetectionCustomModuleRequest.newBuilder() to construct. - private DeleteEventThreatDetectionCustomModuleRequest( - com.google.protobuf.GeneratedMessageV3.Builder builder) { + private DeleteEventThreatDetectionCustomModuleRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private DeleteEventThreatDetectionCustomModuleRequest() { name_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new DeleteEventThreatDetectionCustomModuleRequest(); } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.securitycentermanagement.v1.SecurityCenterManagementProto - .internal_static_google_cloud_securitycentermanagement_v1_DeleteEventThreatDetectionCustomModuleRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.securitycentermanagement.v1.SecurityCenterManagementProto.internal_static_google_cloud_securitycentermanagement_v1_DeleteEventThreatDetectionCustomModuleRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.securitycentermanagement.v1.SecurityCenterManagementProto - .internal_static_google_cloud_securitycentermanagement_v1_DeleteEventThreatDetectionCustomModuleRequest_fieldAccessorTable + return com.google.cloud.securitycentermanagement.v1.SecurityCenterManagementProto.internal_static_google_cloud_securitycentermanagement_v1_DeleteEventThreatDetectionCustomModuleRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.securitycentermanagement.v1 - .DeleteEventThreatDetectionCustomModuleRequest.class, - com.google.cloud.securitycentermanagement.v1 - .DeleteEventThreatDetectionCustomModuleRequest.Builder.class); + com.google.cloud.securitycentermanagement.v1.DeleteEventThreatDetectionCustomModuleRequest.class, com.google.cloud.securitycentermanagement.v1.DeleteEventThreatDetectionCustomModuleRequest.Builder.class); } public static final int NAME_FIELD_NUMBER = 1; - @SuppressWarnings("serial") private volatile java.lang.Object name_ = ""; /** - * - * *
    * Required. The resource name of the ETD custom module.
    *
@@ -84,10 +57,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
    *   * "projects/{project}/locations/{location}/eventThreatDetectionCustomModules/{event_threat_detection_custom_module}".
    * 
* - * - * string name = 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 @@ -96,15 +66,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 ETD custom module.
    *
@@ -115,18 +84,17 @@ public java.lang.String getName() {
    *   * "projects/{project}/locations/{location}/eventThreatDetectionCustomModules/{event_threat_detection_custom_module}".
    * 
* - * - * string name = 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 { @@ -137,8 +105,6 @@ public com.google.protobuf.ByteString getNameBytes() { public static final int VALIDATE_ONLY_FIELD_NUMBER = 2; private boolean validateOnly_ = false; /** - * - * *
    * Optional. When set to true, only validations (including IAM checks) will
    * done for the request (module will not be deleted). An OK response indicates
@@ -150,7 +116,6 @@ public com.google.protobuf.ByteString getNameBytes() {
    * 
* * bool validate_only = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The validateOnly. */ @java.lang.Override @@ -159,7 +124,6 @@ public boolean getValidateOnly() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -171,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 (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); } @@ -191,7 +156,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_); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -201,22 +167,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.securitycentermanagement.v1 - .DeleteEventThreatDetectionCustomModuleRequest)) { + if (!(obj instanceof com.google.cloud.securitycentermanagement.v1.DeleteEventThreatDetectionCustomModuleRequest)) { return super.equals(obj); } - com.google.cloud.securitycentermanagement.v1.DeleteEventThreatDetectionCustomModuleRequest - other = - (com.google.cloud.securitycentermanagement.v1 - .DeleteEventThreatDetectionCustomModuleRequest) - obj; + com.google.cloud.securitycentermanagement.v1.DeleteEventThreatDetectionCustomModuleRequest other = (com.google.cloud.securitycentermanagement.v1.DeleteEventThreatDetectionCustomModuleRequest) obj; - if (!getName().equals(other.getName())) return false; - if (getValidateOnly() != other.getValidateOnly()) return false; + if (!getName() + .equals(other.getName())) return false; + if (getValidateOnly() + != other.getValidateOnly()) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -231,167 +192,139 @@ 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 = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } - public static com.google.cloud.securitycentermanagement.v1 - .DeleteEventThreatDetectionCustomModuleRequest - parseFrom(java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.securitycentermanagement.v1.DeleteEventThreatDetectionCustomModuleRequest parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - - public static com.google.cloud.securitycentermanagement.v1 - .DeleteEventThreatDetectionCustomModuleRequest - parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.securitycentermanagement.v1.DeleteEventThreatDetectionCustomModuleRequest 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.securitycentermanagement.v1 - .DeleteEventThreatDetectionCustomModuleRequest - parseFrom(com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.securitycentermanagement.v1.DeleteEventThreatDetectionCustomModuleRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - - public static com.google.cloud.securitycentermanagement.v1 - .DeleteEventThreatDetectionCustomModuleRequest - parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.securitycentermanagement.v1.DeleteEventThreatDetectionCustomModuleRequest parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.securitycentermanagement.v1 - .DeleteEventThreatDetectionCustomModuleRequest - parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.securitycentermanagement.v1.DeleteEventThreatDetectionCustomModuleRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - - public static com.google.cloud.securitycentermanagement.v1 - .DeleteEventThreatDetectionCustomModuleRequest - parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.securitycentermanagement.v1.DeleteEventThreatDetectionCustomModuleRequest parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.securitycentermanagement.v1 - .DeleteEventThreatDetectionCustomModuleRequest - parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.securitycentermanagement.v1.DeleteEventThreatDetectionCustomModuleRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - - public static com.google.cloud.securitycentermanagement.v1 - .DeleteEventThreatDetectionCustomModuleRequest - 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.securitycentermanagement.v1.DeleteEventThreatDetectionCustomModuleRequest 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.securitycentermanagement.v1 - .DeleteEventThreatDetectionCustomModuleRequest - parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.securitycentermanagement.v1.DeleteEventThreatDetectionCustomModuleRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.securitycentermanagement.v1 - .DeleteEventThreatDetectionCustomModuleRequest - parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + public static com.google.cloud.securitycentermanagement.v1.DeleteEventThreatDetectionCustomModuleRequest parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.securitycentermanagement.v1 - .DeleteEventThreatDetectionCustomModuleRequest - parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.securitycentermanagement.v1.DeleteEventThreatDetectionCustomModuleRequest parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - - public static com.google.cloud.securitycentermanagement.v1 - .DeleteEventThreatDetectionCustomModuleRequest - 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.securitycentermanagement.v1.DeleteEventThreatDetectionCustomModuleRequest 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.securitycentermanagement.v1.DeleteEventThreatDetectionCustomModuleRequest - prototype) { + public static Builder newBuilder(com.google.cloud.securitycentermanagement.v1.DeleteEventThreatDetectionCustomModuleRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected 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 EventThreatDetectionCustomModule
    * 
* - * Protobuf type {@code - * google.cloud.securitycentermanagement.v1.DeleteEventThreatDetectionCustomModuleRequest} + * Protobuf type {@code google.cloud.securitycentermanagement.v1.DeleteEventThreatDetectionCustomModuleRequest} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.securitycentermanagement.v1.DeleteEventThreatDetectionCustomModuleRequest) - com.google.cloud.securitycentermanagement.v1 - .DeleteEventThreatDetectionCustomModuleRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.securitycentermanagement.v1.SecurityCenterManagementProto - .internal_static_google_cloud_securitycentermanagement_v1_DeleteEventThreatDetectionCustomModuleRequest_descriptor; + com.google.cloud.securitycentermanagement.v1.DeleteEventThreatDetectionCustomModuleRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.securitycentermanagement.v1.SecurityCenterManagementProto.internal_static_google_cloud_securitycentermanagement_v1_DeleteEventThreatDetectionCustomModuleRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.securitycentermanagement.v1.SecurityCenterManagementProto - .internal_static_google_cloud_securitycentermanagement_v1_DeleteEventThreatDetectionCustomModuleRequest_fieldAccessorTable + return com.google.cloud.securitycentermanagement.v1.SecurityCenterManagementProto.internal_static_google_cloud_securitycentermanagement_v1_DeleteEventThreatDetectionCustomModuleRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.securitycentermanagement.v1 - .DeleteEventThreatDetectionCustomModuleRequest.class, - com.google.cloud.securitycentermanagement.v1 - .DeleteEventThreatDetectionCustomModuleRequest.Builder.class); + com.google.cloud.securitycentermanagement.v1.DeleteEventThreatDetectionCustomModuleRequest.class, com.google.cloud.securitycentermanagement.v1.DeleteEventThreatDetectionCustomModuleRequest.Builder.class); } - // Construct using - // com.google.cloud.securitycentermanagement.v1.DeleteEventThreatDetectionCustomModuleRequest.newBuilder() - private Builder() {} + // Construct using com.google.cloud.securitycentermanagement.v1.DeleteEventThreatDetectionCustomModuleRequest.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(); @@ -402,25 +335,19 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.securitycentermanagement.v1.SecurityCenterManagementProto - .internal_static_google_cloud_securitycentermanagement_v1_DeleteEventThreatDetectionCustomModuleRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.securitycentermanagement.v1.SecurityCenterManagementProto.internal_static_google_cloud_securitycentermanagement_v1_DeleteEventThreatDetectionCustomModuleRequest_descriptor; } @java.lang.Override - public com.google.cloud.securitycentermanagement.v1 - .DeleteEventThreatDetectionCustomModuleRequest - getDefaultInstanceForType() { - return com.google.cloud.securitycentermanagement.v1 - .DeleteEventThreatDetectionCustomModuleRequest.getDefaultInstance(); + public com.google.cloud.securitycentermanagement.v1.DeleteEventThreatDetectionCustomModuleRequest getDefaultInstanceForType() { + return com.google.cloud.securitycentermanagement.v1.DeleteEventThreatDetectionCustomModuleRequest.getDefaultInstance(); } @java.lang.Override - public com.google.cloud.securitycentermanagement.v1 - .DeleteEventThreatDetectionCustomModuleRequest - build() { - com.google.cloud.securitycentermanagement.v1.DeleteEventThreatDetectionCustomModuleRequest - result = buildPartial(); + public com.google.cloud.securitycentermanagement.v1.DeleteEventThreatDetectionCustomModuleRequest build() { + com.google.cloud.securitycentermanagement.v1.DeleteEventThreatDetectionCustomModuleRequest result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } @@ -428,23 +355,14 @@ public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { } @java.lang.Override - public com.google.cloud.securitycentermanagement.v1 - .DeleteEventThreatDetectionCustomModuleRequest - buildPartial() { - com.google.cloud.securitycentermanagement.v1.DeleteEventThreatDetectionCustomModuleRequest - result = - new com.google.cloud.securitycentermanagement.v1 - .DeleteEventThreatDetectionCustomModuleRequest(this); - if (bitField0_ != 0) { - buildPartial0(result); - } + public com.google.cloud.securitycentermanagement.v1.DeleteEventThreatDetectionCustomModuleRequest buildPartial() { + com.google.cloud.securitycentermanagement.v1.DeleteEventThreatDetectionCustomModuleRequest result = new com.google.cloud.securitycentermanagement.v1.DeleteEventThreatDetectionCustomModuleRequest(this); + if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } - private void buildPartial0( - com.google.cloud.securitycentermanagement.v1.DeleteEventThreatDetectionCustomModuleRequest - result) { + private void buildPartial0(com.google.cloud.securitycentermanagement.v1.DeleteEventThreatDetectionCustomModuleRequest result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000001) != 0)) { result.name_ = name_; @@ -458,57 +376,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.securitycentermanagement.v1 - .DeleteEventThreatDetectionCustomModuleRequest) { - return mergeFrom( - (com.google.cloud.securitycentermanagement.v1 - .DeleteEventThreatDetectionCustomModuleRequest) - other); + if (other instanceof com.google.cloud.securitycentermanagement.v1.DeleteEventThreatDetectionCustomModuleRequest) { + return mergeFrom((com.google.cloud.securitycentermanagement.v1.DeleteEventThreatDetectionCustomModuleRequest)other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom( - com.google.cloud.securitycentermanagement.v1.DeleteEventThreatDetectionCustomModuleRequest - other) { - if (other - == com.google.cloud.securitycentermanagement.v1 - .DeleteEventThreatDetectionCustomModuleRequest.getDefaultInstance()) return this; + public Builder mergeFrom(com.google.cloud.securitycentermanagement.v1.DeleteEventThreatDetectionCustomModuleRequest other) { + if (other == com.google.cloud.securitycentermanagement.v1.DeleteEventThreatDetectionCustomModuleRequest.getDefaultInstance()) return this; if (!other.getName().isEmpty()) { name_ = other.name_; bitField0_ |= 0x00000001; @@ -543,25 +450,22 @@ 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 - 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 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -571,13 +475,10 @@ public Builder mergeFrom( } // finally return this; } - private int bitField0_; private java.lang.Object name_ = ""; /** - * - * *
      * Required. The resource name of the ETD custom module.
      *
@@ -588,16 +489,14 @@ public Builder mergeFrom(
      *   * "projects/{project}/locations/{location}/eventThreatDetectionCustomModules/{event_threat_detection_custom_module}".
      * 
* - * - * string name = 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; @@ -606,8 +505,6 @@ public java.lang.String getName() { } } /** - * - * *
      * Required. The resource name of the ETD custom module.
      *
@@ -618,17 +515,16 @@ public java.lang.String getName() {
      *   * "projects/{project}/locations/{location}/eventThreatDetectionCustomModules/{event_threat_detection_custom_module}".
      * 
* - * - * string name = 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 { @@ -636,8 +532,6 @@ public com.google.protobuf.ByteString getNameBytes() { } } /** - * - * *
      * Required. The resource name of the ETD custom module.
      *
@@ -648,25 +542,19 @@ public com.google.protobuf.ByteString getNameBytes() {
      *   * "projects/{project}/locations/{location}/eventThreatDetectionCustomModules/{event_threat_detection_custom_module}".
      * 
* - * - * 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 ETD custom module.
      *
@@ -677,10 +565,7 @@ public Builder setName(java.lang.String value) {
      *   * "projects/{project}/locations/{location}/eventThreatDetectionCustomModules/{event_threat_detection_custom_module}".
      * 
* - * - * string 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() { @@ -690,8 +575,6 @@ public Builder clearName() { return this; } /** - * - * *
      * Required. The resource name of the ETD custom module.
      *
@@ -702,17 +585,13 @@ public Builder clearName() {
      *   * "projects/{project}/locations/{location}/eventThreatDetectionCustomModules/{event_threat_detection_custom_module}".
      * 
* - * - * 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; @@ -720,10 +599,8 @@ public Builder setNameBytes(com.google.protobuf.ByteString value) { return this; } - private boolean validateOnly_; + private boolean validateOnly_ ; /** - * - * *
      * Optional. When set to true, only validations (including IAM checks) will
      * done for the request (module will not be deleted). An OK response indicates
@@ -735,7 +612,6 @@ public Builder setNameBytes(com.google.protobuf.ByteString value) {
      * 
* * bool validate_only = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The validateOnly. */ @java.lang.Override @@ -743,8 +619,6 @@ public boolean getValidateOnly() { return validateOnly_; } /** - * - * *
      * Optional. When set to true, only validations (including IAM checks) will
      * done for the request (module will not be deleted). An OK response indicates
@@ -756,7 +630,6 @@ public boolean getValidateOnly() {
      * 
* * bool validate_only = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @param value The validateOnly to set. * @return This builder for chaining. */ @@ -768,8 +641,6 @@ public Builder setValidateOnly(boolean value) { return this; } /** - * - * *
      * Optional. When set to true, only validations (including IAM checks) will
      * done for the request (module will not be deleted). An OK response indicates
@@ -781,7 +652,6 @@ public Builder setValidateOnly(boolean value) {
      * 
* * bool validate_only = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @return This builder for chaining. */ public Builder clearValidateOnly() { @@ -790,9 +660,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); } @@ -802,63 +672,55 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.securitycentermanagement.v1.DeleteEventThreatDetectionCustomModuleRequest) } // @@protoc_insertion_point(class_scope:google.cloud.securitycentermanagement.v1.DeleteEventThreatDetectionCustomModuleRequest) - private static final com.google.cloud.securitycentermanagement.v1 - .DeleteEventThreatDetectionCustomModuleRequest - DEFAULT_INSTANCE; - + private static final com.google.cloud.securitycentermanagement.v1.DeleteEventThreatDetectionCustomModuleRequest DEFAULT_INSTANCE; static { - DEFAULT_INSTANCE = - new com.google.cloud.securitycentermanagement.v1 - .DeleteEventThreatDetectionCustomModuleRequest(); + DEFAULT_INSTANCE = new com.google.cloud.securitycentermanagement.v1.DeleteEventThreatDetectionCustomModuleRequest(); } - public static com.google.cloud.securitycentermanagement.v1 - .DeleteEventThreatDetectionCustomModuleRequest - getDefaultInstance() { + public static com.google.cloud.securitycentermanagement.v1.DeleteEventThreatDetectionCustomModuleRequest getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser - PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public DeleteEventThreatDetectionCustomModuleRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException() - .setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public DeleteEventThreatDetectionCustomModuleRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; } @java.lang.Override - public com.google.protobuf.Parser - getParserForType() { + public com.google.protobuf.Parser getParserForType() { return PARSER; } @java.lang.Override - public com.google.cloud.securitycentermanagement.v1.DeleteEventThreatDetectionCustomModuleRequest - getDefaultInstanceForType() { + public com.google.cloud.securitycentermanagement.v1.DeleteEventThreatDetectionCustomModuleRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/java-securitycentermanagement/proto-google-cloud-securitycentermanagement-v1/src/main/java/com/google/cloud/securitycentermanagement/v1/DeleteEventThreatDetectionCustomModuleRequestOrBuilder.java b/owl-bot-staging/java-securitycentermanagement/v1/proto-google-cloud-securitycentermanagement-v1/src/main/java/com/google/cloud/securitycentermanagement/v1/DeleteEventThreatDetectionCustomModuleRequestOrBuilder.java similarity index 69% rename from java-securitycentermanagement/proto-google-cloud-securitycentermanagement-v1/src/main/java/com/google/cloud/securitycentermanagement/v1/DeleteEventThreatDetectionCustomModuleRequestOrBuilder.java rename to owl-bot-staging/java-securitycentermanagement/v1/proto-google-cloud-securitycentermanagement-v1/src/main/java/com/google/cloud/securitycentermanagement/v1/DeleteEventThreatDetectionCustomModuleRequestOrBuilder.java index be9d605cad27..0745fbfbfadf 100644 --- a/java-securitycentermanagement/proto-google-cloud-securitycentermanagement-v1/src/main/java/com/google/cloud/securitycentermanagement/v1/DeleteEventThreatDetectionCustomModuleRequestOrBuilder.java +++ b/owl-bot-staging/java-securitycentermanagement/v1/proto-google-cloud-securitycentermanagement-v1/src/main/java/com/google/cloud/securitycentermanagement/v1/DeleteEventThreatDetectionCustomModuleRequestOrBuilder.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/securitycentermanagement/v1/security_center_management.proto package com.google.cloud.securitycentermanagement.v1; -public interface DeleteEventThreatDetectionCustomModuleRequestOrBuilder - extends +public interface DeleteEventThreatDetectionCustomModuleRequestOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.securitycentermanagement.v1.DeleteEventThreatDetectionCustomModuleRequest) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * Required. The resource name of the ETD custom module.
    *
@@ -36,16 +18,11 @@ public interface DeleteEventThreatDetectionCustomModuleRequestOrBuilder
    *   * "projects/{project}/locations/{location}/eventThreatDetectionCustomModules/{event_threat_detection_custom_module}".
    * 
* - * - * string name = 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. The resource name of the ETD custom module.
    *
@@ -56,17 +33,13 @@ public interface DeleteEventThreatDetectionCustomModuleRequestOrBuilder
    *   * "projects/{project}/locations/{location}/eventThreatDetectionCustomModules/{event_threat_detection_custom_module}".
    * 
* - * - * string name = 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. When set to true, only validations (including IAM checks) will
    * done for the request (module will not be deleted). An OK response indicates
@@ -78,7 +51,6 @@ public interface DeleteEventThreatDetectionCustomModuleRequestOrBuilder
    * 
* * bool validate_only = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The validateOnly. */ boolean getValidateOnly(); diff --git a/java-securitycentermanagement/proto-google-cloud-securitycentermanagement-v1/src/main/java/com/google/cloud/securitycentermanagement/v1/DeleteSecurityHealthAnalyticsCustomModuleRequest.java b/owl-bot-staging/java-securitycentermanagement/v1/proto-google-cloud-securitycentermanagement-v1/src/main/java/com/google/cloud/securitycentermanagement/v1/DeleteSecurityHealthAnalyticsCustomModuleRequest.java similarity index 54% rename from java-securitycentermanagement/proto-google-cloud-securitycentermanagement-v1/src/main/java/com/google/cloud/securitycentermanagement/v1/DeleteSecurityHealthAnalyticsCustomModuleRequest.java rename to owl-bot-staging/java-securitycentermanagement/v1/proto-google-cloud-securitycentermanagement-v1/src/main/java/com/google/cloud/securitycentermanagement/v1/DeleteSecurityHealthAnalyticsCustomModuleRequest.java index d1a5dc64cc0e..260a072412fc 100644 --- a/java-securitycentermanagement/proto-google-cloud-securitycentermanagement-v1/src/main/java/com/google/cloud/securitycentermanagement/v1/DeleteSecurityHealthAnalyticsCustomModuleRequest.java +++ b/owl-bot-staging/java-securitycentermanagement/v1/proto-google-cloud-securitycentermanagement-v1/src/main/java/com/google/cloud/securitycentermanagement/v1/DeleteSecurityHealthAnalyticsCustomModuleRequest.java @@ -1,79 +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/securitycentermanagement/v1/security_center_management.proto package com.google.cloud.securitycentermanagement.v1; /** - * - * *
  * Message for deleting a SecurityHealthAnalyticsCustomModule
  * 
* - * Protobuf type {@code - * google.cloud.securitycentermanagement.v1.DeleteSecurityHealthAnalyticsCustomModuleRequest} + * Protobuf type {@code google.cloud.securitycentermanagement.v1.DeleteSecurityHealthAnalyticsCustomModuleRequest} */ -public final class DeleteSecurityHealthAnalyticsCustomModuleRequest - extends com.google.protobuf.GeneratedMessageV3 - implements +public final class DeleteSecurityHealthAnalyticsCustomModuleRequest extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.securitycentermanagement.v1.DeleteSecurityHealthAnalyticsCustomModuleRequest) DeleteSecurityHealthAnalyticsCustomModuleRequestOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use DeleteSecurityHealthAnalyticsCustomModuleRequest.newBuilder() to construct. - private DeleteSecurityHealthAnalyticsCustomModuleRequest( - com.google.protobuf.GeneratedMessageV3.Builder builder) { + private DeleteSecurityHealthAnalyticsCustomModuleRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private DeleteSecurityHealthAnalyticsCustomModuleRequest() { name_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new DeleteSecurityHealthAnalyticsCustomModuleRequest(); } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.securitycentermanagement.v1.SecurityCenterManagementProto - .internal_static_google_cloud_securitycentermanagement_v1_DeleteSecurityHealthAnalyticsCustomModuleRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.securitycentermanagement.v1.SecurityCenterManagementProto.internal_static_google_cloud_securitycentermanagement_v1_DeleteSecurityHealthAnalyticsCustomModuleRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.securitycentermanagement.v1.SecurityCenterManagementProto - .internal_static_google_cloud_securitycentermanagement_v1_DeleteSecurityHealthAnalyticsCustomModuleRequest_fieldAccessorTable + return com.google.cloud.securitycentermanagement.v1.SecurityCenterManagementProto.internal_static_google_cloud_securitycentermanagement_v1_DeleteSecurityHealthAnalyticsCustomModuleRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.securitycentermanagement.v1 - .DeleteSecurityHealthAnalyticsCustomModuleRequest.class, - com.google.cloud.securitycentermanagement.v1 - .DeleteSecurityHealthAnalyticsCustomModuleRequest.Builder.class); + com.google.cloud.securitycentermanagement.v1.DeleteSecurityHealthAnalyticsCustomModuleRequest.class, com.google.cloud.securitycentermanagement.v1.DeleteSecurityHealthAnalyticsCustomModuleRequest.Builder.class); } public static final int NAME_FIELD_NUMBER = 1; - @SuppressWarnings("serial") private volatile java.lang.Object name_ = ""; /** - * - * *
    * Required. The resource name of the SHA custom module.
    *
@@ -84,10 +57,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
    *   * "projects/{project}/locations/{location}/securityHealthAnalyticsCustomModules/{security_health_analytics_custom_module}".
    * 
* - * - * string name = 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 @@ -96,15 +66,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 SHA custom module.
    *
@@ -115,18 +84,17 @@ public java.lang.String getName() {
    *   * "projects/{project}/locations/{location}/securityHealthAnalyticsCustomModules/{security_health_analytics_custom_module}".
    * 
* - * - * string name = 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 { @@ -137,8 +105,6 @@ public com.google.protobuf.ByteString getNameBytes() { public static final int VALIDATE_ONLY_FIELD_NUMBER = 2; private boolean validateOnly_ = false; /** - * - * *
    * Optional. When set to true, only validations (including IAM checks) will
    * done for the request (module will not be deleted). An OK response indicates
@@ -150,7 +116,6 @@ public com.google.protobuf.ByteString getNameBytes() {
    * 
* * bool validate_only = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The validateOnly. */ @java.lang.Override @@ -159,7 +124,6 @@ public boolean getValidateOnly() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -171,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 (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); } @@ -191,7 +156,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_); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -201,22 +167,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.securitycentermanagement.v1 - .DeleteSecurityHealthAnalyticsCustomModuleRequest)) { + if (!(obj instanceof com.google.cloud.securitycentermanagement.v1.DeleteSecurityHealthAnalyticsCustomModuleRequest)) { return super.equals(obj); } - com.google.cloud.securitycentermanagement.v1.DeleteSecurityHealthAnalyticsCustomModuleRequest - other = - (com.google.cloud.securitycentermanagement.v1 - .DeleteSecurityHealthAnalyticsCustomModuleRequest) - obj; + com.google.cloud.securitycentermanagement.v1.DeleteSecurityHealthAnalyticsCustomModuleRequest other = (com.google.cloud.securitycentermanagement.v1.DeleteSecurityHealthAnalyticsCustomModuleRequest) obj; - if (!getName().equals(other.getName())) return false; - if (getValidateOnly() != other.getValidateOnly()) return false; + if (!getName() + .equals(other.getName())) return false; + if (getValidateOnly() + != other.getValidateOnly()) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -231,167 +192,139 @@ 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 = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } - public static com.google.cloud.securitycentermanagement.v1 - .DeleteSecurityHealthAnalyticsCustomModuleRequest - parseFrom(java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.securitycentermanagement.v1.DeleteSecurityHealthAnalyticsCustomModuleRequest parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - - public static com.google.cloud.securitycentermanagement.v1 - .DeleteSecurityHealthAnalyticsCustomModuleRequest - parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.securitycentermanagement.v1.DeleteSecurityHealthAnalyticsCustomModuleRequest 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.securitycentermanagement.v1 - .DeleteSecurityHealthAnalyticsCustomModuleRequest - parseFrom(com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.securitycentermanagement.v1.DeleteSecurityHealthAnalyticsCustomModuleRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - - public static com.google.cloud.securitycentermanagement.v1 - .DeleteSecurityHealthAnalyticsCustomModuleRequest - parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.securitycentermanagement.v1.DeleteSecurityHealthAnalyticsCustomModuleRequest parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.securitycentermanagement.v1 - .DeleteSecurityHealthAnalyticsCustomModuleRequest - parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.securitycentermanagement.v1.DeleteSecurityHealthAnalyticsCustomModuleRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - - public static com.google.cloud.securitycentermanagement.v1 - .DeleteSecurityHealthAnalyticsCustomModuleRequest - parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.securitycentermanagement.v1.DeleteSecurityHealthAnalyticsCustomModuleRequest parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.securitycentermanagement.v1 - .DeleteSecurityHealthAnalyticsCustomModuleRequest - parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.securitycentermanagement.v1.DeleteSecurityHealthAnalyticsCustomModuleRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - - public static com.google.cloud.securitycentermanagement.v1 - .DeleteSecurityHealthAnalyticsCustomModuleRequest - 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.securitycentermanagement.v1.DeleteSecurityHealthAnalyticsCustomModuleRequest 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.securitycentermanagement.v1 - .DeleteSecurityHealthAnalyticsCustomModuleRequest - parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.securitycentermanagement.v1.DeleteSecurityHealthAnalyticsCustomModuleRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.securitycentermanagement.v1 - .DeleteSecurityHealthAnalyticsCustomModuleRequest - parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + public static com.google.cloud.securitycentermanagement.v1.DeleteSecurityHealthAnalyticsCustomModuleRequest parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.securitycentermanagement.v1 - .DeleteSecurityHealthAnalyticsCustomModuleRequest - parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.securitycentermanagement.v1.DeleteSecurityHealthAnalyticsCustomModuleRequest parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - - public static com.google.cloud.securitycentermanagement.v1 - .DeleteSecurityHealthAnalyticsCustomModuleRequest - 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.securitycentermanagement.v1.DeleteSecurityHealthAnalyticsCustomModuleRequest 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.securitycentermanagement.v1.DeleteSecurityHealthAnalyticsCustomModuleRequest - prototype) { + public static Builder newBuilder(com.google.cloud.securitycentermanagement.v1.DeleteSecurityHealthAnalyticsCustomModuleRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected 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 SecurityHealthAnalyticsCustomModule
    * 
* - * Protobuf type {@code - * google.cloud.securitycentermanagement.v1.DeleteSecurityHealthAnalyticsCustomModuleRequest} + * Protobuf type {@code google.cloud.securitycentermanagement.v1.DeleteSecurityHealthAnalyticsCustomModuleRequest} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.securitycentermanagement.v1.DeleteSecurityHealthAnalyticsCustomModuleRequest) - com.google.cloud.securitycentermanagement.v1 - .DeleteSecurityHealthAnalyticsCustomModuleRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.securitycentermanagement.v1.SecurityCenterManagementProto - .internal_static_google_cloud_securitycentermanagement_v1_DeleteSecurityHealthAnalyticsCustomModuleRequest_descriptor; + com.google.cloud.securitycentermanagement.v1.DeleteSecurityHealthAnalyticsCustomModuleRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.securitycentermanagement.v1.SecurityCenterManagementProto.internal_static_google_cloud_securitycentermanagement_v1_DeleteSecurityHealthAnalyticsCustomModuleRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.securitycentermanagement.v1.SecurityCenterManagementProto - .internal_static_google_cloud_securitycentermanagement_v1_DeleteSecurityHealthAnalyticsCustomModuleRequest_fieldAccessorTable + return com.google.cloud.securitycentermanagement.v1.SecurityCenterManagementProto.internal_static_google_cloud_securitycentermanagement_v1_DeleteSecurityHealthAnalyticsCustomModuleRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.securitycentermanagement.v1 - .DeleteSecurityHealthAnalyticsCustomModuleRequest.class, - com.google.cloud.securitycentermanagement.v1 - .DeleteSecurityHealthAnalyticsCustomModuleRequest.Builder.class); + com.google.cloud.securitycentermanagement.v1.DeleteSecurityHealthAnalyticsCustomModuleRequest.class, com.google.cloud.securitycentermanagement.v1.DeleteSecurityHealthAnalyticsCustomModuleRequest.Builder.class); } - // Construct using - // com.google.cloud.securitycentermanagement.v1.DeleteSecurityHealthAnalyticsCustomModuleRequest.newBuilder() - private Builder() {} + // Construct using com.google.cloud.securitycentermanagement.v1.DeleteSecurityHealthAnalyticsCustomModuleRequest.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(); @@ -402,25 +335,19 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.securitycentermanagement.v1.SecurityCenterManagementProto - .internal_static_google_cloud_securitycentermanagement_v1_DeleteSecurityHealthAnalyticsCustomModuleRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.securitycentermanagement.v1.SecurityCenterManagementProto.internal_static_google_cloud_securitycentermanagement_v1_DeleteSecurityHealthAnalyticsCustomModuleRequest_descriptor; } @java.lang.Override - public com.google.cloud.securitycentermanagement.v1 - .DeleteSecurityHealthAnalyticsCustomModuleRequest - getDefaultInstanceForType() { - return com.google.cloud.securitycentermanagement.v1 - .DeleteSecurityHealthAnalyticsCustomModuleRequest.getDefaultInstance(); + public com.google.cloud.securitycentermanagement.v1.DeleteSecurityHealthAnalyticsCustomModuleRequest getDefaultInstanceForType() { + return com.google.cloud.securitycentermanagement.v1.DeleteSecurityHealthAnalyticsCustomModuleRequest.getDefaultInstance(); } @java.lang.Override - public com.google.cloud.securitycentermanagement.v1 - .DeleteSecurityHealthAnalyticsCustomModuleRequest - build() { - com.google.cloud.securitycentermanagement.v1.DeleteSecurityHealthAnalyticsCustomModuleRequest - result = buildPartial(); + public com.google.cloud.securitycentermanagement.v1.DeleteSecurityHealthAnalyticsCustomModuleRequest build() { + com.google.cloud.securitycentermanagement.v1.DeleteSecurityHealthAnalyticsCustomModuleRequest result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } @@ -428,24 +355,14 @@ public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { } @java.lang.Override - public com.google.cloud.securitycentermanagement.v1 - .DeleteSecurityHealthAnalyticsCustomModuleRequest - buildPartial() { - com.google.cloud.securitycentermanagement.v1.DeleteSecurityHealthAnalyticsCustomModuleRequest - result = - new com.google.cloud.securitycentermanagement.v1 - .DeleteSecurityHealthAnalyticsCustomModuleRequest(this); - if (bitField0_ != 0) { - buildPartial0(result); - } + public com.google.cloud.securitycentermanagement.v1.DeleteSecurityHealthAnalyticsCustomModuleRequest buildPartial() { + com.google.cloud.securitycentermanagement.v1.DeleteSecurityHealthAnalyticsCustomModuleRequest result = new com.google.cloud.securitycentermanagement.v1.DeleteSecurityHealthAnalyticsCustomModuleRequest(this); + if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } - private void buildPartial0( - com.google.cloud.securitycentermanagement.v1 - .DeleteSecurityHealthAnalyticsCustomModuleRequest - result) { + private void buildPartial0(com.google.cloud.securitycentermanagement.v1.DeleteSecurityHealthAnalyticsCustomModuleRequest result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000001) != 0)) { result.name_ = name_; @@ -459,58 +376,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.securitycentermanagement.v1 - .DeleteSecurityHealthAnalyticsCustomModuleRequest) { - return mergeFrom( - (com.google.cloud.securitycentermanagement.v1 - .DeleteSecurityHealthAnalyticsCustomModuleRequest) - other); + if (other instanceof com.google.cloud.securitycentermanagement.v1.DeleteSecurityHealthAnalyticsCustomModuleRequest) { + return mergeFrom((com.google.cloud.securitycentermanagement.v1.DeleteSecurityHealthAnalyticsCustomModuleRequest)other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom( - com.google.cloud.securitycentermanagement.v1 - .DeleteSecurityHealthAnalyticsCustomModuleRequest - other) { - if (other - == com.google.cloud.securitycentermanagement.v1 - .DeleteSecurityHealthAnalyticsCustomModuleRequest.getDefaultInstance()) return this; + public Builder mergeFrom(com.google.cloud.securitycentermanagement.v1.DeleteSecurityHealthAnalyticsCustomModuleRequest other) { + if (other == com.google.cloud.securitycentermanagement.v1.DeleteSecurityHealthAnalyticsCustomModuleRequest.getDefaultInstance()) return this; if (!other.getName().isEmpty()) { name_ = other.name_; bitField0_ |= 0x00000001; @@ -545,25 +450,22 @@ 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 - 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 + default: { + 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,13 +475,10 @@ public Builder mergeFrom( } // finally return this; } - private int bitField0_; private java.lang.Object name_ = ""; /** - * - * *
      * Required. The resource name of the SHA custom module.
      *
@@ -590,16 +489,14 @@ public Builder mergeFrom(
      *   * "projects/{project}/locations/{location}/securityHealthAnalyticsCustomModules/{security_health_analytics_custom_module}".
      * 
* - * - * string name = 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,8 +505,6 @@ public java.lang.String getName() { } } /** - * - * *
      * Required. The resource name of the SHA custom module.
      *
@@ -620,17 +515,16 @@ public java.lang.String getName() {
      *   * "projects/{project}/locations/{location}/securityHealthAnalyticsCustomModules/{security_health_analytics_custom_module}".
      * 
* - * - * string name = 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 { @@ -638,8 +532,6 @@ public com.google.protobuf.ByteString getNameBytes() { } } /** - * - * *
      * Required. The resource name of the SHA custom module.
      *
@@ -650,25 +542,19 @@ public com.google.protobuf.ByteString getNameBytes() {
      *   * "projects/{project}/locations/{location}/securityHealthAnalyticsCustomModules/{security_health_analytics_custom_module}".
      * 
* - * - * 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 SHA custom module.
      *
@@ -679,10 +565,7 @@ public Builder setName(java.lang.String value) {
      *   * "projects/{project}/locations/{location}/securityHealthAnalyticsCustomModules/{security_health_analytics_custom_module}".
      * 
* - * - * string 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() { @@ -692,8 +575,6 @@ public Builder clearName() { return this; } /** - * - * *
      * Required. The resource name of the SHA custom module.
      *
@@ -704,17 +585,13 @@ public Builder clearName() {
      *   * "projects/{project}/locations/{location}/securityHealthAnalyticsCustomModules/{security_health_analytics_custom_module}".
      * 
* - * - * 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; @@ -722,10 +599,8 @@ public Builder setNameBytes(com.google.protobuf.ByteString value) { return this; } - private boolean validateOnly_; + private boolean validateOnly_ ; /** - * - * *
      * Optional. When set to true, only validations (including IAM checks) will
      * done for the request (module will not be deleted). An OK response indicates
@@ -737,7 +612,6 @@ public Builder setNameBytes(com.google.protobuf.ByteString value) {
      * 
* * bool validate_only = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The validateOnly. */ @java.lang.Override @@ -745,8 +619,6 @@ public boolean getValidateOnly() { return validateOnly_; } /** - * - * *
      * Optional. When set to true, only validations (including IAM checks) will
      * done for the request (module will not be deleted). An OK response indicates
@@ -758,7 +630,6 @@ public boolean getValidateOnly() {
      * 
* * bool validate_only = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @param value The validateOnly to set. * @return This builder for chaining. */ @@ -770,8 +641,6 @@ public Builder setValidateOnly(boolean value) { return this; } /** - * - * *
      * Optional. When set to true, only validations (including IAM checks) will
      * done for the request (module will not be deleted). An OK response indicates
@@ -783,7 +652,6 @@ public Builder setValidateOnly(boolean value) {
      * 
* * bool validate_only = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @return This builder for chaining. */ public Builder clearValidateOnly() { @@ -792,9 +660,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); } @@ -804,66 +672,55 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.securitycentermanagement.v1.DeleteSecurityHealthAnalyticsCustomModuleRequest) } // @@protoc_insertion_point(class_scope:google.cloud.securitycentermanagement.v1.DeleteSecurityHealthAnalyticsCustomModuleRequest) - private static final com.google.cloud.securitycentermanagement.v1 - .DeleteSecurityHealthAnalyticsCustomModuleRequest - DEFAULT_INSTANCE; - + private static final com.google.cloud.securitycentermanagement.v1.DeleteSecurityHealthAnalyticsCustomModuleRequest DEFAULT_INSTANCE; static { - DEFAULT_INSTANCE = - new com.google.cloud.securitycentermanagement.v1 - .DeleteSecurityHealthAnalyticsCustomModuleRequest(); + DEFAULT_INSTANCE = new com.google.cloud.securitycentermanagement.v1.DeleteSecurityHealthAnalyticsCustomModuleRequest(); } - public static com.google.cloud.securitycentermanagement.v1 - .DeleteSecurityHealthAnalyticsCustomModuleRequest - getDefaultInstance() { + public static com.google.cloud.securitycentermanagement.v1.DeleteSecurityHealthAnalyticsCustomModuleRequest getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser - PARSER = - new com.google.protobuf.AbstractParser< - DeleteSecurityHealthAnalyticsCustomModuleRequest>() { - @java.lang.Override - public DeleteSecurityHealthAnalyticsCustomModuleRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException() - .setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public DeleteSecurityHealthAnalyticsCustomModuleRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; - public static com.google.protobuf.Parser - parser() { + public static com.google.protobuf.Parser parser() { return PARSER; } @java.lang.Override - public com.google.protobuf.Parser - getParserForType() { + public com.google.protobuf.Parser getParserForType() { return PARSER; } @java.lang.Override - public com.google.cloud.securitycentermanagement.v1 - .DeleteSecurityHealthAnalyticsCustomModuleRequest - getDefaultInstanceForType() { + public com.google.cloud.securitycentermanagement.v1.DeleteSecurityHealthAnalyticsCustomModuleRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/java-securitycentermanagement/proto-google-cloud-securitycentermanagement-v1/src/main/java/com/google/cloud/securitycentermanagement/v1/DeleteSecurityHealthAnalyticsCustomModuleRequestOrBuilder.java b/owl-bot-staging/java-securitycentermanagement/v1/proto-google-cloud-securitycentermanagement-v1/src/main/java/com/google/cloud/securitycentermanagement/v1/DeleteSecurityHealthAnalyticsCustomModuleRequestOrBuilder.java similarity index 69% rename from java-securitycentermanagement/proto-google-cloud-securitycentermanagement-v1/src/main/java/com/google/cloud/securitycentermanagement/v1/DeleteSecurityHealthAnalyticsCustomModuleRequestOrBuilder.java rename to owl-bot-staging/java-securitycentermanagement/v1/proto-google-cloud-securitycentermanagement-v1/src/main/java/com/google/cloud/securitycentermanagement/v1/DeleteSecurityHealthAnalyticsCustomModuleRequestOrBuilder.java index 6894285d4201..b045b68e7be9 100644 --- a/java-securitycentermanagement/proto-google-cloud-securitycentermanagement-v1/src/main/java/com/google/cloud/securitycentermanagement/v1/DeleteSecurityHealthAnalyticsCustomModuleRequestOrBuilder.java +++ b/owl-bot-staging/java-securitycentermanagement/v1/proto-google-cloud-securitycentermanagement-v1/src/main/java/com/google/cloud/securitycentermanagement/v1/DeleteSecurityHealthAnalyticsCustomModuleRequestOrBuilder.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/securitycentermanagement/v1/security_center_management.proto package com.google.cloud.securitycentermanagement.v1; -public interface DeleteSecurityHealthAnalyticsCustomModuleRequestOrBuilder - extends +public interface DeleteSecurityHealthAnalyticsCustomModuleRequestOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.securitycentermanagement.v1.DeleteSecurityHealthAnalyticsCustomModuleRequest) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * Required. The resource name of the SHA custom module.
    *
@@ -36,16 +18,11 @@ public interface DeleteSecurityHealthAnalyticsCustomModuleRequestOrBuilder
    *   * "projects/{project}/locations/{location}/securityHealthAnalyticsCustomModules/{security_health_analytics_custom_module}".
    * 
* - * - * string name = 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. The resource name of the SHA custom module.
    *
@@ -56,17 +33,13 @@ public interface DeleteSecurityHealthAnalyticsCustomModuleRequestOrBuilder
    *   * "projects/{project}/locations/{location}/securityHealthAnalyticsCustomModules/{security_health_analytics_custom_module}".
    * 
* - * - * string name = 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. When set to true, only validations (including IAM checks) will
    * done for the request (module will not be deleted). An OK response indicates
@@ -78,7 +51,6 @@ public interface DeleteSecurityHealthAnalyticsCustomModuleRequestOrBuilder
    * 
* * bool validate_only = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The validateOnly. */ boolean getValidateOnly(); diff --git a/java-securitycentermanagement/proto-google-cloud-securitycentermanagement-v1/src/main/java/com/google/cloud/securitycentermanagement/v1/EffectiveEventThreatDetectionCustomModule.java b/owl-bot-staging/java-securitycentermanagement/v1/proto-google-cloud-securitycentermanagement-v1/src/main/java/com/google/cloud/securitycentermanagement/v1/EffectiveEventThreatDetectionCustomModule.java similarity index 64% rename from java-securitycentermanagement/proto-google-cloud-securitycentermanagement-v1/src/main/java/com/google/cloud/securitycentermanagement/v1/EffectiveEventThreatDetectionCustomModule.java rename to owl-bot-staging/java-securitycentermanagement/v1/proto-google-cloud-securitycentermanagement-v1/src/main/java/com/google/cloud/securitycentermanagement/v1/EffectiveEventThreatDetectionCustomModule.java index fde570134f3d..e7e8cf1fe7e8 100644 --- a/java-securitycentermanagement/proto-google-cloud-securitycentermanagement-v1/src/main/java/com/google/cloud/securitycentermanagement/v1/EffectiveEventThreatDetectionCustomModule.java +++ b/owl-bot-staging/java-securitycentermanagement/v1/proto-google-cloud-securitycentermanagement-v1/src/main/java/com/google/cloud/securitycentermanagement/v1/EffectiveEventThreatDetectionCustomModule.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/securitycentermanagement/v1/security_center_management.proto package com.google.cloud.securitycentermanagement.v1; /** - * - * *
  * An EffectiveEventThreatDetectionCustomModule is the representation of
  * EventThreatDetectionCustomModule at a given level taking hierarchy into
@@ -31,21 +14,17 @@
  * details. EffectiveEventThreatDetectionCustomModule is read-only.
  * 
* - * Protobuf type {@code - * google.cloud.securitycentermanagement.v1.EffectiveEventThreatDetectionCustomModule} + * Protobuf type {@code google.cloud.securitycentermanagement.v1.EffectiveEventThreatDetectionCustomModule} */ -public final class EffectiveEventThreatDetectionCustomModule - extends com.google.protobuf.GeneratedMessageV3 - implements +public final class EffectiveEventThreatDetectionCustomModule extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.securitycentermanagement.v1.EffectiveEventThreatDetectionCustomModule) EffectiveEventThreatDetectionCustomModuleOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use EffectiveEventThreatDetectionCustomModule.newBuilder() to construct. - private EffectiveEventThreatDetectionCustomModule( - com.google.protobuf.GeneratedMessageV3.Builder builder) { + private EffectiveEventThreatDetectionCustomModule(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private EffectiveEventThreatDetectionCustomModule() { name_ = ""; enablementState_ = 0; @@ -56,41 +35,34 @@ private EffectiveEventThreatDetectionCustomModule() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new EffectiveEventThreatDetectionCustomModule(); } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.securitycentermanagement.v1.SecurityCenterManagementProto - .internal_static_google_cloud_securitycentermanagement_v1_EffectiveEventThreatDetectionCustomModule_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.securitycentermanagement.v1.SecurityCenterManagementProto.internal_static_google_cloud_securitycentermanagement_v1_EffectiveEventThreatDetectionCustomModule_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.securitycentermanagement.v1.SecurityCenterManagementProto - .internal_static_google_cloud_securitycentermanagement_v1_EffectiveEventThreatDetectionCustomModule_fieldAccessorTable + return com.google.cloud.securitycentermanagement.v1.SecurityCenterManagementProto.internal_static_google_cloud_securitycentermanagement_v1_EffectiveEventThreatDetectionCustomModule_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.securitycentermanagement.v1.EffectiveEventThreatDetectionCustomModule - .class, - com.google.cloud.securitycentermanagement.v1.EffectiveEventThreatDetectionCustomModule - .Builder.class); + com.google.cloud.securitycentermanagement.v1.EffectiveEventThreatDetectionCustomModule.class, com.google.cloud.securitycentermanagement.v1.EffectiveEventThreatDetectionCustomModule.Builder.class); } /** - * - * *
    * The enablement state of the module.
    * 
* - * Protobuf enum {@code - * google.cloud.securitycentermanagement.v1.EffectiveEventThreatDetectionCustomModule.EnablementState} + * Protobuf enum {@code google.cloud.securitycentermanagement.v1.EffectiveEventThreatDetectionCustomModule.EnablementState} */ - public enum EnablementState implements com.google.protobuf.ProtocolMessageEnum { + public enum EnablementState + implements com.google.protobuf.ProtocolMessageEnum { /** - * - * *
      * Unspecified enablement state.
      * 
@@ -99,8 +71,6 @@ public enum EnablementState implements com.google.protobuf.ProtocolMessageEnum { */ ENABLEMENT_STATE_UNSPECIFIED(0), /** - * - * *
      * The module is enabled at the given level.
      * 
@@ -109,8 +79,6 @@ public enum EnablementState implements com.google.protobuf.ProtocolMessageEnum { */ ENABLED(1), /** - * - * *
      * The module is disabled at the given level.
      * 
@@ -122,8 +90,6 @@ public enum EnablementState implements com.google.protobuf.ProtocolMessageEnum { ; /** - * - * *
      * Unspecified enablement state.
      * 
@@ -132,8 +98,6 @@ public enum EnablementState implements com.google.protobuf.ProtocolMessageEnum { */ public static final int ENABLEMENT_STATE_UNSPECIFIED_VALUE = 0; /** - * - * *
      * The module is enabled at the given level.
      * 
@@ -142,8 +106,6 @@ public enum EnablementState implements com.google.protobuf.ProtocolMessageEnum { */ public static final int ENABLED_VALUE = 1; /** - * - * *
      * The module is disabled at the given level.
      * 
@@ -152,6 +114,7 @@ public enum EnablementState implements com.google.protobuf.ProtocolMessageEnum { */ public static final int DISABLED_VALUE = 2; + public final int getNumber() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalArgumentException( @@ -176,46 +139,40 @@ public static EnablementState valueOf(int value) { */ public static EnablementState forNumber(int value) { switch (value) { - case 0: - return ENABLEMENT_STATE_UNSPECIFIED; - case 1: - return ENABLED; - case 2: - return DISABLED; - default: - return null; + case 0: return ENABLEMENT_STATE_UNSPECIFIED; + case 1: return ENABLED; + case 2: return DISABLED; + 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< + EnablementState> internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public EnablementState findValueByNumber(int number) { + return EnablementState.forNumber(number); + } + }; - private static final com.google.protobuf.Internal.EnumLiteMap - internalValueMap = - new com.google.protobuf.Internal.EnumLiteMap() { - public EnablementState findValueByNumber(int number) { - return EnablementState.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.securitycentermanagement.v1.EffectiveEventThreatDetectionCustomModule - .getDescriptor() - .getEnumTypes() - .get(0); + public static final com.google.protobuf.Descriptors.EnumDescriptor + getDescriptor() { + return com.google.cloud.securitycentermanagement.v1.EffectiveEventThreatDetectionCustomModule.getDescriptor().getEnumTypes().get(0); } private static final EnablementState[] VALUES = values(); @@ -223,7 +180,8 @@ public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor public static EnablementState 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; @@ -241,12 +199,9 @@ private EnablementState(int value) { } public static final int NAME_FIELD_NUMBER = 1; - @SuppressWarnings("serial") private volatile java.lang.Object name_ = ""; /** - * - * *
    * Immutable. The resource name of the ETD custom module.
    *
@@ -258,7 +213,6 @@ private EnablementState(int value) {
    * 
* * string name = 1 [(.google.api.field_behavior) = IMMUTABLE]; - * * @return The name. */ @java.lang.Override @@ -267,15 +221,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; } } /** - * - * *
    * Immutable. The resource name of the ETD custom module.
    *
@@ -287,15 +240,16 @@ public java.lang.String getName() {
    * 
* * string name = 1 [(.google.api.field_behavior) = IMMUTABLE]; - * * @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 { @@ -306,14 +260,11 @@ public com.google.protobuf.ByteString getNameBytes() { public static final int CONFIG_FIELD_NUMBER = 2; private com.google.protobuf.Struct config_; /** - * - * *
    * Output only. Config for the effective module.
    * 
* * .google.protobuf.Struct config = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return Whether the config field is set. */ @java.lang.Override @@ -321,14 +272,11 @@ public boolean hasConfig() { return config_ != null; } /** - * - * *
    * Output only. Config for the effective module.
    * 
* * .google.protobuf.Struct config = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The config. */ @java.lang.Override @@ -336,8 +284,6 @@ public com.google.protobuf.Struct getConfig() { return config_ == null ? com.google.protobuf.Struct.getDefaultInstance() : config_; } /** - * - * *
    * Output only. Config for the effective module.
    * 
@@ -352,65 +298,40 @@ public com.google.protobuf.StructOrBuilder getConfigOrBuilder() { public static final int ENABLEMENT_STATE_FIELD_NUMBER = 3; private int enablementState_ = 0; /** - * - * *
    * Output only. The effective state of enablement for the module at the given
    * level of the hierarchy.
    * 
* - * - * .google.cloud.securitycentermanagement.v1.EffectiveEventThreatDetectionCustomModule.EnablementState enablement_state = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.cloud.securitycentermanagement.v1.EffectiveEventThreatDetectionCustomModule.EnablementState enablement_state = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The enum numeric value on the wire for enablementState. */ - @java.lang.Override - public int getEnablementStateValue() { + @java.lang.Override public int getEnablementStateValue() { return enablementState_; } /** - * - * *
    * Output only. The effective state of enablement for the module at the given
    * level of the hierarchy.
    * 
* - * - * .google.cloud.securitycentermanagement.v1.EffectiveEventThreatDetectionCustomModule.EnablementState enablement_state = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.cloud.securitycentermanagement.v1.EffectiveEventThreatDetectionCustomModule.EnablementState enablement_state = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The enablementState. */ - @java.lang.Override - public com.google.cloud.securitycentermanagement.v1.EffectiveEventThreatDetectionCustomModule - .EnablementState - getEnablementState() { - com.google.cloud.securitycentermanagement.v1.EffectiveEventThreatDetectionCustomModule - .EnablementState - result = - com.google.cloud.securitycentermanagement.v1.EffectiveEventThreatDetectionCustomModule - .EnablementState.forNumber(enablementState_); - return result == null - ? com.google.cloud.securitycentermanagement.v1.EffectiveEventThreatDetectionCustomModule - .EnablementState.UNRECOGNIZED - : result; + @java.lang.Override public com.google.cloud.securitycentermanagement.v1.EffectiveEventThreatDetectionCustomModule.EnablementState getEnablementState() { + com.google.cloud.securitycentermanagement.v1.EffectiveEventThreatDetectionCustomModule.EnablementState result = com.google.cloud.securitycentermanagement.v1.EffectiveEventThreatDetectionCustomModule.EnablementState.forNumber(enablementState_); + return result == null ? com.google.cloud.securitycentermanagement.v1.EffectiveEventThreatDetectionCustomModule.EnablementState.UNRECOGNIZED : result; } public static final int TYPE_FIELD_NUMBER = 4; - @SuppressWarnings("serial") private volatile java.lang.Object type_ = ""; /** - * - * *
    * Output only. Type for the module. e.g. CONFIGURABLE_BAD_IP.
    * 
* * string type = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The type. */ @java.lang.Override @@ -419,29 +340,29 @@ 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; } } /** - * - * *
    * Output only. Type for the module. e.g. CONFIGURABLE_BAD_IP.
    * 
* * string type = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @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 { @@ -450,18 +371,14 @@ public com.google.protobuf.ByteString getTypeBytes() { } public static final int DISPLAY_NAME_FIELD_NUMBER = 5; - @SuppressWarnings("serial") private volatile java.lang.Object displayName_ = ""; /** - * - * *
    * Output only. The human readable name to be displayed for the module.
    * 
* * string display_name = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The displayName. */ @java.lang.Override @@ -470,29 +387,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; } } /** - * - * *
    * Output only. The human readable name to be displayed for the module.
    * 
* * string display_name = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @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 { @@ -501,18 +418,14 @@ public com.google.protobuf.ByteString getDisplayNameBytes() { } public static final int DESCRIPTION_FIELD_NUMBER = 6; - @SuppressWarnings("serial") private volatile java.lang.Object description_ = ""; /** - * - * *
    * Output only. The description for the module.
    * 
* * string description = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The description. */ @java.lang.Override @@ -521,29 +434,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 for the module.
    * 
* * string description = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @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 { @@ -552,7 +465,6 @@ public com.google.protobuf.ByteString getDescriptionBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -564,17 +476,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 (config_ != null) { output.writeMessage(2, getConfig()); } - if (enablementState_ - != com.google.cloud.securitycentermanagement.v1.EffectiveEventThreatDetectionCustomModule - .EnablementState.ENABLEMENT_STATE_UNSPECIFIED - .getNumber()) { + if (enablementState_ != com.google.cloud.securitycentermanagement.v1.EffectiveEventThreatDetectionCustomModule.EnablementState.ENABLEMENT_STATE_UNSPECIFIED.getNumber()) { output.writeEnum(3, enablementState_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(type_)) { @@ -599,13 +509,12 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); } if (config_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getConfig()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(2, getConfig()); } - if (enablementState_ - != com.google.cloud.securitycentermanagement.v1.EffectiveEventThreatDetectionCustomModule - .EnablementState.ENABLEMENT_STATE_UNSPECIFIED - .getNumber()) { - size += com.google.protobuf.CodedOutputStream.computeEnumSize(3, enablementState_); + if (enablementState_ != com.google.cloud.securitycentermanagement.v1.EffectiveEventThreatDetectionCustomModule.EnablementState.ENABLEMENT_STATE_UNSPECIFIED.getNumber()) { + size += com.google.protobuf.CodedOutputStream + .computeEnumSize(3, enablementState_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(type_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, type_); @@ -624,26 +533,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.securitycentermanagement.v1.EffectiveEventThreatDetectionCustomModule)) { + if (!(obj instanceof com.google.cloud.securitycentermanagement.v1.EffectiveEventThreatDetectionCustomModule)) { return super.equals(obj); } - com.google.cloud.securitycentermanagement.v1.EffectiveEventThreatDetectionCustomModule other = - (com.google.cloud.securitycentermanagement.v1.EffectiveEventThreatDetectionCustomModule) - obj; + com.google.cloud.securitycentermanagement.v1.EffectiveEventThreatDetectionCustomModule other = (com.google.cloud.securitycentermanagement.v1.EffectiveEventThreatDetectionCustomModule) obj; - if (!getName().equals(other.getName())) return false; + if (!getName() + .equals(other.getName())) return false; if (hasConfig() != other.hasConfig()) return false; if (hasConfig()) { - if (!getConfig().equals(other.getConfig())) return false; + if (!getConfig() + .equals(other.getConfig())) return false; } if (enablementState_ != other.enablementState_) return false; - if (!getType().equals(other.getType())) return false; - if (!getDisplayName().equals(other.getDisplayName())) return false; - if (!getDescription().equals(other.getDescription())) return false; + if (!getType() + .equals(other.getType())) return false; + if (!getDisplayName() + .equals(other.getDisplayName())) return false; + if (!getDescription() + .equals(other.getDescription())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -674,124 +584,99 @@ public int hashCode() { return hash; } - public static com.google.cloud.securitycentermanagement.v1 - .EffectiveEventThreatDetectionCustomModule - parseFrom(java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.securitycentermanagement.v1.EffectiveEventThreatDetectionCustomModule parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - - public static com.google.cloud.securitycentermanagement.v1 - .EffectiveEventThreatDetectionCustomModule - parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.securitycentermanagement.v1.EffectiveEventThreatDetectionCustomModule 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.securitycentermanagement.v1 - .EffectiveEventThreatDetectionCustomModule - parseFrom(com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.securitycentermanagement.v1.EffectiveEventThreatDetectionCustomModule parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - - public static com.google.cloud.securitycentermanagement.v1 - .EffectiveEventThreatDetectionCustomModule - parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.securitycentermanagement.v1.EffectiveEventThreatDetectionCustomModule parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.securitycentermanagement.v1 - .EffectiveEventThreatDetectionCustomModule - parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.securitycentermanagement.v1.EffectiveEventThreatDetectionCustomModule parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - - public static com.google.cloud.securitycentermanagement.v1 - .EffectiveEventThreatDetectionCustomModule - parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.securitycentermanagement.v1.EffectiveEventThreatDetectionCustomModule parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.securitycentermanagement.v1 - .EffectiveEventThreatDetectionCustomModule - parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.securitycentermanagement.v1.EffectiveEventThreatDetectionCustomModule parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - - public static com.google.cloud.securitycentermanagement.v1 - .EffectiveEventThreatDetectionCustomModule - 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.securitycentermanagement.v1.EffectiveEventThreatDetectionCustomModule 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.securitycentermanagement.v1 - .EffectiveEventThreatDetectionCustomModule - parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.securitycentermanagement.v1.EffectiveEventThreatDetectionCustomModule parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.securitycentermanagement.v1 - .EffectiveEventThreatDetectionCustomModule - parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + public static com.google.cloud.securitycentermanagement.v1.EffectiveEventThreatDetectionCustomModule parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.securitycentermanagement.v1 - .EffectiveEventThreatDetectionCustomModule - parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.securitycentermanagement.v1.EffectiveEventThreatDetectionCustomModule parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - - public static com.google.cloud.securitycentermanagement.v1 - .EffectiveEventThreatDetectionCustomModule - 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.securitycentermanagement.v1.EffectiveEventThreatDetectionCustomModule 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.securitycentermanagement.v1.EffectiveEventThreatDetectionCustomModule - prototype) { + public static Builder newBuilder(com.google.cloud.securitycentermanagement.v1.EffectiveEventThreatDetectionCustomModule prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * An EffectiveEventThreatDetectionCustomModule is the representation of
    * EventThreatDetectionCustomModule at a given level taking hierarchy into
@@ -802,39 +687,35 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build
    * details. EffectiveEventThreatDetectionCustomModule is read-only.
    * 
* - * Protobuf type {@code - * google.cloud.securitycentermanagement.v1.EffectiveEventThreatDetectionCustomModule} + * Protobuf type {@code google.cloud.securitycentermanagement.v1.EffectiveEventThreatDetectionCustomModule} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.securitycentermanagement.v1.EffectiveEventThreatDetectionCustomModule) - com.google.cloud.securitycentermanagement.v1 - .EffectiveEventThreatDetectionCustomModuleOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.securitycentermanagement.v1.SecurityCenterManagementProto - .internal_static_google_cloud_securitycentermanagement_v1_EffectiveEventThreatDetectionCustomModule_descriptor; + com.google.cloud.securitycentermanagement.v1.EffectiveEventThreatDetectionCustomModuleOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.securitycentermanagement.v1.SecurityCenterManagementProto.internal_static_google_cloud_securitycentermanagement_v1_EffectiveEventThreatDetectionCustomModule_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.securitycentermanagement.v1.SecurityCenterManagementProto - .internal_static_google_cloud_securitycentermanagement_v1_EffectiveEventThreatDetectionCustomModule_fieldAccessorTable + return com.google.cloud.securitycentermanagement.v1.SecurityCenterManagementProto.internal_static_google_cloud_securitycentermanagement_v1_EffectiveEventThreatDetectionCustomModule_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.securitycentermanagement.v1.EffectiveEventThreatDetectionCustomModule - .class, - com.google.cloud.securitycentermanagement.v1.EffectiveEventThreatDetectionCustomModule - .Builder.class); + com.google.cloud.securitycentermanagement.v1.EffectiveEventThreatDetectionCustomModule.class, com.google.cloud.securitycentermanagement.v1.EffectiveEventThreatDetectionCustomModule.Builder.class); } - // Construct using - // com.google.cloud.securitycentermanagement.v1.EffectiveEventThreatDetectionCustomModule.newBuilder() - private Builder() {} + // Construct using com.google.cloud.securitycentermanagement.v1.EffectiveEventThreatDetectionCustomModule.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(); @@ -853,23 +734,19 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.securitycentermanagement.v1.SecurityCenterManagementProto - .internal_static_google_cloud_securitycentermanagement_v1_EffectiveEventThreatDetectionCustomModule_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.securitycentermanagement.v1.SecurityCenterManagementProto.internal_static_google_cloud_securitycentermanagement_v1_EffectiveEventThreatDetectionCustomModule_descriptor; } @java.lang.Override - public com.google.cloud.securitycentermanagement.v1.EffectiveEventThreatDetectionCustomModule - getDefaultInstanceForType() { - return com.google.cloud.securitycentermanagement.v1.EffectiveEventThreatDetectionCustomModule - .getDefaultInstance(); + public com.google.cloud.securitycentermanagement.v1.EffectiveEventThreatDetectionCustomModule getDefaultInstanceForType() { + return com.google.cloud.securitycentermanagement.v1.EffectiveEventThreatDetectionCustomModule.getDefaultInstance(); } @java.lang.Override - public com.google.cloud.securitycentermanagement.v1.EffectiveEventThreatDetectionCustomModule - build() { - com.google.cloud.securitycentermanagement.v1.EffectiveEventThreatDetectionCustomModule - result = buildPartial(); + public com.google.cloud.securitycentermanagement.v1.EffectiveEventThreatDetectionCustomModule build() { + com.google.cloud.securitycentermanagement.v1.EffectiveEventThreatDetectionCustomModule result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } @@ -877,28 +754,22 @@ public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { } @java.lang.Override - public com.google.cloud.securitycentermanagement.v1.EffectiveEventThreatDetectionCustomModule - buildPartial() { - com.google.cloud.securitycentermanagement.v1.EffectiveEventThreatDetectionCustomModule - result = - new com.google.cloud.securitycentermanagement.v1 - .EffectiveEventThreatDetectionCustomModule(this); - if (bitField0_ != 0) { - buildPartial0(result); - } + public com.google.cloud.securitycentermanagement.v1.EffectiveEventThreatDetectionCustomModule buildPartial() { + com.google.cloud.securitycentermanagement.v1.EffectiveEventThreatDetectionCustomModule result = new com.google.cloud.securitycentermanagement.v1.EffectiveEventThreatDetectionCustomModule(this); + if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } - private void buildPartial0( - com.google.cloud.securitycentermanagement.v1.EffectiveEventThreatDetectionCustomModule - result) { + private void buildPartial0(com.google.cloud.securitycentermanagement.v1.EffectiveEventThreatDetectionCustomModule result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000001) != 0)) { result.name_ = name_; } if (((from_bitField0_ & 0x00000002) != 0)) { - result.config_ = configBuilder_ == null ? config_ : configBuilder_.build(); + result.config_ = configBuilder_ == null + ? config_ + : configBuilder_.build(); } if (((from_bitField0_ & 0x00000004) != 0)) { result.enablementState_ = enablementState_; @@ -918,55 +789,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.securitycentermanagement.v1.EffectiveEventThreatDetectionCustomModule) { - return mergeFrom( - (com.google.cloud.securitycentermanagement.v1.EffectiveEventThreatDetectionCustomModule) - other); + if (other instanceof com.google.cloud.securitycentermanagement.v1.EffectiveEventThreatDetectionCustomModule) { + return mergeFrom((com.google.cloud.securitycentermanagement.v1.EffectiveEventThreatDetectionCustomModule)other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom( - com.google.cloud.securitycentermanagement.v1.EffectiveEventThreatDetectionCustomModule - other) { - if (other - == com.google.cloud.securitycentermanagement.v1.EffectiveEventThreatDetectionCustomModule - .getDefaultInstance()) return this; + public Builder mergeFrom(com.google.cloud.securitycentermanagement.v1.EffectiveEventThreatDetectionCustomModule other) { + if (other == com.google.cloud.securitycentermanagement.v1.EffectiveEventThreatDetectionCustomModule.getDefaultInstance()) return this; if (!other.getName().isEmpty()) { name_ = other.name_; bitField0_ |= 0x00000001; @@ -1019,49 +881,44 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: - { - name_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 18: - { - input.readMessage(getConfigFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00000002; - break; - } // case 18 - case 24: - { - enablementState_ = input.readEnum(); - bitField0_ |= 0x00000004; - break; - } // case 24 - case 34: - { - type_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000008; - break; - } // case 34 - case 42: - { - displayName_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000010; - break; - } // case 42 - case 50: - { - description_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000020; - break; - } // case 50 - 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( + getConfigFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 24: { + enablementState_ = input.readEnum(); + bitField0_ |= 0x00000004; + break; + } // case 24 + case 34: { + type_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000008; + break; + } // case 34 + case 42: { + displayName_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000010; + break; + } // case 42 + case 50: { + description_ = 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) { @@ -1071,13 +928,10 @@ public Builder mergeFrom( } // finally return this; } - private int bitField0_; private java.lang.Object name_ = ""; /** - * - * *
      * Immutable. The resource name of the ETD custom module.
      *
@@ -1089,13 +943,13 @@ public Builder mergeFrom(
      * 
* * string name = 1 [(.google.api.field_behavior) = IMMUTABLE]; - * * @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; @@ -1104,8 +958,6 @@ public java.lang.String getName() { } } /** - * - * *
      * Immutable. The resource name of the ETD custom module.
      *
@@ -1117,14 +969,15 @@ public java.lang.String getName() {
      * 
* * string name = 1 [(.google.api.field_behavior) = IMMUTABLE]; - * * @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 { @@ -1132,8 +985,6 @@ public com.google.protobuf.ByteString getNameBytes() { } } /** - * - * *
      * Immutable. The resource name of the ETD custom module.
      *
@@ -1145,22 +996,18 @@ public com.google.protobuf.ByteString getNameBytes() {
      * 
* * string name = 1 [(.google.api.field_behavior) = IMMUTABLE]; - * * @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; } /** - * - * *
      * Immutable. The resource name of the ETD custom module.
      *
@@ -1172,7 +1019,6 @@ public Builder setName(java.lang.String value) {
      * 
* * string name = 1 [(.google.api.field_behavior) = IMMUTABLE]; - * * @return This builder for chaining. */ public Builder clearName() { @@ -1182,8 +1028,6 @@ public Builder clearName() { return this; } /** - * - * *
      * Immutable. The resource name of the ETD custom module.
      *
@@ -1195,14 +1039,12 @@ public Builder clearName() {
      * 
* * string name = 1 [(.google.api.field_behavior) = IMMUTABLE]; - * * @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; @@ -1212,33 +1054,24 @@ public Builder setNameBytes(com.google.protobuf.ByteString value) { private com.google.protobuf.Struct config_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Struct, - com.google.protobuf.Struct.Builder, - com.google.protobuf.StructOrBuilder> - configBuilder_; + com.google.protobuf.Struct, com.google.protobuf.Struct.Builder, com.google.protobuf.StructOrBuilder> configBuilder_; /** - * - * *
      * Output only. Config for the effective module.
      * 
* * .google.protobuf.Struct config = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return Whether the config field is set. */ public boolean hasConfig() { return ((bitField0_ & 0x00000002) != 0); } /** - * - * *
      * Output only. Config for the effective module.
      * 
* * .google.protobuf.Struct config = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The config. */ public com.google.protobuf.Struct getConfig() { @@ -1249,8 +1082,6 @@ public com.google.protobuf.Struct getConfig() { } } /** - * - * *
      * Output only. Config for the effective module.
      * 
@@ -1271,15 +1102,14 @@ public Builder setConfig(com.google.protobuf.Struct value) { return this; } /** - * - * *
      * Output only. Config for the effective module.
      * 
* * .google.protobuf.Struct config = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ - public Builder setConfig(com.google.protobuf.Struct.Builder builderForValue) { + public Builder setConfig( + com.google.protobuf.Struct.Builder builderForValue) { if (configBuilder_ == null) { config_ = builderForValue.build(); } else { @@ -1290,8 +1120,6 @@ public Builder setConfig(com.google.protobuf.Struct.Builder builderForValue) { return this; } /** - * - * *
      * Output only. Config for the effective module.
      * 
@@ -1300,9 +1128,9 @@ public Builder setConfig(com.google.protobuf.Struct.Builder builderForValue) { */ public Builder mergeConfig(com.google.protobuf.Struct value) { if (configBuilder_ == null) { - if (((bitField0_ & 0x00000002) != 0) - && config_ != null - && config_ != com.google.protobuf.Struct.getDefaultInstance()) { + if (((bitField0_ & 0x00000002) != 0) && + config_ != null && + config_ != com.google.protobuf.Struct.getDefaultInstance()) { getConfigBuilder().mergeFrom(value); } else { config_ = value; @@ -1315,8 +1143,6 @@ public Builder mergeConfig(com.google.protobuf.Struct value) { return this; } /** - * - * *
      * Output only. Config for the effective module.
      * 
@@ -1334,8 +1160,6 @@ public Builder clearConfig() { return this; } /** - * - * *
      * Output only. Config for the effective module.
      * 
@@ -1348,8 +1172,6 @@ public com.google.protobuf.Struct.Builder getConfigBuilder() { return getConfigFieldBuilder().getBuilder(); } /** - * - * *
      * Output only. Config for the effective module.
      * 
@@ -1360,12 +1182,11 @@ public com.google.protobuf.StructOrBuilder getConfigOrBuilder() { if (configBuilder_ != null) { return configBuilder_.getMessageOrBuilder(); } else { - return config_ == null ? com.google.protobuf.Struct.getDefaultInstance() : config_; + return config_ == null ? + com.google.protobuf.Struct.getDefaultInstance() : config_; } } /** - * - * *
      * Output only. Config for the effective module.
      * 
@@ -1373,17 +1194,14 @@ public com.google.protobuf.StructOrBuilder getConfigOrBuilder() { * .google.protobuf.Struct config = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Struct, - com.google.protobuf.Struct.Builder, - com.google.protobuf.StructOrBuilder> + com.google.protobuf.Struct, com.google.protobuf.Struct.Builder, com.google.protobuf.StructOrBuilder> getConfigFieldBuilder() { if (configBuilder_ == null) { - configBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Struct, - com.google.protobuf.Struct.Builder, - com.google.protobuf.StructOrBuilder>( - getConfig(), getParentForChildren(), isClean()); + configBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Struct, com.google.protobuf.Struct.Builder, com.google.protobuf.StructOrBuilder>( + getConfig(), + getParentForChildren(), + isClean()); config_ = null; } return configBuilder_; @@ -1391,35 +1209,24 @@ public com.google.protobuf.StructOrBuilder getConfigOrBuilder() { private int enablementState_ = 0; /** - * - * *
      * Output only. The effective state of enablement for the module at the given
      * level of the hierarchy.
      * 
* - * - * .google.cloud.securitycentermanagement.v1.EffectiveEventThreatDetectionCustomModule.EnablementState enablement_state = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.cloud.securitycentermanagement.v1.EffectiveEventThreatDetectionCustomModule.EnablementState enablement_state = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The enum numeric value on the wire for enablementState. */ - @java.lang.Override - public int getEnablementStateValue() { + @java.lang.Override public int getEnablementStateValue() { return enablementState_; } /** - * - * *
      * Output only. The effective state of enablement for the module at the given
      * level of the hierarchy.
      * 
* - * - * .google.cloud.securitycentermanagement.v1.EffectiveEventThreatDetectionCustomModule.EnablementState enablement_state = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.cloud.securitycentermanagement.v1.EffectiveEventThreatDetectionCustomModule.EnablementState enablement_state = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @param value The enum numeric value on the wire for enablementState to set. * @return This builder for chaining. */ @@ -1430,52 +1237,30 @@ public Builder setEnablementStateValue(int value) { return this; } /** - * - * *
      * Output only. The effective state of enablement for the module at the given
      * level of the hierarchy.
      * 
* - * - * .google.cloud.securitycentermanagement.v1.EffectiveEventThreatDetectionCustomModule.EnablementState enablement_state = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.cloud.securitycentermanagement.v1.EffectiveEventThreatDetectionCustomModule.EnablementState enablement_state = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The enablementState. */ @java.lang.Override - public com.google.cloud.securitycentermanagement.v1.EffectiveEventThreatDetectionCustomModule - .EnablementState - getEnablementState() { - com.google.cloud.securitycentermanagement.v1.EffectiveEventThreatDetectionCustomModule - .EnablementState - result = - com.google.cloud.securitycentermanagement.v1.EffectiveEventThreatDetectionCustomModule - .EnablementState.forNumber(enablementState_); - return result == null - ? com.google.cloud.securitycentermanagement.v1.EffectiveEventThreatDetectionCustomModule - .EnablementState.UNRECOGNIZED - : result; + public com.google.cloud.securitycentermanagement.v1.EffectiveEventThreatDetectionCustomModule.EnablementState getEnablementState() { + com.google.cloud.securitycentermanagement.v1.EffectiveEventThreatDetectionCustomModule.EnablementState result = com.google.cloud.securitycentermanagement.v1.EffectiveEventThreatDetectionCustomModule.EnablementState.forNumber(enablementState_); + return result == null ? com.google.cloud.securitycentermanagement.v1.EffectiveEventThreatDetectionCustomModule.EnablementState.UNRECOGNIZED : result; } /** - * - * *
      * Output only. The effective state of enablement for the module at the given
      * level of the hierarchy.
      * 
* - * - * .google.cloud.securitycentermanagement.v1.EffectiveEventThreatDetectionCustomModule.EnablementState enablement_state = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.cloud.securitycentermanagement.v1.EffectiveEventThreatDetectionCustomModule.EnablementState enablement_state = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @param value The enablementState to set. * @return This builder for chaining. */ - public Builder setEnablementState( - com.google.cloud.securitycentermanagement.v1.EffectiveEventThreatDetectionCustomModule - .EnablementState - value) { + public Builder setEnablementState(com.google.cloud.securitycentermanagement.v1.EffectiveEventThreatDetectionCustomModule.EnablementState value) { if (value == null) { throw new NullPointerException(); } @@ -1485,17 +1270,12 @@ public Builder setEnablementState( return this; } /** - * - * *
      * Output only. The effective state of enablement for the module at the given
      * level of the hierarchy.
      * 
* - * - * .google.cloud.securitycentermanagement.v1.EffectiveEventThreatDetectionCustomModule.EnablementState enablement_state = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.cloud.securitycentermanagement.v1.EffectiveEventThreatDetectionCustomModule.EnablementState enablement_state = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return This builder for chaining. */ public Builder clearEnablementState() { @@ -1507,20 +1287,18 @@ public Builder clearEnablementState() { private java.lang.Object type_ = ""; /** - * - * *
      * Output only. Type for the module. e.g. CONFIGURABLE_BAD_IP.
      * 
* * string type = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @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; @@ -1529,21 +1307,20 @@ public java.lang.String getType() { } } /** - * - * *
      * Output only. Type for the module. e.g. CONFIGURABLE_BAD_IP.
      * 
* * string type = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @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 { @@ -1551,35 +1328,28 @@ public com.google.protobuf.ByteString getTypeBytes() { } } /** - * - * *
      * Output only. Type for the module. e.g. CONFIGURABLE_BAD_IP.
      * 
* * string type = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @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_ |= 0x00000008; onChanged(); return this; } /** - * - * *
      * Output only. Type for the module. e.g. CONFIGURABLE_BAD_IP.
      * 
* * string type = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return This builder for chaining. */ public Builder clearType() { @@ -1589,21 +1359,17 @@ public Builder clearType() { return this; } /** - * - * *
      * Output only. Type for the module. e.g. CONFIGURABLE_BAD_IP.
      * 
* * string type = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @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_ |= 0x00000008; @@ -1613,20 +1379,18 @@ public Builder setTypeBytes(com.google.protobuf.ByteString value) { private java.lang.Object displayName_ = ""; /** - * - * *
      * Output only. The human readable name to be displayed for the module.
      * 
* * string display_name = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @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; @@ -1635,21 +1399,20 @@ public java.lang.String getDisplayName() { } } /** - * - * *
      * Output only. The human readable name to be displayed for the module.
      * 
* * string display_name = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @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 { @@ -1657,35 +1420,28 @@ public com.google.protobuf.ByteString getDisplayNameBytes() { } } /** - * - * *
      * Output only. The human readable name to be displayed for the module.
      * 
* * string display_name = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @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_ |= 0x00000010; onChanged(); return this; } /** - * - * *
      * Output only. The human readable name to be displayed for the module.
      * 
* * string display_name = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return This builder for chaining. */ public Builder clearDisplayName() { @@ -1695,21 +1451,17 @@ public Builder clearDisplayName() { return this; } /** - * - * *
      * Output only. The human readable name to be displayed for the module.
      * 
* * string display_name = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @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_ |= 0x00000010; @@ -1719,20 +1471,18 @@ public Builder setDisplayNameBytes(com.google.protobuf.ByteString value) { private java.lang.Object description_ = ""; /** - * - * *
      * Output only. The description for the module.
      * 
* * string description = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @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; @@ -1741,21 +1491,20 @@ public java.lang.String getDescription() { } } /** - * - * *
      * Output only. The description for the module.
      * 
* * string description = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @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 { @@ -1763,35 +1512,28 @@ public com.google.protobuf.ByteString getDescriptionBytes() { } } /** - * - * *
      * Output only. The description for the module.
      * 
* * string description = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @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; } /** - * - * *
      * Output only. The description for the module.
      * 
* * string description = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return This builder for chaining. */ public Builder clearDescription() { @@ -1801,30 +1543,26 @@ public Builder clearDescription() { return this; } /** - * - * *
      * Output only. The description for the module.
      * 
* * string description = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @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; onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1834,49 +1572,41 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.securitycentermanagement.v1.EffectiveEventThreatDetectionCustomModule) } // @@protoc_insertion_point(class_scope:google.cloud.securitycentermanagement.v1.EffectiveEventThreatDetectionCustomModule) - private static final com.google.cloud.securitycentermanagement.v1 - .EffectiveEventThreatDetectionCustomModule - DEFAULT_INSTANCE; - + private static final com.google.cloud.securitycentermanagement.v1.EffectiveEventThreatDetectionCustomModule DEFAULT_INSTANCE; static { - DEFAULT_INSTANCE = - new com.google.cloud.securitycentermanagement.v1 - .EffectiveEventThreatDetectionCustomModule(); + DEFAULT_INSTANCE = new com.google.cloud.securitycentermanagement.v1.EffectiveEventThreatDetectionCustomModule(); } - public static com.google.cloud.securitycentermanagement.v1 - .EffectiveEventThreatDetectionCustomModule - getDefaultInstance() { + public static com.google.cloud.securitycentermanagement.v1.EffectiveEventThreatDetectionCustomModule getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser - PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public EffectiveEventThreatDetectionCustomModule parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException() - .setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public EffectiveEventThreatDetectionCustomModule parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1888,8 +1618,9 @@ public com.google.protobuf.Parser get } @java.lang.Override - public com.google.cloud.securitycentermanagement.v1.EffectiveEventThreatDetectionCustomModule - getDefaultInstanceForType() { + public com.google.cloud.securitycentermanagement.v1.EffectiveEventThreatDetectionCustomModule getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/java-securitycentermanagement/proto-google-cloud-securitycentermanagement-v1/src/main/java/com/google/cloud/securitycentermanagement/v1/EffectiveEventThreatDetectionCustomModuleName.java b/owl-bot-staging/java-securitycentermanagement/v1/proto-google-cloud-securitycentermanagement-v1/src/main/java/com/google/cloud/securitycentermanagement/v1/EffectiveEventThreatDetectionCustomModuleName.java similarity index 100% rename from java-securitycentermanagement/proto-google-cloud-securitycentermanagement-v1/src/main/java/com/google/cloud/securitycentermanagement/v1/EffectiveEventThreatDetectionCustomModuleName.java rename to owl-bot-staging/java-securitycentermanagement/v1/proto-google-cloud-securitycentermanagement-v1/src/main/java/com/google/cloud/securitycentermanagement/v1/EffectiveEventThreatDetectionCustomModuleName.java diff --git a/java-securitycentermanagement/proto-google-cloud-securitycentermanagement-v1/src/main/java/com/google/cloud/securitycentermanagement/v1/EffectiveEventThreatDetectionCustomModuleOrBuilder.java b/owl-bot-staging/java-securitycentermanagement/v1/proto-google-cloud-securitycentermanagement-v1/src/main/java/com/google/cloud/securitycentermanagement/v1/EffectiveEventThreatDetectionCustomModuleOrBuilder.java similarity index 75% rename from java-securitycentermanagement/proto-google-cloud-securitycentermanagement-v1/src/main/java/com/google/cloud/securitycentermanagement/v1/EffectiveEventThreatDetectionCustomModuleOrBuilder.java rename to owl-bot-staging/java-securitycentermanagement/v1/proto-google-cloud-securitycentermanagement-v1/src/main/java/com/google/cloud/securitycentermanagement/v1/EffectiveEventThreatDetectionCustomModuleOrBuilder.java index aeaf210ff76c..2cd77e696f44 100644 --- a/java-securitycentermanagement/proto-google-cloud-securitycentermanagement-v1/src/main/java/com/google/cloud/securitycentermanagement/v1/EffectiveEventThreatDetectionCustomModuleOrBuilder.java +++ b/owl-bot-staging/java-securitycentermanagement/v1/proto-google-cloud-securitycentermanagement-v1/src/main/java/com/google/cloud/securitycentermanagement/v1/EffectiveEventThreatDetectionCustomModuleOrBuilder.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/securitycentermanagement/v1/security_center_management.proto package com.google.cloud.securitycentermanagement.v1; -public interface EffectiveEventThreatDetectionCustomModuleOrBuilder - extends +public interface EffectiveEventThreatDetectionCustomModuleOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.securitycentermanagement.v1.EffectiveEventThreatDetectionCustomModule) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * Immutable. The resource name of the ETD custom module.
    *
@@ -37,13 +19,10 @@ public interface EffectiveEventThreatDetectionCustomModuleOrBuilder
    * 
* * string name = 1 [(.google.api.field_behavior) = IMMUTABLE]; - * * @return The name. */ java.lang.String getName(); /** - * - * *
    * Immutable. The resource name of the ETD custom module.
    *
@@ -55,38 +34,30 @@ public interface EffectiveEventThreatDetectionCustomModuleOrBuilder
    * 
* * string name = 1 [(.google.api.field_behavior) = IMMUTABLE]; - * * @return The bytes for name. */ - com.google.protobuf.ByteString getNameBytes(); + com.google.protobuf.ByteString + getNameBytes(); /** - * - * *
    * Output only. Config for the effective module.
    * 
* * .google.protobuf.Struct config = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return Whether the config field is set. */ boolean hasConfig(); /** - * - * *
    * Output only. Config for the effective module.
    * 
* * .google.protobuf.Struct config = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The config. */ com.google.protobuf.Struct getConfig(); /** - * - * *
    * Output only. Config for the effective module.
    * 
@@ -96,110 +67,83 @@ public interface EffectiveEventThreatDetectionCustomModuleOrBuilder com.google.protobuf.StructOrBuilder getConfigOrBuilder(); /** - * - * *
    * Output only. The effective state of enablement for the module at the given
    * level of the hierarchy.
    * 
* - * - * .google.cloud.securitycentermanagement.v1.EffectiveEventThreatDetectionCustomModule.EnablementState enablement_state = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.cloud.securitycentermanagement.v1.EffectiveEventThreatDetectionCustomModule.EnablementState enablement_state = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The enum numeric value on the wire for enablementState. */ int getEnablementStateValue(); /** - * - * *
    * Output only. The effective state of enablement for the module at the given
    * level of the hierarchy.
    * 
* - * - * .google.cloud.securitycentermanagement.v1.EffectiveEventThreatDetectionCustomModule.EnablementState enablement_state = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.cloud.securitycentermanagement.v1.EffectiveEventThreatDetectionCustomModule.EnablementState enablement_state = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The enablementState. */ - com.google.cloud.securitycentermanagement.v1.EffectiveEventThreatDetectionCustomModule - .EnablementState - getEnablementState(); + com.google.cloud.securitycentermanagement.v1.EffectiveEventThreatDetectionCustomModule.EnablementState getEnablementState(); /** - * - * *
    * Output only. Type for the module. e.g. CONFIGURABLE_BAD_IP.
    * 
* * string type = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The type. */ java.lang.String getType(); /** - * - * *
    * Output only. Type for the module. e.g. CONFIGURABLE_BAD_IP.
    * 
* * string type = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The bytes for type. */ - com.google.protobuf.ByteString getTypeBytes(); + com.google.protobuf.ByteString + getTypeBytes(); /** - * - * *
    * Output only. The human readable name to be displayed for the module.
    * 
* * string display_name = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The displayName. */ java.lang.String getDisplayName(); /** - * - * *
    * Output only. The human readable name to be displayed for the module.
    * 
* * string display_name = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The bytes for displayName. */ - com.google.protobuf.ByteString getDisplayNameBytes(); + com.google.protobuf.ByteString + getDisplayNameBytes(); /** - * - * *
    * Output only. The description for the module.
    * 
* * string description = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The description. */ java.lang.String getDescription(); /** - * - * *
    * Output only. The description for the module.
    * 
* * string description = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The bytes for description. */ - com.google.protobuf.ByteString getDescriptionBytes(); + com.google.protobuf.ByteString + getDescriptionBytes(); } diff --git a/java-securitycentermanagement/proto-google-cloud-securitycentermanagement-v1/src/main/java/com/google/cloud/securitycentermanagement/v1/EffectiveSecurityHealthAnalyticsCustomModule.java b/owl-bot-staging/java-securitycentermanagement/v1/proto-google-cloud-securitycentermanagement-v1/src/main/java/com/google/cloud/securitycentermanagement/v1/EffectiveSecurityHealthAnalyticsCustomModule.java similarity index 58% rename from java-securitycentermanagement/proto-google-cloud-securitycentermanagement-v1/src/main/java/com/google/cloud/securitycentermanagement/v1/EffectiveSecurityHealthAnalyticsCustomModule.java rename to owl-bot-staging/java-securitycentermanagement/v1/proto-google-cloud-securitycentermanagement-v1/src/main/java/com/google/cloud/securitycentermanagement/v1/EffectiveSecurityHealthAnalyticsCustomModule.java index 79725cca8c22..cfd5f22aedf0 100644 --- a/java-securitycentermanagement/proto-google-cloud-securitycentermanagement-v1/src/main/java/com/google/cloud/securitycentermanagement/v1/EffectiveSecurityHealthAnalyticsCustomModule.java +++ b/owl-bot-staging/java-securitycentermanagement/v1/proto-google-cloud-securitycentermanagement-v1/src/main/java/com/google/cloud/securitycentermanagement/v1/EffectiveSecurityHealthAnalyticsCustomModule.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/securitycentermanagement/v1/security_center_management.proto package com.google.cloud.securitycentermanagement.v1; /** - * - * *
  * An EffectiveSecurityHealthAnalyticsCustomModule is the representation of
  * a Security Health Analytics custom module at a specified level of the
@@ -33,21 +16,17 @@
  * also `enabled`. EffectiveSecurityHealthAnalyticsCustomModule is read-only.
  * 
* - * Protobuf type {@code - * google.cloud.securitycentermanagement.v1.EffectiveSecurityHealthAnalyticsCustomModule} + * Protobuf type {@code google.cloud.securitycentermanagement.v1.EffectiveSecurityHealthAnalyticsCustomModule} */ -public final class EffectiveSecurityHealthAnalyticsCustomModule - extends com.google.protobuf.GeneratedMessageV3 - implements +public final class EffectiveSecurityHealthAnalyticsCustomModule extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.securitycentermanagement.v1.EffectiveSecurityHealthAnalyticsCustomModule) EffectiveSecurityHealthAnalyticsCustomModuleOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use EffectiveSecurityHealthAnalyticsCustomModule.newBuilder() to construct. - private EffectiveSecurityHealthAnalyticsCustomModule( - com.google.protobuf.GeneratedMessageV3.Builder builder) { + private EffectiveSecurityHealthAnalyticsCustomModule(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private EffectiveSecurityHealthAnalyticsCustomModule() { name_ = ""; enablementState_ = 0; @@ -56,41 +35,34 @@ private EffectiveSecurityHealthAnalyticsCustomModule() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new EffectiveSecurityHealthAnalyticsCustomModule(); } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.securitycentermanagement.v1.SecurityCenterManagementProto - .internal_static_google_cloud_securitycentermanagement_v1_EffectiveSecurityHealthAnalyticsCustomModule_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.securitycentermanagement.v1.SecurityCenterManagementProto.internal_static_google_cloud_securitycentermanagement_v1_EffectiveSecurityHealthAnalyticsCustomModule_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.securitycentermanagement.v1.SecurityCenterManagementProto - .internal_static_google_cloud_securitycentermanagement_v1_EffectiveSecurityHealthAnalyticsCustomModule_fieldAccessorTable + return com.google.cloud.securitycentermanagement.v1.SecurityCenterManagementProto.internal_static_google_cloud_securitycentermanagement_v1_EffectiveSecurityHealthAnalyticsCustomModule_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.securitycentermanagement.v1 - .EffectiveSecurityHealthAnalyticsCustomModule.class, - com.google.cloud.securitycentermanagement.v1 - .EffectiveSecurityHealthAnalyticsCustomModule.Builder.class); + com.google.cloud.securitycentermanagement.v1.EffectiveSecurityHealthAnalyticsCustomModule.class, com.google.cloud.securitycentermanagement.v1.EffectiveSecurityHealthAnalyticsCustomModule.Builder.class); } /** - * - * *
    * The enablement state of the module.
    * 
* - * Protobuf enum {@code - * google.cloud.securitycentermanagement.v1.EffectiveSecurityHealthAnalyticsCustomModule.EnablementState} + * Protobuf enum {@code google.cloud.securitycentermanagement.v1.EffectiveSecurityHealthAnalyticsCustomModule.EnablementState} */ - public enum EnablementState implements com.google.protobuf.ProtocolMessageEnum { + public enum EnablementState + implements com.google.protobuf.ProtocolMessageEnum { /** - * - * *
      * Unspecified enablement state.
      * 
@@ -99,8 +71,6 @@ public enum EnablementState implements com.google.protobuf.ProtocolMessageEnum { */ ENABLEMENT_STATE_UNSPECIFIED(0), /** - * - * *
      * The module is enabled at the given level.
      * 
@@ -109,8 +79,6 @@ public enum EnablementState implements com.google.protobuf.ProtocolMessageEnum { */ ENABLED(1), /** - * - * *
      * The module is disabled at the given level.
      * 
@@ -122,8 +90,6 @@ public enum EnablementState implements com.google.protobuf.ProtocolMessageEnum { ; /** - * - * *
      * Unspecified enablement state.
      * 
@@ -132,8 +98,6 @@ public enum EnablementState implements com.google.protobuf.ProtocolMessageEnum { */ public static final int ENABLEMENT_STATE_UNSPECIFIED_VALUE = 0; /** - * - * *
      * The module is enabled at the given level.
      * 
@@ -142,8 +106,6 @@ public enum EnablementState implements com.google.protobuf.ProtocolMessageEnum { */ public static final int ENABLED_VALUE = 1; /** - * - * *
      * The module is disabled at the given level.
      * 
@@ -152,6 +114,7 @@ public enum EnablementState implements com.google.protobuf.ProtocolMessageEnum { */ public static final int DISABLED_VALUE = 2; + public final int getNumber() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalArgumentException( @@ -176,46 +139,40 @@ public static EnablementState valueOf(int value) { */ public static EnablementState forNumber(int value) { switch (value) { - case 0: - return ENABLEMENT_STATE_UNSPECIFIED; - case 1: - return ENABLED; - case 2: - return DISABLED; - default: - return null; + case 0: return ENABLEMENT_STATE_UNSPECIFIED; + case 1: return ENABLED; + case 2: return DISABLED; + 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< + EnablementState> internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public EnablementState findValueByNumber(int number) { + return EnablementState.forNumber(number); + } + }; - private static final com.google.protobuf.Internal.EnumLiteMap - internalValueMap = - new com.google.protobuf.Internal.EnumLiteMap() { - public EnablementState findValueByNumber(int number) { - return EnablementState.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.securitycentermanagement.v1 - .EffectiveSecurityHealthAnalyticsCustomModule.getDescriptor() - .getEnumTypes() - .get(0); + public static final com.google.protobuf.Descriptors.EnumDescriptor + getDescriptor() { + return com.google.cloud.securitycentermanagement.v1.EffectiveSecurityHealthAnalyticsCustomModule.getDescriptor().getEnumTypes().get(0); } private static final EnablementState[] VALUES = values(); @@ -223,7 +180,8 @@ public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor public static EnablementState 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; @@ -241,12 +199,9 @@ private EnablementState(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 custom module.
    * Its format is
@@ -258,7 +213,6 @@ private EnablementState(int value) {
    * 
* * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The name. */ @java.lang.Override @@ -267,15 +221,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 custom module.
    * Its format is
@@ -287,15 +240,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 { @@ -306,16 +260,11 @@ public com.google.protobuf.ByteString getNameBytes() { public static final int CUSTOM_CONFIG_FIELD_NUMBER = 2; private com.google.cloud.securitycentermanagement.v1.CustomConfig customConfig_; /** - * - * *
    * Output only. The user-specified configuration for the module.
    * 
* - * - * .google.cloud.securitycentermanagement.v1.CustomConfig custom_config = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.cloud.securitycentermanagement.v1.CustomConfig custom_config = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the customConfig field is set. */ @java.lang.Override @@ -323,100 +272,61 @@ public boolean hasCustomConfig() { return customConfig_ != null; } /** - * - * *
    * Output only. The user-specified configuration for the module.
    * 
* - * - * .google.cloud.securitycentermanagement.v1.CustomConfig custom_config = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.cloud.securitycentermanagement.v1.CustomConfig custom_config = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The customConfig. */ @java.lang.Override public com.google.cloud.securitycentermanagement.v1.CustomConfig getCustomConfig() { - return customConfig_ == null - ? com.google.cloud.securitycentermanagement.v1.CustomConfig.getDefaultInstance() - : customConfig_; + return customConfig_ == null ? com.google.cloud.securitycentermanagement.v1.CustomConfig.getDefaultInstance() : customConfig_; } /** - * - * *
    * Output only. The user-specified configuration for the module.
    * 
* - * - * .google.cloud.securitycentermanagement.v1.CustomConfig custom_config = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.cloud.securitycentermanagement.v1.CustomConfig custom_config = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ @java.lang.Override - public com.google.cloud.securitycentermanagement.v1.CustomConfigOrBuilder - getCustomConfigOrBuilder() { - return customConfig_ == null - ? com.google.cloud.securitycentermanagement.v1.CustomConfig.getDefaultInstance() - : customConfig_; + public com.google.cloud.securitycentermanagement.v1.CustomConfigOrBuilder getCustomConfigOrBuilder() { + return customConfig_ == null ? com.google.cloud.securitycentermanagement.v1.CustomConfig.getDefaultInstance() : customConfig_; } public static final int ENABLEMENT_STATE_FIELD_NUMBER = 3; private int enablementState_ = 0; /** - * - * *
    * Output only. The effective state of enablement for the module at the given
    * level of the hierarchy.
    * 
* - * - * .google.cloud.securitycentermanagement.v1.EffectiveSecurityHealthAnalyticsCustomModule.EnablementState enablement_state = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.cloud.securitycentermanagement.v1.EffectiveSecurityHealthAnalyticsCustomModule.EnablementState enablement_state = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The enum numeric value on the wire for enablementState. */ - @java.lang.Override - public int getEnablementStateValue() { + @java.lang.Override public int getEnablementStateValue() { return enablementState_; } /** - * - * *
    * Output only. The effective state of enablement for the module at the given
    * level of the hierarchy.
    * 
* - * - * .google.cloud.securitycentermanagement.v1.EffectiveSecurityHealthAnalyticsCustomModule.EnablementState enablement_state = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.cloud.securitycentermanagement.v1.EffectiveSecurityHealthAnalyticsCustomModule.EnablementState enablement_state = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The enablementState. */ - @java.lang.Override - public com.google.cloud.securitycentermanagement.v1.EffectiveSecurityHealthAnalyticsCustomModule - .EnablementState - getEnablementState() { - com.google.cloud.securitycentermanagement.v1.EffectiveSecurityHealthAnalyticsCustomModule - .EnablementState - result = - com.google.cloud.securitycentermanagement.v1 - .EffectiveSecurityHealthAnalyticsCustomModule.EnablementState.forNumber( - enablementState_); - return result == null - ? com.google.cloud.securitycentermanagement.v1.EffectiveSecurityHealthAnalyticsCustomModule - .EnablementState.UNRECOGNIZED - : result; + @java.lang.Override public com.google.cloud.securitycentermanagement.v1.EffectiveSecurityHealthAnalyticsCustomModule.EnablementState getEnablementState() { + com.google.cloud.securitycentermanagement.v1.EffectiveSecurityHealthAnalyticsCustomModule.EnablementState result = com.google.cloud.securitycentermanagement.v1.EffectiveSecurityHealthAnalyticsCustomModule.EnablementState.forNumber(enablementState_); + return result == null ? com.google.cloud.securitycentermanagement.v1.EffectiveSecurityHealthAnalyticsCustomModule.EnablementState.UNRECOGNIZED : result; } public static final int DISPLAY_NAME_FIELD_NUMBER = 4; - @SuppressWarnings("serial") private volatile java.lang.Object displayName_ = ""; /** - * - * *
    * Output only. The display name for the custom module. The name must be
    * between 1 and 128 characters, start with a lowercase letter, and contain
@@ -424,7 +334,6 @@ public int getEnablementStateValue() {
    * 
* * string display_name = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The displayName. */ @java.lang.Override @@ -433,15 +342,14 @@ 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; } } /** - * - * *
    * Output only. The display name for the custom module. The name must be
    * between 1 and 128 characters, start with a lowercase letter, and contain
@@ -449,15 +357,16 @@ public java.lang.String getDisplayName() {
    * 
* * string display_name = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @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 { @@ -466,7 +375,6 @@ public com.google.protobuf.ByteString getDisplayNameBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -478,17 +386,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 (customConfig_ != null) { output.writeMessage(2, getCustomConfig()); } - if (enablementState_ - != com.google.cloud.securitycentermanagement.v1.EffectiveSecurityHealthAnalyticsCustomModule - .EnablementState.ENABLEMENT_STATE_UNSPECIFIED - .getNumber()) { + if (enablementState_ != com.google.cloud.securitycentermanagement.v1.EffectiveSecurityHealthAnalyticsCustomModule.EnablementState.ENABLEMENT_STATE_UNSPECIFIED.getNumber()) { output.writeEnum(3, enablementState_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(displayName_)) { @@ -507,13 +413,12 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); } if (customConfig_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getCustomConfig()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(2, getCustomConfig()); } - if (enablementState_ - != com.google.cloud.securitycentermanagement.v1.EffectiveSecurityHealthAnalyticsCustomModule - .EnablementState.ENABLEMENT_STATE_UNSPECIFIED - .getNumber()) { - size += com.google.protobuf.CodedOutputStream.computeEnumSize(3, enablementState_); + if (enablementState_ != com.google.cloud.securitycentermanagement.v1.EffectiveSecurityHealthAnalyticsCustomModule.EnablementState.ENABLEMENT_STATE_UNSPECIFIED.getNumber()) { + size += com.google.protobuf.CodedOutputStream + .computeEnumSize(3, enablementState_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(displayName_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, displayName_); @@ -526,27 +431,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.securitycentermanagement.v1 - .EffectiveSecurityHealthAnalyticsCustomModule)) { + if (!(obj instanceof com.google.cloud.securitycentermanagement.v1.EffectiveSecurityHealthAnalyticsCustomModule)) { return super.equals(obj); } - com.google.cloud.securitycentermanagement.v1.EffectiveSecurityHealthAnalyticsCustomModule - other = - (com.google.cloud.securitycentermanagement.v1 - .EffectiveSecurityHealthAnalyticsCustomModule) - obj; + com.google.cloud.securitycentermanagement.v1.EffectiveSecurityHealthAnalyticsCustomModule other = (com.google.cloud.securitycentermanagement.v1.EffectiveSecurityHealthAnalyticsCustomModule) obj; - if (!getName().equals(other.getName())) return false; + if (!getName() + .equals(other.getName())) return false; if (hasCustomConfig() != other.hasCustomConfig()) return false; if (hasCustomConfig()) { - if (!getCustomConfig().equals(other.getCustomConfig())) return false; + if (!getCustomConfig() + .equals(other.getCustomConfig())) return false; } if (enablementState_ != other.enablementState_) return false; - if (!getDisplayName().equals(other.getDisplayName())) return false; + if (!getDisplayName() + .equals(other.getDisplayName())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -573,124 +474,99 @@ public int hashCode() { return hash; } - public static com.google.cloud.securitycentermanagement.v1 - .EffectiveSecurityHealthAnalyticsCustomModule - parseFrom(java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.securitycentermanagement.v1.EffectiveSecurityHealthAnalyticsCustomModule parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - - public static com.google.cloud.securitycentermanagement.v1 - .EffectiveSecurityHealthAnalyticsCustomModule - parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.securitycentermanagement.v1.EffectiveSecurityHealthAnalyticsCustomModule 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.securitycentermanagement.v1 - .EffectiveSecurityHealthAnalyticsCustomModule - parseFrom(com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.securitycentermanagement.v1.EffectiveSecurityHealthAnalyticsCustomModule parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - - public static com.google.cloud.securitycentermanagement.v1 - .EffectiveSecurityHealthAnalyticsCustomModule - parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.securitycentermanagement.v1.EffectiveSecurityHealthAnalyticsCustomModule parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.securitycentermanagement.v1 - .EffectiveSecurityHealthAnalyticsCustomModule - parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.securitycentermanagement.v1.EffectiveSecurityHealthAnalyticsCustomModule parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - - public static com.google.cloud.securitycentermanagement.v1 - .EffectiveSecurityHealthAnalyticsCustomModule - parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.securitycentermanagement.v1.EffectiveSecurityHealthAnalyticsCustomModule parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.securitycentermanagement.v1 - .EffectiveSecurityHealthAnalyticsCustomModule - parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.securitycentermanagement.v1.EffectiveSecurityHealthAnalyticsCustomModule parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - - public static com.google.cloud.securitycentermanagement.v1 - .EffectiveSecurityHealthAnalyticsCustomModule - 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.securitycentermanagement.v1.EffectiveSecurityHealthAnalyticsCustomModule 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.securitycentermanagement.v1 - .EffectiveSecurityHealthAnalyticsCustomModule - parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.securitycentermanagement.v1.EffectiveSecurityHealthAnalyticsCustomModule parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.securitycentermanagement.v1 - .EffectiveSecurityHealthAnalyticsCustomModule - parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + public static com.google.cloud.securitycentermanagement.v1.EffectiveSecurityHealthAnalyticsCustomModule parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.securitycentermanagement.v1 - .EffectiveSecurityHealthAnalyticsCustomModule - parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.securitycentermanagement.v1.EffectiveSecurityHealthAnalyticsCustomModule parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - - public static com.google.cloud.securitycentermanagement.v1 - .EffectiveSecurityHealthAnalyticsCustomModule - 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.securitycentermanagement.v1.EffectiveSecurityHealthAnalyticsCustomModule 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.securitycentermanagement.v1.EffectiveSecurityHealthAnalyticsCustomModule - prototype) { + public static Builder newBuilder(com.google.cloud.securitycentermanagement.v1.EffectiveSecurityHealthAnalyticsCustomModule prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * An EffectiveSecurityHealthAnalyticsCustomModule is the representation of
    * a Security Health Analytics custom module at a specified level of the
@@ -703,39 +579,35 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build
    * also `enabled`. EffectiveSecurityHealthAnalyticsCustomModule is read-only.
    * 
* - * Protobuf type {@code - * google.cloud.securitycentermanagement.v1.EffectiveSecurityHealthAnalyticsCustomModule} + * Protobuf type {@code google.cloud.securitycentermanagement.v1.EffectiveSecurityHealthAnalyticsCustomModule} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.securitycentermanagement.v1.EffectiveSecurityHealthAnalyticsCustomModule) - com.google.cloud.securitycentermanagement.v1 - .EffectiveSecurityHealthAnalyticsCustomModuleOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.securitycentermanagement.v1.SecurityCenterManagementProto - .internal_static_google_cloud_securitycentermanagement_v1_EffectiveSecurityHealthAnalyticsCustomModule_descriptor; + com.google.cloud.securitycentermanagement.v1.EffectiveSecurityHealthAnalyticsCustomModuleOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.securitycentermanagement.v1.SecurityCenterManagementProto.internal_static_google_cloud_securitycentermanagement_v1_EffectiveSecurityHealthAnalyticsCustomModule_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.securitycentermanagement.v1.SecurityCenterManagementProto - .internal_static_google_cloud_securitycentermanagement_v1_EffectiveSecurityHealthAnalyticsCustomModule_fieldAccessorTable + return com.google.cloud.securitycentermanagement.v1.SecurityCenterManagementProto.internal_static_google_cloud_securitycentermanagement_v1_EffectiveSecurityHealthAnalyticsCustomModule_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.securitycentermanagement.v1 - .EffectiveSecurityHealthAnalyticsCustomModule.class, - com.google.cloud.securitycentermanagement.v1 - .EffectiveSecurityHealthAnalyticsCustomModule.Builder.class); + com.google.cloud.securitycentermanagement.v1.EffectiveSecurityHealthAnalyticsCustomModule.class, com.google.cloud.securitycentermanagement.v1.EffectiveSecurityHealthAnalyticsCustomModule.Builder.class); } - // Construct using - // com.google.cloud.securitycentermanagement.v1.EffectiveSecurityHealthAnalyticsCustomModule.newBuilder() - private Builder() {} + // Construct using com.google.cloud.securitycentermanagement.v1.EffectiveSecurityHealthAnalyticsCustomModule.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(); @@ -752,23 +624,19 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.securitycentermanagement.v1.SecurityCenterManagementProto - .internal_static_google_cloud_securitycentermanagement_v1_EffectiveSecurityHealthAnalyticsCustomModule_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.securitycentermanagement.v1.SecurityCenterManagementProto.internal_static_google_cloud_securitycentermanagement_v1_EffectiveSecurityHealthAnalyticsCustomModule_descriptor; } @java.lang.Override - public com.google.cloud.securitycentermanagement.v1.EffectiveSecurityHealthAnalyticsCustomModule - getDefaultInstanceForType() { - return com.google.cloud.securitycentermanagement.v1 - .EffectiveSecurityHealthAnalyticsCustomModule.getDefaultInstance(); + public com.google.cloud.securitycentermanagement.v1.EffectiveSecurityHealthAnalyticsCustomModule getDefaultInstanceForType() { + return com.google.cloud.securitycentermanagement.v1.EffectiveSecurityHealthAnalyticsCustomModule.getDefaultInstance(); } @java.lang.Override - public com.google.cloud.securitycentermanagement.v1.EffectiveSecurityHealthAnalyticsCustomModule - build() { - com.google.cloud.securitycentermanagement.v1.EffectiveSecurityHealthAnalyticsCustomModule - result = buildPartial(); + public com.google.cloud.securitycentermanagement.v1.EffectiveSecurityHealthAnalyticsCustomModule build() { + com.google.cloud.securitycentermanagement.v1.EffectiveSecurityHealthAnalyticsCustomModule result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } @@ -776,29 +644,22 @@ public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { } @java.lang.Override - public com.google.cloud.securitycentermanagement.v1.EffectiveSecurityHealthAnalyticsCustomModule - buildPartial() { - com.google.cloud.securitycentermanagement.v1.EffectiveSecurityHealthAnalyticsCustomModule - result = - new com.google.cloud.securitycentermanagement.v1 - .EffectiveSecurityHealthAnalyticsCustomModule(this); - if (bitField0_ != 0) { - buildPartial0(result); - } + public com.google.cloud.securitycentermanagement.v1.EffectiveSecurityHealthAnalyticsCustomModule buildPartial() { + com.google.cloud.securitycentermanagement.v1.EffectiveSecurityHealthAnalyticsCustomModule result = new com.google.cloud.securitycentermanagement.v1.EffectiveSecurityHealthAnalyticsCustomModule(this); + if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } - private void buildPartial0( - com.google.cloud.securitycentermanagement.v1.EffectiveSecurityHealthAnalyticsCustomModule - result) { + private void buildPartial0(com.google.cloud.securitycentermanagement.v1.EffectiveSecurityHealthAnalyticsCustomModule result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000001) != 0)) { result.name_ = name_; } if (((from_bitField0_ & 0x00000002) != 0)) { - result.customConfig_ = - customConfigBuilder_ == null ? customConfig_ : customConfigBuilder_.build(); + result.customConfig_ = customConfigBuilder_ == null + ? customConfig_ + : customConfigBuilder_.build(); } if (((from_bitField0_ & 0x00000004) != 0)) { result.enablementState_ = enablementState_; @@ -812,57 +673,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.securitycentermanagement.v1 - .EffectiveSecurityHealthAnalyticsCustomModule) { - return mergeFrom( - (com.google.cloud.securitycentermanagement.v1 - .EffectiveSecurityHealthAnalyticsCustomModule) - other); + if (other instanceof com.google.cloud.securitycentermanagement.v1.EffectiveSecurityHealthAnalyticsCustomModule) { + return mergeFrom((com.google.cloud.securitycentermanagement.v1.EffectiveSecurityHealthAnalyticsCustomModule)other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom( - com.google.cloud.securitycentermanagement.v1.EffectiveSecurityHealthAnalyticsCustomModule - other) { - if (other - == com.google.cloud.securitycentermanagement.v1 - .EffectiveSecurityHealthAnalyticsCustomModule.getDefaultInstance()) return this; + public Builder mergeFrom(com.google.cloud.securitycentermanagement.v1.EffectiveSecurityHealthAnalyticsCustomModule other) { + if (other == com.google.cloud.securitycentermanagement.v1.EffectiveSecurityHealthAnalyticsCustomModule.getDefaultInstance()) return this; if (!other.getName().isEmpty()) { name_ = other.name_; bitField0_ |= 0x00000001; @@ -905,37 +755,34 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: - { - name_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 18: - { - input.readMessage(getCustomConfigFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00000002; - break; - } // case 18 - case 24: - { - enablementState_ = input.readEnum(); - bitField0_ |= 0x00000004; - break; - } // case 24 - case 34: - { - displayName_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000008; - break; - } // case 34 - 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( + getCustomConfigFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 24: { + enablementState_ = input.readEnum(); + bitField0_ |= 0x00000004; + break; + } // case 24 + case 34: { + displayName_ = 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) { @@ -945,13 +792,10 @@ public Builder mergeFrom( } // finally return this; } - private int bitField0_; private java.lang.Object name_ = ""; /** - * - * *
      * Output only. The resource name of the custom module.
      * Its format is
@@ -963,13 +807,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; @@ -978,8 +822,6 @@ public java.lang.String getName() { } } /** - * - * *
      * Output only. The resource name of the custom module.
      * Its format is
@@ -991,14 +833,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 { @@ -1006,8 +849,6 @@ public com.google.protobuf.ByteString getNameBytes() { } } /** - * - * *
      * Output only. The resource name of the custom module.
      * Its format is
@@ -1019,22 +860,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 custom module.
      * Its format is
@@ -1046,7 +883,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() { @@ -1056,8 +892,6 @@ public Builder clearName() { return this; } /** - * - * *
      * Output only. The resource name of the custom module.
      * Its format is
@@ -1069,14 +903,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; @@ -1086,61 +918,41 @@ public Builder setNameBytes(com.google.protobuf.ByteString value) { private com.google.cloud.securitycentermanagement.v1.CustomConfig customConfig_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.securitycentermanagement.v1.CustomConfig, - com.google.cloud.securitycentermanagement.v1.CustomConfig.Builder, - com.google.cloud.securitycentermanagement.v1.CustomConfigOrBuilder> - customConfigBuilder_; + com.google.cloud.securitycentermanagement.v1.CustomConfig, com.google.cloud.securitycentermanagement.v1.CustomConfig.Builder, com.google.cloud.securitycentermanagement.v1.CustomConfigOrBuilder> customConfigBuilder_; /** - * - * *
      * Output only. The user-specified configuration for the module.
      * 
* - * - * .google.cloud.securitycentermanagement.v1.CustomConfig custom_config = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.cloud.securitycentermanagement.v1.CustomConfig custom_config = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the customConfig field is set. */ public boolean hasCustomConfig() { return ((bitField0_ & 0x00000002) != 0); } /** - * - * *
      * Output only. The user-specified configuration for the module.
      * 
* - * - * .google.cloud.securitycentermanagement.v1.CustomConfig custom_config = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.cloud.securitycentermanagement.v1.CustomConfig custom_config = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The customConfig. */ public com.google.cloud.securitycentermanagement.v1.CustomConfig getCustomConfig() { if (customConfigBuilder_ == null) { - return customConfig_ == null - ? com.google.cloud.securitycentermanagement.v1.CustomConfig.getDefaultInstance() - : customConfig_; + return customConfig_ == null ? com.google.cloud.securitycentermanagement.v1.CustomConfig.getDefaultInstance() : customConfig_; } else { return customConfigBuilder_.getMessage(); } } /** - * - * *
      * Output only. The user-specified configuration for the module.
      * 
* - * - * .google.cloud.securitycentermanagement.v1.CustomConfig custom_config = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.cloud.securitycentermanagement.v1.CustomConfig custom_config = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ - public Builder setCustomConfig( - com.google.cloud.securitycentermanagement.v1.CustomConfig value) { + public Builder setCustomConfig(com.google.cloud.securitycentermanagement.v1.CustomConfig value) { if (customConfigBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -1154,15 +966,11 @@ public Builder setCustomConfig( return this; } /** - * - * *
      * Output only. The user-specified configuration for the module.
      * 
* - * - * .google.cloud.securitycentermanagement.v1.CustomConfig custom_config = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.cloud.securitycentermanagement.v1.CustomConfig custom_config = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder setCustomConfig( com.google.cloud.securitycentermanagement.v1.CustomConfig.Builder builderForValue) { @@ -1176,23 +984,17 @@ public Builder setCustomConfig( return this; } /** - * - * *
      * Output only. The user-specified configuration for the module.
      * 
* - * - * .google.cloud.securitycentermanagement.v1.CustomConfig custom_config = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.cloud.securitycentermanagement.v1.CustomConfig custom_config = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ - public Builder mergeCustomConfig( - com.google.cloud.securitycentermanagement.v1.CustomConfig value) { + public Builder mergeCustomConfig(com.google.cloud.securitycentermanagement.v1.CustomConfig value) { if (customConfigBuilder_ == null) { - if (((bitField0_ & 0x00000002) != 0) - && customConfig_ != null - && customConfig_ - != com.google.cloud.securitycentermanagement.v1.CustomConfig.getDefaultInstance()) { + if (((bitField0_ & 0x00000002) != 0) && + customConfig_ != null && + customConfig_ != com.google.cloud.securitycentermanagement.v1.CustomConfig.getDefaultInstance()) { getCustomConfigBuilder().mergeFrom(value); } else { customConfig_ = value; @@ -1205,15 +1007,11 @@ public Builder mergeCustomConfig( return this; } /** - * - * *
      * Output only. The user-specified configuration for the module.
      * 
* - * - * .google.cloud.securitycentermanagement.v1.CustomConfig custom_config = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.cloud.securitycentermanagement.v1.CustomConfig custom_config = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder clearCustomConfig() { bitField0_ = (bitField0_ & ~0x00000002); @@ -1226,66 +1024,48 @@ public Builder clearCustomConfig() { return this; } /** - * - * *
      * Output only. The user-specified configuration for the module.
      * 
* - * - * .google.cloud.securitycentermanagement.v1.CustomConfig custom_config = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.cloud.securitycentermanagement.v1.CustomConfig custom_config = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ - public com.google.cloud.securitycentermanagement.v1.CustomConfig.Builder - getCustomConfigBuilder() { + public com.google.cloud.securitycentermanagement.v1.CustomConfig.Builder getCustomConfigBuilder() { bitField0_ |= 0x00000002; onChanged(); return getCustomConfigFieldBuilder().getBuilder(); } /** - * - * *
      * Output only. The user-specified configuration for the module.
      * 
* - * - * .google.cloud.securitycentermanagement.v1.CustomConfig custom_config = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.cloud.securitycentermanagement.v1.CustomConfig custom_config = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ - public com.google.cloud.securitycentermanagement.v1.CustomConfigOrBuilder - getCustomConfigOrBuilder() { + public com.google.cloud.securitycentermanagement.v1.CustomConfigOrBuilder getCustomConfigOrBuilder() { if (customConfigBuilder_ != null) { return customConfigBuilder_.getMessageOrBuilder(); } else { - return customConfig_ == null - ? com.google.cloud.securitycentermanagement.v1.CustomConfig.getDefaultInstance() - : customConfig_; + return customConfig_ == null ? + com.google.cloud.securitycentermanagement.v1.CustomConfig.getDefaultInstance() : customConfig_; } } /** - * - * *
      * Output only. The user-specified configuration for the module.
      * 
* - * - * .google.cloud.securitycentermanagement.v1.CustomConfig custom_config = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.cloud.securitycentermanagement.v1.CustomConfig custom_config = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.securitycentermanagement.v1.CustomConfig, - com.google.cloud.securitycentermanagement.v1.CustomConfig.Builder, - com.google.cloud.securitycentermanagement.v1.CustomConfigOrBuilder> + com.google.cloud.securitycentermanagement.v1.CustomConfig, com.google.cloud.securitycentermanagement.v1.CustomConfig.Builder, com.google.cloud.securitycentermanagement.v1.CustomConfigOrBuilder> getCustomConfigFieldBuilder() { if (customConfigBuilder_ == null) { - customConfigBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.securitycentermanagement.v1.CustomConfig, - com.google.cloud.securitycentermanagement.v1.CustomConfig.Builder, - com.google.cloud.securitycentermanagement.v1.CustomConfigOrBuilder>( - getCustomConfig(), getParentForChildren(), isClean()); + customConfigBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.securitycentermanagement.v1.CustomConfig, com.google.cloud.securitycentermanagement.v1.CustomConfig.Builder, com.google.cloud.securitycentermanagement.v1.CustomConfigOrBuilder>( + getCustomConfig(), + getParentForChildren(), + isClean()); customConfig_ = null; } return customConfigBuilder_; @@ -1293,35 +1073,24 @@ public Builder clearCustomConfig() { private int enablementState_ = 0; /** - * - * *
      * Output only. The effective state of enablement for the module at the given
      * level of the hierarchy.
      * 
* - * - * .google.cloud.securitycentermanagement.v1.EffectiveSecurityHealthAnalyticsCustomModule.EnablementState enablement_state = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.cloud.securitycentermanagement.v1.EffectiveSecurityHealthAnalyticsCustomModule.EnablementState enablement_state = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The enum numeric value on the wire for enablementState. */ - @java.lang.Override - public int getEnablementStateValue() { + @java.lang.Override public int getEnablementStateValue() { return enablementState_; } /** - * - * *
      * Output only. The effective state of enablement for the module at the given
      * level of the hierarchy.
      * 
* - * - * .google.cloud.securitycentermanagement.v1.EffectiveSecurityHealthAnalyticsCustomModule.EnablementState enablement_state = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.cloud.securitycentermanagement.v1.EffectiveSecurityHealthAnalyticsCustomModule.EnablementState enablement_state = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @param value The enum numeric value on the wire for enablementState to set. * @return This builder for chaining. */ @@ -1332,53 +1101,30 @@ public Builder setEnablementStateValue(int value) { return this; } /** - * - * *
      * Output only. The effective state of enablement for the module at the given
      * level of the hierarchy.
      * 
* - * - * .google.cloud.securitycentermanagement.v1.EffectiveSecurityHealthAnalyticsCustomModule.EnablementState enablement_state = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.cloud.securitycentermanagement.v1.EffectiveSecurityHealthAnalyticsCustomModule.EnablementState enablement_state = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The enablementState. */ @java.lang.Override - public com.google.cloud.securitycentermanagement.v1.EffectiveSecurityHealthAnalyticsCustomModule - .EnablementState - getEnablementState() { - com.google.cloud.securitycentermanagement.v1.EffectiveSecurityHealthAnalyticsCustomModule - .EnablementState - result = - com.google.cloud.securitycentermanagement.v1 - .EffectiveSecurityHealthAnalyticsCustomModule.EnablementState.forNumber( - enablementState_); - return result == null - ? com.google.cloud.securitycentermanagement.v1 - .EffectiveSecurityHealthAnalyticsCustomModule.EnablementState.UNRECOGNIZED - : result; + public com.google.cloud.securitycentermanagement.v1.EffectiveSecurityHealthAnalyticsCustomModule.EnablementState getEnablementState() { + com.google.cloud.securitycentermanagement.v1.EffectiveSecurityHealthAnalyticsCustomModule.EnablementState result = com.google.cloud.securitycentermanagement.v1.EffectiveSecurityHealthAnalyticsCustomModule.EnablementState.forNumber(enablementState_); + return result == null ? com.google.cloud.securitycentermanagement.v1.EffectiveSecurityHealthAnalyticsCustomModule.EnablementState.UNRECOGNIZED : result; } /** - * - * *
      * Output only. The effective state of enablement for the module at the given
      * level of the hierarchy.
      * 
* - * - * .google.cloud.securitycentermanagement.v1.EffectiveSecurityHealthAnalyticsCustomModule.EnablementState enablement_state = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.cloud.securitycentermanagement.v1.EffectiveSecurityHealthAnalyticsCustomModule.EnablementState enablement_state = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @param value The enablementState to set. * @return This builder for chaining. */ - public Builder setEnablementState( - com.google.cloud.securitycentermanagement.v1.EffectiveSecurityHealthAnalyticsCustomModule - .EnablementState - value) { + public Builder setEnablementState(com.google.cloud.securitycentermanagement.v1.EffectiveSecurityHealthAnalyticsCustomModule.EnablementState value) { if (value == null) { throw new NullPointerException(); } @@ -1388,17 +1134,12 @@ public Builder setEnablementState( return this; } /** - * - * *
      * Output only. The effective state of enablement for the module at the given
      * level of the hierarchy.
      * 
* - * - * .google.cloud.securitycentermanagement.v1.EffectiveSecurityHealthAnalyticsCustomModule.EnablementState enablement_state = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.cloud.securitycentermanagement.v1.EffectiveSecurityHealthAnalyticsCustomModule.EnablementState enablement_state = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return This builder for chaining. */ public Builder clearEnablementState() { @@ -1410,8 +1151,6 @@ public Builder clearEnablementState() { private java.lang.Object displayName_ = ""; /** - * - * *
      * Output only. The display name for the custom module. The name must be
      * between 1 and 128 characters, start with a lowercase letter, and contain
@@ -1419,13 +1158,13 @@ public Builder clearEnablementState() {
      * 
* * string display_name = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @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; @@ -1434,8 +1173,6 @@ public java.lang.String getDisplayName() { } } /** - * - * *
      * Output only. The display name for the custom module. The name must be
      * between 1 and 128 characters, start with a lowercase letter, and contain
@@ -1443,14 +1180,15 @@ public java.lang.String getDisplayName() {
      * 
* * string display_name = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @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 { @@ -1458,8 +1196,6 @@ public com.google.protobuf.ByteString getDisplayNameBytes() { } } /** - * - * *
      * Output only. The display name for the custom module. The name must be
      * between 1 and 128 characters, start with a lowercase letter, and contain
@@ -1467,22 +1203,18 @@ public com.google.protobuf.ByteString getDisplayNameBytes() {
      * 
* * string display_name = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @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_ |= 0x00000008; onChanged(); return this; } /** - * - * *
      * Output only. The display name for the custom module. The name must be
      * between 1 and 128 characters, start with a lowercase letter, and contain
@@ -1490,7 +1222,6 @@ public Builder setDisplayName(java.lang.String value) {
      * 
* * string display_name = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return This builder for chaining. */ public Builder clearDisplayName() { @@ -1500,8 +1231,6 @@ public Builder clearDisplayName() { return this; } /** - * - * *
      * Output only. The display name for the custom module. The name must be
      * between 1 and 128 characters, start with a lowercase letter, and contain
@@ -1509,23 +1238,21 @@ public Builder clearDisplayName() {
      * 
* * string display_name = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @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_ |= 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); } @@ -1535,63 +1262,55 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.securitycentermanagement.v1.EffectiveSecurityHealthAnalyticsCustomModule) } // @@protoc_insertion_point(class_scope:google.cloud.securitycentermanagement.v1.EffectiveSecurityHealthAnalyticsCustomModule) - private static final com.google.cloud.securitycentermanagement.v1 - .EffectiveSecurityHealthAnalyticsCustomModule - DEFAULT_INSTANCE; - + private static final com.google.cloud.securitycentermanagement.v1.EffectiveSecurityHealthAnalyticsCustomModule DEFAULT_INSTANCE; static { - DEFAULT_INSTANCE = - new com.google.cloud.securitycentermanagement.v1 - .EffectiveSecurityHealthAnalyticsCustomModule(); + DEFAULT_INSTANCE = new com.google.cloud.securitycentermanagement.v1.EffectiveSecurityHealthAnalyticsCustomModule(); } - public static com.google.cloud.securitycentermanagement.v1 - .EffectiveSecurityHealthAnalyticsCustomModule - getDefaultInstance() { + public static com.google.cloud.securitycentermanagement.v1.EffectiveSecurityHealthAnalyticsCustomModule getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser - PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public EffectiveSecurityHealthAnalyticsCustomModule parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException() - .setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public EffectiveSecurityHealthAnalyticsCustomModule parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; } @java.lang.Override - public com.google.protobuf.Parser - getParserForType() { + public com.google.protobuf.Parser getParserForType() { return PARSER; } @java.lang.Override - public com.google.cloud.securitycentermanagement.v1.EffectiveSecurityHealthAnalyticsCustomModule - getDefaultInstanceForType() { + public com.google.cloud.securitycentermanagement.v1.EffectiveSecurityHealthAnalyticsCustomModule getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/java-securitycentermanagement/proto-google-cloud-securitycentermanagement-v1/src/main/java/com/google/cloud/securitycentermanagement/v1/EffectiveSecurityHealthAnalyticsCustomModuleName.java b/owl-bot-staging/java-securitycentermanagement/v1/proto-google-cloud-securitycentermanagement-v1/src/main/java/com/google/cloud/securitycentermanagement/v1/EffectiveSecurityHealthAnalyticsCustomModuleName.java similarity index 100% rename from java-securitycentermanagement/proto-google-cloud-securitycentermanagement-v1/src/main/java/com/google/cloud/securitycentermanagement/v1/EffectiveSecurityHealthAnalyticsCustomModuleName.java rename to owl-bot-staging/java-securitycentermanagement/v1/proto-google-cloud-securitycentermanagement-v1/src/main/java/com/google/cloud/securitycentermanagement/v1/EffectiveSecurityHealthAnalyticsCustomModuleName.java diff --git a/java-securitycentermanagement/proto-google-cloud-securitycentermanagement-v1/src/main/java/com/google/cloud/securitycentermanagement/v1/EffectiveSecurityHealthAnalyticsCustomModuleOrBuilder.java b/owl-bot-staging/java-securitycentermanagement/v1/proto-google-cloud-securitycentermanagement-v1/src/main/java/com/google/cloud/securitycentermanagement/v1/EffectiveSecurityHealthAnalyticsCustomModuleOrBuilder.java similarity index 67% rename from java-securitycentermanagement/proto-google-cloud-securitycentermanagement-v1/src/main/java/com/google/cloud/securitycentermanagement/v1/EffectiveSecurityHealthAnalyticsCustomModuleOrBuilder.java rename to owl-bot-staging/java-securitycentermanagement/v1/proto-google-cloud-securitycentermanagement-v1/src/main/java/com/google/cloud/securitycentermanagement/v1/EffectiveSecurityHealthAnalyticsCustomModuleOrBuilder.java index bf6a162d1fbb..315dba7f7c90 100644 --- a/java-securitycentermanagement/proto-google-cloud-securitycentermanagement-v1/src/main/java/com/google/cloud/securitycentermanagement/v1/EffectiveSecurityHealthAnalyticsCustomModuleOrBuilder.java +++ b/owl-bot-staging/java-securitycentermanagement/v1/proto-google-cloud-securitycentermanagement-v1/src/main/java/com/google/cloud/securitycentermanagement/v1/EffectiveSecurityHealthAnalyticsCustomModuleOrBuilder.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/securitycentermanagement/v1/security_center_management.proto package com.google.cloud.securitycentermanagement.v1; -public interface EffectiveSecurityHealthAnalyticsCustomModuleOrBuilder - extends +public interface EffectiveSecurityHealthAnalyticsCustomModuleOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.securitycentermanagement.v1.EffectiveSecurityHealthAnalyticsCustomModule) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * Output only. The resource name of the custom module.
    * Its format is
@@ -37,13 +19,10 @@ public interface EffectiveSecurityHealthAnalyticsCustomModuleOrBuilder
    * 
* * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The name. */ java.lang.String getName(); /** - * - * *
    * Output only. The resource name of the custom module.
    * Its format is
@@ -55,88 +34,60 @@ public interface EffectiveSecurityHealthAnalyticsCustomModuleOrBuilder
    * 
* * 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. The user-specified configuration for the module.
    * 
* - * - * .google.cloud.securitycentermanagement.v1.CustomConfig custom_config = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.cloud.securitycentermanagement.v1.CustomConfig custom_config = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the customConfig field is set. */ boolean hasCustomConfig(); /** - * - * *
    * Output only. The user-specified configuration for the module.
    * 
* - * - * .google.cloud.securitycentermanagement.v1.CustomConfig custom_config = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.cloud.securitycentermanagement.v1.CustomConfig custom_config = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The customConfig. */ com.google.cloud.securitycentermanagement.v1.CustomConfig getCustomConfig(); /** - * - * *
    * Output only. The user-specified configuration for the module.
    * 
* - * - * .google.cloud.securitycentermanagement.v1.CustomConfig custom_config = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.cloud.securitycentermanagement.v1.CustomConfig custom_config = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ com.google.cloud.securitycentermanagement.v1.CustomConfigOrBuilder getCustomConfigOrBuilder(); /** - * - * *
    * Output only. The effective state of enablement for the module at the given
    * level of the hierarchy.
    * 
* - * - * .google.cloud.securitycentermanagement.v1.EffectiveSecurityHealthAnalyticsCustomModule.EnablementState enablement_state = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.cloud.securitycentermanagement.v1.EffectiveSecurityHealthAnalyticsCustomModule.EnablementState enablement_state = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The enum numeric value on the wire for enablementState. */ int getEnablementStateValue(); /** - * - * *
    * Output only. The effective state of enablement for the module at the given
    * level of the hierarchy.
    * 
* - * - * .google.cloud.securitycentermanagement.v1.EffectiveSecurityHealthAnalyticsCustomModule.EnablementState enablement_state = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.cloud.securitycentermanagement.v1.EffectiveSecurityHealthAnalyticsCustomModule.EnablementState enablement_state = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The enablementState. */ - com.google.cloud.securitycentermanagement.v1.EffectiveSecurityHealthAnalyticsCustomModule - .EnablementState - getEnablementState(); + com.google.cloud.securitycentermanagement.v1.EffectiveSecurityHealthAnalyticsCustomModule.EnablementState getEnablementState(); /** - * - * *
    * Output only. The display name for the custom module. The name must be
    * between 1 and 128 characters, start with a lowercase letter, and contain
@@ -144,13 +95,10 @@ public interface EffectiveSecurityHealthAnalyticsCustomModuleOrBuilder
    * 
* * string display_name = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The displayName. */ java.lang.String getDisplayName(); /** - * - * *
    * Output only. The display name for the custom module. The name must be
    * between 1 and 128 characters, start with a lowercase letter, and contain
@@ -158,8 +106,8 @@ public interface EffectiveSecurityHealthAnalyticsCustomModuleOrBuilder
    * 
* * string display_name = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The bytes for displayName. */ - com.google.protobuf.ByteString getDisplayNameBytes(); + com.google.protobuf.ByteString + getDisplayNameBytes(); } diff --git a/java-securitycentermanagement/proto-google-cloud-securitycentermanagement-v1/src/main/java/com/google/cloud/securitycentermanagement/v1/EventThreatDetectionCustomModule.java b/owl-bot-staging/java-securitycentermanagement/v1/proto-google-cloud-securitycentermanagement-v1/src/main/java/com/google/cloud/securitycentermanagement/v1/EventThreatDetectionCustomModule.java similarity index 68% rename from java-securitycentermanagement/proto-google-cloud-securitycentermanagement-v1/src/main/java/com/google/cloud/securitycentermanagement/v1/EventThreatDetectionCustomModule.java rename to owl-bot-staging/java-securitycentermanagement/v1/proto-google-cloud-securitycentermanagement-v1/src/main/java/com/google/cloud/securitycentermanagement/v1/EventThreatDetectionCustomModule.java index 9db2f8b86196..850d84c5a966 100644 --- a/java-securitycentermanagement/proto-google-cloud-securitycentermanagement-v1/src/main/java/com/google/cloud/securitycentermanagement/v1/EventThreatDetectionCustomModule.java +++ b/owl-bot-staging/java-securitycentermanagement/v1/proto-google-cloud-securitycentermanagement-v1/src/main/java/com/google/cloud/securitycentermanagement/v1/EventThreatDetectionCustomModule.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/securitycentermanagement/v1/security_center_management.proto package com.google.cloud.securitycentermanagement.v1; /** - * - * *
  * An event threat detection custom module is a Cloud SCC resource that contains
  * the configuration and enablement state of a custom module, which enables ETD
@@ -29,17 +12,15 @@
  *
  * Protobuf type {@code google.cloud.securitycentermanagement.v1.EventThreatDetectionCustomModule}
  */
-public final class EventThreatDetectionCustomModule extends com.google.protobuf.GeneratedMessageV3
-    implements
+public final class EventThreatDetectionCustomModule extends
+    com.google.protobuf.GeneratedMessageV3 implements
     // @@protoc_insertion_point(message_implements:google.cloud.securitycentermanagement.v1.EventThreatDetectionCustomModule)
     EventThreatDetectionCustomModuleOrBuilder {
-  private static final long serialVersionUID = 0L;
+private static final long serialVersionUID = 0L;
   // Use EventThreatDetectionCustomModule.newBuilder() to construct.
-  private EventThreatDetectionCustomModule(
-      com.google.protobuf.GeneratedMessageV3.Builder builder) {
+  private EventThreatDetectionCustomModule(com.google.protobuf.GeneratedMessageV3.Builder builder) {
     super(builder);
   }
-
   private EventThreatDetectionCustomModule() {
     name_ = "";
     ancestorModule_ = "";
@@ -52,40 +33,34 @@ private EventThreatDetectionCustomModule() {
 
   @java.lang.Override
   @SuppressWarnings({"unused"})
-  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
+  protected java.lang.Object newInstance(
+      UnusedPrivateParameter unused) {
     return new EventThreatDetectionCustomModule();
   }
 
-  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-    return com.google.cloud.securitycentermanagement.v1.SecurityCenterManagementProto
-        .internal_static_google_cloud_securitycentermanagement_v1_EventThreatDetectionCustomModule_descriptor;
+  public static final com.google.protobuf.Descriptors.Descriptor
+      getDescriptor() {
+    return com.google.cloud.securitycentermanagement.v1.SecurityCenterManagementProto.internal_static_google_cloud_securitycentermanagement_v1_EventThreatDetectionCustomModule_descriptor;
   }
 
   @java.lang.Override
   protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
       internalGetFieldAccessorTable() {
-    return com.google.cloud.securitycentermanagement.v1.SecurityCenterManagementProto
-        .internal_static_google_cloud_securitycentermanagement_v1_EventThreatDetectionCustomModule_fieldAccessorTable
+    return com.google.cloud.securitycentermanagement.v1.SecurityCenterManagementProto.internal_static_google_cloud_securitycentermanagement_v1_EventThreatDetectionCustomModule_fieldAccessorTable
         .ensureFieldAccessorsInitialized(
-            com.google.cloud.securitycentermanagement.v1.EventThreatDetectionCustomModule.class,
-            com.google.cloud.securitycentermanagement.v1.EventThreatDetectionCustomModule.Builder
-                .class);
+            com.google.cloud.securitycentermanagement.v1.EventThreatDetectionCustomModule.class, com.google.cloud.securitycentermanagement.v1.EventThreatDetectionCustomModule.Builder.class);
   }
 
   /**
-   *
-   *
    * 
    * The enablement state of the module.
    * 
* - * Protobuf enum {@code - * google.cloud.securitycentermanagement.v1.EventThreatDetectionCustomModule.EnablementState} + * Protobuf enum {@code google.cloud.securitycentermanagement.v1.EventThreatDetectionCustomModule.EnablementState} */ - public enum EnablementState implements com.google.protobuf.ProtocolMessageEnum { + public enum EnablementState + implements com.google.protobuf.ProtocolMessageEnum { /** - * - * *
      * Unspecified enablement state.
      * 
@@ -94,8 +69,6 @@ public enum EnablementState implements com.google.protobuf.ProtocolMessageEnum { */ ENABLEMENT_STATE_UNSPECIFIED(0), /** - * - * *
      * The module is enabled at the given level.
      * 
@@ -104,8 +77,6 @@ public enum EnablementState implements com.google.protobuf.ProtocolMessageEnum { */ ENABLED(1), /** - * - * *
      * The module is disabled at the given level.
      * 
@@ -114,8 +85,6 @@ public enum EnablementState implements com.google.protobuf.ProtocolMessageEnum { */ DISABLED(2), /** - * - * *
      * State is inherited from an ancestor module. The module will either
      * be effectively ENABLED or DISABLED based on its closest non-inherited
@@ -131,8 +100,6 @@ public enum EnablementState implements com.google.protobuf.ProtocolMessageEnum {
     ;
 
     /**
-     *
-     *
      * 
      * Unspecified enablement state.
      * 
@@ -141,8 +108,6 @@ public enum EnablementState implements com.google.protobuf.ProtocolMessageEnum { */ public static final int ENABLEMENT_STATE_UNSPECIFIED_VALUE = 0; /** - * - * *
      * The module is enabled at the given level.
      * 
@@ -151,8 +116,6 @@ public enum EnablementState implements com.google.protobuf.ProtocolMessageEnum { */ public static final int ENABLED_VALUE = 1; /** - * - * *
      * The module is disabled at the given level.
      * 
@@ -161,8 +124,6 @@ public enum EnablementState implements com.google.protobuf.ProtocolMessageEnum { */ public static final int DISABLED_VALUE = 2; /** - * - * *
      * State is inherited from an ancestor module. The module will either
      * be effectively ENABLED or DISABLED based on its closest non-inherited
@@ -175,6 +136,7 @@ public enum EnablementState implements com.google.protobuf.ProtocolMessageEnum {
      */
     public static final int INHERITED_VALUE = 3;
 
+
     public final int getNumber() {
       if (this == UNRECOGNIZED) {
         throw new java.lang.IllegalArgumentException(
@@ -199,48 +161,41 @@ public static EnablementState valueOf(int value) {
      */
     public static EnablementState forNumber(int value) {
       switch (value) {
-        case 0:
-          return ENABLEMENT_STATE_UNSPECIFIED;
-        case 1:
-          return ENABLED;
-        case 2:
-          return DISABLED;
-        case 3:
-          return INHERITED;
-        default:
-          return null;
+        case 0: return ENABLEMENT_STATE_UNSPECIFIED;
+        case 1: return ENABLED;
+        case 2: return DISABLED;
+        case 3: return INHERITED;
+        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<
+        EnablementState> internalValueMap =
+          new com.google.protobuf.Internal.EnumLiteMap() {
+            public EnablementState findValueByNumber(int number) {
+              return EnablementState.forNumber(number);
+            }
+          };
 
-    private static final com.google.protobuf.Internal.EnumLiteMap
-        internalValueMap =
-            new com.google.protobuf.Internal.EnumLiteMap() {
-              public EnablementState findValueByNumber(int number) {
-                return EnablementState.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.securitycentermanagement.v1.EventThreatDetectionCustomModule
-          .getDescriptor()
-          .getEnumTypes()
-          .get(0);
+    public static final com.google.protobuf.Descriptors.EnumDescriptor
+        getDescriptor() {
+      return com.google.cloud.securitycentermanagement.v1.EventThreatDetectionCustomModule.getDescriptor().getEnumTypes().get(0);
     }
 
     private static final EnablementState[] VALUES = values();
@@ -248,7 +203,8 @@ public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor
     public static EnablementState 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;
@@ -266,12 +222,9 @@ private EnablementState(int value) {
   }
 
   public static final int NAME_FIELD_NUMBER = 1;
-
   @SuppressWarnings("serial")
   private volatile java.lang.Object name_ = "";
   /**
-   *
-   *
    * 
    * Immutable. The resource name of the ETD custom module.
    *
@@ -283,7 +236,6 @@ private EnablementState(int value) {
    * 
* * string name = 1 [(.google.api.field_behavior) = IMMUTABLE]; - * * @return The name. */ @java.lang.Override @@ -292,15 +244,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; } } /** - * - * *
    * Immutable. The resource name of the ETD custom module.
    *
@@ -312,15 +263,16 @@ public java.lang.String getName() {
    * 
* * string name = 1 [(.google.api.field_behavior) = IMMUTABLE]; - * * @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 { @@ -331,8 +283,6 @@ public com.google.protobuf.ByteString getNameBytes() { public static final int CONFIG_FIELD_NUMBER = 2; private com.google.protobuf.Struct config_; /** - * - * *
    * Optional. Config for the module. For the resident module, its config value
    * is defined at this level. For the inherited module, its config value is
@@ -340,7 +290,6 @@ public com.google.protobuf.ByteString getNameBytes() {
    * 
* * .google.protobuf.Struct config = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @return Whether the config field is set. */ @java.lang.Override @@ -348,8 +297,6 @@ public boolean hasConfig() { return config_ != null; } /** - * - * *
    * Optional. Config for the module. For the resident module, its config value
    * is defined at this level. For the inherited module, its config value is
@@ -357,7 +304,6 @@ public boolean hasConfig() {
    * 
* * .google.protobuf.Struct config = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The config. */ @java.lang.Override @@ -365,8 +311,6 @@ public com.google.protobuf.Struct getConfig() { return config_ == null ? com.google.protobuf.Struct.getDefaultInstance() : config_; } /** - * - * *
    * Optional. Config for the module. For the resident module, its config value
    * is defined at this level. For the inherited module, its config value is
@@ -381,12 +325,9 @@ public com.google.protobuf.StructOrBuilder getConfigOrBuilder() {
   }
 
   public static final int ANCESTOR_MODULE_FIELD_NUMBER = 3;
-
   @SuppressWarnings("serial")
   private volatile java.lang.Object ancestorModule_ = "";
   /**
-   *
-   *
    * 
    * Output only. The closest ancestor module that this module inherits the
    * enablement state from. If empty, indicates that the custom module was
@@ -394,10 +335,7 @@ public com.google.protobuf.StructOrBuilder getConfigOrBuilder() {
    * format is the same as the EventThreatDetectionCustomModule resource name.
    * 
* - * - * string ancestor_module = 3 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } - * - * + * string ancestor_module = 3 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } * @return The ancestorModule. */ @java.lang.Override @@ -406,15 +344,14 @@ public java.lang.String getAncestorModule() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); ancestorModule_ = s; return s; } } /** - * - * *
    * Output only. The closest ancestor module that this module inherits the
    * enablement state from. If empty, indicates that the custom module was
@@ -422,18 +359,17 @@ public java.lang.String getAncestorModule() {
    * format is the same as the EventThreatDetectionCustomModule resource name.
    * 
* - * - * string ancestor_module = 3 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } - * - * + * string ancestor_module = 3 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } * @return The bytes for ancestorModule. */ @java.lang.Override - public com.google.protobuf.ByteString getAncestorModuleBytes() { + public com.google.protobuf.ByteString + getAncestorModuleBytes() { java.lang.Object ref = ancestorModule_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); ancestorModule_ = b; return b; } else { @@ -444,64 +380,40 @@ public com.google.protobuf.ByteString getAncestorModuleBytes() { public static final int ENABLEMENT_STATE_FIELD_NUMBER = 4; private int enablementState_ = 0; /** - * - * *
    * Optional. The state of enablement for the module at the given level of the
    * hierarchy.
    * 
* - * - * .google.cloud.securitycentermanagement.v1.EventThreatDetectionCustomModule.EnablementState enablement_state = 4 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.cloud.securitycentermanagement.v1.EventThreatDetectionCustomModule.EnablementState enablement_state = 4 [(.google.api.field_behavior) = OPTIONAL]; * @return The enum numeric value on the wire for enablementState. */ - @java.lang.Override - public int getEnablementStateValue() { + @java.lang.Override public int getEnablementStateValue() { return enablementState_; } /** - * - * *
    * Optional. The state of enablement for the module at the given level of the
    * hierarchy.
    * 
* - * - * .google.cloud.securitycentermanagement.v1.EventThreatDetectionCustomModule.EnablementState enablement_state = 4 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.cloud.securitycentermanagement.v1.EventThreatDetectionCustomModule.EnablementState enablement_state = 4 [(.google.api.field_behavior) = OPTIONAL]; * @return The enablementState. */ - @java.lang.Override - public com.google.cloud.securitycentermanagement.v1.EventThreatDetectionCustomModule - .EnablementState - getEnablementState() { - com.google.cloud.securitycentermanagement.v1.EventThreatDetectionCustomModule.EnablementState - result = - com.google.cloud.securitycentermanagement.v1.EventThreatDetectionCustomModule - .EnablementState.forNumber(enablementState_); - return result == null - ? com.google.cloud.securitycentermanagement.v1.EventThreatDetectionCustomModule - .EnablementState.UNRECOGNIZED - : result; + @java.lang.Override public com.google.cloud.securitycentermanagement.v1.EventThreatDetectionCustomModule.EnablementState getEnablementState() { + com.google.cloud.securitycentermanagement.v1.EventThreatDetectionCustomModule.EnablementState result = com.google.cloud.securitycentermanagement.v1.EventThreatDetectionCustomModule.EnablementState.forNumber(enablementState_); + return result == null ? com.google.cloud.securitycentermanagement.v1.EventThreatDetectionCustomModule.EnablementState.UNRECOGNIZED : result; } public static final int TYPE_FIELD_NUMBER = 5; - @SuppressWarnings("serial") private volatile java.lang.Object type_ = ""; /** - * - * *
    * Optional. Type for the module. e.g. CONFIGURABLE_BAD_IP.
    * 
* * string type = 5 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The type. */ @java.lang.Override @@ -510,29 +422,29 @@ 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 for the module. e.g. CONFIGURABLE_BAD_IP.
    * 
* * string type = 5 [(.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 { @@ -541,18 +453,14 @@ public com.google.protobuf.ByteString getTypeBytes() { } public static final int DISPLAY_NAME_FIELD_NUMBER = 6; - @SuppressWarnings("serial") private volatile java.lang.Object displayName_ = ""; /** - * - * *
    * Optional. The human readable name to be displayed for the module.
    * 
* * string display_name = 6 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The displayName. */ @java.lang.Override @@ -561,29 +469,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. The human readable name to be displayed for the module.
    * 
* * string display_name = 6 [(.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 { @@ -592,18 +500,14 @@ public com.google.protobuf.ByteString getDisplayNameBytes() { } public static final int DESCRIPTION_FIELD_NUMBER = 7; - @SuppressWarnings("serial") private volatile java.lang.Object description_ = ""; /** - * - * *
    * Optional. The description for the module.
    * 
* * string description = 7 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The description. */ @java.lang.Override @@ -612,29 +516,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; } } /** - * - * *
    * Optional. The description for the module.
    * 
* * string description = 7 [(.google.api.field_behavior) = OPTIONAL]; - * * @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 { @@ -645,15 +549,11 @@ public com.google.protobuf.ByteString getDescriptionBytes() { public static final int UPDATE_TIME_FIELD_NUMBER = 8; private com.google.protobuf.Timestamp updateTime_; /** - * - * *
    * Output only. The time the module was last updated.
    * 
* - * .google.protobuf.Timestamp update_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp update_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the updateTime field is set. */ @java.lang.Override @@ -661,15 +561,11 @@ public boolean hasUpdateTime() { return updateTime_ != null; } /** - * - * *
    * Output only. The time the module was last updated.
    * 
* - * .google.protobuf.Timestamp update_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp update_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The updateTime. */ @java.lang.Override @@ -677,14 +573,11 @@ public com.google.protobuf.Timestamp getUpdateTime() { return updateTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : updateTime_; } /** - * - * *
    * Output only. The time the module was last updated.
    * 
* - * .google.protobuf.Timestamp update_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp update_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ @java.lang.Override public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() { @@ -692,18 +585,14 @@ public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() { } public static final int LAST_EDITOR_FIELD_NUMBER = 9; - @SuppressWarnings("serial") private volatile java.lang.Object lastEditor_ = ""; /** - * - * *
    * Output only. The editor the module was last updated by.
    * 
* * string last_editor = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The lastEditor. */ @java.lang.Override @@ -712,29 +601,29 @@ public java.lang.String getLastEditor() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); lastEditor_ = s; return s; } } /** - * - * *
    * Output only. The editor the module was last updated by.
    * 
* * string last_editor = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The bytes for lastEditor. */ @java.lang.Override - public com.google.protobuf.ByteString getLastEditorBytes() { + public com.google.protobuf.ByteString + getLastEditorBytes() { java.lang.Object ref = lastEditor_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); lastEditor_ = b; return b; } else { @@ -743,7 +632,6 @@ public com.google.protobuf.ByteString getLastEditorBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -755,7 +643,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.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_); } @@ -765,10 +654,7 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(ancestorModule_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 3, ancestorModule_); } - if (enablementState_ - != com.google.cloud.securitycentermanagement.v1.EventThreatDetectionCustomModule - .EnablementState.ENABLEMENT_STATE_UNSPECIFIED - .getNumber()) { + if (enablementState_ != com.google.cloud.securitycentermanagement.v1.EventThreatDetectionCustomModule.EnablementState.ENABLEMENT_STATE_UNSPECIFIED.getNumber()) { output.writeEnum(4, enablementState_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(type_)) { @@ -799,16 +685,15 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); } if (config_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getConfig()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(2, getConfig()); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(ancestorModule_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, ancestorModule_); } - if (enablementState_ - != com.google.cloud.securitycentermanagement.v1.EventThreatDetectionCustomModule - .EnablementState.ENABLEMENT_STATE_UNSPECIFIED - .getNumber()) { - size += com.google.protobuf.CodedOutputStream.computeEnumSize(4, enablementState_); + if (enablementState_ != com.google.cloud.securitycentermanagement.v1.EventThreatDetectionCustomModule.EnablementState.ENABLEMENT_STATE_UNSPECIFIED.getNumber()) { + size += com.google.protobuf.CodedOutputStream + .computeEnumSize(4, enablementState_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(type_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, type_); @@ -820,7 +705,8 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(7, description_); } if (updateTime_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(8, getUpdateTime()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(8, getUpdateTime()); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(lastEditor_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(9, lastEditor_); @@ -833,30 +719,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.securitycentermanagement.v1.EventThreatDetectionCustomModule)) { + if (!(obj instanceof com.google.cloud.securitycentermanagement.v1.EventThreatDetectionCustomModule)) { return super.equals(obj); } - com.google.cloud.securitycentermanagement.v1.EventThreatDetectionCustomModule other = - (com.google.cloud.securitycentermanagement.v1.EventThreatDetectionCustomModule) obj; + com.google.cloud.securitycentermanagement.v1.EventThreatDetectionCustomModule other = (com.google.cloud.securitycentermanagement.v1.EventThreatDetectionCustomModule) obj; - if (!getName().equals(other.getName())) return false; + if (!getName() + .equals(other.getName())) return false; if (hasConfig() != other.hasConfig()) return false; if (hasConfig()) { - if (!getConfig().equals(other.getConfig())) return false; + if (!getConfig() + .equals(other.getConfig())) return false; } - if (!getAncestorModule().equals(other.getAncestorModule())) return false; + if (!getAncestorModule() + .equals(other.getAncestorModule())) return false; if (enablementState_ != other.enablementState_) return false; - if (!getType().equals(other.getType())) return false; - if (!getDisplayName().equals(other.getDisplayName())) return false; - if (!getDescription().equals(other.getDescription())) return false; + if (!getType() + .equals(other.getType())) return false; + if (!getDisplayName() + .equals(other.getDisplayName())) return false; + if (!getDescription() + .equals(other.getDescription())) 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 (!getLastEditor().equals(other.getLastEditor())) return false; + if (!getLastEditor() + .equals(other.getLastEditor())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -895,111 +787,99 @@ public int hashCode() { return hash; } - public static com.google.cloud.securitycentermanagement.v1.EventThreatDetectionCustomModule - parseFrom(java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.securitycentermanagement.v1.EventThreatDetectionCustomModule parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - - public static com.google.cloud.securitycentermanagement.v1.EventThreatDetectionCustomModule - parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.securitycentermanagement.v1.EventThreatDetectionCustomModule 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.securitycentermanagement.v1.EventThreatDetectionCustomModule - parseFrom(com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.securitycentermanagement.v1.EventThreatDetectionCustomModule parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - - public static com.google.cloud.securitycentermanagement.v1.EventThreatDetectionCustomModule - parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.securitycentermanagement.v1.EventThreatDetectionCustomModule parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.securitycentermanagement.v1.EventThreatDetectionCustomModule - parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.securitycentermanagement.v1.EventThreatDetectionCustomModule parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - - public static com.google.cloud.securitycentermanagement.v1.EventThreatDetectionCustomModule - parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.securitycentermanagement.v1.EventThreatDetectionCustomModule parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.securitycentermanagement.v1.EventThreatDetectionCustomModule - parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.securitycentermanagement.v1.EventThreatDetectionCustomModule parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - - public static com.google.cloud.securitycentermanagement.v1.EventThreatDetectionCustomModule - 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.securitycentermanagement.v1.EventThreatDetectionCustomModule 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.securitycentermanagement.v1.EventThreatDetectionCustomModule - parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.securitycentermanagement.v1.EventThreatDetectionCustomModule parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.securitycentermanagement.v1.EventThreatDetectionCustomModule - parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + public static com.google.cloud.securitycentermanagement.v1.EventThreatDetectionCustomModule parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.securitycentermanagement.v1.EventThreatDetectionCustomModule - parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.securitycentermanagement.v1.EventThreatDetectionCustomModule parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - - public static com.google.cloud.securitycentermanagement.v1.EventThreatDetectionCustomModule - 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.securitycentermanagement.v1.EventThreatDetectionCustomModule 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.securitycentermanagement.v1.EventThreatDetectionCustomModule prototype) { + public static Builder newBuilder(com.google.cloud.securitycentermanagement.v1.EventThreatDetectionCustomModule prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * An event threat detection custom module is a Cloud SCC resource that contains
    * the configuration and enablement state of a custom module, which enables ETD
@@ -1008,34 +888,33 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build
    *
    * Protobuf type {@code google.cloud.securitycentermanagement.v1.EventThreatDetectionCustomModule}
    */
-  public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
-      implements
+  public static final class Builder extends
+      com.google.protobuf.GeneratedMessageV3.Builder implements
       // @@protoc_insertion_point(builder_implements:google.cloud.securitycentermanagement.v1.EventThreatDetectionCustomModule)
       com.google.cloud.securitycentermanagement.v1.EventThreatDetectionCustomModuleOrBuilder {
-    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-      return com.google.cloud.securitycentermanagement.v1.SecurityCenterManagementProto
-          .internal_static_google_cloud_securitycentermanagement_v1_EventThreatDetectionCustomModule_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor
+        getDescriptor() {
+      return com.google.cloud.securitycentermanagement.v1.SecurityCenterManagementProto.internal_static_google_cloud_securitycentermanagement_v1_EventThreatDetectionCustomModule_descriptor;
     }
 
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.cloud.securitycentermanagement.v1.SecurityCenterManagementProto
-          .internal_static_google_cloud_securitycentermanagement_v1_EventThreatDetectionCustomModule_fieldAccessorTable
+      return com.google.cloud.securitycentermanagement.v1.SecurityCenterManagementProto.internal_static_google_cloud_securitycentermanagement_v1_EventThreatDetectionCustomModule_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.cloud.securitycentermanagement.v1.EventThreatDetectionCustomModule.class,
-              com.google.cloud.securitycentermanagement.v1.EventThreatDetectionCustomModule.Builder
-                  .class);
+              com.google.cloud.securitycentermanagement.v1.EventThreatDetectionCustomModule.class, com.google.cloud.securitycentermanagement.v1.EventThreatDetectionCustomModule.Builder.class);
     }
 
-    // Construct using
-    // com.google.cloud.securitycentermanagement.v1.EventThreatDetectionCustomModule.newBuilder()
-    private Builder() {}
+    // Construct using com.google.cloud.securitycentermanagement.v1.EventThreatDetectionCustomModule.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();
@@ -1061,22 +940,19 @@ public Builder clear() {
     }
 
     @java.lang.Override
-    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
-      return com.google.cloud.securitycentermanagement.v1.SecurityCenterManagementProto
-          .internal_static_google_cloud_securitycentermanagement_v1_EventThreatDetectionCustomModule_descriptor;
+    public com.google.protobuf.Descriptors.Descriptor
+        getDescriptorForType() {
+      return com.google.cloud.securitycentermanagement.v1.SecurityCenterManagementProto.internal_static_google_cloud_securitycentermanagement_v1_EventThreatDetectionCustomModule_descriptor;
     }
 
     @java.lang.Override
-    public com.google.cloud.securitycentermanagement.v1.EventThreatDetectionCustomModule
-        getDefaultInstanceForType() {
-      return com.google.cloud.securitycentermanagement.v1.EventThreatDetectionCustomModule
-          .getDefaultInstance();
+    public com.google.cloud.securitycentermanagement.v1.EventThreatDetectionCustomModule getDefaultInstanceForType() {
+      return com.google.cloud.securitycentermanagement.v1.EventThreatDetectionCustomModule.getDefaultInstance();
     }
 
     @java.lang.Override
     public com.google.cloud.securitycentermanagement.v1.EventThreatDetectionCustomModule build() {
-      com.google.cloud.securitycentermanagement.v1.EventThreatDetectionCustomModule result =
-          buildPartial();
+      com.google.cloud.securitycentermanagement.v1.EventThreatDetectionCustomModule result = buildPartial();
       if (!result.isInitialized()) {
         throw newUninitializedMessageException(result);
       }
@@ -1084,25 +960,22 @@ public com.google.cloud.securitycentermanagement.v1.EventThreatDetectionCustomMo
     }
 
     @java.lang.Override
-    public com.google.cloud.securitycentermanagement.v1.EventThreatDetectionCustomModule
-        buildPartial() {
-      com.google.cloud.securitycentermanagement.v1.EventThreatDetectionCustomModule result =
-          new com.google.cloud.securitycentermanagement.v1.EventThreatDetectionCustomModule(this);
-      if (bitField0_ != 0) {
-        buildPartial0(result);
-      }
+    public com.google.cloud.securitycentermanagement.v1.EventThreatDetectionCustomModule buildPartial() {
+      com.google.cloud.securitycentermanagement.v1.EventThreatDetectionCustomModule result = new com.google.cloud.securitycentermanagement.v1.EventThreatDetectionCustomModule(this);
+      if (bitField0_ != 0) { buildPartial0(result); }
       onBuilt();
       return result;
     }
 
-    private void buildPartial0(
-        com.google.cloud.securitycentermanagement.v1.EventThreatDetectionCustomModule result) {
+    private void buildPartial0(com.google.cloud.securitycentermanagement.v1.EventThreatDetectionCustomModule result) {
       int from_bitField0_ = bitField0_;
       if (((from_bitField0_ & 0x00000001) != 0)) {
         result.name_ = name_;
       }
       if (((from_bitField0_ & 0x00000002) != 0)) {
-        result.config_ = configBuilder_ == null ? config_ : configBuilder_.build();
+        result.config_ = configBuilder_ == null
+            ? config_
+            : configBuilder_.build();
       }
       if (((from_bitField0_ & 0x00000004) != 0)) {
         result.ancestorModule_ = ancestorModule_;
@@ -1120,7 +993,9 @@ private void buildPartial0(
         result.description_ = description_;
       }
       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.lastEditor_ = lastEditor_;
@@ -1131,53 +1006,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.securitycentermanagement.v1.EventThreatDetectionCustomModule) {
-        return mergeFrom(
-            (com.google.cloud.securitycentermanagement.v1.EventThreatDetectionCustomModule) other);
+      if (other instanceof com.google.cloud.securitycentermanagement.v1.EventThreatDetectionCustomModule) {
+        return mergeFrom((com.google.cloud.securitycentermanagement.v1.EventThreatDetectionCustomModule)other);
       } else {
         super.mergeFrom(other);
         return this;
       }
     }
 
-    public Builder mergeFrom(
-        com.google.cloud.securitycentermanagement.v1.EventThreatDetectionCustomModule other) {
-      if (other
-          == com.google.cloud.securitycentermanagement.v1.EventThreatDetectionCustomModule
-              .getDefaultInstance()) return this;
+    public Builder mergeFrom(com.google.cloud.securitycentermanagement.v1.EventThreatDetectionCustomModule other) {
+      if (other == com.google.cloud.securitycentermanagement.v1.EventThreatDetectionCustomModule.getDefaultInstance()) return this;
       if (!other.getName().isEmpty()) {
         name_ = other.name_;
         bitField0_ |= 0x00000001;
@@ -1243,67 +1111,61 @@ public Builder mergeFrom(
             case 0:
               done = true;
               break;
-            case 10:
-              {
-                name_ = input.readStringRequireUtf8();
-                bitField0_ |= 0x00000001;
-                break;
-              } // case 10
-            case 18:
-              {
-                input.readMessage(getConfigFieldBuilder().getBuilder(), extensionRegistry);
-                bitField0_ |= 0x00000002;
-                break;
-              } // case 18
-            case 26:
-              {
-                ancestorModule_ = input.readStringRequireUtf8();
-                bitField0_ |= 0x00000004;
-                break;
-              } // case 26
-            case 32:
-              {
-                enablementState_ = input.readEnum();
-                bitField0_ |= 0x00000008;
-                break;
-              } // case 32
-            case 42:
-              {
-                type_ = input.readStringRequireUtf8();
-                bitField0_ |= 0x00000010;
-                break;
-              } // case 42
-            case 50:
-              {
-                displayName_ = input.readStringRequireUtf8();
-                bitField0_ |= 0x00000020;
-                break;
-              } // case 50
-            case 58:
-              {
-                description_ = input.readStringRequireUtf8();
-                bitField0_ |= 0x00000040;
-                break;
-              } // case 58
-            case 66:
-              {
-                input.readMessage(getUpdateTimeFieldBuilder().getBuilder(), extensionRegistry);
-                bitField0_ |= 0x00000080;
-                break;
-              } // case 66
-            case 74:
-              {
-                lastEditor_ = input.readStringRequireUtf8();
-                bitField0_ |= 0x00000100;
-                break;
-              } // case 74
-            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(
+                  getConfigFieldBuilder().getBuilder(),
+                  extensionRegistry);
+              bitField0_ |= 0x00000002;
+              break;
+            } // case 18
+            case 26: {
+              ancestorModule_ = input.readStringRequireUtf8();
+              bitField0_ |= 0x00000004;
+              break;
+            } // case 26
+            case 32: {
+              enablementState_ = input.readEnum();
+              bitField0_ |= 0x00000008;
+              break;
+            } // case 32
+            case 42: {
+              type_ = input.readStringRequireUtf8();
+              bitField0_ |= 0x00000010;
+              break;
+            } // case 42
+            case 50: {
+              displayName_ = input.readStringRequireUtf8();
+              bitField0_ |= 0x00000020;
+              break;
+            } // case 50
+            case 58: {
+              description_ = input.readStringRequireUtf8();
+              bitField0_ |= 0x00000040;
+              break;
+            } // case 58
+            case 66: {
+              input.readMessage(
+                  getUpdateTimeFieldBuilder().getBuilder(),
+                  extensionRegistry);
+              bitField0_ |= 0x00000080;
+              break;
+            } // case 66
+            case 74: {
+              lastEditor_ = input.readStringRequireUtf8();
+              bitField0_ |= 0x00000100;
+              break;
+            } // case 74
+            default: {
+              if (!super.parseUnknownField(input, extensionRegistry, tag)) {
+                done = true; // was an endgroup tag
+              }
+              break;
+            } // default:
           } // switch (tag)
         } // while (!done)
       } catch (com.google.protobuf.InvalidProtocolBufferException e) {
@@ -1313,13 +1175,10 @@ public Builder mergeFrom(
       } // finally
       return this;
     }
-
     private int bitField0_;
 
     private java.lang.Object name_ = "";
     /**
-     *
-     *
      * 
      * Immutable. The resource name of the ETD custom module.
      *
@@ -1331,13 +1190,13 @@ public Builder mergeFrom(
      * 
* * string name = 1 [(.google.api.field_behavior) = IMMUTABLE]; - * * @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; @@ -1346,8 +1205,6 @@ public java.lang.String getName() { } } /** - * - * *
      * Immutable. The resource name of the ETD custom module.
      *
@@ -1359,14 +1216,15 @@ public java.lang.String getName() {
      * 
* * string name = 1 [(.google.api.field_behavior) = IMMUTABLE]; - * * @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 { @@ -1374,8 +1232,6 @@ public com.google.protobuf.ByteString getNameBytes() { } } /** - * - * *
      * Immutable. The resource name of the ETD custom module.
      *
@@ -1387,22 +1243,18 @@ public com.google.protobuf.ByteString getNameBytes() {
      * 
* * string name = 1 [(.google.api.field_behavior) = IMMUTABLE]; - * * @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; } /** - * - * *
      * Immutable. The resource name of the ETD custom module.
      *
@@ -1414,7 +1266,6 @@ public Builder setName(java.lang.String value) {
      * 
* * string name = 1 [(.google.api.field_behavior) = IMMUTABLE]; - * * @return This builder for chaining. */ public Builder clearName() { @@ -1424,8 +1275,6 @@ public Builder clearName() { return this; } /** - * - * *
      * Immutable. The resource name of the ETD custom module.
      *
@@ -1437,14 +1286,12 @@ public Builder clearName() {
      * 
* * string name = 1 [(.google.api.field_behavior) = IMMUTABLE]; - * * @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; @@ -1454,13 +1301,8 @@ public Builder setNameBytes(com.google.protobuf.ByteString value) { private com.google.protobuf.Struct config_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Struct, - com.google.protobuf.Struct.Builder, - com.google.protobuf.StructOrBuilder> - configBuilder_; + com.google.protobuf.Struct, com.google.protobuf.Struct.Builder, com.google.protobuf.StructOrBuilder> configBuilder_; /** - * - * *
      * Optional. Config for the module. For the resident module, its config value
      * is defined at this level. For the inherited module, its config value is
@@ -1468,15 +1310,12 @@ public Builder setNameBytes(com.google.protobuf.ByteString value) {
      * 
* * .google.protobuf.Struct config = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @return Whether the config field is set. */ public boolean hasConfig() { return ((bitField0_ & 0x00000002) != 0); } /** - * - * *
      * Optional. Config for the module. For the resident module, its config value
      * is defined at this level. For the inherited module, its config value is
@@ -1484,7 +1323,6 @@ public boolean hasConfig() {
      * 
* * .google.protobuf.Struct config = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The config. */ public com.google.protobuf.Struct getConfig() { @@ -1495,8 +1333,6 @@ public com.google.protobuf.Struct getConfig() { } } /** - * - * *
      * Optional. Config for the module. For the resident module, its config value
      * is defined at this level. For the inherited module, its config value is
@@ -1519,8 +1355,6 @@ public Builder setConfig(com.google.protobuf.Struct value) {
       return this;
     }
     /**
-     *
-     *
      * 
      * Optional. Config for the module. For the resident module, its config value
      * is defined at this level. For the inherited module, its config value is
@@ -1529,7 +1363,8 @@ public Builder setConfig(com.google.protobuf.Struct value) {
      *
      * .google.protobuf.Struct config = 2 [(.google.api.field_behavior) = OPTIONAL];
      */
-    public Builder setConfig(com.google.protobuf.Struct.Builder builderForValue) {
+    public Builder setConfig(
+        com.google.protobuf.Struct.Builder builderForValue) {
       if (configBuilder_ == null) {
         config_ = builderForValue.build();
       } else {
@@ -1540,8 +1375,6 @@ public Builder setConfig(com.google.protobuf.Struct.Builder builderForValue) {
       return this;
     }
     /**
-     *
-     *
      * 
      * Optional. Config for the module. For the resident module, its config value
      * is defined at this level. For the inherited module, its config value is
@@ -1552,9 +1385,9 @@ public Builder setConfig(com.google.protobuf.Struct.Builder builderForValue) {
      */
     public Builder mergeConfig(com.google.protobuf.Struct value) {
       if (configBuilder_ == null) {
-        if (((bitField0_ & 0x00000002) != 0)
-            && config_ != null
-            && config_ != com.google.protobuf.Struct.getDefaultInstance()) {
+        if (((bitField0_ & 0x00000002) != 0) &&
+          config_ != null &&
+          config_ != com.google.protobuf.Struct.getDefaultInstance()) {
           getConfigBuilder().mergeFrom(value);
         } else {
           config_ = value;
@@ -1567,8 +1400,6 @@ public Builder mergeConfig(com.google.protobuf.Struct value) {
       return this;
     }
     /**
-     *
-     *
      * 
      * Optional. Config for the module. For the resident module, its config value
      * is defined at this level. For the inherited module, its config value is
@@ -1588,8 +1419,6 @@ public Builder clearConfig() {
       return this;
     }
     /**
-     *
-     *
      * 
      * Optional. Config for the module. For the resident module, its config value
      * is defined at this level. For the inherited module, its config value is
@@ -1604,8 +1433,6 @@ public com.google.protobuf.Struct.Builder getConfigBuilder() {
       return getConfigFieldBuilder().getBuilder();
     }
     /**
-     *
-     *
      * 
      * Optional. Config for the module. For the resident module, its config value
      * is defined at this level. For the inherited module, its config value is
@@ -1618,12 +1445,11 @@ public com.google.protobuf.StructOrBuilder getConfigOrBuilder() {
       if (configBuilder_ != null) {
         return configBuilder_.getMessageOrBuilder();
       } else {
-        return config_ == null ? com.google.protobuf.Struct.getDefaultInstance() : config_;
+        return config_ == null ?
+            com.google.protobuf.Struct.getDefaultInstance() : config_;
       }
     }
     /**
-     *
-     *
      * 
      * Optional. Config for the module. For the resident module, its config value
      * is defined at this level. For the inherited module, its config value is
@@ -1633,17 +1459,14 @@ public com.google.protobuf.StructOrBuilder getConfigOrBuilder() {
      * .google.protobuf.Struct config = 2 [(.google.api.field_behavior) = OPTIONAL];
      */
     private com.google.protobuf.SingleFieldBuilderV3<
-            com.google.protobuf.Struct,
-            com.google.protobuf.Struct.Builder,
-            com.google.protobuf.StructOrBuilder>
+        com.google.protobuf.Struct, com.google.protobuf.Struct.Builder, com.google.protobuf.StructOrBuilder> 
         getConfigFieldBuilder() {
       if (configBuilder_ == null) {
-        configBuilder_ =
-            new com.google.protobuf.SingleFieldBuilderV3<
-                com.google.protobuf.Struct,
-                com.google.protobuf.Struct.Builder,
-                com.google.protobuf.StructOrBuilder>(
-                getConfig(), getParentForChildren(), isClean());
+        configBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
+            com.google.protobuf.Struct, com.google.protobuf.Struct.Builder, com.google.protobuf.StructOrBuilder>(
+                getConfig(),
+                getParentForChildren(),
+                isClean());
         config_ = null;
       }
       return configBuilder_;
@@ -1651,8 +1474,6 @@ public com.google.protobuf.StructOrBuilder getConfigOrBuilder() {
 
     private java.lang.Object ancestorModule_ = "";
     /**
-     *
-     *
      * 
      * Output only. The closest ancestor module that this module inherits the
      * enablement state from. If empty, indicates that the custom module was
@@ -1660,16 +1481,14 @@ public com.google.protobuf.StructOrBuilder getConfigOrBuilder() {
      * format is the same as the EventThreatDetectionCustomModule resource name.
      * 
* - * - * string ancestor_module = 3 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } - * - * + * string ancestor_module = 3 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } * @return The ancestorModule. */ public java.lang.String getAncestorModule() { java.lang.Object ref = ancestorModule_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); ancestorModule_ = s; return s; @@ -1678,8 +1497,6 @@ public java.lang.String getAncestorModule() { } } /** - * - * *
      * Output only. The closest ancestor module that this module inherits the
      * enablement state from. If empty, indicates that the custom module was
@@ -1687,17 +1504,16 @@ public java.lang.String getAncestorModule() {
      * format is the same as the EventThreatDetectionCustomModule resource name.
      * 
* - * - * string ancestor_module = 3 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } - * - * + * string ancestor_module = 3 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } * @return The bytes for ancestorModule. */ - public com.google.protobuf.ByteString getAncestorModuleBytes() { + public com.google.protobuf.ByteString + getAncestorModuleBytes() { java.lang.Object ref = ancestorModule_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); ancestorModule_ = b; return b; } else { @@ -1705,8 +1521,6 @@ public com.google.protobuf.ByteString getAncestorModuleBytes() { } } /** - * - * *
      * Output only. The closest ancestor module that this module inherits the
      * enablement state from. If empty, indicates that the custom module was
@@ -1714,25 +1528,19 @@ public com.google.protobuf.ByteString getAncestorModuleBytes() {
      * format is the same as the EventThreatDetectionCustomModule resource name.
      * 
* - * - * string ancestor_module = 3 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } - * - * + * string ancestor_module = 3 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } * @param value The ancestorModule to set. * @return This builder for chaining. */ - public Builder setAncestorModule(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setAncestorModule( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } ancestorModule_ = value; bitField0_ |= 0x00000004; onChanged(); return this; } /** - * - * *
      * Output only. The closest ancestor module that this module inherits the
      * enablement state from. If empty, indicates that the custom module was
@@ -1740,10 +1548,7 @@ public Builder setAncestorModule(java.lang.String value) {
      * format is the same as the EventThreatDetectionCustomModule resource name.
      * 
* - * - * string ancestor_module = 3 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } - * - * + * string ancestor_module = 3 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } * @return This builder for chaining. */ public Builder clearAncestorModule() { @@ -1753,8 +1558,6 @@ public Builder clearAncestorModule() { return this; } /** - * - * *
      * Output only. The closest ancestor module that this module inherits the
      * enablement state from. If empty, indicates that the custom module was
@@ -1762,17 +1565,13 @@ public Builder clearAncestorModule() {
      * format is the same as the EventThreatDetectionCustomModule resource name.
      * 
* - * - * string ancestor_module = 3 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } - * - * + * string ancestor_module = 3 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } * @param value The bytes for ancestorModule to set. * @return This builder for chaining. */ - public Builder setAncestorModuleBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setAncestorModuleBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); ancestorModule_ = value; bitField0_ |= 0x00000004; @@ -1782,35 +1581,24 @@ public Builder setAncestorModuleBytes(com.google.protobuf.ByteString value) { private int enablementState_ = 0; /** - * - * *
      * Optional. The state of enablement for the module at the given level of the
      * hierarchy.
      * 
* - * - * .google.cloud.securitycentermanagement.v1.EventThreatDetectionCustomModule.EnablementState enablement_state = 4 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.cloud.securitycentermanagement.v1.EventThreatDetectionCustomModule.EnablementState enablement_state = 4 [(.google.api.field_behavior) = OPTIONAL]; * @return The enum numeric value on the wire for enablementState. */ - @java.lang.Override - public int getEnablementStateValue() { + @java.lang.Override public int getEnablementStateValue() { return enablementState_; } /** - * - * *
      * Optional. The state of enablement for the module at the given level of the
      * hierarchy.
      * 
* - * - * .google.cloud.securitycentermanagement.v1.EventThreatDetectionCustomModule.EnablementState enablement_state = 4 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.cloud.securitycentermanagement.v1.EventThreatDetectionCustomModule.EnablementState enablement_state = 4 [(.google.api.field_behavior) = OPTIONAL]; * @param value The enum numeric value on the wire for enablementState to set. * @return This builder for chaining. */ @@ -1821,51 +1609,30 @@ public Builder setEnablementStateValue(int value) { return this; } /** - * - * *
      * Optional. The state of enablement for the module at the given level of the
      * hierarchy.
      * 
* - * - * .google.cloud.securitycentermanagement.v1.EventThreatDetectionCustomModule.EnablementState enablement_state = 4 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.cloud.securitycentermanagement.v1.EventThreatDetectionCustomModule.EnablementState enablement_state = 4 [(.google.api.field_behavior) = OPTIONAL]; * @return The enablementState. */ @java.lang.Override - public com.google.cloud.securitycentermanagement.v1.EventThreatDetectionCustomModule - .EnablementState - getEnablementState() { - com.google.cloud.securitycentermanagement.v1.EventThreatDetectionCustomModule.EnablementState - result = - com.google.cloud.securitycentermanagement.v1.EventThreatDetectionCustomModule - .EnablementState.forNumber(enablementState_); - return result == null - ? com.google.cloud.securitycentermanagement.v1.EventThreatDetectionCustomModule - .EnablementState.UNRECOGNIZED - : result; + public com.google.cloud.securitycentermanagement.v1.EventThreatDetectionCustomModule.EnablementState getEnablementState() { + com.google.cloud.securitycentermanagement.v1.EventThreatDetectionCustomModule.EnablementState result = com.google.cloud.securitycentermanagement.v1.EventThreatDetectionCustomModule.EnablementState.forNumber(enablementState_); + return result == null ? com.google.cloud.securitycentermanagement.v1.EventThreatDetectionCustomModule.EnablementState.UNRECOGNIZED : result; } /** - * - * *
      * Optional. The state of enablement for the module at the given level of the
      * hierarchy.
      * 
* - * - * .google.cloud.securitycentermanagement.v1.EventThreatDetectionCustomModule.EnablementState enablement_state = 4 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.cloud.securitycentermanagement.v1.EventThreatDetectionCustomModule.EnablementState enablement_state = 4 [(.google.api.field_behavior) = OPTIONAL]; * @param value The enablementState to set. * @return This builder for chaining. */ - public Builder setEnablementState( - com.google.cloud.securitycentermanagement.v1.EventThreatDetectionCustomModule - .EnablementState - value) { + public Builder setEnablementState(com.google.cloud.securitycentermanagement.v1.EventThreatDetectionCustomModule.EnablementState value) { if (value == null) { throw new NullPointerException(); } @@ -1875,17 +1642,12 @@ public Builder setEnablementState( return this; } /** - * - * *
      * Optional. The state of enablement for the module at the given level of the
      * hierarchy.
      * 
* - * - * .google.cloud.securitycentermanagement.v1.EventThreatDetectionCustomModule.EnablementState enablement_state = 4 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.cloud.securitycentermanagement.v1.EventThreatDetectionCustomModule.EnablementState enablement_state = 4 [(.google.api.field_behavior) = OPTIONAL]; * @return This builder for chaining. */ public Builder clearEnablementState() { @@ -1897,20 +1659,18 @@ public Builder clearEnablementState() { private java.lang.Object type_ = ""; /** - * - * *
      * Optional. Type for the module. e.g. CONFIGURABLE_BAD_IP.
      * 
* * string type = 5 [(.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; @@ -1919,21 +1679,20 @@ public java.lang.String getType() { } } /** - * - * *
      * Optional. Type for the module. e.g. CONFIGURABLE_BAD_IP.
      * 
* * string type = 5 [(.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 { @@ -1941,35 +1700,28 @@ public com.google.protobuf.ByteString getTypeBytes() { } } /** - * - * *
      * Optional. Type for the module. e.g. CONFIGURABLE_BAD_IP.
      * 
* * string type = 5 [(.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_ |= 0x00000010; onChanged(); return this; } /** - * - * *
      * Optional. Type for the module. e.g. CONFIGURABLE_BAD_IP.
      * 
* * string type = 5 [(.google.api.field_behavior) = OPTIONAL]; - * * @return This builder for chaining. */ public Builder clearType() { @@ -1979,21 +1731,17 @@ public Builder clearType() { return this; } /** - * - * *
      * Optional. Type for the module. e.g. CONFIGURABLE_BAD_IP.
      * 
* * string type = 5 [(.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_ |= 0x00000010; @@ -2003,20 +1751,18 @@ public Builder setTypeBytes(com.google.protobuf.ByteString value) { private java.lang.Object displayName_ = ""; /** - * - * *
      * Optional. The human readable name to be displayed for the module.
      * 
* * string display_name = 6 [(.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; @@ -2025,21 +1771,20 @@ public java.lang.String getDisplayName() { } } /** - * - * *
      * Optional. The human readable name to be displayed for the module.
      * 
* * string display_name = 6 [(.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 { @@ -2047,35 +1792,28 @@ public com.google.protobuf.ByteString getDisplayNameBytes() { } } /** - * - * *
      * Optional. The human readable name to be displayed for the module.
      * 
* * string display_name = 6 [(.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_ |= 0x00000020; onChanged(); return this; } /** - * - * *
      * Optional. The human readable name to be displayed for the module.
      * 
* * string display_name = 6 [(.google.api.field_behavior) = OPTIONAL]; - * * @return This builder for chaining. */ public Builder clearDisplayName() { @@ -2085,21 +1823,17 @@ public Builder clearDisplayName() { return this; } /** - * - * *
      * Optional. The human readable name to be displayed for the module.
      * 
* * string display_name = 6 [(.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_ |= 0x00000020; @@ -2109,20 +1843,18 @@ public Builder setDisplayNameBytes(com.google.protobuf.ByteString value) { private java.lang.Object description_ = ""; /** - * - * *
      * Optional. The description for the module.
      * 
* * string description = 7 [(.google.api.field_behavior) = OPTIONAL]; - * * @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; @@ -2131,21 +1863,20 @@ public java.lang.String getDescription() { } } /** - * - * *
      * Optional. The description for the module.
      * 
* * string description = 7 [(.google.api.field_behavior) = OPTIONAL]; - * * @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 { @@ -2153,35 +1884,28 @@ public com.google.protobuf.ByteString getDescriptionBytes() { } } /** - * - * *
      * Optional. The description for the module.
      * 
* * string description = 7 [(.google.api.field_behavior) = OPTIONAL]; - * * @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; } /** - * - * *
      * Optional. The description for the module.
      * 
* * string description = 7 [(.google.api.field_behavior) = OPTIONAL]; - * * @return This builder for chaining. */ public Builder clearDescription() { @@ -2191,21 +1915,17 @@ public Builder clearDescription() { return this; } /** - * - * *
      * Optional. The description for the module.
      * 
* * string description = 7 [(.google.api.field_behavior) = OPTIONAL]; - * * @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; @@ -2215,58 +1935,39 @@ public Builder setDescriptionBytes(com.google.protobuf.ByteString value) { 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 time the module was last updated.
      * 
* - * - * .google.protobuf.Timestamp update_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp update_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the updateTime field is set. */ public boolean hasUpdateTime() { return ((bitField0_ & 0x00000080) != 0); } /** - * - * *
      * Output only. The time the module was last updated.
      * 
* - * - * .google.protobuf.Timestamp update_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp update_time = 8 [(.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 time the module was last updated.
      * 
* - * - * .google.protobuf.Timestamp update_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp update_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder setUpdateTime(com.google.protobuf.Timestamp value) { if (updateTimeBuilder_ == null) { @@ -2282,17 +1983,14 @@ public Builder setUpdateTime(com.google.protobuf.Timestamp value) { return this; } /** - * - * *
      * Output only. The time the module was last updated.
      * 
* - * - * .google.protobuf.Timestamp update_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp update_time = 8 [(.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 { @@ -2303,21 +2001,17 @@ public Builder setUpdateTime(com.google.protobuf.Timestamp.Builder builderForVal return this; } /** - * - * *
      * Output only. The time the module was last updated.
      * 
* - * - * .google.protobuf.Timestamp update_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp update_time = 8 [(.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; @@ -2330,15 +2024,11 @@ public Builder mergeUpdateTime(com.google.protobuf.Timestamp value) { return this; } /** - * - * *
      * Output only. The time the module was last updated.
      * 
* - * - * .google.protobuf.Timestamp update_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp update_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder clearUpdateTime() { bitField0_ = (bitField0_ & ~0x00000080); @@ -2351,15 +2041,11 @@ public Builder clearUpdateTime() { return this; } /** - * - * *
      * Output only. The time the module was last updated.
      * 
* - * - * .google.protobuf.Timestamp update_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp update_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public com.google.protobuf.Timestamp.Builder getUpdateTimeBuilder() { bitField0_ |= 0x00000080; @@ -2367,48 +2053,36 @@ public com.google.protobuf.Timestamp.Builder getUpdateTimeBuilder() { return getUpdateTimeFieldBuilder().getBuilder(); } /** - * - * *
      * Output only. The time the module was last updated.
      * 
* - * - * .google.protobuf.Timestamp update_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp update_time = 8 [(.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 time the module was last updated.
      * 
* - * - * .google.protobuf.Timestamp update_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp update_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> 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_; @@ -2416,20 +2090,18 @@ public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() { private java.lang.Object lastEditor_ = ""; /** - * - * *
      * Output only. The editor the module was last updated by.
      * 
* * string last_editor = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The lastEditor. */ public java.lang.String getLastEditor() { java.lang.Object ref = lastEditor_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); lastEditor_ = s; return s; @@ -2438,21 +2110,20 @@ public java.lang.String getLastEditor() { } } /** - * - * *
      * Output only. The editor the module was last updated by.
      * 
* * string last_editor = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The bytes for lastEditor. */ - public com.google.protobuf.ByteString getLastEditorBytes() { + public com.google.protobuf.ByteString + getLastEditorBytes() { java.lang.Object ref = lastEditor_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); lastEditor_ = b; return b; } else { @@ -2460,35 +2131,28 @@ public com.google.protobuf.ByteString getLastEditorBytes() { } } /** - * - * *
      * Output only. The editor the module was last updated by.
      * 
* * string last_editor = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @param value The lastEditor to set. * @return This builder for chaining. */ - public Builder setLastEditor(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setLastEditor( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } lastEditor_ = value; bitField0_ |= 0x00000100; onChanged(); return this; } /** - * - * *
      * Output only. The editor the module was last updated by.
      * 
* * string last_editor = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return This builder for chaining. */ public Builder clearLastEditor() { @@ -2498,30 +2162,26 @@ public Builder clearLastEditor() { return this; } /** - * - * *
      * Output only. The editor the module was last updated by.
      * 
* * string last_editor = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @param value The bytes for lastEditor to set. * @return This builder for chaining. */ - public Builder setLastEditorBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setLastEditorBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); lastEditor_ = value; bitField0_ |= 0x00000100; onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -2531,44 +2191,41 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.securitycentermanagement.v1.EventThreatDetectionCustomModule) } // @@protoc_insertion_point(class_scope:google.cloud.securitycentermanagement.v1.EventThreatDetectionCustomModule) - private static final com.google.cloud.securitycentermanagement.v1.EventThreatDetectionCustomModule - DEFAULT_INSTANCE; - + private static final com.google.cloud.securitycentermanagement.v1.EventThreatDetectionCustomModule DEFAULT_INSTANCE; static { - DEFAULT_INSTANCE = - new com.google.cloud.securitycentermanagement.v1.EventThreatDetectionCustomModule(); + DEFAULT_INSTANCE = new com.google.cloud.securitycentermanagement.v1.EventThreatDetectionCustomModule(); } - public static com.google.cloud.securitycentermanagement.v1.EventThreatDetectionCustomModule - getDefaultInstance() { + public static com.google.cloud.securitycentermanagement.v1.EventThreatDetectionCustomModule getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public EventThreatDetectionCustomModule parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public EventThreatDetectionCustomModule parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -2580,8 +2237,9 @@ public com.google.protobuf.Parser getParserFor } @java.lang.Override - public com.google.cloud.securitycentermanagement.v1.EventThreatDetectionCustomModule - getDefaultInstanceForType() { + public com.google.cloud.securitycentermanagement.v1.EventThreatDetectionCustomModule getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/java-securitycentermanagement/proto-google-cloud-securitycentermanagement-v1/src/main/java/com/google/cloud/securitycentermanagement/v1/EventThreatDetectionCustomModuleName.java b/owl-bot-staging/java-securitycentermanagement/v1/proto-google-cloud-securitycentermanagement-v1/src/main/java/com/google/cloud/securitycentermanagement/v1/EventThreatDetectionCustomModuleName.java similarity index 100% rename from java-securitycentermanagement/proto-google-cloud-securitycentermanagement-v1/src/main/java/com/google/cloud/securitycentermanagement/v1/EventThreatDetectionCustomModuleName.java rename to owl-bot-staging/java-securitycentermanagement/v1/proto-google-cloud-securitycentermanagement-v1/src/main/java/com/google/cloud/securitycentermanagement/v1/EventThreatDetectionCustomModuleName.java diff --git a/java-securitycentermanagement/proto-google-cloud-securitycentermanagement-v1/src/main/java/com/google/cloud/securitycentermanagement/v1/EventThreatDetectionCustomModuleOrBuilder.java b/owl-bot-staging/java-securitycentermanagement/v1/proto-google-cloud-securitycentermanagement-v1/src/main/java/com/google/cloud/securitycentermanagement/v1/EventThreatDetectionCustomModuleOrBuilder.java similarity index 75% rename from java-securitycentermanagement/proto-google-cloud-securitycentermanagement-v1/src/main/java/com/google/cloud/securitycentermanagement/v1/EventThreatDetectionCustomModuleOrBuilder.java rename to owl-bot-staging/java-securitycentermanagement/v1/proto-google-cloud-securitycentermanagement-v1/src/main/java/com/google/cloud/securitycentermanagement/v1/EventThreatDetectionCustomModuleOrBuilder.java index ef5d6363e91f..0be8afd3e02d 100644 --- a/java-securitycentermanagement/proto-google-cloud-securitycentermanagement-v1/src/main/java/com/google/cloud/securitycentermanagement/v1/EventThreatDetectionCustomModuleOrBuilder.java +++ b/owl-bot-staging/java-securitycentermanagement/v1/proto-google-cloud-securitycentermanagement-v1/src/main/java/com/google/cloud/securitycentermanagement/v1/EventThreatDetectionCustomModuleOrBuilder.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/securitycentermanagement/v1/security_center_management.proto package com.google.cloud.securitycentermanagement.v1; -public interface EventThreatDetectionCustomModuleOrBuilder - extends +public interface EventThreatDetectionCustomModuleOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.securitycentermanagement.v1.EventThreatDetectionCustomModule) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * Immutable. The resource name of the ETD custom module.
    *
@@ -37,13 +19,10 @@ public interface EventThreatDetectionCustomModuleOrBuilder
    * 
* * string name = 1 [(.google.api.field_behavior) = IMMUTABLE]; - * * @return The name. */ java.lang.String getName(); /** - * - * *
    * Immutable. The resource name of the ETD custom module.
    *
@@ -55,14 +34,12 @@ public interface EventThreatDetectionCustomModuleOrBuilder
    * 
* * string name = 1 [(.google.api.field_behavior) = IMMUTABLE]; - * * @return The bytes for name. */ - com.google.protobuf.ByteString getNameBytes(); + com.google.protobuf.ByteString + getNameBytes(); /** - * - * *
    * Optional. Config for the module. For the resident module, its config value
    * is defined at this level. For the inherited module, its config value is
@@ -70,13 +47,10 @@ public interface EventThreatDetectionCustomModuleOrBuilder
    * 
* * .google.protobuf.Struct config = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @return Whether the config field is set. */ boolean hasConfig(); /** - * - * *
    * Optional. Config for the module. For the resident module, its config value
    * is defined at this level. For the inherited module, its config value is
@@ -84,13 +58,10 @@ public interface EventThreatDetectionCustomModuleOrBuilder
    * 
* * .google.protobuf.Struct config = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The config. */ com.google.protobuf.Struct getConfig(); /** - * - * *
    * Optional. Config for the module. For the resident module, its config value
    * is defined at this level. For the inherited module, its config value is
@@ -102,8 +73,6 @@ public interface EventThreatDetectionCustomModuleOrBuilder
   com.google.protobuf.StructOrBuilder getConfigOrBuilder();
 
   /**
-   *
-   *
    * 
    * Output only. The closest ancestor module that this module inherits the
    * enablement state from. If empty, indicates that the custom module was
@@ -111,16 +80,11 @@ public interface EventThreatDetectionCustomModuleOrBuilder
    * format is the same as the EventThreatDetectionCustomModule resource name.
    * 
* - * - * string ancestor_module = 3 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } - * - * + * string ancestor_module = 3 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } * @return The ancestorModule. */ java.lang.String getAncestorModule(); /** - * - * *
    * Output only. The closest ancestor module that this module inherits the
    * enablement state from. If empty, indicates that the custom module was
@@ -128,181 +92,137 @@ public interface EventThreatDetectionCustomModuleOrBuilder
    * format is the same as the EventThreatDetectionCustomModule resource name.
    * 
* - * - * string ancestor_module = 3 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } - * - * + * string ancestor_module = 3 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } * @return The bytes for ancestorModule. */ - com.google.protobuf.ByteString getAncestorModuleBytes(); + com.google.protobuf.ByteString + getAncestorModuleBytes(); /** - * - * *
    * Optional. The state of enablement for the module at the given level of the
    * hierarchy.
    * 
* - * - * .google.cloud.securitycentermanagement.v1.EventThreatDetectionCustomModule.EnablementState enablement_state = 4 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.cloud.securitycentermanagement.v1.EventThreatDetectionCustomModule.EnablementState enablement_state = 4 [(.google.api.field_behavior) = OPTIONAL]; * @return The enum numeric value on the wire for enablementState. */ int getEnablementStateValue(); /** - * - * *
    * Optional. The state of enablement for the module at the given level of the
    * hierarchy.
    * 
* - * - * .google.cloud.securitycentermanagement.v1.EventThreatDetectionCustomModule.EnablementState enablement_state = 4 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.cloud.securitycentermanagement.v1.EventThreatDetectionCustomModule.EnablementState enablement_state = 4 [(.google.api.field_behavior) = OPTIONAL]; * @return The enablementState. */ - com.google.cloud.securitycentermanagement.v1.EventThreatDetectionCustomModule.EnablementState - getEnablementState(); + com.google.cloud.securitycentermanagement.v1.EventThreatDetectionCustomModule.EnablementState getEnablementState(); /** - * - * *
    * Optional. Type for the module. e.g. CONFIGURABLE_BAD_IP.
    * 
* * string type = 5 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The type. */ java.lang.String getType(); /** - * - * *
    * Optional. Type for the module. e.g. CONFIGURABLE_BAD_IP.
    * 
* * string type = 5 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The bytes for type. */ - com.google.protobuf.ByteString getTypeBytes(); + com.google.protobuf.ByteString + getTypeBytes(); /** - * - * *
    * Optional. The human readable name to be displayed for the module.
    * 
* * string display_name = 6 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The displayName. */ java.lang.String getDisplayName(); /** - * - * *
    * Optional. The human readable name to be displayed for the module.
    * 
* * string display_name = 6 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The bytes for displayName. */ - com.google.protobuf.ByteString getDisplayNameBytes(); + com.google.protobuf.ByteString + getDisplayNameBytes(); /** - * - * *
    * Optional. The description for the module.
    * 
* * string description = 7 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The description. */ java.lang.String getDescription(); /** - * - * *
    * Optional. The description for the module.
    * 
* * string description = 7 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The bytes for description. */ - com.google.protobuf.ByteString getDescriptionBytes(); + com.google.protobuf.ByteString + getDescriptionBytes(); /** - * - * *
    * Output only. The time the module was last updated.
    * 
* - * .google.protobuf.Timestamp update_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp update_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the updateTime field is set. */ boolean hasUpdateTime(); /** - * - * *
    * Output only. The time the module was last updated.
    * 
* - * .google.protobuf.Timestamp update_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp update_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The updateTime. */ com.google.protobuf.Timestamp getUpdateTime(); /** - * - * *
    * Output only. The time the module was last updated.
    * 
* - * .google.protobuf.Timestamp update_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp update_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder(); /** - * - * *
    * Output only. The editor the module was last updated by.
    * 
* * string last_editor = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The lastEditor. */ java.lang.String getLastEditor(); /** - * - * *
    * Output only. The editor the module was last updated by.
    * 
* * string last_editor = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The bytes for lastEditor. */ - com.google.protobuf.ByteString getLastEditorBytes(); + com.google.protobuf.ByteString + getLastEditorBytes(); } diff --git a/java-securitycentermanagement/proto-google-cloud-securitycentermanagement-v1/src/main/java/com/google/cloud/securitycentermanagement/v1/FolderLocationName.java b/owl-bot-staging/java-securitycentermanagement/v1/proto-google-cloud-securitycentermanagement-v1/src/main/java/com/google/cloud/securitycentermanagement/v1/FolderLocationName.java similarity index 100% rename from java-securitycentermanagement/proto-google-cloud-securitycentermanagement-v1/src/main/java/com/google/cloud/securitycentermanagement/v1/FolderLocationName.java rename to owl-bot-staging/java-securitycentermanagement/v1/proto-google-cloud-securitycentermanagement-v1/src/main/java/com/google/cloud/securitycentermanagement/v1/FolderLocationName.java diff --git a/owl-bot-staging/java-securitycentermanagement/v1/proto-google-cloud-securitycentermanagement-v1/src/main/java/com/google/cloud/securitycentermanagement/v1/GetEffectiveEventThreatDetectionCustomModuleRequest.java b/owl-bot-staging/java-securitycentermanagement/v1/proto-google-cloud-securitycentermanagement-v1/src/main/java/com/google/cloud/securitycentermanagement/v1/GetEffectiveEventThreatDetectionCustomModuleRequest.java new file mode 100644 index 000000000000..ad1207039d8c --- /dev/null +++ b/owl-bot-staging/java-securitycentermanagement/v1/proto-google-cloud-securitycentermanagement-v1/src/main/java/com/google/cloud/securitycentermanagement/v1/GetEffectiveEventThreatDetectionCustomModuleRequest.java @@ -0,0 +1,619 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/securitycentermanagement/v1/security_center_management.proto + +package com.google.cloud.securitycentermanagement.v1; + +/** + *
+ * Message for getting a EffectiveEventThreatDetectionCustomModule
+ * 
+ * + * Protobuf type {@code google.cloud.securitycentermanagement.v1.GetEffectiveEventThreatDetectionCustomModuleRequest} + */ +public final class GetEffectiveEventThreatDetectionCustomModuleRequest extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:google.cloud.securitycentermanagement.v1.GetEffectiveEventThreatDetectionCustomModuleRequest) + GetEffectiveEventThreatDetectionCustomModuleRequestOrBuilder { +private static final long serialVersionUID = 0L; + // Use GetEffectiveEventThreatDetectionCustomModuleRequest.newBuilder() to construct. + private GetEffectiveEventThreatDetectionCustomModuleRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private GetEffectiveEventThreatDetectionCustomModuleRequest() { + name_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new GetEffectiveEventThreatDetectionCustomModuleRequest(); + } + + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.securitycentermanagement.v1.SecurityCenterManagementProto.internal_static_google_cloud_securitycentermanagement_v1_GetEffectiveEventThreatDetectionCustomModuleRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.securitycentermanagement.v1.SecurityCenterManagementProto.internal_static_google_cloud_securitycentermanagement_v1_GetEffectiveEventThreatDetectionCustomModuleRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.securitycentermanagement.v1.GetEffectiveEventThreatDetectionCustomModuleRequest.class, com.google.cloud.securitycentermanagement.v1.GetEffectiveEventThreatDetectionCustomModuleRequest.Builder.class); + } + + public static final int NAME_FIELD_NUMBER = 1; + @SuppressWarnings("serial") + private volatile java.lang.Object name_ = ""; + /** + *
+   * Required. The resource name of the ETD custom module.
+   *
+   * Its format is:
+   *
+   *   * "organizations/{organization}/locations/{location}/effectiveEventThreatDetectionCustomModules/{effective_event_threat_detection_custom_module}".
+   *   * "folders/{folder}/locations/{location}/effectiveEventThreatDetectionCustomModules/{effective_event_threat_detection_custom_module}".
+   *   * "projects/{project}/locations/{location}/effectiveEventThreatDetectionCustomModules/{effective_event_threat_detection_custom_module}".
+   * 
+ * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * @return The name. + */ + @java.lang.Override + public java.lang.String getName() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } + } + /** + *
+   * Required. The resource name of the ETD custom module.
+   *
+   * Its format is:
+   *
+   *   * "organizations/{organization}/locations/{location}/effectiveEventThreatDetectionCustomModules/{effective_event_threat_detection_custom_module}".
+   *   * "folders/{folder}/locations/{location}/effectiveEventThreatDetectionCustomModules/{effective_event_threat_detection_custom_module}".
+   *   * "projects/{project}/locations/{location}/effectiveEventThreatDetectionCustomModules/{effective_event_threat_detection_custom_module}".
+   * 
+ * + * 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() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.securitycentermanagement.v1.GetEffectiveEventThreatDetectionCustomModuleRequest)) { + return super.equals(obj); + } + com.google.cloud.securitycentermanagement.v1.GetEffectiveEventThreatDetectionCustomModuleRequest other = (com.google.cloud.securitycentermanagement.v1.GetEffectiveEventThreatDetectionCustomModuleRequest) obj; + + if (!getName() + .equals(other.getName())) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + NAME_FIELD_NUMBER; + hash = (53 * hash) + getName().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.securitycentermanagement.v1.GetEffectiveEventThreatDetectionCustomModuleRequest parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.cloud.securitycentermanagement.v1.GetEffectiveEventThreatDetectionCustomModuleRequest 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.securitycentermanagement.v1.GetEffectiveEventThreatDetectionCustomModuleRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.cloud.securitycentermanagement.v1.GetEffectiveEventThreatDetectionCustomModuleRequest parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.cloud.securitycentermanagement.v1.GetEffectiveEventThreatDetectionCustomModuleRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.cloud.securitycentermanagement.v1.GetEffectiveEventThreatDetectionCustomModuleRequest parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.cloud.securitycentermanagement.v1.GetEffectiveEventThreatDetectionCustomModuleRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.google.cloud.securitycentermanagement.v1.GetEffectiveEventThreatDetectionCustomModuleRequest 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.securitycentermanagement.v1.GetEffectiveEventThreatDetectionCustomModuleRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.securitycentermanagement.v1.GetEffectiveEventThreatDetectionCustomModuleRequest parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static com.google.cloud.securitycentermanagement.v1.GetEffectiveEventThreatDetectionCustomModuleRequest parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.google.cloud.securitycentermanagement.v1.GetEffectiveEventThreatDetectionCustomModuleRequest 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.securitycentermanagement.v1.GetEffectiveEventThreatDetectionCustomModuleRequest prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + *
+   * Message for getting a EffectiveEventThreatDetectionCustomModule
+   * 
+ * + * Protobuf type {@code google.cloud.securitycentermanagement.v1.GetEffectiveEventThreatDetectionCustomModuleRequest} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:google.cloud.securitycentermanagement.v1.GetEffectiveEventThreatDetectionCustomModuleRequest) + com.google.cloud.securitycentermanagement.v1.GetEffectiveEventThreatDetectionCustomModuleRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.securitycentermanagement.v1.SecurityCenterManagementProto.internal_static_google_cloud_securitycentermanagement_v1_GetEffectiveEventThreatDetectionCustomModuleRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.securitycentermanagement.v1.SecurityCenterManagementProto.internal_static_google_cloud_securitycentermanagement_v1_GetEffectiveEventThreatDetectionCustomModuleRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.securitycentermanagement.v1.GetEffectiveEventThreatDetectionCustomModuleRequest.class, com.google.cloud.securitycentermanagement.v1.GetEffectiveEventThreatDetectionCustomModuleRequest.Builder.class); + } + + // Construct using com.google.cloud.securitycentermanagement.v1.GetEffectiveEventThreatDetectionCustomModuleRequest.newBuilder() + private Builder() { + + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + name_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.securitycentermanagement.v1.SecurityCenterManagementProto.internal_static_google_cloud_securitycentermanagement_v1_GetEffectiveEventThreatDetectionCustomModuleRequest_descriptor; + } + + @java.lang.Override + public com.google.cloud.securitycentermanagement.v1.GetEffectiveEventThreatDetectionCustomModuleRequest getDefaultInstanceForType() { + return com.google.cloud.securitycentermanagement.v1.GetEffectiveEventThreatDetectionCustomModuleRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.securitycentermanagement.v1.GetEffectiveEventThreatDetectionCustomModuleRequest build() { + com.google.cloud.securitycentermanagement.v1.GetEffectiveEventThreatDetectionCustomModuleRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.securitycentermanagement.v1.GetEffectiveEventThreatDetectionCustomModuleRequest buildPartial() { + com.google.cloud.securitycentermanagement.v1.GetEffectiveEventThreatDetectionCustomModuleRequest result = new com.google.cloud.securitycentermanagement.v1.GetEffectiveEventThreatDetectionCustomModuleRequest(this); + if (bitField0_ != 0) { buildPartial0(result); } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.cloud.securitycentermanagement.v1.GetEffectiveEventThreatDetectionCustomModuleRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.name_ = name_; + } + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.securitycentermanagement.v1.GetEffectiveEventThreatDetectionCustomModuleRequest) { + return mergeFrom((com.google.cloud.securitycentermanagement.v1.GetEffectiveEventThreatDetectionCustomModuleRequest)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.securitycentermanagement.v1.GetEffectiveEventThreatDetectionCustomModuleRequest other) { + if (other == com.google.cloud.securitycentermanagement.v1.GetEffectiveEventThreatDetectionCustomModuleRequest.getDefaultInstance()) return this; + if (!other.getName().isEmpty()) { + name_ = other.name_; + bitField0_ |= 0x00000001; + onChanged(); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + 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: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + private int bitField0_; + + private java.lang.Object name_ = ""; + /** + *
+     * Required. The resource name of the ETD custom module.
+     *
+     * Its format is:
+     *
+     *   * "organizations/{organization}/locations/{location}/effectiveEventThreatDetectionCustomModules/{effective_event_threat_detection_custom_module}".
+     *   * "folders/{folder}/locations/{location}/effectiveEventThreatDetectionCustomModules/{effective_event_threat_detection_custom_module}".
+     *   * "projects/{project}/locations/{location}/effectiveEventThreatDetectionCustomModules/{effective_event_threat_detection_custom_module}".
+     * 
+ * + * 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; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+     * Required. The resource name of the ETD custom module.
+     *
+     * Its format is:
+     *
+     *   * "organizations/{organization}/locations/{location}/effectiveEventThreatDetectionCustomModules/{effective_event_threat_detection_custom_module}".
+     *   * "folders/{folder}/locations/{location}/effectiveEventThreatDetectionCustomModules/{effective_event_threat_detection_custom_module}".
+     *   * "projects/{project}/locations/{location}/effectiveEventThreatDetectionCustomModules/{effective_event_threat_detection_custom_module}".
+     * 
+ * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * @return The bytes for name. + */ + public com.google.protobuf.ByteString + getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+     * Required. The resource name of the ETD custom module.
+     *
+     * Its format is:
+     *
+     *   * "organizations/{organization}/locations/{location}/effectiveEventThreatDetectionCustomModules/{effective_event_threat_detection_custom_module}".
+     *   * "folders/{folder}/locations/{location}/effectiveEventThreatDetectionCustomModules/{effective_event_threat_detection_custom_module}".
+     *   * "projects/{project}/locations/{location}/effectiveEventThreatDetectionCustomModules/{effective_event_threat_detection_custom_module}".
+     * 
+ * + * 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(); } + name_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + *
+     * Required. The resource name of the ETD custom module.
+     *
+     * Its format is:
+     *
+     *   * "organizations/{organization}/locations/{location}/effectiveEventThreatDetectionCustomModules/{effective_event_threat_detection_custom_module}".
+     *   * "folders/{folder}/locations/{location}/effectiveEventThreatDetectionCustomModules/{effective_event_threat_detection_custom_module}".
+     *   * "projects/{project}/locations/{location}/effectiveEventThreatDetectionCustomModules/{effective_event_threat_detection_custom_module}".
+     * 
+ * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * @return This builder for chaining. + */ + public Builder clearName() { + name_ = getDefaultInstance().getName(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + /** + *
+     * Required. The resource name of the ETD custom module.
+     *
+     * Its format is:
+     *
+     *   * "organizations/{organization}/locations/{location}/effectiveEventThreatDetectionCustomModules/{effective_event_threat_detection_custom_module}".
+     *   * "folders/{folder}/locations/{location}/effectiveEventThreatDetectionCustomModules/{effective_event_threat_detection_custom_module}".
+     *   * "projects/{project}/locations/{location}/effectiveEventThreatDetectionCustomModules/{effective_event_threat_detection_custom_module}".
+     * 
+ * + * 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(); } + checkByteStringIsUtf8(value); + name_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:google.cloud.securitycentermanagement.v1.GetEffectiveEventThreatDetectionCustomModuleRequest) + } + + // @@protoc_insertion_point(class_scope:google.cloud.securitycentermanagement.v1.GetEffectiveEventThreatDetectionCustomModuleRequest) + private static final com.google.cloud.securitycentermanagement.v1.GetEffectiveEventThreatDetectionCustomModuleRequest DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new com.google.cloud.securitycentermanagement.v1.GetEffectiveEventThreatDetectionCustomModuleRequest(); + } + + public static com.google.cloud.securitycentermanagement.v1.GetEffectiveEventThreatDetectionCustomModuleRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public GetEffectiveEventThreatDetectionCustomModuleRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.securitycentermanagement.v1.GetEffectiveEventThreatDetectionCustomModuleRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + +} + diff --git a/java-securitycentermanagement/proto-google-cloud-securitycentermanagement-v1/src/main/java/com/google/cloud/securitycentermanagement/v1/GetEffectiveEventThreatDetectionCustomModuleRequestOrBuilder.java b/owl-bot-staging/java-securitycentermanagement/v1/proto-google-cloud-securitycentermanagement-v1/src/main/java/com/google/cloud/securitycentermanagement/v1/GetEffectiveEventThreatDetectionCustomModuleRequestOrBuilder.java similarity index 63% rename from java-securitycentermanagement/proto-google-cloud-securitycentermanagement-v1/src/main/java/com/google/cloud/securitycentermanagement/v1/GetEffectiveEventThreatDetectionCustomModuleRequestOrBuilder.java rename to owl-bot-staging/java-securitycentermanagement/v1/proto-google-cloud-securitycentermanagement-v1/src/main/java/com/google/cloud/securitycentermanagement/v1/GetEffectiveEventThreatDetectionCustomModuleRequestOrBuilder.java index 5ddfbd8795c6..702c7203ebf3 100644 --- a/java-securitycentermanagement/proto-google-cloud-securitycentermanagement-v1/src/main/java/com/google/cloud/securitycentermanagement/v1/GetEffectiveEventThreatDetectionCustomModuleRequestOrBuilder.java +++ b/owl-bot-staging/java-securitycentermanagement/v1/proto-google-cloud-securitycentermanagement-v1/src/main/java/com/google/cloud/securitycentermanagement/v1/GetEffectiveEventThreatDetectionCustomModuleRequestOrBuilder.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/securitycentermanagement/v1/security_center_management.proto package com.google.cloud.securitycentermanagement.v1; -public interface GetEffectiveEventThreatDetectionCustomModuleRequestOrBuilder - extends +public interface GetEffectiveEventThreatDetectionCustomModuleRequestOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.securitycentermanagement.v1.GetEffectiveEventThreatDetectionCustomModuleRequest) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * Required. The resource name of the ETD custom module.
    *
@@ -36,16 +18,11 @@ public interface GetEffectiveEventThreatDetectionCustomModuleRequestOrBuilder
    *   * "projects/{project}/locations/{location}/effectiveEventThreatDetectionCustomModules/{effective_event_threat_detection_custom_module}".
    * 
* - * - * string name = 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. The resource name of the ETD custom module.
    *
@@ -56,11 +33,9 @@ public interface GetEffectiveEventThreatDetectionCustomModuleRequestOrBuilder
    *   * "projects/{project}/locations/{location}/effectiveEventThreatDetectionCustomModules/{effective_event_threat_detection_custom_module}".
    * 
* - * - * string name = 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(); } diff --git a/owl-bot-staging/java-securitycentermanagement/v1/proto-google-cloud-securitycentermanagement-v1/src/main/java/com/google/cloud/securitycentermanagement/v1/GetEffectiveSecurityHealthAnalyticsCustomModuleRequest.java b/owl-bot-staging/java-securitycentermanagement/v1/proto-google-cloud-securitycentermanagement-v1/src/main/java/com/google/cloud/securitycentermanagement/v1/GetEffectiveSecurityHealthAnalyticsCustomModuleRequest.java new file mode 100644 index 000000000000..59a40084ebc3 --- /dev/null +++ b/owl-bot-staging/java-securitycentermanagement/v1/proto-google-cloud-securitycentermanagement-v1/src/main/java/com/google/cloud/securitycentermanagement/v1/GetEffectiveSecurityHealthAnalyticsCustomModuleRequest.java @@ -0,0 +1,619 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/securitycentermanagement/v1/security_center_management.proto + +package com.google.cloud.securitycentermanagement.v1; + +/** + *
+ * Message for getting a EffectiveSecurityHealthAnalyticsCustomModule
+ * 
+ * + * Protobuf type {@code google.cloud.securitycentermanagement.v1.GetEffectiveSecurityHealthAnalyticsCustomModuleRequest} + */ +public final class GetEffectiveSecurityHealthAnalyticsCustomModuleRequest extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:google.cloud.securitycentermanagement.v1.GetEffectiveSecurityHealthAnalyticsCustomModuleRequest) + GetEffectiveSecurityHealthAnalyticsCustomModuleRequestOrBuilder { +private static final long serialVersionUID = 0L; + // Use GetEffectiveSecurityHealthAnalyticsCustomModuleRequest.newBuilder() to construct. + private GetEffectiveSecurityHealthAnalyticsCustomModuleRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private GetEffectiveSecurityHealthAnalyticsCustomModuleRequest() { + name_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new GetEffectiveSecurityHealthAnalyticsCustomModuleRequest(); + } + + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.securitycentermanagement.v1.SecurityCenterManagementProto.internal_static_google_cloud_securitycentermanagement_v1_GetEffectiveSecurityHealthAnalyticsCustomModuleRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.securitycentermanagement.v1.SecurityCenterManagementProto.internal_static_google_cloud_securitycentermanagement_v1_GetEffectiveSecurityHealthAnalyticsCustomModuleRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.securitycentermanagement.v1.GetEffectiveSecurityHealthAnalyticsCustomModuleRequest.class, com.google.cloud.securitycentermanagement.v1.GetEffectiveSecurityHealthAnalyticsCustomModuleRequest.Builder.class); + } + + public static final int NAME_FIELD_NUMBER = 1; + @SuppressWarnings("serial") + private volatile java.lang.Object name_ = ""; + /** + *
+   * Required. The resource name of the SHA custom module.
+   *
+   * Its format is:
+   *
+   *   * "organizations/{organization}/locations/{location}/effectiveSecurityHealthAnalyticsCustomModules/{module_id}".
+   *   * "folders/{folder}/locations/{location}/effectiveSecurityHealthAnalyticsCustomModules/{module_id}".
+   *   * "projects/{project}/locations/{location}/effectiveSecurityHealthAnalyticsCustomModules/{module_id}".
+   * 
+ * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * @return The name. + */ + @java.lang.Override + public java.lang.String getName() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } + } + /** + *
+   * Required. The resource name of the SHA custom module.
+   *
+   * Its format is:
+   *
+   *   * "organizations/{organization}/locations/{location}/effectiveSecurityHealthAnalyticsCustomModules/{module_id}".
+   *   * "folders/{folder}/locations/{location}/effectiveSecurityHealthAnalyticsCustomModules/{module_id}".
+   *   * "projects/{project}/locations/{location}/effectiveSecurityHealthAnalyticsCustomModules/{module_id}".
+   * 
+ * + * 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() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.securitycentermanagement.v1.GetEffectiveSecurityHealthAnalyticsCustomModuleRequest)) { + return super.equals(obj); + } + com.google.cloud.securitycentermanagement.v1.GetEffectiveSecurityHealthAnalyticsCustomModuleRequest other = (com.google.cloud.securitycentermanagement.v1.GetEffectiveSecurityHealthAnalyticsCustomModuleRequest) obj; + + if (!getName() + .equals(other.getName())) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + NAME_FIELD_NUMBER; + hash = (53 * hash) + getName().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.securitycentermanagement.v1.GetEffectiveSecurityHealthAnalyticsCustomModuleRequest parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.cloud.securitycentermanagement.v1.GetEffectiveSecurityHealthAnalyticsCustomModuleRequest 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.securitycentermanagement.v1.GetEffectiveSecurityHealthAnalyticsCustomModuleRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.cloud.securitycentermanagement.v1.GetEffectiveSecurityHealthAnalyticsCustomModuleRequest parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.cloud.securitycentermanagement.v1.GetEffectiveSecurityHealthAnalyticsCustomModuleRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.cloud.securitycentermanagement.v1.GetEffectiveSecurityHealthAnalyticsCustomModuleRequest parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.cloud.securitycentermanagement.v1.GetEffectiveSecurityHealthAnalyticsCustomModuleRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.google.cloud.securitycentermanagement.v1.GetEffectiveSecurityHealthAnalyticsCustomModuleRequest 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.securitycentermanagement.v1.GetEffectiveSecurityHealthAnalyticsCustomModuleRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.securitycentermanagement.v1.GetEffectiveSecurityHealthAnalyticsCustomModuleRequest parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static com.google.cloud.securitycentermanagement.v1.GetEffectiveSecurityHealthAnalyticsCustomModuleRequest parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.google.cloud.securitycentermanagement.v1.GetEffectiveSecurityHealthAnalyticsCustomModuleRequest 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.securitycentermanagement.v1.GetEffectiveSecurityHealthAnalyticsCustomModuleRequest prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + *
+   * Message for getting a EffectiveSecurityHealthAnalyticsCustomModule
+   * 
+ * + * Protobuf type {@code google.cloud.securitycentermanagement.v1.GetEffectiveSecurityHealthAnalyticsCustomModuleRequest} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:google.cloud.securitycentermanagement.v1.GetEffectiveSecurityHealthAnalyticsCustomModuleRequest) + com.google.cloud.securitycentermanagement.v1.GetEffectiveSecurityHealthAnalyticsCustomModuleRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.securitycentermanagement.v1.SecurityCenterManagementProto.internal_static_google_cloud_securitycentermanagement_v1_GetEffectiveSecurityHealthAnalyticsCustomModuleRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.securitycentermanagement.v1.SecurityCenterManagementProto.internal_static_google_cloud_securitycentermanagement_v1_GetEffectiveSecurityHealthAnalyticsCustomModuleRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.securitycentermanagement.v1.GetEffectiveSecurityHealthAnalyticsCustomModuleRequest.class, com.google.cloud.securitycentermanagement.v1.GetEffectiveSecurityHealthAnalyticsCustomModuleRequest.Builder.class); + } + + // Construct using com.google.cloud.securitycentermanagement.v1.GetEffectiveSecurityHealthAnalyticsCustomModuleRequest.newBuilder() + private Builder() { + + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + name_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.securitycentermanagement.v1.SecurityCenterManagementProto.internal_static_google_cloud_securitycentermanagement_v1_GetEffectiveSecurityHealthAnalyticsCustomModuleRequest_descriptor; + } + + @java.lang.Override + public com.google.cloud.securitycentermanagement.v1.GetEffectiveSecurityHealthAnalyticsCustomModuleRequest getDefaultInstanceForType() { + return com.google.cloud.securitycentermanagement.v1.GetEffectiveSecurityHealthAnalyticsCustomModuleRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.securitycentermanagement.v1.GetEffectiveSecurityHealthAnalyticsCustomModuleRequest build() { + com.google.cloud.securitycentermanagement.v1.GetEffectiveSecurityHealthAnalyticsCustomModuleRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.securitycentermanagement.v1.GetEffectiveSecurityHealthAnalyticsCustomModuleRequest buildPartial() { + com.google.cloud.securitycentermanagement.v1.GetEffectiveSecurityHealthAnalyticsCustomModuleRequest result = new com.google.cloud.securitycentermanagement.v1.GetEffectiveSecurityHealthAnalyticsCustomModuleRequest(this); + if (bitField0_ != 0) { buildPartial0(result); } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.cloud.securitycentermanagement.v1.GetEffectiveSecurityHealthAnalyticsCustomModuleRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.name_ = name_; + } + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.securitycentermanagement.v1.GetEffectiveSecurityHealthAnalyticsCustomModuleRequest) { + return mergeFrom((com.google.cloud.securitycentermanagement.v1.GetEffectiveSecurityHealthAnalyticsCustomModuleRequest)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.securitycentermanagement.v1.GetEffectiveSecurityHealthAnalyticsCustomModuleRequest other) { + if (other == com.google.cloud.securitycentermanagement.v1.GetEffectiveSecurityHealthAnalyticsCustomModuleRequest.getDefaultInstance()) return this; + if (!other.getName().isEmpty()) { + name_ = other.name_; + bitField0_ |= 0x00000001; + onChanged(); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + 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: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + private int bitField0_; + + private java.lang.Object name_ = ""; + /** + *
+     * Required. The resource name of the SHA custom module.
+     *
+     * Its format is:
+     *
+     *   * "organizations/{organization}/locations/{location}/effectiveSecurityHealthAnalyticsCustomModules/{module_id}".
+     *   * "folders/{folder}/locations/{location}/effectiveSecurityHealthAnalyticsCustomModules/{module_id}".
+     *   * "projects/{project}/locations/{location}/effectiveSecurityHealthAnalyticsCustomModules/{module_id}".
+     * 
+ * + * 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; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+     * Required. The resource name of the SHA custom module.
+     *
+     * Its format is:
+     *
+     *   * "organizations/{organization}/locations/{location}/effectiveSecurityHealthAnalyticsCustomModules/{module_id}".
+     *   * "folders/{folder}/locations/{location}/effectiveSecurityHealthAnalyticsCustomModules/{module_id}".
+     *   * "projects/{project}/locations/{location}/effectiveSecurityHealthAnalyticsCustomModules/{module_id}".
+     * 
+ * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * @return The bytes for name. + */ + public com.google.protobuf.ByteString + getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+     * Required. The resource name of the SHA custom module.
+     *
+     * Its format is:
+     *
+     *   * "organizations/{organization}/locations/{location}/effectiveSecurityHealthAnalyticsCustomModules/{module_id}".
+     *   * "folders/{folder}/locations/{location}/effectiveSecurityHealthAnalyticsCustomModules/{module_id}".
+     *   * "projects/{project}/locations/{location}/effectiveSecurityHealthAnalyticsCustomModules/{module_id}".
+     * 
+ * + * 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(); } + name_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + *
+     * Required. The resource name of the SHA custom module.
+     *
+     * Its format is:
+     *
+     *   * "organizations/{organization}/locations/{location}/effectiveSecurityHealthAnalyticsCustomModules/{module_id}".
+     *   * "folders/{folder}/locations/{location}/effectiveSecurityHealthAnalyticsCustomModules/{module_id}".
+     *   * "projects/{project}/locations/{location}/effectiveSecurityHealthAnalyticsCustomModules/{module_id}".
+     * 
+ * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * @return This builder for chaining. + */ + public Builder clearName() { + name_ = getDefaultInstance().getName(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + /** + *
+     * Required. The resource name of the SHA custom module.
+     *
+     * Its format is:
+     *
+     *   * "organizations/{organization}/locations/{location}/effectiveSecurityHealthAnalyticsCustomModules/{module_id}".
+     *   * "folders/{folder}/locations/{location}/effectiveSecurityHealthAnalyticsCustomModules/{module_id}".
+     *   * "projects/{project}/locations/{location}/effectiveSecurityHealthAnalyticsCustomModules/{module_id}".
+     * 
+ * + * 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(); } + checkByteStringIsUtf8(value); + name_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:google.cloud.securitycentermanagement.v1.GetEffectiveSecurityHealthAnalyticsCustomModuleRequest) + } + + // @@protoc_insertion_point(class_scope:google.cloud.securitycentermanagement.v1.GetEffectiveSecurityHealthAnalyticsCustomModuleRequest) + private static final com.google.cloud.securitycentermanagement.v1.GetEffectiveSecurityHealthAnalyticsCustomModuleRequest DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new com.google.cloud.securitycentermanagement.v1.GetEffectiveSecurityHealthAnalyticsCustomModuleRequest(); + } + + public static com.google.cloud.securitycentermanagement.v1.GetEffectiveSecurityHealthAnalyticsCustomModuleRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public GetEffectiveSecurityHealthAnalyticsCustomModuleRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.securitycentermanagement.v1.GetEffectiveSecurityHealthAnalyticsCustomModuleRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + +} + diff --git a/java-securitycentermanagement/proto-google-cloud-securitycentermanagement-v1/src/main/java/com/google/cloud/securitycentermanagement/v1/GetEffectiveSecurityHealthAnalyticsCustomModuleRequestOrBuilder.java b/owl-bot-staging/java-securitycentermanagement/v1/proto-google-cloud-securitycentermanagement-v1/src/main/java/com/google/cloud/securitycentermanagement/v1/GetEffectiveSecurityHealthAnalyticsCustomModuleRequestOrBuilder.java similarity index 60% rename from java-securitycentermanagement/proto-google-cloud-securitycentermanagement-v1/src/main/java/com/google/cloud/securitycentermanagement/v1/GetEffectiveSecurityHealthAnalyticsCustomModuleRequestOrBuilder.java rename to owl-bot-staging/java-securitycentermanagement/v1/proto-google-cloud-securitycentermanagement-v1/src/main/java/com/google/cloud/securitycentermanagement/v1/GetEffectiveSecurityHealthAnalyticsCustomModuleRequestOrBuilder.java index 02cc4640db0b..0c4e7e8119ce 100644 --- a/java-securitycentermanagement/proto-google-cloud-securitycentermanagement-v1/src/main/java/com/google/cloud/securitycentermanagement/v1/GetEffectiveSecurityHealthAnalyticsCustomModuleRequestOrBuilder.java +++ b/owl-bot-staging/java-securitycentermanagement/v1/proto-google-cloud-securitycentermanagement-v1/src/main/java/com/google/cloud/securitycentermanagement/v1/GetEffectiveSecurityHealthAnalyticsCustomModuleRequestOrBuilder.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/securitycentermanagement/v1/security_center_management.proto package com.google.cloud.securitycentermanagement.v1; -public interface GetEffectiveSecurityHealthAnalyticsCustomModuleRequestOrBuilder - extends +public interface GetEffectiveSecurityHealthAnalyticsCustomModuleRequestOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.securitycentermanagement.v1.GetEffectiveSecurityHealthAnalyticsCustomModuleRequest) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * Required. The resource name of the SHA custom module.
    *
@@ -36,16 +18,11 @@ public interface GetEffectiveSecurityHealthAnalyticsCustomModuleRequestOrBuilder
    *   * "projects/{project}/locations/{location}/effectiveSecurityHealthAnalyticsCustomModules/{module_id}".
    * 
* - * - * string name = 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. The resource name of the SHA custom module.
    *
@@ -56,11 +33,9 @@ public interface GetEffectiveSecurityHealthAnalyticsCustomModuleRequestOrBuilder
    *   * "projects/{project}/locations/{location}/effectiveSecurityHealthAnalyticsCustomModules/{module_id}".
    * 
* - * - * string name = 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(); } diff --git a/java-securitycentermanagement/proto-google-cloud-securitycentermanagement-v1/src/main/java/com/google/cloud/securitycentermanagement/v1/GetEventThreatDetectionCustomModuleRequest.java b/owl-bot-staging/java-securitycentermanagement/v1/proto-google-cloud-securitycentermanagement-v1/src/main/java/com/google/cloud/securitycentermanagement/v1/GetEventThreatDetectionCustomModuleRequest.java similarity index 51% rename from java-securitycentermanagement/proto-google-cloud-securitycentermanagement-v1/src/main/java/com/google/cloud/securitycentermanagement/v1/GetEventThreatDetectionCustomModuleRequest.java rename to owl-bot-staging/java-securitycentermanagement/v1/proto-google-cloud-securitycentermanagement-v1/src/main/java/com/google/cloud/securitycentermanagement/v1/GetEventThreatDetectionCustomModuleRequest.java index 7a9caef52942..31189d85e56e 100644 --- a/java-securitycentermanagement/proto-google-cloud-securitycentermanagement-v1/src/main/java/com/google/cloud/securitycentermanagement/v1/GetEventThreatDetectionCustomModuleRequest.java +++ b/owl-bot-staging/java-securitycentermanagement/v1/proto-google-cloud-securitycentermanagement-v1/src/main/java/com/google/cloud/securitycentermanagement/v1/GetEventThreatDetectionCustomModuleRequest.java @@ -1,79 +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/securitycentermanagement/v1/security_center_management.proto package com.google.cloud.securitycentermanagement.v1; /** - * - * *
  * Message for getting a EventThreatDetectionCustomModule
  * 
* - * Protobuf type {@code - * google.cloud.securitycentermanagement.v1.GetEventThreatDetectionCustomModuleRequest} + * Protobuf type {@code google.cloud.securitycentermanagement.v1.GetEventThreatDetectionCustomModuleRequest} */ -public final class GetEventThreatDetectionCustomModuleRequest - extends com.google.protobuf.GeneratedMessageV3 - implements +public final class GetEventThreatDetectionCustomModuleRequest extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.securitycentermanagement.v1.GetEventThreatDetectionCustomModuleRequest) GetEventThreatDetectionCustomModuleRequestOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use GetEventThreatDetectionCustomModuleRequest.newBuilder() to construct. - private GetEventThreatDetectionCustomModuleRequest( - com.google.protobuf.GeneratedMessageV3.Builder builder) { + private GetEventThreatDetectionCustomModuleRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private GetEventThreatDetectionCustomModuleRequest() { name_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new GetEventThreatDetectionCustomModuleRequest(); } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.securitycentermanagement.v1.SecurityCenterManagementProto - .internal_static_google_cloud_securitycentermanagement_v1_GetEventThreatDetectionCustomModuleRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.securitycentermanagement.v1.SecurityCenterManagementProto.internal_static_google_cloud_securitycentermanagement_v1_GetEventThreatDetectionCustomModuleRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.securitycentermanagement.v1.SecurityCenterManagementProto - .internal_static_google_cloud_securitycentermanagement_v1_GetEventThreatDetectionCustomModuleRequest_fieldAccessorTable + return com.google.cloud.securitycentermanagement.v1.SecurityCenterManagementProto.internal_static_google_cloud_securitycentermanagement_v1_GetEventThreatDetectionCustomModuleRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.securitycentermanagement.v1.GetEventThreatDetectionCustomModuleRequest - .class, - com.google.cloud.securitycentermanagement.v1.GetEventThreatDetectionCustomModuleRequest - .Builder.class); + com.google.cloud.securitycentermanagement.v1.GetEventThreatDetectionCustomModuleRequest.class, com.google.cloud.securitycentermanagement.v1.GetEventThreatDetectionCustomModuleRequest.Builder.class); } public static final int NAME_FIELD_NUMBER = 1; - @SuppressWarnings("serial") private volatile java.lang.Object name_ = ""; /** - * - * *
    * Required. The resource name of the ETD custom module.
    *
@@ -84,10 +57,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
    *   * "projects/{project}/locations/{location}/eventThreatDetectionCustomModules/{event_threat_detection_custom_module}".
    * 
* - * - * string name = 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 @@ -96,15 +66,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 ETD custom module.
    *
@@ -115,18 +84,17 @@ public java.lang.String getName() {
    *   * "projects/{project}/locations/{location}/eventThreatDetectionCustomModules/{event_threat_detection_custom_module}".
    * 
* - * - * string name = 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 { @@ -135,7 +103,6 @@ public com.google.protobuf.ByteString getNameBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -147,7 +114,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.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_); } @@ -171,18 +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.securitycentermanagement.v1.GetEventThreatDetectionCustomModuleRequest)) { + if (!(obj instanceof com.google.cloud.securitycentermanagement.v1.GetEventThreatDetectionCustomModuleRequest)) { return super.equals(obj); } - com.google.cloud.securitycentermanagement.v1.GetEventThreatDetectionCustomModuleRequest other = - (com.google.cloud.securitycentermanagement.v1.GetEventThreatDetectionCustomModuleRequest) - obj; + com.google.cloud.securitycentermanagement.v1.GetEventThreatDetectionCustomModuleRequest other = (com.google.cloud.securitycentermanagement.v1.GetEventThreatDetectionCustomModuleRequest) obj; - if (!getName().equals(other.getName())) return false; + if (!getName() + .equals(other.getName())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -201,161 +166,132 @@ public int hashCode() { return hash; } - public static com.google.cloud.securitycentermanagement.v1 - .GetEventThreatDetectionCustomModuleRequest - parseFrom(java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.securitycentermanagement.v1.GetEventThreatDetectionCustomModuleRequest parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - - public static com.google.cloud.securitycentermanagement.v1 - .GetEventThreatDetectionCustomModuleRequest - parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.securitycentermanagement.v1.GetEventThreatDetectionCustomModuleRequest 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.securitycentermanagement.v1 - .GetEventThreatDetectionCustomModuleRequest - parseFrom(com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.securitycentermanagement.v1.GetEventThreatDetectionCustomModuleRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - - public static com.google.cloud.securitycentermanagement.v1 - .GetEventThreatDetectionCustomModuleRequest - parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.securitycentermanagement.v1.GetEventThreatDetectionCustomModuleRequest parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.securitycentermanagement.v1 - .GetEventThreatDetectionCustomModuleRequest - parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.securitycentermanagement.v1.GetEventThreatDetectionCustomModuleRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - - public static com.google.cloud.securitycentermanagement.v1 - .GetEventThreatDetectionCustomModuleRequest - parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.securitycentermanagement.v1.GetEventThreatDetectionCustomModuleRequest parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.securitycentermanagement.v1 - .GetEventThreatDetectionCustomModuleRequest - parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.securitycentermanagement.v1.GetEventThreatDetectionCustomModuleRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - - public static com.google.cloud.securitycentermanagement.v1 - .GetEventThreatDetectionCustomModuleRequest - 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.securitycentermanagement.v1.GetEventThreatDetectionCustomModuleRequest 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.securitycentermanagement.v1 - .GetEventThreatDetectionCustomModuleRequest - parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.securitycentermanagement.v1.GetEventThreatDetectionCustomModuleRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.securitycentermanagement.v1 - .GetEventThreatDetectionCustomModuleRequest - parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + public static com.google.cloud.securitycentermanagement.v1.GetEventThreatDetectionCustomModuleRequest parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.securitycentermanagement.v1 - .GetEventThreatDetectionCustomModuleRequest - parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.securitycentermanagement.v1.GetEventThreatDetectionCustomModuleRequest parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - - public static com.google.cloud.securitycentermanagement.v1 - .GetEventThreatDetectionCustomModuleRequest - 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.securitycentermanagement.v1.GetEventThreatDetectionCustomModuleRequest 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.securitycentermanagement.v1.GetEventThreatDetectionCustomModuleRequest - prototype) { + public static Builder newBuilder(com.google.cloud.securitycentermanagement.v1.GetEventThreatDetectionCustomModuleRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected 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 getting a EventThreatDetectionCustomModule
    * 
* - * Protobuf type {@code - * google.cloud.securitycentermanagement.v1.GetEventThreatDetectionCustomModuleRequest} + * Protobuf type {@code google.cloud.securitycentermanagement.v1.GetEventThreatDetectionCustomModuleRequest} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.securitycentermanagement.v1.GetEventThreatDetectionCustomModuleRequest) - com.google.cloud.securitycentermanagement.v1 - .GetEventThreatDetectionCustomModuleRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.securitycentermanagement.v1.SecurityCenterManagementProto - .internal_static_google_cloud_securitycentermanagement_v1_GetEventThreatDetectionCustomModuleRequest_descriptor; + com.google.cloud.securitycentermanagement.v1.GetEventThreatDetectionCustomModuleRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.securitycentermanagement.v1.SecurityCenterManagementProto.internal_static_google_cloud_securitycentermanagement_v1_GetEventThreatDetectionCustomModuleRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.securitycentermanagement.v1.SecurityCenterManagementProto - .internal_static_google_cloud_securitycentermanagement_v1_GetEventThreatDetectionCustomModuleRequest_fieldAccessorTable + return com.google.cloud.securitycentermanagement.v1.SecurityCenterManagementProto.internal_static_google_cloud_securitycentermanagement_v1_GetEventThreatDetectionCustomModuleRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.securitycentermanagement.v1 - .GetEventThreatDetectionCustomModuleRequest.class, - com.google.cloud.securitycentermanagement.v1 - .GetEventThreatDetectionCustomModuleRequest.Builder.class); + com.google.cloud.securitycentermanagement.v1.GetEventThreatDetectionCustomModuleRequest.class, com.google.cloud.securitycentermanagement.v1.GetEventThreatDetectionCustomModuleRequest.Builder.class); } - // Construct using - // com.google.cloud.securitycentermanagement.v1.GetEventThreatDetectionCustomModuleRequest.newBuilder() - private Builder() {} + // Construct using com.google.cloud.securitycentermanagement.v1.GetEventThreatDetectionCustomModuleRequest.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(); @@ -365,23 +301,19 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.securitycentermanagement.v1.SecurityCenterManagementProto - .internal_static_google_cloud_securitycentermanagement_v1_GetEventThreatDetectionCustomModuleRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.securitycentermanagement.v1.SecurityCenterManagementProto.internal_static_google_cloud_securitycentermanagement_v1_GetEventThreatDetectionCustomModuleRequest_descriptor; } @java.lang.Override - public com.google.cloud.securitycentermanagement.v1.GetEventThreatDetectionCustomModuleRequest - getDefaultInstanceForType() { - return com.google.cloud.securitycentermanagement.v1.GetEventThreatDetectionCustomModuleRequest - .getDefaultInstance(); + public com.google.cloud.securitycentermanagement.v1.GetEventThreatDetectionCustomModuleRequest getDefaultInstanceForType() { + return com.google.cloud.securitycentermanagement.v1.GetEventThreatDetectionCustomModuleRequest.getDefaultInstance(); } @java.lang.Override - public com.google.cloud.securitycentermanagement.v1.GetEventThreatDetectionCustomModuleRequest - build() { - com.google.cloud.securitycentermanagement.v1.GetEventThreatDetectionCustomModuleRequest - result = buildPartial(); + public com.google.cloud.securitycentermanagement.v1.GetEventThreatDetectionCustomModuleRequest build() { + com.google.cloud.securitycentermanagement.v1.GetEventThreatDetectionCustomModuleRequest result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } @@ -389,22 +321,14 @@ public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { } @java.lang.Override - public com.google.cloud.securitycentermanagement.v1.GetEventThreatDetectionCustomModuleRequest - buildPartial() { - com.google.cloud.securitycentermanagement.v1.GetEventThreatDetectionCustomModuleRequest - result = - new com.google.cloud.securitycentermanagement.v1 - .GetEventThreatDetectionCustomModuleRequest(this); - if (bitField0_ != 0) { - buildPartial0(result); - } + public com.google.cloud.securitycentermanagement.v1.GetEventThreatDetectionCustomModuleRequest buildPartial() { + com.google.cloud.securitycentermanagement.v1.GetEventThreatDetectionCustomModuleRequest result = new com.google.cloud.securitycentermanagement.v1.GetEventThreatDetectionCustomModuleRequest(this); + if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } - private void buildPartial0( - com.google.cloud.securitycentermanagement.v1.GetEventThreatDetectionCustomModuleRequest - result) { + private void buildPartial0(com.google.cloud.securitycentermanagement.v1.GetEventThreatDetectionCustomModuleRequest result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000001) != 0)) { result.name_ = name_; @@ -415,56 +339,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.securitycentermanagement.v1.GetEventThreatDetectionCustomModuleRequest) { - return mergeFrom( - (com.google.cloud.securitycentermanagement.v1 - .GetEventThreatDetectionCustomModuleRequest) - other); + if (other instanceof com.google.cloud.securitycentermanagement.v1.GetEventThreatDetectionCustomModuleRequest) { + return mergeFrom((com.google.cloud.securitycentermanagement.v1.GetEventThreatDetectionCustomModuleRequest)other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom( - com.google.cloud.securitycentermanagement.v1.GetEventThreatDetectionCustomModuleRequest - other) { - if (other - == com.google.cloud.securitycentermanagement.v1.GetEventThreatDetectionCustomModuleRequest - .getDefaultInstance()) return this; + public Builder mergeFrom(com.google.cloud.securitycentermanagement.v1.GetEventThreatDetectionCustomModuleRequest other) { + if (other == com.google.cloud.securitycentermanagement.v1.GetEventThreatDetectionCustomModuleRequest.getDefaultInstance()) return this; if (!other.getName().isEmpty()) { name_ = other.name_; bitField0_ |= 0x00000001; @@ -496,19 +410,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) { @@ -518,13 +430,10 @@ public Builder mergeFrom( } // finally return this; } - private int bitField0_; private java.lang.Object name_ = ""; /** - * - * *
      * Required. The resource name of the ETD custom module.
      *
@@ -535,16 +444,14 @@ public Builder mergeFrom(
      *   * "projects/{project}/locations/{location}/eventThreatDetectionCustomModules/{event_threat_detection_custom_module}".
      * 
* - * - * string name = 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; @@ -553,8 +460,6 @@ public java.lang.String getName() { } } /** - * - * *
      * Required. The resource name of the ETD custom module.
      *
@@ -565,17 +470,16 @@ public java.lang.String getName() {
      *   * "projects/{project}/locations/{location}/eventThreatDetectionCustomModules/{event_threat_detection_custom_module}".
      * 
* - * - * string name = 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 { @@ -583,8 +487,6 @@ public com.google.protobuf.ByteString getNameBytes() { } } /** - * - * *
      * Required. The resource name of the ETD custom module.
      *
@@ -595,25 +497,19 @@ public com.google.protobuf.ByteString getNameBytes() {
      *   * "projects/{project}/locations/{location}/eventThreatDetectionCustomModules/{event_threat_detection_custom_module}".
      * 
* - * - * 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 ETD custom module.
      *
@@ -624,10 +520,7 @@ public Builder setName(java.lang.String value) {
      *   * "projects/{project}/locations/{location}/eventThreatDetectionCustomModules/{event_threat_detection_custom_module}".
      * 
* - * - * string 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() { @@ -637,8 +530,6 @@ public Builder clearName() { return this; } /** - * - * *
      * Required. The resource name of the ETD custom module.
      *
@@ -649,26 +540,22 @@ public Builder clearName() {
      *   * "projects/{project}/locations/{location}/eventThreatDetectionCustomModules/{event_threat_detection_custom_module}".
      * 
* - * - * 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); } @@ -678,49 +565,41 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.securitycentermanagement.v1.GetEventThreatDetectionCustomModuleRequest) } // @@protoc_insertion_point(class_scope:google.cloud.securitycentermanagement.v1.GetEventThreatDetectionCustomModuleRequest) - private static final com.google.cloud.securitycentermanagement.v1 - .GetEventThreatDetectionCustomModuleRequest - DEFAULT_INSTANCE; - + private static final com.google.cloud.securitycentermanagement.v1.GetEventThreatDetectionCustomModuleRequest DEFAULT_INSTANCE; static { - DEFAULT_INSTANCE = - new com.google.cloud.securitycentermanagement.v1 - .GetEventThreatDetectionCustomModuleRequest(); + DEFAULT_INSTANCE = new com.google.cloud.securitycentermanagement.v1.GetEventThreatDetectionCustomModuleRequest(); } - public static com.google.cloud.securitycentermanagement.v1 - .GetEventThreatDetectionCustomModuleRequest - getDefaultInstance() { + public static com.google.cloud.securitycentermanagement.v1.GetEventThreatDetectionCustomModuleRequest getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser - PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public GetEventThreatDetectionCustomModuleRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException() - .setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public GetEventThreatDetectionCustomModuleRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -732,8 +611,9 @@ public com.google.protobuf.Parser ge } @java.lang.Override - public com.google.cloud.securitycentermanagement.v1.GetEventThreatDetectionCustomModuleRequest - getDefaultInstanceForType() { + public com.google.cloud.securitycentermanagement.v1.GetEventThreatDetectionCustomModuleRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/java-securitycentermanagement/proto-google-cloud-securitycentermanagement-v1/src/main/java/com/google/cloud/securitycentermanagement/v1/GetEventThreatDetectionCustomModuleRequestOrBuilder.java b/owl-bot-staging/java-securitycentermanagement/v1/proto-google-cloud-securitycentermanagement-v1/src/main/java/com/google/cloud/securitycentermanagement/v1/GetEventThreatDetectionCustomModuleRequestOrBuilder.java similarity index 62% rename from java-securitycentermanagement/proto-google-cloud-securitycentermanagement-v1/src/main/java/com/google/cloud/securitycentermanagement/v1/GetEventThreatDetectionCustomModuleRequestOrBuilder.java rename to owl-bot-staging/java-securitycentermanagement/v1/proto-google-cloud-securitycentermanagement-v1/src/main/java/com/google/cloud/securitycentermanagement/v1/GetEventThreatDetectionCustomModuleRequestOrBuilder.java index 44f5d64fffd0..f59887586521 100644 --- a/java-securitycentermanagement/proto-google-cloud-securitycentermanagement-v1/src/main/java/com/google/cloud/securitycentermanagement/v1/GetEventThreatDetectionCustomModuleRequestOrBuilder.java +++ b/owl-bot-staging/java-securitycentermanagement/v1/proto-google-cloud-securitycentermanagement-v1/src/main/java/com/google/cloud/securitycentermanagement/v1/GetEventThreatDetectionCustomModuleRequestOrBuilder.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/securitycentermanagement/v1/security_center_management.proto package com.google.cloud.securitycentermanagement.v1; -public interface GetEventThreatDetectionCustomModuleRequestOrBuilder - extends +public interface GetEventThreatDetectionCustomModuleRequestOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.securitycentermanagement.v1.GetEventThreatDetectionCustomModuleRequest) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * Required. The resource name of the ETD custom module.
    *
@@ -36,16 +18,11 @@ public interface GetEventThreatDetectionCustomModuleRequestOrBuilder
    *   * "projects/{project}/locations/{location}/eventThreatDetectionCustomModules/{event_threat_detection_custom_module}".
    * 
* - * - * string name = 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. The resource name of the ETD custom module.
    *
@@ -56,11 +33,9 @@ public interface GetEventThreatDetectionCustomModuleRequestOrBuilder
    *   * "projects/{project}/locations/{location}/eventThreatDetectionCustomModules/{event_threat_detection_custom_module}".
    * 
* - * - * string name = 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(); } diff --git a/owl-bot-staging/java-securitycentermanagement/v1/proto-google-cloud-securitycentermanagement-v1/src/main/java/com/google/cloud/securitycentermanagement/v1/GetSecurityHealthAnalyticsCustomModuleRequest.java b/owl-bot-staging/java-securitycentermanagement/v1/proto-google-cloud-securitycentermanagement-v1/src/main/java/com/google/cloud/securitycentermanagement/v1/GetSecurityHealthAnalyticsCustomModuleRequest.java new file mode 100644 index 000000000000..8f2d3cdc741c --- /dev/null +++ b/owl-bot-staging/java-securitycentermanagement/v1/proto-google-cloud-securitycentermanagement-v1/src/main/java/com/google/cloud/securitycentermanagement/v1/GetSecurityHealthAnalyticsCustomModuleRequest.java @@ -0,0 +1,577 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/securitycentermanagement/v1/security_center_management.proto + +package com.google.cloud.securitycentermanagement.v1; + +/** + *
+ * Message for getting a SecurityHealthAnalyticsCustomModule
+ * 
+ * + * Protobuf type {@code google.cloud.securitycentermanagement.v1.GetSecurityHealthAnalyticsCustomModuleRequest} + */ +public final class GetSecurityHealthAnalyticsCustomModuleRequest extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:google.cloud.securitycentermanagement.v1.GetSecurityHealthAnalyticsCustomModuleRequest) + GetSecurityHealthAnalyticsCustomModuleRequestOrBuilder { +private static final long serialVersionUID = 0L; + // Use GetSecurityHealthAnalyticsCustomModuleRequest.newBuilder() to construct. + private GetSecurityHealthAnalyticsCustomModuleRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private GetSecurityHealthAnalyticsCustomModuleRequest() { + name_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new GetSecurityHealthAnalyticsCustomModuleRequest(); + } + + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.securitycentermanagement.v1.SecurityCenterManagementProto.internal_static_google_cloud_securitycentermanagement_v1_GetSecurityHealthAnalyticsCustomModuleRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.securitycentermanagement.v1.SecurityCenterManagementProto.internal_static_google_cloud_securitycentermanagement_v1_GetSecurityHealthAnalyticsCustomModuleRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.securitycentermanagement.v1.GetSecurityHealthAnalyticsCustomModuleRequest.class, com.google.cloud.securitycentermanagement.v1.GetSecurityHealthAnalyticsCustomModuleRequest.Builder.class); + } + + public static final int NAME_FIELD_NUMBER = 1; + @SuppressWarnings("serial") + private volatile java.lang.Object name_ = ""; + /** + *
+   * Required. Name of the resource
+   * 
+ * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * @return The name. + */ + @java.lang.Override + public java.lang.String getName() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } + } + /** + *
+   * Required. Name of the resource
+   * 
+ * + * 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() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.securitycentermanagement.v1.GetSecurityHealthAnalyticsCustomModuleRequest)) { + return super.equals(obj); + } + com.google.cloud.securitycentermanagement.v1.GetSecurityHealthAnalyticsCustomModuleRequest other = (com.google.cloud.securitycentermanagement.v1.GetSecurityHealthAnalyticsCustomModuleRequest) obj; + + if (!getName() + .equals(other.getName())) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + NAME_FIELD_NUMBER; + hash = (53 * hash) + getName().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.securitycentermanagement.v1.GetSecurityHealthAnalyticsCustomModuleRequest parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.cloud.securitycentermanagement.v1.GetSecurityHealthAnalyticsCustomModuleRequest 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.securitycentermanagement.v1.GetSecurityHealthAnalyticsCustomModuleRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.cloud.securitycentermanagement.v1.GetSecurityHealthAnalyticsCustomModuleRequest parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.cloud.securitycentermanagement.v1.GetSecurityHealthAnalyticsCustomModuleRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.cloud.securitycentermanagement.v1.GetSecurityHealthAnalyticsCustomModuleRequest parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.cloud.securitycentermanagement.v1.GetSecurityHealthAnalyticsCustomModuleRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.google.cloud.securitycentermanagement.v1.GetSecurityHealthAnalyticsCustomModuleRequest 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.securitycentermanagement.v1.GetSecurityHealthAnalyticsCustomModuleRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.securitycentermanagement.v1.GetSecurityHealthAnalyticsCustomModuleRequest parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static com.google.cloud.securitycentermanagement.v1.GetSecurityHealthAnalyticsCustomModuleRequest parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.google.cloud.securitycentermanagement.v1.GetSecurityHealthAnalyticsCustomModuleRequest 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.securitycentermanagement.v1.GetSecurityHealthAnalyticsCustomModuleRequest prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + *
+   * Message for getting a SecurityHealthAnalyticsCustomModule
+   * 
+ * + * Protobuf type {@code google.cloud.securitycentermanagement.v1.GetSecurityHealthAnalyticsCustomModuleRequest} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:google.cloud.securitycentermanagement.v1.GetSecurityHealthAnalyticsCustomModuleRequest) + com.google.cloud.securitycentermanagement.v1.GetSecurityHealthAnalyticsCustomModuleRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.securitycentermanagement.v1.SecurityCenterManagementProto.internal_static_google_cloud_securitycentermanagement_v1_GetSecurityHealthAnalyticsCustomModuleRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.securitycentermanagement.v1.SecurityCenterManagementProto.internal_static_google_cloud_securitycentermanagement_v1_GetSecurityHealthAnalyticsCustomModuleRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.securitycentermanagement.v1.GetSecurityHealthAnalyticsCustomModuleRequest.class, com.google.cloud.securitycentermanagement.v1.GetSecurityHealthAnalyticsCustomModuleRequest.Builder.class); + } + + // Construct using com.google.cloud.securitycentermanagement.v1.GetSecurityHealthAnalyticsCustomModuleRequest.newBuilder() + private Builder() { + + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + name_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.securitycentermanagement.v1.SecurityCenterManagementProto.internal_static_google_cloud_securitycentermanagement_v1_GetSecurityHealthAnalyticsCustomModuleRequest_descriptor; + } + + @java.lang.Override + public com.google.cloud.securitycentermanagement.v1.GetSecurityHealthAnalyticsCustomModuleRequest getDefaultInstanceForType() { + return com.google.cloud.securitycentermanagement.v1.GetSecurityHealthAnalyticsCustomModuleRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.securitycentermanagement.v1.GetSecurityHealthAnalyticsCustomModuleRequest build() { + com.google.cloud.securitycentermanagement.v1.GetSecurityHealthAnalyticsCustomModuleRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.securitycentermanagement.v1.GetSecurityHealthAnalyticsCustomModuleRequest buildPartial() { + com.google.cloud.securitycentermanagement.v1.GetSecurityHealthAnalyticsCustomModuleRequest result = new com.google.cloud.securitycentermanagement.v1.GetSecurityHealthAnalyticsCustomModuleRequest(this); + if (bitField0_ != 0) { buildPartial0(result); } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.cloud.securitycentermanagement.v1.GetSecurityHealthAnalyticsCustomModuleRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.name_ = name_; + } + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.securitycentermanagement.v1.GetSecurityHealthAnalyticsCustomModuleRequest) { + return mergeFrom((com.google.cloud.securitycentermanagement.v1.GetSecurityHealthAnalyticsCustomModuleRequest)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.securitycentermanagement.v1.GetSecurityHealthAnalyticsCustomModuleRequest other) { + if (other == com.google.cloud.securitycentermanagement.v1.GetSecurityHealthAnalyticsCustomModuleRequest.getDefaultInstance()) return this; + if (!other.getName().isEmpty()) { + name_ = other.name_; + bitField0_ |= 0x00000001; + onChanged(); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + 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: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + private int bitField0_; + + private java.lang.Object name_ = ""; + /** + *
+     * Required. Name of the resource
+     * 
+ * + * 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; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+     * Required. Name of the resource
+     * 
+ * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * @return The bytes for name. + */ + public com.google.protobuf.ByteString + getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+     * Required. Name of the resource
+     * 
+ * + * 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(); } + name_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + *
+     * Required. Name of the resource
+     * 
+ * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * @return This builder for chaining. + */ + public Builder clearName() { + name_ = getDefaultInstance().getName(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + /** + *
+     * Required. Name of the resource
+     * 
+ * + * 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(); } + checkByteStringIsUtf8(value); + name_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:google.cloud.securitycentermanagement.v1.GetSecurityHealthAnalyticsCustomModuleRequest) + } + + // @@protoc_insertion_point(class_scope:google.cloud.securitycentermanagement.v1.GetSecurityHealthAnalyticsCustomModuleRequest) + private static final com.google.cloud.securitycentermanagement.v1.GetSecurityHealthAnalyticsCustomModuleRequest DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new com.google.cloud.securitycentermanagement.v1.GetSecurityHealthAnalyticsCustomModuleRequest(); + } + + public static com.google.cloud.securitycentermanagement.v1.GetSecurityHealthAnalyticsCustomModuleRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public GetSecurityHealthAnalyticsCustomModuleRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.securitycentermanagement.v1.GetSecurityHealthAnalyticsCustomModuleRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + +} + diff --git a/owl-bot-staging/java-securitycentermanagement/v1/proto-google-cloud-securitycentermanagement-v1/src/main/java/com/google/cloud/securitycentermanagement/v1/GetSecurityHealthAnalyticsCustomModuleRequestOrBuilder.java b/owl-bot-staging/java-securitycentermanagement/v1/proto-google-cloud-securitycentermanagement-v1/src/main/java/com/google/cloud/securitycentermanagement/v1/GetSecurityHealthAnalyticsCustomModuleRequestOrBuilder.java new file mode 100644 index 000000000000..722e61057ef9 --- /dev/null +++ b/owl-bot-staging/java-securitycentermanagement/v1/proto-google-cloud-securitycentermanagement-v1/src/main/java/com/google/cloud/securitycentermanagement/v1/GetSecurityHealthAnalyticsCustomModuleRequestOrBuilder.java @@ -0,0 +1,29 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/securitycentermanagement/v1/security_center_management.proto + +package com.google.cloud.securitycentermanagement.v1; + +public interface GetSecurityHealthAnalyticsCustomModuleRequestOrBuilder extends + // @@protoc_insertion_point(interface_extends:google.cloud.securitycentermanagement.v1.GetSecurityHealthAnalyticsCustomModuleRequest) + com.google.protobuf.MessageOrBuilder { + + /** + *
+   * Required. Name of the resource
+   * 
+ * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * @return The name. + */ + java.lang.String getName(); + /** + *
+   * Required. Name of the 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-securitycentermanagement/proto-google-cloud-securitycentermanagement-v1/src/main/java/com/google/cloud/securitycentermanagement/v1/ListDescendantEventThreatDetectionCustomModulesRequest.java b/owl-bot-staging/java-securitycentermanagement/v1/proto-google-cloud-securitycentermanagement-v1/src/main/java/com/google/cloud/securitycentermanagement/v1/ListDescendantEventThreatDetectionCustomModulesRequest.java similarity index 52% rename from java-securitycentermanagement/proto-google-cloud-securitycentermanagement-v1/src/main/java/com/google/cloud/securitycentermanagement/v1/ListDescendantEventThreatDetectionCustomModulesRequest.java rename to owl-bot-staging/java-securitycentermanagement/v1/proto-google-cloud-securitycentermanagement-v1/src/main/java/com/google/cloud/securitycentermanagement/v1/ListDescendantEventThreatDetectionCustomModulesRequest.java index a96d0f67d26c..f90af8952b75 100644 --- a/java-securitycentermanagement/proto-google-cloud-securitycentermanagement-v1/src/main/java/com/google/cloud/securitycentermanagement/v1/ListDescendantEventThreatDetectionCustomModulesRequest.java +++ b/owl-bot-staging/java-securitycentermanagement/v1/proto-google-cloud-securitycentermanagement-v1/src/main/java/com/google/cloud/securitycentermanagement/v1/ListDescendantEventThreatDetectionCustomModulesRequest.java @@ -1,46 +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. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/securitycentermanagement/v1/security_center_management.proto package com.google.cloud.securitycentermanagement.v1; /** - * - * *
  * Request message for listing descendant Event Threat Detection custom
  * modules.
  * 
* - * Protobuf type {@code - * google.cloud.securitycentermanagement.v1.ListDescendantEventThreatDetectionCustomModulesRequest} + * Protobuf type {@code google.cloud.securitycentermanagement.v1.ListDescendantEventThreatDetectionCustomModulesRequest} */ -public final class ListDescendantEventThreatDetectionCustomModulesRequest - extends com.google.protobuf.GeneratedMessageV3 - implements +public final class ListDescendantEventThreatDetectionCustomModulesRequest extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.securitycentermanagement.v1.ListDescendantEventThreatDetectionCustomModulesRequest) ListDescendantEventThreatDetectionCustomModulesRequestOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use ListDescendantEventThreatDetectionCustomModulesRequest.newBuilder() to construct. - private ListDescendantEventThreatDetectionCustomModulesRequest( - com.google.protobuf.GeneratedMessageV3.Builder builder) { + private ListDescendantEventThreatDetectionCustomModulesRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private ListDescendantEventThreatDetectionCustomModulesRequest() { parent_ = ""; pageToken_ = ""; @@ -48,34 +27,28 @@ private ListDescendantEventThreatDetectionCustomModulesRequest() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new ListDescendantEventThreatDetectionCustomModulesRequest(); } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.securitycentermanagement.v1.SecurityCenterManagementProto - .internal_static_google_cloud_securitycentermanagement_v1_ListDescendantEventThreatDetectionCustomModulesRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.securitycentermanagement.v1.SecurityCenterManagementProto.internal_static_google_cloud_securitycentermanagement_v1_ListDescendantEventThreatDetectionCustomModulesRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.securitycentermanagement.v1.SecurityCenterManagementProto - .internal_static_google_cloud_securitycentermanagement_v1_ListDescendantEventThreatDetectionCustomModulesRequest_fieldAccessorTable + return com.google.cloud.securitycentermanagement.v1.SecurityCenterManagementProto.internal_static_google_cloud_securitycentermanagement_v1_ListDescendantEventThreatDetectionCustomModulesRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.securitycentermanagement.v1 - .ListDescendantEventThreatDetectionCustomModulesRequest.class, - com.google.cloud.securitycentermanagement.v1 - .ListDescendantEventThreatDetectionCustomModulesRequest.Builder.class); + com.google.cloud.securitycentermanagement.v1.ListDescendantEventThreatDetectionCustomModulesRequest.class, com.google.cloud.securitycentermanagement.v1.ListDescendantEventThreatDetectionCustomModulesRequest.Builder.class); } public static final int PARENT_FIELD_NUMBER = 1; - @SuppressWarnings("serial") private volatile java.lang.Object parent_ = ""; /** - * - * *
    * Required. Name of parent to list custom modules. Its format is
    * "organizations/{organization}/locations/{location}",
@@ -84,10 +57,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
    * "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 @@ -96,15 +66,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. Name of parent to list custom modules. Its format is
    * "organizations/{organization}/locations/{location}",
@@ -113,18 +82,17 @@ public java.lang.String getParent() {
    * "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 { @@ -135,8 +103,6 @@ public com.google.protobuf.ByteString getParentBytes() { public static final int PAGE_SIZE_FIELD_NUMBER = 2; private int pageSize_ = 0; /** - * - * *
    * Optional. The maximum number of modules to return. The service may return
    * fewer than this value. If unspecified, at most 10 configs will be returned.
@@ -144,7 +110,6 @@ public com.google.protobuf.ByteString getParentBytes() {
    * 
* * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The pageSize. */ @java.lang.Override @@ -153,18 +118,14 @@ public int getPageSize() { } public static final int PAGE_TOKEN_FIELD_NUMBER = 3; - @SuppressWarnings("serial") private volatile java.lang.Object pageToken_ = ""; /** - * - * *
    * Optional. A token identifying a page of results the server should return.
    * 
* * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The pageToken. */ @java.lang.Override @@ -173,29 +134,29 @@ 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. A token identifying a page of results the server should return.
    * 
* * 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 { @@ -204,7 +165,6 @@ public com.google.protobuf.ByteString getPageTokenBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -216,7 +176,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.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_); } @@ -239,7 +200,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_); @@ -252,24 +214,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.securitycentermanagement.v1 - .ListDescendantEventThreatDetectionCustomModulesRequest)) { + if (!(obj instanceof com.google.cloud.securitycentermanagement.v1.ListDescendantEventThreatDetectionCustomModulesRequest)) { return super.equals(obj); } - com.google.cloud.securitycentermanagement.v1 - .ListDescendantEventThreatDetectionCustomModulesRequest - other = - (com.google.cloud.securitycentermanagement.v1 - .ListDescendantEventThreatDetectionCustomModulesRequest) - obj; + com.google.cloud.securitycentermanagement.v1.ListDescendantEventThreatDetectionCustomModulesRequest other = (com.google.cloud.securitycentermanagement.v1.ListDescendantEventThreatDetectionCustomModulesRequest) 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; } @@ -292,163 +249,133 @@ public int hashCode() { return hash; } - public static com.google.cloud.securitycentermanagement.v1 - .ListDescendantEventThreatDetectionCustomModulesRequest - parseFrom(java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.securitycentermanagement.v1.ListDescendantEventThreatDetectionCustomModulesRequest parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - - public static com.google.cloud.securitycentermanagement.v1 - .ListDescendantEventThreatDetectionCustomModulesRequest - parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.securitycentermanagement.v1.ListDescendantEventThreatDetectionCustomModulesRequest 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.securitycentermanagement.v1 - .ListDescendantEventThreatDetectionCustomModulesRequest - parseFrom(com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.securitycentermanagement.v1.ListDescendantEventThreatDetectionCustomModulesRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - - public static com.google.cloud.securitycentermanagement.v1 - .ListDescendantEventThreatDetectionCustomModulesRequest - parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.securitycentermanagement.v1.ListDescendantEventThreatDetectionCustomModulesRequest parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.securitycentermanagement.v1 - .ListDescendantEventThreatDetectionCustomModulesRequest - parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.securitycentermanagement.v1.ListDescendantEventThreatDetectionCustomModulesRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - - public static com.google.cloud.securitycentermanagement.v1 - .ListDescendantEventThreatDetectionCustomModulesRequest - parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.securitycentermanagement.v1.ListDescendantEventThreatDetectionCustomModulesRequest parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.securitycentermanagement.v1 - .ListDescendantEventThreatDetectionCustomModulesRequest - parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.securitycentermanagement.v1.ListDescendantEventThreatDetectionCustomModulesRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - - public static com.google.cloud.securitycentermanagement.v1 - .ListDescendantEventThreatDetectionCustomModulesRequest - 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.securitycentermanagement.v1.ListDescendantEventThreatDetectionCustomModulesRequest 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.securitycentermanagement.v1 - .ListDescendantEventThreatDetectionCustomModulesRequest - parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.securitycentermanagement.v1.ListDescendantEventThreatDetectionCustomModulesRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.securitycentermanagement.v1 - .ListDescendantEventThreatDetectionCustomModulesRequest - parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + public static com.google.cloud.securitycentermanagement.v1.ListDescendantEventThreatDetectionCustomModulesRequest parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.securitycentermanagement.v1 - .ListDescendantEventThreatDetectionCustomModulesRequest - parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.securitycentermanagement.v1.ListDescendantEventThreatDetectionCustomModulesRequest parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - - public static com.google.cloud.securitycentermanagement.v1 - .ListDescendantEventThreatDetectionCustomModulesRequest - 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.securitycentermanagement.v1.ListDescendantEventThreatDetectionCustomModulesRequest 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.securitycentermanagement.v1 - .ListDescendantEventThreatDetectionCustomModulesRequest - prototype) { + public static Builder newBuilder(com.google.cloud.securitycentermanagement.v1.ListDescendantEventThreatDetectionCustomModulesRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected 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 listing descendant Event Threat Detection custom
    * modules.
    * 
* - * Protobuf type {@code - * google.cloud.securitycentermanagement.v1.ListDescendantEventThreatDetectionCustomModulesRequest} + * Protobuf type {@code google.cloud.securitycentermanagement.v1.ListDescendantEventThreatDetectionCustomModulesRequest} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.securitycentermanagement.v1.ListDescendantEventThreatDetectionCustomModulesRequest) - com.google.cloud.securitycentermanagement.v1 - .ListDescendantEventThreatDetectionCustomModulesRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.securitycentermanagement.v1.SecurityCenterManagementProto - .internal_static_google_cloud_securitycentermanagement_v1_ListDescendantEventThreatDetectionCustomModulesRequest_descriptor; + com.google.cloud.securitycentermanagement.v1.ListDescendantEventThreatDetectionCustomModulesRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.securitycentermanagement.v1.SecurityCenterManagementProto.internal_static_google_cloud_securitycentermanagement_v1_ListDescendantEventThreatDetectionCustomModulesRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.securitycentermanagement.v1.SecurityCenterManagementProto - .internal_static_google_cloud_securitycentermanagement_v1_ListDescendantEventThreatDetectionCustomModulesRequest_fieldAccessorTable + return com.google.cloud.securitycentermanagement.v1.SecurityCenterManagementProto.internal_static_google_cloud_securitycentermanagement_v1_ListDescendantEventThreatDetectionCustomModulesRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.securitycentermanagement.v1 - .ListDescendantEventThreatDetectionCustomModulesRequest.class, - com.google.cloud.securitycentermanagement.v1 - .ListDescendantEventThreatDetectionCustomModulesRequest.Builder.class); + com.google.cloud.securitycentermanagement.v1.ListDescendantEventThreatDetectionCustomModulesRequest.class, com.google.cloud.securitycentermanagement.v1.ListDescendantEventThreatDetectionCustomModulesRequest.Builder.class); } - // Construct using - // com.google.cloud.securitycentermanagement.v1.ListDescendantEventThreatDetectionCustomModulesRequest.newBuilder() - private Builder() {} + // Construct using com.google.cloud.securitycentermanagement.v1.ListDescendantEventThreatDetectionCustomModulesRequest.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(); @@ -460,26 +387,19 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.securitycentermanagement.v1.SecurityCenterManagementProto - .internal_static_google_cloud_securitycentermanagement_v1_ListDescendantEventThreatDetectionCustomModulesRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.securitycentermanagement.v1.SecurityCenterManagementProto.internal_static_google_cloud_securitycentermanagement_v1_ListDescendantEventThreatDetectionCustomModulesRequest_descriptor; } @java.lang.Override - public com.google.cloud.securitycentermanagement.v1 - .ListDescendantEventThreatDetectionCustomModulesRequest - getDefaultInstanceForType() { - return com.google.cloud.securitycentermanagement.v1 - .ListDescendantEventThreatDetectionCustomModulesRequest.getDefaultInstance(); + public com.google.cloud.securitycentermanagement.v1.ListDescendantEventThreatDetectionCustomModulesRequest getDefaultInstanceForType() { + return com.google.cloud.securitycentermanagement.v1.ListDescendantEventThreatDetectionCustomModulesRequest.getDefaultInstance(); } @java.lang.Override - public com.google.cloud.securitycentermanagement.v1 - .ListDescendantEventThreatDetectionCustomModulesRequest - build() { - com.google.cloud.securitycentermanagement.v1 - .ListDescendantEventThreatDetectionCustomModulesRequest - result = buildPartial(); + public com.google.cloud.securitycentermanagement.v1.ListDescendantEventThreatDetectionCustomModulesRequest build() { + com.google.cloud.securitycentermanagement.v1.ListDescendantEventThreatDetectionCustomModulesRequest result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } @@ -487,25 +407,14 @@ public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { } @java.lang.Override - public com.google.cloud.securitycentermanagement.v1 - .ListDescendantEventThreatDetectionCustomModulesRequest - buildPartial() { - com.google.cloud.securitycentermanagement.v1 - .ListDescendantEventThreatDetectionCustomModulesRequest - result = - new com.google.cloud.securitycentermanagement.v1 - .ListDescendantEventThreatDetectionCustomModulesRequest(this); - if (bitField0_ != 0) { - buildPartial0(result); - } + public com.google.cloud.securitycentermanagement.v1.ListDescendantEventThreatDetectionCustomModulesRequest buildPartial() { + com.google.cloud.securitycentermanagement.v1.ListDescendantEventThreatDetectionCustomModulesRequest result = new com.google.cloud.securitycentermanagement.v1.ListDescendantEventThreatDetectionCustomModulesRequest(this); + if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } - private void buildPartial0( - com.google.cloud.securitycentermanagement.v1 - .ListDescendantEventThreatDetectionCustomModulesRequest - result) { + private void buildPartial0(com.google.cloud.securitycentermanagement.v1.ListDescendantEventThreatDetectionCustomModulesRequest result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000001) != 0)) { result.parent_ = parent_; @@ -522,59 +431,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.securitycentermanagement.v1 - .ListDescendantEventThreatDetectionCustomModulesRequest) { - return mergeFrom( - (com.google.cloud.securitycentermanagement.v1 - .ListDescendantEventThreatDetectionCustomModulesRequest) - other); + if (other instanceof com.google.cloud.securitycentermanagement.v1.ListDescendantEventThreatDetectionCustomModulesRequest) { + return mergeFrom((com.google.cloud.securitycentermanagement.v1.ListDescendantEventThreatDetectionCustomModulesRequest)other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom( - com.google.cloud.securitycentermanagement.v1 - .ListDescendantEventThreatDetectionCustomModulesRequest - other) { - if (other - == com.google.cloud.securitycentermanagement.v1 - .ListDescendantEventThreatDetectionCustomModulesRequest.getDefaultInstance()) - return this; + public Builder mergeFrom(com.google.cloud.securitycentermanagement.v1.ListDescendantEventThreatDetectionCustomModulesRequest other) { + if (other == com.google.cloud.securitycentermanagement.v1.ListDescendantEventThreatDetectionCustomModulesRequest.getDefaultInstance()) return this; if (!other.getParent().isEmpty()) { parent_ = other.parent_; bitField0_ |= 0x00000001; @@ -614,31 +510,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) { @@ -648,13 +540,10 @@ public Builder mergeFrom( } // finally return this; } - private int bitField0_; private java.lang.Object parent_ = ""; /** - * - * *
      * Required. Name of parent to list custom modules. Its format is
      * "organizations/{organization}/locations/{location}",
@@ -663,16 +552,14 @@ public Builder mergeFrom(
      * "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; @@ -681,8 +568,6 @@ public java.lang.String getParent() { } } /** - * - * *
      * Required. Name of parent to list custom modules. Its format is
      * "organizations/{organization}/locations/{location}",
@@ -691,17 +576,16 @@ public java.lang.String getParent() {
      * "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 { @@ -709,8 +593,6 @@ public com.google.protobuf.ByteString getParentBytes() { } } /** - * - * *
      * Required. Name of parent to list custom modules. Its format is
      * "organizations/{organization}/locations/{location}",
@@ -719,25 +601,19 @@ public com.google.protobuf.ByteString getParentBytes() {
      * "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. Name of parent to list custom modules. Its format is
      * "organizations/{organization}/locations/{location}",
@@ -746,10 +622,7 @@ public Builder setParent(java.lang.String value) {
      * "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() { @@ -759,8 +632,6 @@ public Builder clearParent() { return this; } /** - * - * *
      * Required. Name of parent to list custom modules. Its format is
      * "organizations/{organization}/locations/{location}",
@@ -769,17 +640,13 @@ public Builder clearParent() {
      * "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; @@ -787,10 +654,8 @@ public Builder setParentBytes(com.google.protobuf.ByteString value) { return this; } - private int pageSize_; + private int pageSize_ ; /** - * - * *
      * Optional. The maximum number of modules to return. The service may return
      * fewer than this value. If unspecified, at most 10 configs will be returned.
@@ -798,7 +663,6 @@ public Builder setParentBytes(com.google.protobuf.ByteString value) {
      * 
* * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The pageSize. */ @java.lang.Override @@ -806,8 +670,6 @@ public int getPageSize() { return pageSize_; } /** - * - * *
      * Optional. The maximum number of modules to return. The service may return
      * fewer than this value. If unspecified, at most 10 configs will be returned.
@@ -815,7 +677,6 @@ public int getPageSize() {
      * 
* * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @param value The pageSize to set. * @return This builder for chaining. */ @@ -827,8 +688,6 @@ public Builder setPageSize(int value) { return this; } /** - * - * *
      * Optional. The maximum number of modules to return. The service may return
      * fewer than this value. If unspecified, at most 10 configs will be returned.
@@ -836,7 +695,6 @@ public Builder setPageSize(int value) {
      * 
* * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @return This builder for chaining. */ public Builder clearPageSize() { @@ -848,20 +706,18 @@ public Builder clearPageSize() { private java.lang.Object pageToken_ = ""; /** - * - * *
      * Optional. A token identifying a page of results the server should return.
      * 
* * 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; @@ -870,21 +726,20 @@ public java.lang.String getPageToken() { } } /** - * - * *
      * Optional. A token identifying a page of results the server should return.
      * 
* * 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 { @@ -892,35 +747,28 @@ public com.google.protobuf.ByteString getPageTokenBytes() { } } /** - * - * *
      * Optional. A token identifying a page of results the server should return.
      * 
* * 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. A token identifying a page of results the server should return.
      * 
* * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @return This builder for chaining. */ public Builder clearPageToken() { @@ -930,30 +778,26 @@ public Builder clearPageToken() { return this; } /** - * - * *
      * Optional. A token identifying a page of results the server should return.
      * 
* * 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); } @@ -963,67 +807,55 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.securitycentermanagement.v1.ListDescendantEventThreatDetectionCustomModulesRequest) } // @@protoc_insertion_point(class_scope:google.cloud.securitycentermanagement.v1.ListDescendantEventThreatDetectionCustomModulesRequest) - private static final com.google.cloud.securitycentermanagement.v1 - .ListDescendantEventThreatDetectionCustomModulesRequest - DEFAULT_INSTANCE; - + private static final com.google.cloud.securitycentermanagement.v1.ListDescendantEventThreatDetectionCustomModulesRequest DEFAULT_INSTANCE; static { - DEFAULT_INSTANCE = - new com.google.cloud.securitycentermanagement.v1 - .ListDescendantEventThreatDetectionCustomModulesRequest(); + DEFAULT_INSTANCE = new com.google.cloud.securitycentermanagement.v1.ListDescendantEventThreatDetectionCustomModulesRequest(); } - public static com.google.cloud.securitycentermanagement.v1 - .ListDescendantEventThreatDetectionCustomModulesRequest - getDefaultInstance() { + public static com.google.cloud.securitycentermanagement.v1.ListDescendantEventThreatDetectionCustomModulesRequest getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser< - ListDescendantEventThreatDetectionCustomModulesRequest> - PARSER = - new com.google.protobuf.AbstractParser< - ListDescendantEventThreatDetectionCustomModulesRequest>() { - @java.lang.Override - public ListDescendantEventThreatDetectionCustomModulesRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException() - .setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListDescendantEventThreatDetectionCustomModulesRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; - public static com.google.protobuf.Parser - parser() { + public static com.google.protobuf.Parser parser() { return PARSER; } @java.lang.Override - public com.google.protobuf.Parser - getParserForType() { + public com.google.protobuf.Parser getParserForType() { return PARSER; } @java.lang.Override - public com.google.cloud.securitycentermanagement.v1 - .ListDescendantEventThreatDetectionCustomModulesRequest - getDefaultInstanceForType() { + public com.google.cloud.securitycentermanagement.v1.ListDescendantEventThreatDetectionCustomModulesRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/java-securitycentermanagement/proto-google-cloud-securitycentermanagement-v1/src/main/java/com/google/cloud/securitycentermanagement/v1/ListDescendantEventThreatDetectionCustomModulesRequestOrBuilder.java b/owl-bot-staging/java-securitycentermanagement/v1/proto-google-cloud-securitycentermanagement-v1/src/main/java/com/google/cloud/securitycentermanagement/v1/ListDescendantEventThreatDetectionCustomModulesRequestOrBuilder.java similarity index 65% rename from java-securitycentermanagement/proto-google-cloud-securitycentermanagement-v1/src/main/java/com/google/cloud/securitycentermanagement/v1/ListDescendantEventThreatDetectionCustomModulesRequestOrBuilder.java rename to owl-bot-staging/java-securitycentermanagement/v1/proto-google-cloud-securitycentermanagement-v1/src/main/java/com/google/cloud/securitycentermanagement/v1/ListDescendantEventThreatDetectionCustomModulesRequestOrBuilder.java index 0b04bd2a2677..92ca4e0f5287 100644 --- a/java-securitycentermanagement/proto-google-cloud-securitycentermanagement-v1/src/main/java/com/google/cloud/securitycentermanagement/v1/ListDescendantEventThreatDetectionCustomModulesRequestOrBuilder.java +++ b/owl-bot-staging/java-securitycentermanagement/v1/proto-google-cloud-securitycentermanagement-v1/src/main/java/com/google/cloud/securitycentermanagement/v1/ListDescendantEventThreatDetectionCustomModulesRequestOrBuilder.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/securitycentermanagement/v1/security_center_management.proto package com.google.cloud.securitycentermanagement.v1; -public interface ListDescendantEventThreatDetectionCustomModulesRequestOrBuilder - extends +public interface ListDescendantEventThreatDetectionCustomModulesRequestOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.securitycentermanagement.v1.ListDescendantEventThreatDetectionCustomModulesRequest) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * Required. Name of parent to list custom modules. Its format is
    * "organizations/{organization}/locations/{location}",
@@ -34,16 +16,11 @@ public interface ListDescendantEventThreatDetectionCustomModulesRequestOrBuilder
    * "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. Name of parent to list custom modules. Its format is
    * "organizations/{organization}/locations/{location}",
@@ -52,17 +29,13 @@ public interface ListDescendantEventThreatDetectionCustomModulesRequestOrBuilder
    * "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(); /** - * - * *
    * Optional. The maximum number of modules to return. The service may return
    * fewer than this value. If unspecified, at most 10 configs will be returned.
@@ -70,33 +43,27 @@ public interface ListDescendantEventThreatDetectionCustomModulesRequestOrBuilder
    * 
* * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The pageSize. */ int getPageSize(); /** - * - * *
    * Optional. A token identifying a page of results the server should return.
    * 
* * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The pageToken. */ java.lang.String getPageToken(); /** - * - * *
    * Optional. A token identifying a page of results the server should return.
    * 
* * 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-securitycentermanagement/v1/proto-google-cloud-securitycentermanagement-v1/src/main/java/com/google/cloud/securitycentermanagement/v1/ListDescendantEventThreatDetectionCustomModulesResponse.java b/owl-bot-staging/java-securitycentermanagement/v1/proto-google-cloud-securitycentermanagement-v1/src/main/java/com/google/cloud/securitycentermanagement/v1/ListDescendantEventThreatDetectionCustomModulesResponse.java new file mode 100644 index 000000000000..dea1981c254b --- /dev/null +++ b/owl-bot-staging/java-securitycentermanagement/v1/proto-google-cloud-securitycentermanagement-v1/src/main/java/com/google/cloud/securitycentermanagement/v1/ListDescendantEventThreatDetectionCustomModulesResponse.java @@ -0,0 +1,1025 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/securitycentermanagement/v1/security_center_management.proto + +package com.google.cloud.securitycentermanagement.v1; + +/** + *
+ * Response message for listing descendant Event Threat Detection custom
+ * modules.
+ * 
+ * + * Protobuf type {@code google.cloud.securitycentermanagement.v1.ListDescendantEventThreatDetectionCustomModulesResponse} + */ +public final class ListDescendantEventThreatDetectionCustomModulesResponse extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:google.cloud.securitycentermanagement.v1.ListDescendantEventThreatDetectionCustomModulesResponse) + ListDescendantEventThreatDetectionCustomModulesResponseOrBuilder { +private static final long serialVersionUID = 0L; + // Use ListDescendantEventThreatDetectionCustomModulesResponse.newBuilder() to construct. + private ListDescendantEventThreatDetectionCustomModulesResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private ListDescendantEventThreatDetectionCustomModulesResponse() { + eventThreatDetectionCustomModules_ = java.util.Collections.emptyList(); + nextPageToken_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new ListDescendantEventThreatDetectionCustomModulesResponse(); + } + + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.securitycentermanagement.v1.SecurityCenterManagementProto.internal_static_google_cloud_securitycentermanagement_v1_ListDescendantEventThreatDetectionCustomModulesResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.securitycentermanagement.v1.SecurityCenterManagementProto.internal_static_google_cloud_securitycentermanagement_v1_ListDescendantEventThreatDetectionCustomModulesResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.securitycentermanagement.v1.ListDescendantEventThreatDetectionCustomModulesResponse.class, com.google.cloud.securitycentermanagement.v1.ListDescendantEventThreatDetectionCustomModulesResponse.Builder.class); + } + + public static final int EVENT_THREAT_DETECTION_CUSTOM_MODULES_FIELD_NUMBER = 1; + @SuppressWarnings("serial") + private java.util.List eventThreatDetectionCustomModules_; + /** + *
+   * The list of EventThreatDetectionCustomModules
+   * 
+ * + * repeated .google.cloud.securitycentermanagement.v1.EventThreatDetectionCustomModule event_threat_detection_custom_modules = 1; + */ + @java.lang.Override + public java.util.List getEventThreatDetectionCustomModulesList() { + return eventThreatDetectionCustomModules_; + } + /** + *
+   * The list of EventThreatDetectionCustomModules
+   * 
+ * + * repeated .google.cloud.securitycentermanagement.v1.EventThreatDetectionCustomModule event_threat_detection_custom_modules = 1; + */ + @java.lang.Override + public java.util.List + getEventThreatDetectionCustomModulesOrBuilderList() { + return eventThreatDetectionCustomModules_; + } + /** + *
+   * The list of EventThreatDetectionCustomModules
+   * 
+ * + * repeated .google.cloud.securitycentermanagement.v1.EventThreatDetectionCustomModule event_threat_detection_custom_modules = 1; + */ + @java.lang.Override + public int getEventThreatDetectionCustomModulesCount() { + return eventThreatDetectionCustomModules_.size(); + } + /** + *
+   * The list of EventThreatDetectionCustomModules
+   * 
+ * + * repeated .google.cloud.securitycentermanagement.v1.EventThreatDetectionCustomModule event_threat_detection_custom_modules = 1; + */ + @java.lang.Override + public com.google.cloud.securitycentermanagement.v1.EventThreatDetectionCustomModule getEventThreatDetectionCustomModules(int index) { + return eventThreatDetectionCustomModules_.get(index); + } + /** + *
+   * The list of EventThreatDetectionCustomModules
+   * 
+ * + * repeated .google.cloud.securitycentermanagement.v1.EventThreatDetectionCustomModule event_threat_detection_custom_modules = 1; + */ + @java.lang.Override + public com.google.cloud.securitycentermanagement.v1.EventThreatDetectionCustomModuleOrBuilder getEventThreatDetectionCustomModulesOrBuilder( + int index) { + return eventThreatDetectionCustomModules_.get(index); + } + + public static final int NEXT_PAGE_TOKEN_FIELD_NUMBER = 2; + @SuppressWarnings("serial") + private volatile java.lang.Object nextPageToken_ = ""; + /** + *
+   * A token identifying a page of results the server should return.
+   * 
+ * + * string next_page_token = 2; + * @return The nextPageToken. + */ + @java.lang.Override + public java.lang.String getNextPageToken() { + java.lang.Object ref = nextPageToken_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + nextPageToken_ = s; + return s; + } + } + /** + *
+   * A token identifying a page of results the server should return.
+   * 
+ * + * string next_page_token = 2; + * @return The bytes for nextPageToken. + */ + @java.lang.Override + 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); + nextPageToken_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + for (int i = 0; i < eventThreatDetectionCustomModules_.size(); i++) { + output.writeMessage(1, eventThreatDetectionCustomModules_.get(i)); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(nextPageToken_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, nextPageToken_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + for (int i = 0; i < eventThreatDetectionCustomModules_.size(); i++) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, eventThreatDetectionCustomModules_.get(i)); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(nextPageToken_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, nextPageToken_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.securitycentermanagement.v1.ListDescendantEventThreatDetectionCustomModulesResponse)) { + return super.equals(obj); + } + com.google.cloud.securitycentermanagement.v1.ListDescendantEventThreatDetectionCustomModulesResponse other = (com.google.cloud.securitycentermanagement.v1.ListDescendantEventThreatDetectionCustomModulesResponse) obj; + + if (!getEventThreatDetectionCustomModulesList() + .equals(other.getEventThreatDetectionCustomModulesList())) return false; + if (!getNextPageToken() + .equals(other.getNextPageToken())) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (getEventThreatDetectionCustomModulesCount() > 0) { + hash = (37 * hash) + EVENT_THREAT_DETECTION_CUSTOM_MODULES_FIELD_NUMBER; + hash = (53 * hash) + getEventThreatDetectionCustomModulesList().hashCode(); + } + hash = (37 * hash) + NEXT_PAGE_TOKEN_FIELD_NUMBER; + hash = (53 * hash) + getNextPageToken().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.securitycentermanagement.v1.ListDescendantEventThreatDetectionCustomModulesResponse parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.cloud.securitycentermanagement.v1.ListDescendantEventThreatDetectionCustomModulesResponse 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.securitycentermanagement.v1.ListDescendantEventThreatDetectionCustomModulesResponse parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.cloud.securitycentermanagement.v1.ListDescendantEventThreatDetectionCustomModulesResponse parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.cloud.securitycentermanagement.v1.ListDescendantEventThreatDetectionCustomModulesResponse parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.cloud.securitycentermanagement.v1.ListDescendantEventThreatDetectionCustomModulesResponse parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.cloud.securitycentermanagement.v1.ListDescendantEventThreatDetectionCustomModulesResponse parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.google.cloud.securitycentermanagement.v1.ListDescendantEventThreatDetectionCustomModulesResponse 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.securitycentermanagement.v1.ListDescendantEventThreatDetectionCustomModulesResponse parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.securitycentermanagement.v1.ListDescendantEventThreatDetectionCustomModulesResponse parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static com.google.cloud.securitycentermanagement.v1.ListDescendantEventThreatDetectionCustomModulesResponse parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.google.cloud.securitycentermanagement.v1.ListDescendantEventThreatDetectionCustomModulesResponse 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.securitycentermanagement.v1.ListDescendantEventThreatDetectionCustomModulesResponse prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + *
+   * Response message for listing descendant Event Threat Detection custom
+   * modules.
+   * 
+ * + * Protobuf type {@code google.cloud.securitycentermanagement.v1.ListDescendantEventThreatDetectionCustomModulesResponse} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:google.cloud.securitycentermanagement.v1.ListDescendantEventThreatDetectionCustomModulesResponse) + com.google.cloud.securitycentermanagement.v1.ListDescendantEventThreatDetectionCustomModulesResponseOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.securitycentermanagement.v1.SecurityCenterManagementProto.internal_static_google_cloud_securitycentermanagement_v1_ListDescendantEventThreatDetectionCustomModulesResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.securitycentermanagement.v1.SecurityCenterManagementProto.internal_static_google_cloud_securitycentermanagement_v1_ListDescendantEventThreatDetectionCustomModulesResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.securitycentermanagement.v1.ListDescendantEventThreatDetectionCustomModulesResponse.class, com.google.cloud.securitycentermanagement.v1.ListDescendantEventThreatDetectionCustomModulesResponse.Builder.class); + } + + // Construct using com.google.cloud.securitycentermanagement.v1.ListDescendantEventThreatDetectionCustomModulesResponse.newBuilder() + private Builder() { + + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + if (eventThreatDetectionCustomModulesBuilder_ == null) { + eventThreatDetectionCustomModules_ = java.util.Collections.emptyList(); + } else { + eventThreatDetectionCustomModules_ = null; + eventThreatDetectionCustomModulesBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000001); + nextPageToken_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.securitycentermanagement.v1.SecurityCenterManagementProto.internal_static_google_cloud_securitycentermanagement_v1_ListDescendantEventThreatDetectionCustomModulesResponse_descriptor; + } + + @java.lang.Override + public com.google.cloud.securitycentermanagement.v1.ListDescendantEventThreatDetectionCustomModulesResponse getDefaultInstanceForType() { + return com.google.cloud.securitycentermanagement.v1.ListDescendantEventThreatDetectionCustomModulesResponse.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.securitycentermanagement.v1.ListDescendantEventThreatDetectionCustomModulesResponse build() { + com.google.cloud.securitycentermanagement.v1.ListDescendantEventThreatDetectionCustomModulesResponse result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.securitycentermanagement.v1.ListDescendantEventThreatDetectionCustomModulesResponse buildPartial() { + com.google.cloud.securitycentermanagement.v1.ListDescendantEventThreatDetectionCustomModulesResponse result = new com.google.cloud.securitycentermanagement.v1.ListDescendantEventThreatDetectionCustomModulesResponse(this); + buildPartialRepeatedFields(result); + if (bitField0_ != 0) { buildPartial0(result); } + onBuilt(); + return result; + } + + private void buildPartialRepeatedFields(com.google.cloud.securitycentermanagement.v1.ListDescendantEventThreatDetectionCustomModulesResponse result) { + if (eventThreatDetectionCustomModulesBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0)) { + eventThreatDetectionCustomModules_ = java.util.Collections.unmodifiableList(eventThreatDetectionCustomModules_); + bitField0_ = (bitField0_ & ~0x00000001); + } + result.eventThreatDetectionCustomModules_ = eventThreatDetectionCustomModules_; + } else { + result.eventThreatDetectionCustomModules_ = eventThreatDetectionCustomModulesBuilder_.build(); + } + } + + private void buildPartial0(com.google.cloud.securitycentermanagement.v1.ListDescendantEventThreatDetectionCustomModulesResponse result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000002) != 0)) { + result.nextPageToken_ = nextPageToken_; + } + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.securitycentermanagement.v1.ListDescendantEventThreatDetectionCustomModulesResponse) { + return mergeFrom((com.google.cloud.securitycentermanagement.v1.ListDescendantEventThreatDetectionCustomModulesResponse)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.securitycentermanagement.v1.ListDescendantEventThreatDetectionCustomModulesResponse other) { + if (other == com.google.cloud.securitycentermanagement.v1.ListDescendantEventThreatDetectionCustomModulesResponse.getDefaultInstance()) return this; + if (eventThreatDetectionCustomModulesBuilder_ == null) { + if (!other.eventThreatDetectionCustomModules_.isEmpty()) { + if (eventThreatDetectionCustomModules_.isEmpty()) { + eventThreatDetectionCustomModules_ = other.eventThreatDetectionCustomModules_; + bitField0_ = (bitField0_ & ~0x00000001); + } else { + ensureEventThreatDetectionCustomModulesIsMutable(); + eventThreatDetectionCustomModules_.addAll(other.eventThreatDetectionCustomModules_); + } + onChanged(); + } + } else { + if (!other.eventThreatDetectionCustomModules_.isEmpty()) { + if (eventThreatDetectionCustomModulesBuilder_.isEmpty()) { + eventThreatDetectionCustomModulesBuilder_.dispose(); + eventThreatDetectionCustomModulesBuilder_ = null; + eventThreatDetectionCustomModules_ = other.eventThreatDetectionCustomModules_; + bitField0_ = (bitField0_ & ~0x00000001); + eventThreatDetectionCustomModulesBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? + getEventThreatDetectionCustomModulesFieldBuilder() : null; + } else { + eventThreatDetectionCustomModulesBuilder_.addAllMessages(other.eventThreatDetectionCustomModules_); + } + } + } + if (!other.getNextPageToken().isEmpty()) { + nextPageToken_ = other.nextPageToken_; + bitField0_ |= 0x00000002; + onChanged(); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + com.google.cloud.securitycentermanagement.v1.EventThreatDetectionCustomModule m = + input.readMessage( + com.google.cloud.securitycentermanagement.v1.EventThreatDetectionCustomModule.parser(), + extensionRegistry); + if (eventThreatDetectionCustomModulesBuilder_ == null) { + ensureEventThreatDetectionCustomModulesIsMutable(); + eventThreatDetectionCustomModules_.add(m); + } else { + eventThreatDetectionCustomModulesBuilder_.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) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + private int bitField0_; + + private java.util.List eventThreatDetectionCustomModules_ = + java.util.Collections.emptyList(); + private void ensureEventThreatDetectionCustomModulesIsMutable() { + if (!((bitField0_ & 0x00000001) != 0)) { + eventThreatDetectionCustomModules_ = new java.util.ArrayList(eventThreatDetectionCustomModules_); + bitField0_ |= 0x00000001; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.securitycentermanagement.v1.EventThreatDetectionCustomModule, com.google.cloud.securitycentermanagement.v1.EventThreatDetectionCustomModule.Builder, com.google.cloud.securitycentermanagement.v1.EventThreatDetectionCustomModuleOrBuilder> eventThreatDetectionCustomModulesBuilder_; + + /** + *
+     * The list of EventThreatDetectionCustomModules
+     * 
+ * + * repeated .google.cloud.securitycentermanagement.v1.EventThreatDetectionCustomModule event_threat_detection_custom_modules = 1; + */ + public java.util.List getEventThreatDetectionCustomModulesList() { + if (eventThreatDetectionCustomModulesBuilder_ == null) { + return java.util.Collections.unmodifiableList(eventThreatDetectionCustomModules_); + } else { + return eventThreatDetectionCustomModulesBuilder_.getMessageList(); + } + } + /** + *
+     * The list of EventThreatDetectionCustomModules
+     * 
+ * + * repeated .google.cloud.securitycentermanagement.v1.EventThreatDetectionCustomModule event_threat_detection_custom_modules = 1; + */ + public int getEventThreatDetectionCustomModulesCount() { + if (eventThreatDetectionCustomModulesBuilder_ == null) { + return eventThreatDetectionCustomModules_.size(); + } else { + return eventThreatDetectionCustomModulesBuilder_.getCount(); + } + } + /** + *
+     * The list of EventThreatDetectionCustomModules
+     * 
+ * + * repeated .google.cloud.securitycentermanagement.v1.EventThreatDetectionCustomModule event_threat_detection_custom_modules = 1; + */ + public com.google.cloud.securitycentermanagement.v1.EventThreatDetectionCustomModule getEventThreatDetectionCustomModules(int index) { + if (eventThreatDetectionCustomModulesBuilder_ == null) { + return eventThreatDetectionCustomModules_.get(index); + } else { + return eventThreatDetectionCustomModulesBuilder_.getMessage(index); + } + } + /** + *
+     * The list of EventThreatDetectionCustomModules
+     * 
+ * + * repeated .google.cloud.securitycentermanagement.v1.EventThreatDetectionCustomModule event_threat_detection_custom_modules = 1; + */ + public Builder setEventThreatDetectionCustomModules( + int index, com.google.cloud.securitycentermanagement.v1.EventThreatDetectionCustomModule value) { + if (eventThreatDetectionCustomModulesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureEventThreatDetectionCustomModulesIsMutable(); + eventThreatDetectionCustomModules_.set(index, value); + onChanged(); + } else { + eventThreatDetectionCustomModulesBuilder_.setMessage(index, value); + } + return this; + } + /** + *
+     * The list of EventThreatDetectionCustomModules
+     * 
+ * + * repeated .google.cloud.securitycentermanagement.v1.EventThreatDetectionCustomModule event_threat_detection_custom_modules = 1; + */ + public Builder setEventThreatDetectionCustomModules( + int index, com.google.cloud.securitycentermanagement.v1.EventThreatDetectionCustomModule.Builder builderForValue) { + if (eventThreatDetectionCustomModulesBuilder_ == null) { + ensureEventThreatDetectionCustomModulesIsMutable(); + eventThreatDetectionCustomModules_.set(index, builderForValue.build()); + onChanged(); + } else { + eventThreatDetectionCustomModulesBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + /** + *
+     * The list of EventThreatDetectionCustomModules
+     * 
+ * + * repeated .google.cloud.securitycentermanagement.v1.EventThreatDetectionCustomModule event_threat_detection_custom_modules = 1; + */ + public Builder addEventThreatDetectionCustomModules(com.google.cloud.securitycentermanagement.v1.EventThreatDetectionCustomModule value) { + if (eventThreatDetectionCustomModulesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureEventThreatDetectionCustomModulesIsMutable(); + eventThreatDetectionCustomModules_.add(value); + onChanged(); + } else { + eventThreatDetectionCustomModulesBuilder_.addMessage(value); + } + return this; + } + /** + *
+     * The list of EventThreatDetectionCustomModules
+     * 
+ * + * repeated .google.cloud.securitycentermanagement.v1.EventThreatDetectionCustomModule event_threat_detection_custom_modules = 1; + */ + public Builder addEventThreatDetectionCustomModules( + int index, com.google.cloud.securitycentermanagement.v1.EventThreatDetectionCustomModule value) { + if (eventThreatDetectionCustomModulesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureEventThreatDetectionCustomModulesIsMutable(); + eventThreatDetectionCustomModules_.add(index, value); + onChanged(); + } else { + eventThreatDetectionCustomModulesBuilder_.addMessage(index, value); + } + return this; + } + /** + *
+     * The list of EventThreatDetectionCustomModules
+     * 
+ * + * repeated .google.cloud.securitycentermanagement.v1.EventThreatDetectionCustomModule event_threat_detection_custom_modules = 1; + */ + public Builder addEventThreatDetectionCustomModules( + com.google.cloud.securitycentermanagement.v1.EventThreatDetectionCustomModule.Builder builderForValue) { + if (eventThreatDetectionCustomModulesBuilder_ == null) { + ensureEventThreatDetectionCustomModulesIsMutable(); + eventThreatDetectionCustomModules_.add(builderForValue.build()); + onChanged(); + } else { + eventThreatDetectionCustomModulesBuilder_.addMessage(builderForValue.build()); + } + return this; + } + /** + *
+     * The list of EventThreatDetectionCustomModules
+     * 
+ * + * repeated .google.cloud.securitycentermanagement.v1.EventThreatDetectionCustomModule event_threat_detection_custom_modules = 1; + */ + public Builder addEventThreatDetectionCustomModules( + int index, com.google.cloud.securitycentermanagement.v1.EventThreatDetectionCustomModule.Builder builderForValue) { + if (eventThreatDetectionCustomModulesBuilder_ == null) { + ensureEventThreatDetectionCustomModulesIsMutable(); + eventThreatDetectionCustomModules_.add(index, builderForValue.build()); + onChanged(); + } else { + eventThreatDetectionCustomModulesBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + /** + *
+     * The list of EventThreatDetectionCustomModules
+     * 
+ * + * repeated .google.cloud.securitycentermanagement.v1.EventThreatDetectionCustomModule event_threat_detection_custom_modules = 1; + */ + public Builder addAllEventThreatDetectionCustomModules( + java.lang.Iterable values) { + if (eventThreatDetectionCustomModulesBuilder_ == null) { + ensureEventThreatDetectionCustomModulesIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, eventThreatDetectionCustomModules_); + onChanged(); + } else { + eventThreatDetectionCustomModulesBuilder_.addAllMessages(values); + } + return this; + } + /** + *
+     * The list of EventThreatDetectionCustomModules
+     * 
+ * + * repeated .google.cloud.securitycentermanagement.v1.EventThreatDetectionCustomModule event_threat_detection_custom_modules = 1; + */ + public Builder clearEventThreatDetectionCustomModules() { + if (eventThreatDetectionCustomModulesBuilder_ == null) { + eventThreatDetectionCustomModules_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + } else { + eventThreatDetectionCustomModulesBuilder_.clear(); + } + return this; + } + /** + *
+     * The list of EventThreatDetectionCustomModules
+     * 
+ * + * repeated .google.cloud.securitycentermanagement.v1.EventThreatDetectionCustomModule event_threat_detection_custom_modules = 1; + */ + public Builder removeEventThreatDetectionCustomModules(int index) { + if (eventThreatDetectionCustomModulesBuilder_ == null) { + ensureEventThreatDetectionCustomModulesIsMutable(); + eventThreatDetectionCustomModules_.remove(index); + onChanged(); + } else { + eventThreatDetectionCustomModulesBuilder_.remove(index); + } + return this; + } + /** + *
+     * The list of EventThreatDetectionCustomModules
+     * 
+ * + * repeated .google.cloud.securitycentermanagement.v1.EventThreatDetectionCustomModule event_threat_detection_custom_modules = 1; + */ + public com.google.cloud.securitycentermanagement.v1.EventThreatDetectionCustomModule.Builder getEventThreatDetectionCustomModulesBuilder( + int index) { + return getEventThreatDetectionCustomModulesFieldBuilder().getBuilder(index); + } + /** + *
+     * The list of EventThreatDetectionCustomModules
+     * 
+ * + * repeated .google.cloud.securitycentermanagement.v1.EventThreatDetectionCustomModule event_threat_detection_custom_modules = 1; + */ + public com.google.cloud.securitycentermanagement.v1.EventThreatDetectionCustomModuleOrBuilder getEventThreatDetectionCustomModulesOrBuilder( + int index) { + if (eventThreatDetectionCustomModulesBuilder_ == null) { + return eventThreatDetectionCustomModules_.get(index); } else { + return eventThreatDetectionCustomModulesBuilder_.getMessageOrBuilder(index); + } + } + /** + *
+     * The list of EventThreatDetectionCustomModules
+     * 
+ * + * repeated .google.cloud.securitycentermanagement.v1.EventThreatDetectionCustomModule event_threat_detection_custom_modules = 1; + */ + public java.util.List + getEventThreatDetectionCustomModulesOrBuilderList() { + if (eventThreatDetectionCustomModulesBuilder_ != null) { + return eventThreatDetectionCustomModulesBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(eventThreatDetectionCustomModules_); + } + } + /** + *
+     * The list of EventThreatDetectionCustomModules
+     * 
+ * + * repeated .google.cloud.securitycentermanagement.v1.EventThreatDetectionCustomModule event_threat_detection_custom_modules = 1; + */ + public com.google.cloud.securitycentermanagement.v1.EventThreatDetectionCustomModule.Builder addEventThreatDetectionCustomModulesBuilder() { + return getEventThreatDetectionCustomModulesFieldBuilder().addBuilder( + com.google.cloud.securitycentermanagement.v1.EventThreatDetectionCustomModule.getDefaultInstance()); + } + /** + *
+     * The list of EventThreatDetectionCustomModules
+     * 
+ * + * repeated .google.cloud.securitycentermanagement.v1.EventThreatDetectionCustomModule event_threat_detection_custom_modules = 1; + */ + public com.google.cloud.securitycentermanagement.v1.EventThreatDetectionCustomModule.Builder addEventThreatDetectionCustomModulesBuilder( + int index) { + return getEventThreatDetectionCustomModulesFieldBuilder().addBuilder( + index, com.google.cloud.securitycentermanagement.v1.EventThreatDetectionCustomModule.getDefaultInstance()); + } + /** + *
+     * The list of EventThreatDetectionCustomModules
+     * 
+ * + * repeated .google.cloud.securitycentermanagement.v1.EventThreatDetectionCustomModule event_threat_detection_custom_modules = 1; + */ + public java.util.List + getEventThreatDetectionCustomModulesBuilderList() { + return getEventThreatDetectionCustomModulesFieldBuilder().getBuilderList(); + } + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.securitycentermanagement.v1.EventThreatDetectionCustomModule, com.google.cloud.securitycentermanagement.v1.EventThreatDetectionCustomModule.Builder, com.google.cloud.securitycentermanagement.v1.EventThreatDetectionCustomModuleOrBuilder> + getEventThreatDetectionCustomModulesFieldBuilder() { + if (eventThreatDetectionCustomModulesBuilder_ == null) { + eventThreatDetectionCustomModulesBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.securitycentermanagement.v1.EventThreatDetectionCustomModule, com.google.cloud.securitycentermanagement.v1.EventThreatDetectionCustomModule.Builder, com.google.cloud.securitycentermanagement.v1.EventThreatDetectionCustomModuleOrBuilder>( + eventThreatDetectionCustomModules_, + ((bitField0_ & 0x00000001) != 0), + getParentForChildren(), + isClean()); + eventThreatDetectionCustomModules_ = null; + } + return eventThreatDetectionCustomModulesBuilder_; + } + + private java.lang.Object nextPageToken_ = ""; + /** + *
+     * A token identifying a page of results the server should return.
+     * 
+ * + * 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; + java.lang.String s = bs.toStringUtf8(); + nextPageToken_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+     * A token identifying a page of results the server should return.
+     * 
+ * + * string next_page_token = 2; + * @return The bytes for nextPageToken. + */ + 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); + nextPageToken_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+     * A token identifying a page of results the server should return.
+     * 
+ * + * 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(); } + nextPageToken_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + *
+     * A token identifying a page of results the server should return.
+     * 
+ * + * string next_page_token = 2; + * @return This builder for chaining. + */ + public Builder clearNextPageToken() { + nextPageToken_ = getDefaultInstance().getNextPageToken(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + /** + *
+     * A token identifying a page of results the server should return.
+     * 
+ * + * 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(); } + checkByteStringIsUtf8(value); + nextPageToken_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:google.cloud.securitycentermanagement.v1.ListDescendantEventThreatDetectionCustomModulesResponse) + } + + // @@protoc_insertion_point(class_scope:google.cloud.securitycentermanagement.v1.ListDescendantEventThreatDetectionCustomModulesResponse) + private static final com.google.cloud.securitycentermanagement.v1.ListDescendantEventThreatDetectionCustomModulesResponse DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new com.google.cloud.securitycentermanagement.v1.ListDescendantEventThreatDetectionCustomModulesResponse(); + } + + public static com.google.cloud.securitycentermanagement.v1.ListDescendantEventThreatDetectionCustomModulesResponse getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListDescendantEventThreatDetectionCustomModulesResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.securitycentermanagement.v1.ListDescendantEventThreatDetectionCustomModulesResponse getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + +} + diff --git a/owl-bot-staging/java-securitycentermanagement/v1/proto-google-cloud-securitycentermanagement-v1/src/main/java/com/google/cloud/securitycentermanagement/v1/ListDescendantEventThreatDetectionCustomModulesResponseOrBuilder.java b/owl-bot-staging/java-securitycentermanagement/v1/proto-google-cloud-securitycentermanagement-v1/src/main/java/com/google/cloud/securitycentermanagement/v1/ListDescendantEventThreatDetectionCustomModulesResponseOrBuilder.java new file mode 100644 index 000000000000..fca58b950887 --- /dev/null +++ b/owl-bot-staging/java-securitycentermanagement/v1/proto-google-cloud-securitycentermanagement-v1/src/main/java/com/google/cloud/securitycentermanagement/v1/ListDescendantEventThreatDetectionCustomModulesResponseOrBuilder.java @@ -0,0 +1,73 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/securitycentermanagement/v1/security_center_management.proto + +package com.google.cloud.securitycentermanagement.v1; + +public interface ListDescendantEventThreatDetectionCustomModulesResponseOrBuilder extends + // @@protoc_insertion_point(interface_extends:google.cloud.securitycentermanagement.v1.ListDescendantEventThreatDetectionCustomModulesResponse) + com.google.protobuf.MessageOrBuilder { + + /** + *
+   * The list of EventThreatDetectionCustomModules
+   * 
+ * + * repeated .google.cloud.securitycentermanagement.v1.EventThreatDetectionCustomModule event_threat_detection_custom_modules = 1; + */ + java.util.List + getEventThreatDetectionCustomModulesList(); + /** + *
+   * The list of EventThreatDetectionCustomModules
+   * 
+ * + * repeated .google.cloud.securitycentermanagement.v1.EventThreatDetectionCustomModule event_threat_detection_custom_modules = 1; + */ + com.google.cloud.securitycentermanagement.v1.EventThreatDetectionCustomModule getEventThreatDetectionCustomModules(int index); + /** + *
+   * The list of EventThreatDetectionCustomModules
+   * 
+ * + * repeated .google.cloud.securitycentermanagement.v1.EventThreatDetectionCustomModule event_threat_detection_custom_modules = 1; + */ + int getEventThreatDetectionCustomModulesCount(); + /** + *
+   * The list of EventThreatDetectionCustomModules
+   * 
+ * + * repeated .google.cloud.securitycentermanagement.v1.EventThreatDetectionCustomModule event_threat_detection_custom_modules = 1; + */ + java.util.List + getEventThreatDetectionCustomModulesOrBuilderList(); + /** + *
+   * The list of EventThreatDetectionCustomModules
+   * 
+ * + * repeated .google.cloud.securitycentermanagement.v1.EventThreatDetectionCustomModule event_threat_detection_custom_modules = 1; + */ + com.google.cloud.securitycentermanagement.v1.EventThreatDetectionCustomModuleOrBuilder getEventThreatDetectionCustomModulesOrBuilder( + int index); + + /** + *
+   * A token identifying a page of results the server should return.
+   * 
+ * + * string next_page_token = 2; + * @return The nextPageToken. + */ + java.lang.String getNextPageToken(); + /** + *
+   * A token identifying a page of results the server should return.
+   * 
+ * + * string next_page_token = 2; + * @return The bytes for nextPageToken. + */ + com.google.protobuf.ByteString + getNextPageTokenBytes(); +} diff --git a/java-securitycentermanagement/proto-google-cloud-securitycentermanagement-v1/src/main/java/com/google/cloud/securitycentermanagement/v1/ListDescendantSecurityHealthAnalyticsCustomModulesRequest.java b/owl-bot-staging/java-securitycentermanagement/v1/proto-google-cloud-securitycentermanagement-v1/src/main/java/com/google/cloud/securitycentermanagement/v1/ListDescendantSecurityHealthAnalyticsCustomModulesRequest.java similarity index 51% rename from java-securitycentermanagement/proto-google-cloud-securitycentermanagement-v1/src/main/java/com/google/cloud/securitycentermanagement/v1/ListDescendantSecurityHealthAnalyticsCustomModulesRequest.java rename to owl-bot-staging/java-securitycentermanagement/v1/proto-google-cloud-securitycentermanagement-v1/src/main/java/com/google/cloud/securitycentermanagement/v1/ListDescendantSecurityHealthAnalyticsCustomModulesRequest.java index bde88bf63ddc..0580e33b116a 100644 --- a/java-securitycentermanagement/proto-google-cloud-securitycentermanagement-v1/src/main/java/com/google/cloud/securitycentermanagement/v1/ListDescendantSecurityHealthAnalyticsCustomModulesRequest.java +++ b/owl-bot-staging/java-securitycentermanagement/v1/proto-google-cloud-securitycentermanagement-v1/src/main/java/com/google/cloud/securitycentermanagement/v1/ListDescendantSecurityHealthAnalyticsCustomModulesRequest.java @@ -1,46 +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. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/securitycentermanagement/v1/security_center_management.proto package com.google.cloud.securitycentermanagement.v1; /** - * - * *
  * Request message for listing descendant Security Health Analytics custom
  * modules.
  * 
* - * Protobuf type {@code - * google.cloud.securitycentermanagement.v1.ListDescendantSecurityHealthAnalyticsCustomModulesRequest} + * Protobuf type {@code google.cloud.securitycentermanagement.v1.ListDescendantSecurityHealthAnalyticsCustomModulesRequest} */ -public final class ListDescendantSecurityHealthAnalyticsCustomModulesRequest - extends com.google.protobuf.GeneratedMessageV3 - implements +public final class ListDescendantSecurityHealthAnalyticsCustomModulesRequest extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.securitycentermanagement.v1.ListDescendantSecurityHealthAnalyticsCustomModulesRequest) ListDescendantSecurityHealthAnalyticsCustomModulesRequestOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use ListDescendantSecurityHealthAnalyticsCustomModulesRequest.newBuilder() to construct. - private ListDescendantSecurityHealthAnalyticsCustomModulesRequest( - com.google.protobuf.GeneratedMessageV3.Builder builder) { + private ListDescendantSecurityHealthAnalyticsCustomModulesRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private ListDescendantSecurityHealthAnalyticsCustomModulesRequest() { parent_ = ""; pageToken_ = ""; @@ -48,34 +27,28 @@ private ListDescendantSecurityHealthAnalyticsCustomModulesRequest() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new ListDescendantSecurityHealthAnalyticsCustomModulesRequest(); } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.securitycentermanagement.v1.SecurityCenterManagementProto - .internal_static_google_cloud_securitycentermanagement_v1_ListDescendantSecurityHealthAnalyticsCustomModulesRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.securitycentermanagement.v1.SecurityCenterManagementProto.internal_static_google_cloud_securitycentermanagement_v1_ListDescendantSecurityHealthAnalyticsCustomModulesRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.securitycentermanagement.v1.SecurityCenterManagementProto - .internal_static_google_cloud_securitycentermanagement_v1_ListDescendantSecurityHealthAnalyticsCustomModulesRequest_fieldAccessorTable + return com.google.cloud.securitycentermanagement.v1.SecurityCenterManagementProto.internal_static_google_cloud_securitycentermanagement_v1_ListDescendantSecurityHealthAnalyticsCustomModulesRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.securitycentermanagement.v1 - .ListDescendantSecurityHealthAnalyticsCustomModulesRequest.class, - com.google.cloud.securitycentermanagement.v1 - .ListDescendantSecurityHealthAnalyticsCustomModulesRequest.Builder.class); + com.google.cloud.securitycentermanagement.v1.ListDescendantSecurityHealthAnalyticsCustomModulesRequest.class, com.google.cloud.securitycentermanagement.v1.ListDescendantSecurityHealthAnalyticsCustomModulesRequest.Builder.class); } public static final int PARENT_FIELD_NUMBER = 1; - @SuppressWarnings("serial") private volatile java.lang.Object parent_ = ""; /** - * - * *
    * Required. Name of parent to list custom modules. Its format is
    * "organizations/{organization}/locations/{location}",
@@ -84,10 +57,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
    * "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 @@ -96,15 +66,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. Name of parent to list custom modules. Its format is
    * "organizations/{organization}/locations/{location}",
@@ -113,18 +82,17 @@ public java.lang.String getParent() {
    * "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 { @@ -135,15 +103,12 @@ public com.google.protobuf.ByteString getParentBytes() { public static final int PAGE_SIZE_FIELD_NUMBER = 2; private int pageSize_ = 0; /** - * - * *
    * Optional. The maximum number of results to return in a single response.
    * Default is 10, minimum is 1, maximum is 1000.
    * 
* * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The pageSize. */ @java.lang.Override @@ -152,18 +117,14 @@ public int getPageSize() { } public static final int PAGE_TOKEN_FIELD_NUMBER = 3; - @SuppressWarnings("serial") private volatile java.lang.Object pageToken_ = ""; /** - * - * *
    * Optional. A token identifying a page of results the server should return.
    * 
* * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The pageToken. */ @java.lang.Override @@ -172,29 +133,29 @@ 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. A token identifying a page of results the server should return.
    * 
* * 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 { @@ -203,7 +164,6 @@ public com.google.protobuf.ByteString getPageTokenBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -215,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_); } @@ -238,7 +199,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_); @@ -251,24 +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.securitycentermanagement.v1 - .ListDescendantSecurityHealthAnalyticsCustomModulesRequest)) { + if (!(obj instanceof com.google.cloud.securitycentermanagement.v1.ListDescendantSecurityHealthAnalyticsCustomModulesRequest)) { return super.equals(obj); } - com.google.cloud.securitycentermanagement.v1 - .ListDescendantSecurityHealthAnalyticsCustomModulesRequest - other = - (com.google.cloud.securitycentermanagement.v1 - .ListDescendantSecurityHealthAnalyticsCustomModulesRequest) - obj; + com.google.cloud.securitycentermanagement.v1.ListDescendantSecurityHealthAnalyticsCustomModulesRequest other = (com.google.cloud.securitycentermanagement.v1.ListDescendantSecurityHealthAnalyticsCustomModulesRequest) 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; } @@ -291,163 +248,133 @@ public int hashCode() { return hash; } - public static com.google.cloud.securitycentermanagement.v1 - .ListDescendantSecurityHealthAnalyticsCustomModulesRequest - parseFrom(java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.securitycentermanagement.v1.ListDescendantSecurityHealthAnalyticsCustomModulesRequest parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - - public static com.google.cloud.securitycentermanagement.v1 - .ListDescendantSecurityHealthAnalyticsCustomModulesRequest - parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.securitycentermanagement.v1.ListDescendantSecurityHealthAnalyticsCustomModulesRequest 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.securitycentermanagement.v1 - .ListDescendantSecurityHealthAnalyticsCustomModulesRequest - parseFrom(com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.securitycentermanagement.v1.ListDescendantSecurityHealthAnalyticsCustomModulesRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - - public static com.google.cloud.securitycentermanagement.v1 - .ListDescendantSecurityHealthAnalyticsCustomModulesRequest - parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.securitycentermanagement.v1.ListDescendantSecurityHealthAnalyticsCustomModulesRequest parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.securitycentermanagement.v1 - .ListDescendantSecurityHealthAnalyticsCustomModulesRequest - parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.securitycentermanagement.v1.ListDescendantSecurityHealthAnalyticsCustomModulesRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - - public static com.google.cloud.securitycentermanagement.v1 - .ListDescendantSecurityHealthAnalyticsCustomModulesRequest - parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.securitycentermanagement.v1.ListDescendantSecurityHealthAnalyticsCustomModulesRequest parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.securitycentermanagement.v1 - .ListDescendantSecurityHealthAnalyticsCustomModulesRequest - parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.securitycentermanagement.v1.ListDescendantSecurityHealthAnalyticsCustomModulesRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - - public static com.google.cloud.securitycentermanagement.v1 - .ListDescendantSecurityHealthAnalyticsCustomModulesRequest - 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.securitycentermanagement.v1.ListDescendantSecurityHealthAnalyticsCustomModulesRequest 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.securitycentermanagement.v1 - .ListDescendantSecurityHealthAnalyticsCustomModulesRequest - parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.securitycentermanagement.v1.ListDescendantSecurityHealthAnalyticsCustomModulesRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.securitycentermanagement.v1 - .ListDescendantSecurityHealthAnalyticsCustomModulesRequest - parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + public static com.google.cloud.securitycentermanagement.v1.ListDescendantSecurityHealthAnalyticsCustomModulesRequest parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.securitycentermanagement.v1 - .ListDescendantSecurityHealthAnalyticsCustomModulesRequest - parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.securitycentermanagement.v1.ListDescendantSecurityHealthAnalyticsCustomModulesRequest parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - - public static com.google.cloud.securitycentermanagement.v1 - .ListDescendantSecurityHealthAnalyticsCustomModulesRequest - 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.securitycentermanagement.v1.ListDescendantSecurityHealthAnalyticsCustomModulesRequest 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.securitycentermanagement.v1 - .ListDescendantSecurityHealthAnalyticsCustomModulesRequest - prototype) { + public static Builder newBuilder(com.google.cloud.securitycentermanagement.v1.ListDescendantSecurityHealthAnalyticsCustomModulesRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected 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 listing descendant Security Health Analytics custom
    * modules.
    * 
* - * Protobuf type {@code - * google.cloud.securitycentermanagement.v1.ListDescendantSecurityHealthAnalyticsCustomModulesRequest} + * Protobuf type {@code google.cloud.securitycentermanagement.v1.ListDescendantSecurityHealthAnalyticsCustomModulesRequest} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.securitycentermanagement.v1.ListDescendantSecurityHealthAnalyticsCustomModulesRequest) - com.google.cloud.securitycentermanagement.v1 - .ListDescendantSecurityHealthAnalyticsCustomModulesRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.securitycentermanagement.v1.SecurityCenterManagementProto - .internal_static_google_cloud_securitycentermanagement_v1_ListDescendantSecurityHealthAnalyticsCustomModulesRequest_descriptor; + com.google.cloud.securitycentermanagement.v1.ListDescendantSecurityHealthAnalyticsCustomModulesRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.securitycentermanagement.v1.SecurityCenterManagementProto.internal_static_google_cloud_securitycentermanagement_v1_ListDescendantSecurityHealthAnalyticsCustomModulesRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.securitycentermanagement.v1.SecurityCenterManagementProto - .internal_static_google_cloud_securitycentermanagement_v1_ListDescendantSecurityHealthAnalyticsCustomModulesRequest_fieldAccessorTable + return com.google.cloud.securitycentermanagement.v1.SecurityCenterManagementProto.internal_static_google_cloud_securitycentermanagement_v1_ListDescendantSecurityHealthAnalyticsCustomModulesRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.securitycentermanagement.v1 - .ListDescendantSecurityHealthAnalyticsCustomModulesRequest.class, - com.google.cloud.securitycentermanagement.v1 - .ListDescendantSecurityHealthAnalyticsCustomModulesRequest.Builder.class); + com.google.cloud.securitycentermanagement.v1.ListDescendantSecurityHealthAnalyticsCustomModulesRequest.class, com.google.cloud.securitycentermanagement.v1.ListDescendantSecurityHealthAnalyticsCustomModulesRequest.Builder.class); } - // Construct using - // com.google.cloud.securitycentermanagement.v1.ListDescendantSecurityHealthAnalyticsCustomModulesRequest.newBuilder() - private Builder() {} + // Construct using com.google.cloud.securitycentermanagement.v1.ListDescendantSecurityHealthAnalyticsCustomModulesRequest.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(); @@ -459,26 +386,19 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.securitycentermanagement.v1.SecurityCenterManagementProto - .internal_static_google_cloud_securitycentermanagement_v1_ListDescendantSecurityHealthAnalyticsCustomModulesRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.securitycentermanagement.v1.SecurityCenterManagementProto.internal_static_google_cloud_securitycentermanagement_v1_ListDescendantSecurityHealthAnalyticsCustomModulesRequest_descriptor; } @java.lang.Override - public com.google.cloud.securitycentermanagement.v1 - .ListDescendantSecurityHealthAnalyticsCustomModulesRequest - getDefaultInstanceForType() { - return com.google.cloud.securitycentermanagement.v1 - .ListDescendantSecurityHealthAnalyticsCustomModulesRequest.getDefaultInstance(); + public com.google.cloud.securitycentermanagement.v1.ListDescendantSecurityHealthAnalyticsCustomModulesRequest getDefaultInstanceForType() { + return com.google.cloud.securitycentermanagement.v1.ListDescendantSecurityHealthAnalyticsCustomModulesRequest.getDefaultInstance(); } @java.lang.Override - public com.google.cloud.securitycentermanagement.v1 - .ListDescendantSecurityHealthAnalyticsCustomModulesRequest - build() { - com.google.cloud.securitycentermanagement.v1 - .ListDescendantSecurityHealthAnalyticsCustomModulesRequest - result = buildPartial(); + public com.google.cloud.securitycentermanagement.v1.ListDescendantSecurityHealthAnalyticsCustomModulesRequest build() { + com.google.cloud.securitycentermanagement.v1.ListDescendantSecurityHealthAnalyticsCustomModulesRequest result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } @@ -486,25 +406,14 @@ public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { } @java.lang.Override - public com.google.cloud.securitycentermanagement.v1 - .ListDescendantSecurityHealthAnalyticsCustomModulesRequest - buildPartial() { - com.google.cloud.securitycentermanagement.v1 - .ListDescendantSecurityHealthAnalyticsCustomModulesRequest - result = - new com.google.cloud.securitycentermanagement.v1 - .ListDescendantSecurityHealthAnalyticsCustomModulesRequest(this); - if (bitField0_ != 0) { - buildPartial0(result); - } + public com.google.cloud.securitycentermanagement.v1.ListDescendantSecurityHealthAnalyticsCustomModulesRequest buildPartial() { + com.google.cloud.securitycentermanagement.v1.ListDescendantSecurityHealthAnalyticsCustomModulesRequest result = new com.google.cloud.securitycentermanagement.v1.ListDescendantSecurityHealthAnalyticsCustomModulesRequest(this); + if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } - private void buildPartial0( - com.google.cloud.securitycentermanagement.v1 - .ListDescendantSecurityHealthAnalyticsCustomModulesRequest - result) { + private void buildPartial0(com.google.cloud.securitycentermanagement.v1.ListDescendantSecurityHealthAnalyticsCustomModulesRequest result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000001) != 0)) { result.parent_ = parent_; @@ -521,59 +430,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.securitycentermanagement.v1 - .ListDescendantSecurityHealthAnalyticsCustomModulesRequest) { - return mergeFrom( - (com.google.cloud.securitycentermanagement.v1 - .ListDescendantSecurityHealthAnalyticsCustomModulesRequest) - other); + if (other instanceof com.google.cloud.securitycentermanagement.v1.ListDescendantSecurityHealthAnalyticsCustomModulesRequest) { + return mergeFrom((com.google.cloud.securitycentermanagement.v1.ListDescendantSecurityHealthAnalyticsCustomModulesRequest)other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom( - com.google.cloud.securitycentermanagement.v1 - .ListDescendantSecurityHealthAnalyticsCustomModulesRequest - other) { - if (other - == com.google.cloud.securitycentermanagement.v1 - .ListDescendantSecurityHealthAnalyticsCustomModulesRequest.getDefaultInstance()) - return this; + public Builder mergeFrom(com.google.cloud.securitycentermanagement.v1.ListDescendantSecurityHealthAnalyticsCustomModulesRequest other) { + if (other == com.google.cloud.securitycentermanagement.v1.ListDescendantSecurityHealthAnalyticsCustomModulesRequest.getDefaultInstance()) return this; if (!other.getParent().isEmpty()) { parent_ = other.parent_; bitField0_ |= 0x00000001; @@ -613,31 +509,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) { @@ -647,13 +539,10 @@ public Builder mergeFrom( } // finally return this; } - private int bitField0_; private java.lang.Object parent_ = ""; /** - * - * *
      * Required. Name of parent to list custom modules. Its format is
      * "organizations/{organization}/locations/{location}",
@@ -662,16 +551,14 @@ public Builder mergeFrom(
      * "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; @@ -680,8 +567,6 @@ public java.lang.String getParent() { } } /** - * - * *
      * Required. Name of parent to list custom modules. Its format is
      * "organizations/{organization}/locations/{location}",
@@ -690,17 +575,16 @@ public java.lang.String getParent() {
      * "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 { @@ -708,8 +592,6 @@ public com.google.protobuf.ByteString getParentBytes() { } } /** - * - * *
      * Required. Name of parent to list custom modules. Its format is
      * "organizations/{organization}/locations/{location}",
@@ -718,25 +600,19 @@ public com.google.protobuf.ByteString getParentBytes() {
      * "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. Name of parent to list custom modules. Its format is
      * "organizations/{organization}/locations/{location}",
@@ -745,10 +621,7 @@ public Builder setParent(java.lang.String value) {
      * "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() { @@ -758,8 +631,6 @@ public Builder clearParent() { return this; } /** - * - * *
      * Required. Name of parent to list custom modules. Its format is
      * "organizations/{organization}/locations/{location}",
@@ -768,17 +639,13 @@ public Builder clearParent() {
      * "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; @@ -786,17 +653,14 @@ public Builder setParentBytes(com.google.protobuf.ByteString value) { return this; } - private int pageSize_; + private int pageSize_ ; /** - * - * *
      * Optional. The maximum number of results to return in a single response.
      * Default is 10, minimum is 1, maximum is 1000.
      * 
* * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The pageSize. */ @java.lang.Override @@ -804,15 +668,12 @@ public int getPageSize() { return pageSize_; } /** - * - * *
      * Optional. The maximum number of results to return in a single response.
      * Default is 10, minimum is 1, maximum is 1000.
      * 
* * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @param value The pageSize to set. * @return This builder for chaining. */ @@ -824,15 +685,12 @@ public Builder setPageSize(int value) { return this; } /** - * - * *
      * Optional. The maximum number of results to return in a single response.
      * Default is 10, minimum is 1, maximum is 1000.
      * 
* * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @return This builder for chaining. */ public Builder clearPageSize() { @@ -844,20 +702,18 @@ public Builder clearPageSize() { private java.lang.Object pageToken_ = ""; /** - * - * *
      * Optional. A token identifying a page of results the server should return.
      * 
* * 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; @@ -866,21 +722,20 @@ public java.lang.String getPageToken() { } } /** - * - * *
      * Optional. A token identifying a page of results the server should return.
      * 
* * 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 { @@ -888,35 +743,28 @@ public com.google.protobuf.ByteString getPageTokenBytes() { } } /** - * - * *
      * Optional. A token identifying a page of results the server should return.
      * 
* * 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. A token identifying a page of results the server should return.
      * 
* * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @return This builder for chaining. */ public Builder clearPageToken() { @@ -926,30 +774,26 @@ public Builder clearPageToken() { return this; } /** - * - * *
      * Optional. A token identifying a page of results the server should return.
      * 
* * 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); } @@ -959,68 +803,55 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.securitycentermanagement.v1.ListDescendantSecurityHealthAnalyticsCustomModulesRequest) } // @@protoc_insertion_point(class_scope:google.cloud.securitycentermanagement.v1.ListDescendantSecurityHealthAnalyticsCustomModulesRequest) - private static final com.google.cloud.securitycentermanagement.v1 - .ListDescendantSecurityHealthAnalyticsCustomModulesRequest - DEFAULT_INSTANCE; - + private static final com.google.cloud.securitycentermanagement.v1.ListDescendantSecurityHealthAnalyticsCustomModulesRequest DEFAULT_INSTANCE; static { - DEFAULT_INSTANCE = - new com.google.cloud.securitycentermanagement.v1 - .ListDescendantSecurityHealthAnalyticsCustomModulesRequest(); + DEFAULT_INSTANCE = new com.google.cloud.securitycentermanagement.v1.ListDescendantSecurityHealthAnalyticsCustomModulesRequest(); } - public static com.google.cloud.securitycentermanagement.v1 - .ListDescendantSecurityHealthAnalyticsCustomModulesRequest - getDefaultInstance() { + public static com.google.cloud.securitycentermanagement.v1.ListDescendantSecurityHealthAnalyticsCustomModulesRequest getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser< - ListDescendantSecurityHealthAnalyticsCustomModulesRequest> - PARSER = - new com.google.protobuf.AbstractParser< - ListDescendantSecurityHealthAnalyticsCustomModulesRequest>() { - @java.lang.Override - public ListDescendantSecurityHealthAnalyticsCustomModulesRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException() - .setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListDescendantSecurityHealthAnalyticsCustomModulesRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; - public static com.google.protobuf.Parser< - ListDescendantSecurityHealthAnalyticsCustomModulesRequest> - parser() { + public static com.google.protobuf.Parser parser() { return PARSER; } @java.lang.Override - public com.google.protobuf.Parser - getParserForType() { + public com.google.protobuf.Parser getParserForType() { return PARSER; } @java.lang.Override - public com.google.cloud.securitycentermanagement.v1 - .ListDescendantSecurityHealthAnalyticsCustomModulesRequest - getDefaultInstanceForType() { + public com.google.cloud.securitycentermanagement.v1.ListDescendantSecurityHealthAnalyticsCustomModulesRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/java-securitycentermanagement/proto-google-cloud-securitycentermanagement-v1/src/main/java/com/google/cloud/securitycentermanagement/v1/ListDescendantSecurityHealthAnalyticsCustomModulesRequestOrBuilder.java b/owl-bot-staging/java-securitycentermanagement/v1/proto-google-cloud-securitycentermanagement-v1/src/main/java/com/google/cloud/securitycentermanagement/v1/ListDescendantSecurityHealthAnalyticsCustomModulesRequestOrBuilder.java similarity index 63% rename from java-securitycentermanagement/proto-google-cloud-securitycentermanagement-v1/src/main/java/com/google/cloud/securitycentermanagement/v1/ListDescendantSecurityHealthAnalyticsCustomModulesRequestOrBuilder.java rename to owl-bot-staging/java-securitycentermanagement/v1/proto-google-cloud-securitycentermanagement-v1/src/main/java/com/google/cloud/securitycentermanagement/v1/ListDescendantSecurityHealthAnalyticsCustomModulesRequestOrBuilder.java index bcefe46acd01..a9d1d2dcc876 100644 --- a/java-securitycentermanagement/proto-google-cloud-securitycentermanagement-v1/src/main/java/com/google/cloud/securitycentermanagement/v1/ListDescendantSecurityHealthAnalyticsCustomModulesRequestOrBuilder.java +++ b/owl-bot-staging/java-securitycentermanagement/v1/proto-google-cloud-securitycentermanagement-v1/src/main/java/com/google/cloud/securitycentermanagement/v1/ListDescendantSecurityHealthAnalyticsCustomModulesRequestOrBuilder.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/securitycentermanagement/v1/security_center_management.proto package com.google.cloud.securitycentermanagement.v1; -public interface ListDescendantSecurityHealthAnalyticsCustomModulesRequestOrBuilder - extends +public interface ListDescendantSecurityHealthAnalyticsCustomModulesRequestOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.securitycentermanagement.v1.ListDescendantSecurityHealthAnalyticsCustomModulesRequest) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * Required. Name of parent to list custom modules. Its format is
    * "organizations/{organization}/locations/{location}",
@@ -34,16 +16,11 @@ public interface ListDescendantSecurityHealthAnalyticsCustomModulesRequestOrBuil
    * "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. Name of parent to list custom modules. Its format is
    * "organizations/{organization}/locations/{location}",
@@ -52,50 +29,40 @@ public interface ListDescendantSecurityHealthAnalyticsCustomModulesRequestOrBuil
    * "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(); /** - * - * *
    * Optional. The maximum number of results to return in a single response.
    * Default is 10, minimum is 1, maximum is 1000.
    * 
* * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The pageSize. */ int getPageSize(); /** - * - * *
    * Optional. A token identifying a page of results the server should return.
    * 
* * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The pageToken. */ java.lang.String getPageToken(); /** - * - * *
    * Optional. A token identifying a page of results the server should return.
    * 
* * 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-securitycentermanagement/v1/proto-google-cloud-securitycentermanagement-v1/src/main/java/com/google/cloud/securitycentermanagement/v1/ListDescendantSecurityHealthAnalyticsCustomModulesResponse.java b/owl-bot-staging/java-securitycentermanagement/v1/proto-google-cloud-securitycentermanagement-v1/src/main/java/com/google/cloud/securitycentermanagement/v1/ListDescendantSecurityHealthAnalyticsCustomModulesResponse.java new file mode 100644 index 000000000000..45da4159c238 --- /dev/null +++ b/owl-bot-staging/java-securitycentermanagement/v1/proto-google-cloud-securitycentermanagement-v1/src/main/java/com/google/cloud/securitycentermanagement/v1/ListDescendantSecurityHealthAnalyticsCustomModulesResponse.java @@ -0,0 +1,1025 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/securitycentermanagement/v1/security_center_management.proto + +package com.google.cloud.securitycentermanagement.v1; + +/** + *
+ * Response message for listing descendant Security Health Analytics custom
+ * modules.
+ * 
+ * + * Protobuf type {@code google.cloud.securitycentermanagement.v1.ListDescendantSecurityHealthAnalyticsCustomModulesResponse} + */ +public final class ListDescendantSecurityHealthAnalyticsCustomModulesResponse extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:google.cloud.securitycentermanagement.v1.ListDescendantSecurityHealthAnalyticsCustomModulesResponse) + ListDescendantSecurityHealthAnalyticsCustomModulesResponseOrBuilder { +private static final long serialVersionUID = 0L; + // Use ListDescendantSecurityHealthAnalyticsCustomModulesResponse.newBuilder() to construct. + private ListDescendantSecurityHealthAnalyticsCustomModulesResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private ListDescendantSecurityHealthAnalyticsCustomModulesResponse() { + securityHealthAnalyticsCustomModules_ = java.util.Collections.emptyList(); + nextPageToken_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new ListDescendantSecurityHealthAnalyticsCustomModulesResponse(); + } + + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.securitycentermanagement.v1.SecurityCenterManagementProto.internal_static_google_cloud_securitycentermanagement_v1_ListDescendantSecurityHealthAnalyticsCustomModulesResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.securitycentermanagement.v1.SecurityCenterManagementProto.internal_static_google_cloud_securitycentermanagement_v1_ListDescendantSecurityHealthAnalyticsCustomModulesResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.securitycentermanagement.v1.ListDescendantSecurityHealthAnalyticsCustomModulesResponse.class, com.google.cloud.securitycentermanagement.v1.ListDescendantSecurityHealthAnalyticsCustomModulesResponse.Builder.class); + } + + public static final int SECURITY_HEALTH_ANALYTICS_CUSTOM_MODULES_FIELD_NUMBER = 1; + @SuppressWarnings("serial") + private java.util.List securityHealthAnalyticsCustomModules_; + /** + *
+   * The list of SecurityHealthAnalyticsCustomModules
+   * 
+ * + * repeated .google.cloud.securitycentermanagement.v1.SecurityHealthAnalyticsCustomModule security_health_analytics_custom_modules = 1; + */ + @java.lang.Override + public java.util.List getSecurityHealthAnalyticsCustomModulesList() { + return securityHealthAnalyticsCustomModules_; + } + /** + *
+   * The list of SecurityHealthAnalyticsCustomModules
+   * 
+ * + * repeated .google.cloud.securitycentermanagement.v1.SecurityHealthAnalyticsCustomModule security_health_analytics_custom_modules = 1; + */ + @java.lang.Override + public java.util.List + getSecurityHealthAnalyticsCustomModulesOrBuilderList() { + return securityHealthAnalyticsCustomModules_; + } + /** + *
+   * The list of SecurityHealthAnalyticsCustomModules
+   * 
+ * + * repeated .google.cloud.securitycentermanagement.v1.SecurityHealthAnalyticsCustomModule security_health_analytics_custom_modules = 1; + */ + @java.lang.Override + public int getSecurityHealthAnalyticsCustomModulesCount() { + return securityHealthAnalyticsCustomModules_.size(); + } + /** + *
+   * The list of SecurityHealthAnalyticsCustomModules
+   * 
+ * + * repeated .google.cloud.securitycentermanagement.v1.SecurityHealthAnalyticsCustomModule security_health_analytics_custom_modules = 1; + */ + @java.lang.Override + public com.google.cloud.securitycentermanagement.v1.SecurityHealthAnalyticsCustomModule getSecurityHealthAnalyticsCustomModules(int index) { + return securityHealthAnalyticsCustomModules_.get(index); + } + /** + *
+   * The list of SecurityHealthAnalyticsCustomModules
+   * 
+ * + * repeated .google.cloud.securitycentermanagement.v1.SecurityHealthAnalyticsCustomModule security_health_analytics_custom_modules = 1; + */ + @java.lang.Override + public com.google.cloud.securitycentermanagement.v1.SecurityHealthAnalyticsCustomModuleOrBuilder getSecurityHealthAnalyticsCustomModulesOrBuilder( + int index) { + return securityHealthAnalyticsCustomModules_.get(index); + } + + public static final int NEXT_PAGE_TOKEN_FIELD_NUMBER = 2; + @SuppressWarnings("serial") + private volatile java.lang.Object nextPageToken_ = ""; + /** + *
+   * A token identifying a page of results the server should return.
+   * 
+ * + * string next_page_token = 2; + * @return The nextPageToken. + */ + @java.lang.Override + public java.lang.String getNextPageToken() { + java.lang.Object ref = nextPageToken_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + nextPageToken_ = s; + return s; + } + } + /** + *
+   * A token identifying a page of results the server should return.
+   * 
+ * + * string next_page_token = 2; + * @return The bytes for nextPageToken. + */ + @java.lang.Override + 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); + nextPageToken_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + for (int i = 0; i < securityHealthAnalyticsCustomModules_.size(); i++) { + output.writeMessage(1, securityHealthAnalyticsCustomModules_.get(i)); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(nextPageToken_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, nextPageToken_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + for (int i = 0; i < securityHealthAnalyticsCustomModules_.size(); i++) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, securityHealthAnalyticsCustomModules_.get(i)); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(nextPageToken_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, nextPageToken_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.securitycentermanagement.v1.ListDescendantSecurityHealthAnalyticsCustomModulesResponse)) { + return super.equals(obj); + } + com.google.cloud.securitycentermanagement.v1.ListDescendantSecurityHealthAnalyticsCustomModulesResponse other = (com.google.cloud.securitycentermanagement.v1.ListDescendantSecurityHealthAnalyticsCustomModulesResponse) obj; + + if (!getSecurityHealthAnalyticsCustomModulesList() + .equals(other.getSecurityHealthAnalyticsCustomModulesList())) return false; + if (!getNextPageToken() + .equals(other.getNextPageToken())) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (getSecurityHealthAnalyticsCustomModulesCount() > 0) { + hash = (37 * hash) + SECURITY_HEALTH_ANALYTICS_CUSTOM_MODULES_FIELD_NUMBER; + hash = (53 * hash) + getSecurityHealthAnalyticsCustomModulesList().hashCode(); + } + hash = (37 * hash) + NEXT_PAGE_TOKEN_FIELD_NUMBER; + hash = (53 * hash) + getNextPageToken().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.securitycentermanagement.v1.ListDescendantSecurityHealthAnalyticsCustomModulesResponse parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.cloud.securitycentermanagement.v1.ListDescendantSecurityHealthAnalyticsCustomModulesResponse 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.securitycentermanagement.v1.ListDescendantSecurityHealthAnalyticsCustomModulesResponse parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.cloud.securitycentermanagement.v1.ListDescendantSecurityHealthAnalyticsCustomModulesResponse parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.cloud.securitycentermanagement.v1.ListDescendantSecurityHealthAnalyticsCustomModulesResponse parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.cloud.securitycentermanagement.v1.ListDescendantSecurityHealthAnalyticsCustomModulesResponse parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.cloud.securitycentermanagement.v1.ListDescendantSecurityHealthAnalyticsCustomModulesResponse parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.google.cloud.securitycentermanagement.v1.ListDescendantSecurityHealthAnalyticsCustomModulesResponse 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.securitycentermanagement.v1.ListDescendantSecurityHealthAnalyticsCustomModulesResponse parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.securitycentermanagement.v1.ListDescendantSecurityHealthAnalyticsCustomModulesResponse parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static com.google.cloud.securitycentermanagement.v1.ListDescendantSecurityHealthAnalyticsCustomModulesResponse parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.google.cloud.securitycentermanagement.v1.ListDescendantSecurityHealthAnalyticsCustomModulesResponse 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.securitycentermanagement.v1.ListDescendantSecurityHealthAnalyticsCustomModulesResponse prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + *
+   * Response message for listing descendant Security Health Analytics custom
+   * modules.
+   * 
+ * + * Protobuf type {@code google.cloud.securitycentermanagement.v1.ListDescendantSecurityHealthAnalyticsCustomModulesResponse} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:google.cloud.securitycentermanagement.v1.ListDescendantSecurityHealthAnalyticsCustomModulesResponse) + com.google.cloud.securitycentermanagement.v1.ListDescendantSecurityHealthAnalyticsCustomModulesResponseOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.securitycentermanagement.v1.SecurityCenterManagementProto.internal_static_google_cloud_securitycentermanagement_v1_ListDescendantSecurityHealthAnalyticsCustomModulesResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.securitycentermanagement.v1.SecurityCenterManagementProto.internal_static_google_cloud_securitycentermanagement_v1_ListDescendantSecurityHealthAnalyticsCustomModulesResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.securitycentermanagement.v1.ListDescendantSecurityHealthAnalyticsCustomModulesResponse.class, com.google.cloud.securitycentermanagement.v1.ListDescendantSecurityHealthAnalyticsCustomModulesResponse.Builder.class); + } + + // Construct using com.google.cloud.securitycentermanagement.v1.ListDescendantSecurityHealthAnalyticsCustomModulesResponse.newBuilder() + private Builder() { + + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + if (securityHealthAnalyticsCustomModulesBuilder_ == null) { + securityHealthAnalyticsCustomModules_ = java.util.Collections.emptyList(); + } else { + securityHealthAnalyticsCustomModules_ = null; + securityHealthAnalyticsCustomModulesBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000001); + nextPageToken_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.securitycentermanagement.v1.SecurityCenterManagementProto.internal_static_google_cloud_securitycentermanagement_v1_ListDescendantSecurityHealthAnalyticsCustomModulesResponse_descriptor; + } + + @java.lang.Override + public com.google.cloud.securitycentermanagement.v1.ListDescendantSecurityHealthAnalyticsCustomModulesResponse getDefaultInstanceForType() { + return com.google.cloud.securitycentermanagement.v1.ListDescendantSecurityHealthAnalyticsCustomModulesResponse.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.securitycentermanagement.v1.ListDescendantSecurityHealthAnalyticsCustomModulesResponse build() { + com.google.cloud.securitycentermanagement.v1.ListDescendantSecurityHealthAnalyticsCustomModulesResponse result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.securitycentermanagement.v1.ListDescendantSecurityHealthAnalyticsCustomModulesResponse buildPartial() { + com.google.cloud.securitycentermanagement.v1.ListDescendantSecurityHealthAnalyticsCustomModulesResponse result = new com.google.cloud.securitycentermanagement.v1.ListDescendantSecurityHealthAnalyticsCustomModulesResponse(this); + buildPartialRepeatedFields(result); + if (bitField0_ != 0) { buildPartial0(result); } + onBuilt(); + return result; + } + + private void buildPartialRepeatedFields(com.google.cloud.securitycentermanagement.v1.ListDescendantSecurityHealthAnalyticsCustomModulesResponse result) { + if (securityHealthAnalyticsCustomModulesBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0)) { + securityHealthAnalyticsCustomModules_ = java.util.Collections.unmodifiableList(securityHealthAnalyticsCustomModules_); + bitField0_ = (bitField0_ & ~0x00000001); + } + result.securityHealthAnalyticsCustomModules_ = securityHealthAnalyticsCustomModules_; + } else { + result.securityHealthAnalyticsCustomModules_ = securityHealthAnalyticsCustomModulesBuilder_.build(); + } + } + + private void buildPartial0(com.google.cloud.securitycentermanagement.v1.ListDescendantSecurityHealthAnalyticsCustomModulesResponse result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000002) != 0)) { + result.nextPageToken_ = nextPageToken_; + } + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.securitycentermanagement.v1.ListDescendantSecurityHealthAnalyticsCustomModulesResponse) { + return mergeFrom((com.google.cloud.securitycentermanagement.v1.ListDescendantSecurityHealthAnalyticsCustomModulesResponse)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.securitycentermanagement.v1.ListDescendantSecurityHealthAnalyticsCustomModulesResponse other) { + if (other == com.google.cloud.securitycentermanagement.v1.ListDescendantSecurityHealthAnalyticsCustomModulesResponse.getDefaultInstance()) return this; + if (securityHealthAnalyticsCustomModulesBuilder_ == null) { + if (!other.securityHealthAnalyticsCustomModules_.isEmpty()) { + if (securityHealthAnalyticsCustomModules_.isEmpty()) { + securityHealthAnalyticsCustomModules_ = other.securityHealthAnalyticsCustomModules_; + bitField0_ = (bitField0_ & ~0x00000001); + } else { + ensureSecurityHealthAnalyticsCustomModulesIsMutable(); + securityHealthAnalyticsCustomModules_.addAll(other.securityHealthAnalyticsCustomModules_); + } + onChanged(); + } + } else { + if (!other.securityHealthAnalyticsCustomModules_.isEmpty()) { + if (securityHealthAnalyticsCustomModulesBuilder_.isEmpty()) { + securityHealthAnalyticsCustomModulesBuilder_.dispose(); + securityHealthAnalyticsCustomModulesBuilder_ = null; + securityHealthAnalyticsCustomModules_ = other.securityHealthAnalyticsCustomModules_; + bitField0_ = (bitField0_ & ~0x00000001); + securityHealthAnalyticsCustomModulesBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? + getSecurityHealthAnalyticsCustomModulesFieldBuilder() : null; + } else { + securityHealthAnalyticsCustomModulesBuilder_.addAllMessages(other.securityHealthAnalyticsCustomModules_); + } + } + } + if (!other.getNextPageToken().isEmpty()) { + nextPageToken_ = other.nextPageToken_; + bitField0_ |= 0x00000002; + onChanged(); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + com.google.cloud.securitycentermanagement.v1.SecurityHealthAnalyticsCustomModule m = + input.readMessage( + com.google.cloud.securitycentermanagement.v1.SecurityHealthAnalyticsCustomModule.parser(), + extensionRegistry); + if (securityHealthAnalyticsCustomModulesBuilder_ == null) { + ensureSecurityHealthAnalyticsCustomModulesIsMutable(); + securityHealthAnalyticsCustomModules_.add(m); + } else { + securityHealthAnalyticsCustomModulesBuilder_.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) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + private int bitField0_; + + private java.util.List securityHealthAnalyticsCustomModules_ = + java.util.Collections.emptyList(); + private void ensureSecurityHealthAnalyticsCustomModulesIsMutable() { + if (!((bitField0_ & 0x00000001) != 0)) { + securityHealthAnalyticsCustomModules_ = new java.util.ArrayList(securityHealthAnalyticsCustomModules_); + bitField0_ |= 0x00000001; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.securitycentermanagement.v1.SecurityHealthAnalyticsCustomModule, com.google.cloud.securitycentermanagement.v1.SecurityHealthAnalyticsCustomModule.Builder, com.google.cloud.securitycentermanagement.v1.SecurityHealthAnalyticsCustomModuleOrBuilder> securityHealthAnalyticsCustomModulesBuilder_; + + /** + *
+     * The list of SecurityHealthAnalyticsCustomModules
+     * 
+ * + * repeated .google.cloud.securitycentermanagement.v1.SecurityHealthAnalyticsCustomModule security_health_analytics_custom_modules = 1; + */ + public java.util.List getSecurityHealthAnalyticsCustomModulesList() { + if (securityHealthAnalyticsCustomModulesBuilder_ == null) { + return java.util.Collections.unmodifiableList(securityHealthAnalyticsCustomModules_); + } else { + return securityHealthAnalyticsCustomModulesBuilder_.getMessageList(); + } + } + /** + *
+     * The list of SecurityHealthAnalyticsCustomModules
+     * 
+ * + * repeated .google.cloud.securitycentermanagement.v1.SecurityHealthAnalyticsCustomModule security_health_analytics_custom_modules = 1; + */ + public int getSecurityHealthAnalyticsCustomModulesCount() { + if (securityHealthAnalyticsCustomModulesBuilder_ == null) { + return securityHealthAnalyticsCustomModules_.size(); + } else { + return securityHealthAnalyticsCustomModulesBuilder_.getCount(); + } + } + /** + *
+     * The list of SecurityHealthAnalyticsCustomModules
+     * 
+ * + * repeated .google.cloud.securitycentermanagement.v1.SecurityHealthAnalyticsCustomModule security_health_analytics_custom_modules = 1; + */ + public com.google.cloud.securitycentermanagement.v1.SecurityHealthAnalyticsCustomModule getSecurityHealthAnalyticsCustomModules(int index) { + if (securityHealthAnalyticsCustomModulesBuilder_ == null) { + return securityHealthAnalyticsCustomModules_.get(index); + } else { + return securityHealthAnalyticsCustomModulesBuilder_.getMessage(index); + } + } + /** + *
+     * The list of SecurityHealthAnalyticsCustomModules
+     * 
+ * + * repeated .google.cloud.securitycentermanagement.v1.SecurityHealthAnalyticsCustomModule security_health_analytics_custom_modules = 1; + */ + public Builder setSecurityHealthAnalyticsCustomModules( + int index, com.google.cloud.securitycentermanagement.v1.SecurityHealthAnalyticsCustomModule value) { + if (securityHealthAnalyticsCustomModulesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureSecurityHealthAnalyticsCustomModulesIsMutable(); + securityHealthAnalyticsCustomModules_.set(index, value); + onChanged(); + } else { + securityHealthAnalyticsCustomModulesBuilder_.setMessage(index, value); + } + return this; + } + /** + *
+     * The list of SecurityHealthAnalyticsCustomModules
+     * 
+ * + * repeated .google.cloud.securitycentermanagement.v1.SecurityHealthAnalyticsCustomModule security_health_analytics_custom_modules = 1; + */ + public Builder setSecurityHealthAnalyticsCustomModules( + int index, com.google.cloud.securitycentermanagement.v1.SecurityHealthAnalyticsCustomModule.Builder builderForValue) { + if (securityHealthAnalyticsCustomModulesBuilder_ == null) { + ensureSecurityHealthAnalyticsCustomModulesIsMutable(); + securityHealthAnalyticsCustomModules_.set(index, builderForValue.build()); + onChanged(); + } else { + securityHealthAnalyticsCustomModulesBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + /** + *
+     * The list of SecurityHealthAnalyticsCustomModules
+     * 
+ * + * repeated .google.cloud.securitycentermanagement.v1.SecurityHealthAnalyticsCustomModule security_health_analytics_custom_modules = 1; + */ + public Builder addSecurityHealthAnalyticsCustomModules(com.google.cloud.securitycentermanagement.v1.SecurityHealthAnalyticsCustomModule value) { + if (securityHealthAnalyticsCustomModulesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureSecurityHealthAnalyticsCustomModulesIsMutable(); + securityHealthAnalyticsCustomModules_.add(value); + onChanged(); + } else { + securityHealthAnalyticsCustomModulesBuilder_.addMessage(value); + } + return this; + } + /** + *
+     * The list of SecurityHealthAnalyticsCustomModules
+     * 
+ * + * repeated .google.cloud.securitycentermanagement.v1.SecurityHealthAnalyticsCustomModule security_health_analytics_custom_modules = 1; + */ + public Builder addSecurityHealthAnalyticsCustomModules( + int index, com.google.cloud.securitycentermanagement.v1.SecurityHealthAnalyticsCustomModule value) { + if (securityHealthAnalyticsCustomModulesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureSecurityHealthAnalyticsCustomModulesIsMutable(); + securityHealthAnalyticsCustomModules_.add(index, value); + onChanged(); + } else { + securityHealthAnalyticsCustomModulesBuilder_.addMessage(index, value); + } + return this; + } + /** + *
+     * The list of SecurityHealthAnalyticsCustomModules
+     * 
+ * + * repeated .google.cloud.securitycentermanagement.v1.SecurityHealthAnalyticsCustomModule security_health_analytics_custom_modules = 1; + */ + public Builder addSecurityHealthAnalyticsCustomModules( + com.google.cloud.securitycentermanagement.v1.SecurityHealthAnalyticsCustomModule.Builder builderForValue) { + if (securityHealthAnalyticsCustomModulesBuilder_ == null) { + ensureSecurityHealthAnalyticsCustomModulesIsMutable(); + securityHealthAnalyticsCustomModules_.add(builderForValue.build()); + onChanged(); + } else { + securityHealthAnalyticsCustomModulesBuilder_.addMessage(builderForValue.build()); + } + return this; + } + /** + *
+     * The list of SecurityHealthAnalyticsCustomModules
+     * 
+ * + * repeated .google.cloud.securitycentermanagement.v1.SecurityHealthAnalyticsCustomModule security_health_analytics_custom_modules = 1; + */ + public Builder addSecurityHealthAnalyticsCustomModules( + int index, com.google.cloud.securitycentermanagement.v1.SecurityHealthAnalyticsCustomModule.Builder builderForValue) { + if (securityHealthAnalyticsCustomModulesBuilder_ == null) { + ensureSecurityHealthAnalyticsCustomModulesIsMutable(); + securityHealthAnalyticsCustomModules_.add(index, builderForValue.build()); + onChanged(); + } else { + securityHealthAnalyticsCustomModulesBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + /** + *
+     * The list of SecurityHealthAnalyticsCustomModules
+     * 
+ * + * repeated .google.cloud.securitycentermanagement.v1.SecurityHealthAnalyticsCustomModule security_health_analytics_custom_modules = 1; + */ + public Builder addAllSecurityHealthAnalyticsCustomModules( + java.lang.Iterable values) { + if (securityHealthAnalyticsCustomModulesBuilder_ == null) { + ensureSecurityHealthAnalyticsCustomModulesIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, securityHealthAnalyticsCustomModules_); + onChanged(); + } else { + securityHealthAnalyticsCustomModulesBuilder_.addAllMessages(values); + } + return this; + } + /** + *
+     * The list of SecurityHealthAnalyticsCustomModules
+     * 
+ * + * repeated .google.cloud.securitycentermanagement.v1.SecurityHealthAnalyticsCustomModule security_health_analytics_custom_modules = 1; + */ + public Builder clearSecurityHealthAnalyticsCustomModules() { + if (securityHealthAnalyticsCustomModulesBuilder_ == null) { + securityHealthAnalyticsCustomModules_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + } else { + securityHealthAnalyticsCustomModulesBuilder_.clear(); + } + return this; + } + /** + *
+     * The list of SecurityHealthAnalyticsCustomModules
+     * 
+ * + * repeated .google.cloud.securitycentermanagement.v1.SecurityHealthAnalyticsCustomModule security_health_analytics_custom_modules = 1; + */ + public Builder removeSecurityHealthAnalyticsCustomModules(int index) { + if (securityHealthAnalyticsCustomModulesBuilder_ == null) { + ensureSecurityHealthAnalyticsCustomModulesIsMutable(); + securityHealthAnalyticsCustomModules_.remove(index); + onChanged(); + } else { + securityHealthAnalyticsCustomModulesBuilder_.remove(index); + } + return this; + } + /** + *
+     * The list of SecurityHealthAnalyticsCustomModules
+     * 
+ * + * repeated .google.cloud.securitycentermanagement.v1.SecurityHealthAnalyticsCustomModule security_health_analytics_custom_modules = 1; + */ + public com.google.cloud.securitycentermanagement.v1.SecurityHealthAnalyticsCustomModule.Builder getSecurityHealthAnalyticsCustomModulesBuilder( + int index) { + return getSecurityHealthAnalyticsCustomModulesFieldBuilder().getBuilder(index); + } + /** + *
+     * The list of SecurityHealthAnalyticsCustomModules
+     * 
+ * + * repeated .google.cloud.securitycentermanagement.v1.SecurityHealthAnalyticsCustomModule security_health_analytics_custom_modules = 1; + */ + public com.google.cloud.securitycentermanagement.v1.SecurityHealthAnalyticsCustomModuleOrBuilder getSecurityHealthAnalyticsCustomModulesOrBuilder( + int index) { + if (securityHealthAnalyticsCustomModulesBuilder_ == null) { + return securityHealthAnalyticsCustomModules_.get(index); } else { + return securityHealthAnalyticsCustomModulesBuilder_.getMessageOrBuilder(index); + } + } + /** + *
+     * The list of SecurityHealthAnalyticsCustomModules
+     * 
+ * + * repeated .google.cloud.securitycentermanagement.v1.SecurityHealthAnalyticsCustomModule security_health_analytics_custom_modules = 1; + */ + public java.util.List + getSecurityHealthAnalyticsCustomModulesOrBuilderList() { + if (securityHealthAnalyticsCustomModulesBuilder_ != null) { + return securityHealthAnalyticsCustomModulesBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(securityHealthAnalyticsCustomModules_); + } + } + /** + *
+     * The list of SecurityHealthAnalyticsCustomModules
+     * 
+ * + * repeated .google.cloud.securitycentermanagement.v1.SecurityHealthAnalyticsCustomModule security_health_analytics_custom_modules = 1; + */ + public com.google.cloud.securitycentermanagement.v1.SecurityHealthAnalyticsCustomModule.Builder addSecurityHealthAnalyticsCustomModulesBuilder() { + return getSecurityHealthAnalyticsCustomModulesFieldBuilder().addBuilder( + com.google.cloud.securitycentermanagement.v1.SecurityHealthAnalyticsCustomModule.getDefaultInstance()); + } + /** + *
+     * The list of SecurityHealthAnalyticsCustomModules
+     * 
+ * + * repeated .google.cloud.securitycentermanagement.v1.SecurityHealthAnalyticsCustomModule security_health_analytics_custom_modules = 1; + */ + public com.google.cloud.securitycentermanagement.v1.SecurityHealthAnalyticsCustomModule.Builder addSecurityHealthAnalyticsCustomModulesBuilder( + int index) { + return getSecurityHealthAnalyticsCustomModulesFieldBuilder().addBuilder( + index, com.google.cloud.securitycentermanagement.v1.SecurityHealthAnalyticsCustomModule.getDefaultInstance()); + } + /** + *
+     * The list of SecurityHealthAnalyticsCustomModules
+     * 
+ * + * repeated .google.cloud.securitycentermanagement.v1.SecurityHealthAnalyticsCustomModule security_health_analytics_custom_modules = 1; + */ + public java.util.List + getSecurityHealthAnalyticsCustomModulesBuilderList() { + return getSecurityHealthAnalyticsCustomModulesFieldBuilder().getBuilderList(); + } + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.securitycentermanagement.v1.SecurityHealthAnalyticsCustomModule, com.google.cloud.securitycentermanagement.v1.SecurityHealthAnalyticsCustomModule.Builder, com.google.cloud.securitycentermanagement.v1.SecurityHealthAnalyticsCustomModuleOrBuilder> + getSecurityHealthAnalyticsCustomModulesFieldBuilder() { + if (securityHealthAnalyticsCustomModulesBuilder_ == null) { + securityHealthAnalyticsCustomModulesBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.securitycentermanagement.v1.SecurityHealthAnalyticsCustomModule, com.google.cloud.securitycentermanagement.v1.SecurityHealthAnalyticsCustomModule.Builder, com.google.cloud.securitycentermanagement.v1.SecurityHealthAnalyticsCustomModuleOrBuilder>( + securityHealthAnalyticsCustomModules_, + ((bitField0_ & 0x00000001) != 0), + getParentForChildren(), + isClean()); + securityHealthAnalyticsCustomModules_ = null; + } + return securityHealthAnalyticsCustomModulesBuilder_; + } + + private java.lang.Object nextPageToken_ = ""; + /** + *
+     * A token identifying a page of results the server should return.
+     * 
+ * + * 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; + java.lang.String s = bs.toStringUtf8(); + nextPageToken_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+     * A token identifying a page of results the server should return.
+     * 
+ * + * string next_page_token = 2; + * @return The bytes for nextPageToken. + */ + 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); + nextPageToken_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+     * A token identifying a page of results the server should return.
+     * 
+ * + * 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(); } + nextPageToken_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + *
+     * A token identifying a page of results the server should return.
+     * 
+ * + * string next_page_token = 2; + * @return This builder for chaining. + */ + public Builder clearNextPageToken() { + nextPageToken_ = getDefaultInstance().getNextPageToken(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + /** + *
+     * A token identifying a page of results the server should return.
+     * 
+ * + * 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(); } + checkByteStringIsUtf8(value); + nextPageToken_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:google.cloud.securitycentermanagement.v1.ListDescendantSecurityHealthAnalyticsCustomModulesResponse) + } + + // @@protoc_insertion_point(class_scope:google.cloud.securitycentermanagement.v1.ListDescendantSecurityHealthAnalyticsCustomModulesResponse) + private static final com.google.cloud.securitycentermanagement.v1.ListDescendantSecurityHealthAnalyticsCustomModulesResponse DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new com.google.cloud.securitycentermanagement.v1.ListDescendantSecurityHealthAnalyticsCustomModulesResponse(); + } + + public static com.google.cloud.securitycentermanagement.v1.ListDescendantSecurityHealthAnalyticsCustomModulesResponse getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListDescendantSecurityHealthAnalyticsCustomModulesResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.securitycentermanagement.v1.ListDescendantSecurityHealthAnalyticsCustomModulesResponse getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + +} + diff --git a/owl-bot-staging/java-securitycentermanagement/v1/proto-google-cloud-securitycentermanagement-v1/src/main/java/com/google/cloud/securitycentermanagement/v1/ListDescendantSecurityHealthAnalyticsCustomModulesResponseOrBuilder.java b/owl-bot-staging/java-securitycentermanagement/v1/proto-google-cloud-securitycentermanagement-v1/src/main/java/com/google/cloud/securitycentermanagement/v1/ListDescendantSecurityHealthAnalyticsCustomModulesResponseOrBuilder.java new file mode 100644 index 000000000000..39739b59f33c --- /dev/null +++ b/owl-bot-staging/java-securitycentermanagement/v1/proto-google-cloud-securitycentermanagement-v1/src/main/java/com/google/cloud/securitycentermanagement/v1/ListDescendantSecurityHealthAnalyticsCustomModulesResponseOrBuilder.java @@ -0,0 +1,73 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/securitycentermanagement/v1/security_center_management.proto + +package com.google.cloud.securitycentermanagement.v1; + +public interface ListDescendantSecurityHealthAnalyticsCustomModulesResponseOrBuilder extends + // @@protoc_insertion_point(interface_extends:google.cloud.securitycentermanagement.v1.ListDescendantSecurityHealthAnalyticsCustomModulesResponse) + com.google.protobuf.MessageOrBuilder { + + /** + *
+   * The list of SecurityHealthAnalyticsCustomModules
+   * 
+ * + * repeated .google.cloud.securitycentermanagement.v1.SecurityHealthAnalyticsCustomModule security_health_analytics_custom_modules = 1; + */ + java.util.List + getSecurityHealthAnalyticsCustomModulesList(); + /** + *
+   * The list of SecurityHealthAnalyticsCustomModules
+   * 
+ * + * repeated .google.cloud.securitycentermanagement.v1.SecurityHealthAnalyticsCustomModule security_health_analytics_custom_modules = 1; + */ + com.google.cloud.securitycentermanagement.v1.SecurityHealthAnalyticsCustomModule getSecurityHealthAnalyticsCustomModules(int index); + /** + *
+   * The list of SecurityHealthAnalyticsCustomModules
+   * 
+ * + * repeated .google.cloud.securitycentermanagement.v1.SecurityHealthAnalyticsCustomModule security_health_analytics_custom_modules = 1; + */ + int getSecurityHealthAnalyticsCustomModulesCount(); + /** + *
+   * The list of SecurityHealthAnalyticsCustomModules
+   * 
+ * + * repeated .google.cloud.securitycentermanagement.v1.SecurityHealthAnalyticsCustomModule security_health_analytics_custom_modules = 1; + */ + java.util.List + getSecurityHealthAnalyticsCustomModulesOrBuilderList(); + /** + *
+   * The list of SecurityHealthAnalyticsCustomModules
+   * 
+ * + * repeated .google.cloud.securitycentermanagement.v1.SecurityHealthAnalyticsCustomModule security_health_analytics_custom_modules = 1; + */ + com.google.cloud.securitycentermanagement.v1.SecurityHealthAnalyticsCustomModuleOrBuilder getSecurityHealthAnalyticsCustomModulesOrBuilder( + int index); + + /** + *
+   * A token identifying a page of results the server should return.
+   * 
+ * + * string next_page_token = 2; + * @return The nextPageToken. + */ + java.lang.String getNextPageToken(); + /** + *
+   * A token identifying a page of results the server should return.
+   * 
+ * + * string next_page_token = 2; + * @return The bytes for nextPageToken. + */ + com.google.protobuf.ByteString + getNextPageTokenBytes(); +} diff --git a/java-securitycentermanagement/proto-google-cloud-securitycentermanagement-v1/src/main/java/com/google/cloud/securitycentermanagement/v1/ListEffectiveEventThreatDetectionCustomModulesRequest.java b/owl-bot-staging/java-securitycentermanagement/v1/proto-google-cloud-securitycentermanagement-v1/src/main/java/com/google/cloud/securitycentermanagement/v1/ListEffectiveEventThreatDetectionCustomModulesRequest.java similarity index 52% rename from java-securitycentermanagement/proto-google-cloud-securitycentermanagement-v1/src/main/java/com/google/cloud/securitycentermanagement/v1/ListEffectiveEventThreatDetectionCustomModulesRequest.java rename to owl-bot-staging/java-securitycentermanagement/v1/proto-google-cloud-securitycentermanagement-v1/src/main/java/com/google/cloud/securitycentermanagement/v1/ListEffectiveEventThreatDetectionCustomModulesRequest.java index 37f81387c2e4..efc717840467 100644 --- a/java-securitycentermanagement/proto-google-cloud-securitycentermanagement-v1/src/main/java/com/google/cloud/securitycentermanagement/v1/ListEffectiveEventThreatDetectionCustomModulesRequest.java +++ b/owl-bot-staging/java-securitycentermanagement/v1/proto-google-cloud-securitycentermanagement-v1/src/main/java/com/google/cloud/securitycentermanagement/v1/ListEffectiveEventThreatDetectionCustomModulesRequest.java @@ -1,46 +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. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/securitycentermanagement/v1/security_center_management.proto package com.google.cloud.securitycentermanagement.v1; /** - * - * *
  * Request message for listing effective Event Threat Detection custom
  * modules.
  * 
* - * Protobuf type {@code - * google.cloud.securitycentermanagement.v1.ListEffectiveEventThreatDetectionCustomModulesRequest} + * Protobuf type {@code google.cloud.securitycentermanagement.v1.ListEffectiveEventThreatDetectionCustomModulesRequest} */ -public final class ListEffectiveEventThreatDetectionCustomModulesRequest - extends com.google.protobuf.GeneratedMessageV3 - implements +public final class ListEffectiveEventThreatDetectionCustomModulesRequest extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.securitycentermanagement.v1.ListEffectiveEventThreatDetectionCustomModulesRequest) ListEffectiveEventThreatDetectionCustomModulesRequestOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use ListEffectiveEventThreatDetectionCustomModulesRequest.newBuilder() to construct. - private ListEffectiveEventThreatDetectionCustomModulesRequest( - com.google.protobuf.GeneratedMessageV3.Builder builder) { + private ListEffectiveEventThreatDetectionCustomModulesRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private ListEffectiveEventThreatDetectionCustomModulesRequest() { parent_ = ""; pageToken_ = ""; @@ -48,34 +27,28 @@ private ListEffectiveEventThreatDetectionCustomModulesRequest() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new ListEffectiveEventThreatDetectionCustomModulesRequest(); } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.securitycentermanagement.v1.SecurityCenterManagementProto - .internal_static_google_cloud_securitycentermanagement_v1_ListEffectiveEventThreatDetectionCustomModulesRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.securitycentermanagement.v1.SecurityCenterManagementProto.internal_static_google_cloud_securitycentermanagement_v1_ListEffectiveEventThreatDetectionCustomModulesRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.securitycentermanagement.v1.SecurityCenterManagementProto - .internal_static_google_cloud_securitycentermanagement_v1_ListEffectiveEventThreatDetectionCustomModulesRequest_fieldAccessorTable + return com.google.cloud.securitycentermanagement.v1.SecurityCenterManagementProto.internal_static_google_cloud_securitycentermanagement_v1_ListEffectiveEventThreatDetectionCustomModulesRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.securitycentermanagement.v1 - .ListEffectiveEventThreatDetectionCustomModulesRequest.class, - com.google.cloud.securitycentermanagement.v1 - .ListEffectiveEventThreatDetectionCustomModulesRequest.Builder.class); + com.google.cloud.securitycentermanagement.v1.ListEffectiveEventThreatDetectionCustomModulesRequest.class, com.google.cloud.securitycentermanagement.v1.ListEffectiveEventThreatDetectionCustomModulesRequest.Builder.class); } public static final int PARENT_FIELD_NUMBER = 1; - @SuppressWarnings("serial") private volatile java.lang.Object parent_ = ""; /** - * - * *
    * Required. Name of parent to list effective custom modules. Its format is
    * "organizations/{organization}/locations/{location}",
@@ -84,10 +57,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
    * "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 @@ -96,15 +66,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. Name of parent to list effective custom modules. Its format is
    * "organizations/{organization}/locations/{location}",
@@ -113,18 +82,17 @@ public java.lang.String getParent() {
    * "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 { @@ -135,15 +103,12 @@ public com.google.protobuf.ByteString getParentBytes() { public static final int PAGE_SIZE_FIELD_NUMBER = 2; private int pageSize_ = 0; /** - * - * *
    * Optional. The maximum number of results to return in a single response.
    * Default is 10, minimum is 1, maximum is 1000.
    * 
* * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The pageSize. */ @java.lang.Override @@ -152,18 +117,14 @@ public int getPageSize() { } public static final int PAGE_TOKEN_FIELD_NUMBER = 3; - @SuppressWarnings("serial") private volatile java.lang.Object pageToken_ = ""; /** - * - * *
    * Optional. The value returned by the last call indicating a continuation
    * 
* * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The pageToken. */ @java.lang.Override @@ -172,29 +133,29 @@ 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. The value returned by the last call indicating a continuation
    * 
* * 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 { @@ -203,7 +164,6 @@ public com.google.protobuf.ByteString getPageTokenBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -215,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_); } @@ -238,7 +199,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_); @@ -251,24 +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.securitycentermanagement.v1 - .ListEffectiveEventThreatDetectionCustomModulesRequest)) { + if (!(obj instanceof com.google.cloud.securitycentermanagement.v1.ListEffectiveEventThreatDetectionCustomModulesRequest)) { return super.equals(obj); } - com.google.cloud.securitycentermanagement.v1 - .ListEffectiveEventThreatDetectionCustomModulesRequest - other = - (com.google.cloud.securitycentermanagement.v1 - .ListEffectiveEventThreatDetectionCustomModulesRequest) - obj; + com.google.cloud.securitycentermanagement.v1.ListEffectiveEventThreatDetectionCustomModulesRequest other = (com.google.cloud.securitycentermanagement.v1.ListEffectiveEventThreatDetectionCustomModulesRequest) 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; } @@ -291,163 +248,133 @@ public int hashCode() { return hash; } - public static com.google.cloud.securitycentermanagement.v1 - .ListEffectiveEventThreatDetectionCustomModulesRequest - parseFrom(java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.securitycentermanagement.v1.ListEffectiveEventThreatDetectionCustomModulesRequest parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - - public static com.google.cloud.securitycentermanagement.v1 - .ListEffectiveEventThreatDetectionCustomModulesRequest - parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.securitycentermanagement.v1.ListEffectiveEventThreatDetectionCustomModulesRequest 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.securitycentermanagement.v1 - .ListEffectiveEventThreatDetectionCustomModulesRequest - parseFrom(com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.securitycentermanagement.v1.ListEffectiveEventThreatDetectionCustomModulesRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - - public static com.google.cloud.securitycentermanagement.v1 - .ListEffectiveEventThreatDetectionCustomModulesRequest - parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.securitycentermanagement.v1.ListEffectiveEventThreatDetectionCustomModulesRequest parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.securitycentermanagement.v1 - .ListEffectiveEventThreatDetectionCustomModulesRequest - parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.securitycentermanagement.v1.ListEffectiveEventThreatDetectionCustomModulesRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - - public static com.google.cloud.securitycentermanagement.v1 - .ListEffectiveEventThreatDetectionCustomModulesRequest - parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.securitycentermanagement.v1.ListEffectiveEventThreatDetectionCustomModulesRequest parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.securitycentermanagement.v1 - .ListEffectiveEventThreatDetectionCustomModulesRequest - parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.securitycentermanagement.v1.ListEffectiveEventThreatDetectionCustomModulesRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - - public static com.google.cloud.securitycentermanagement.v1 - .ListEffectiveEventThreatDetectionCustomModulesRequest - 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.securitycentermanagement.v1.ListEffectiveEventThreatDetectionCustomModulesRequest 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.securitycentermanagement.v1 - .ListEffectiveEventThreatDetectionCustomModulesRequest - parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.securitycentermanagement.v1.ListEffectiveEventThreatDetectionCustomModulesRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.securitycentermanagement.v1 - .ListEffectiveEventThreatDetectionCustomModulesRequest - parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + public static com.google.cloud.securitycentermanagement.v1.ListEffectiveEventThreatDetectionCustomModulesRequest parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.securitycentermanagement.v1 - .ListEffectiveEventThreatDetectionCustomModulesRequest - parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.securitycentermanagement.v1.ListEffectiveEventThreatDetectionCustomModulesRequest parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - - public static com.google.cloud.securitycentermanagement.v1 - .ListEffectiveEventThreatDetectionCustomModulesRequest - 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.securitycentermanagement.v1.ListEffectiveEventThreatDetectionCustomModulesRequest 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.securitycentermanagement.v1 - .ListEffectiveEventThreatDetectionCustomModulesRequest - prototype) { + public static Builder newBuilder(com.google.cloud.securitycentermanagement.v1.ListEffectiveEventThreatDetectionCustomModulesRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected 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 listing effective Event Threat Detection custom
    * modules.
    * 
* - * Protobuf type {@code - * google.cloud.securitycentermanagement.v1.ListEffectiveEventThreatDetectionCustomModulesRequest} + * Protobuf type {@code google.cloud.securitycentermanagement.v1.ListEffectiveEventThreatDetectionCustomModulesRequest} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.securitycentermanagement.v1.ListEffectiveEventThreatDetectionCustomModulesRequest) - com.google.cloud.securitycentermanagement.v1 - .ListEffectiveEventThreatDetectionCustomModulesRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.securitycentermanagement.v1.SecurityCenterManagementProto - .internal_static_google_cloud_securitycentermanagement_v1_ListEffectiveEventThreatDetectionCustomModulesRequest_descriptor; + com.google.cloud.securitycentermanagement.v1.ListEffectiveEventThreatDetectionCustomModulesRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.securitycentermanagement.v1.SecurityCenterManagementProto.internal_static_google_cloud_securitycentermanagement_v1_ListEffectiveEventThreatDetectionCustomModulesRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.securitycentermanagement.v1.SecurityCenterManagementProto - .internal_static_google_cloud_securitycentermanagement_v1_ListEffectiveEventThreatDetectionCustomModulesRequest_fieldAccessorTable + return com.google.cloud.securitycentermanagement.v1.SecurityCenterManagementProto.internal_static_google_cloud_securitycentermanagement_v1_ListEffectiveEventThreatDetectionCustomModulesRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.securitycentermanagement.v1 - .ListEffectiveEventThreatDetectionCustomModulesRequest.class, - com.google.cloud.securitycentermanagement.v1 - .ListEffectiveEventThreatDetectionCustomModulesRequest.Builder.class); + com.google.cloud.securitycentermanagement.v1.ListEffectiveEventThreatDetectionCustomModulesRequest.class, com.google.cloud.securitycentermanagement.v1.ListEffectiveEventThreatDetectionCustomModulesRequest.Builder.class); } - // Construct using - // com.google.cloud.securitycentermanagement.v1.ListEffectiveEventThreatDetectionCustomModulesRequest.newBuilder() - private Builder() {} + // Construct using com.google.cloud.securitycentermanagement.v1.ListEffectiveEventThreatDetectionCustomModulesRequest.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(); @@ -459,26 +386,19 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.securitycentermanagement.v1.SecurityCenterManagementProto - .internal_static_google_cloud_securitycentermanagement_v1_ListEffectiveEventThreatDetectionCustomModulesRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.securitycentermanagement.v1.SecurityCenterManagementProto.internal_static_google_cloud_securitycentermanagement_v1_ListEffectiveEventThreatDetectionCustomModulesRequest_descriptor; } @java.lang.Override - public com.google.cloud.securitycentermanagement.v1 - .ListEffectiveEventThreatDetectionCustomModulesRequest - getDefaultInstanceForType() { - return com.google.cloud.securitycentermanagement.v1 - .ListEffectiveEventThreatDetectionCustomModulesRequest.getDefaultInstance(); + public com.google.cloud.securitycentermanagement.v1.ListEffectiveEventThreatDetectionCustomModulesRequest getDefaultInstanceForType() { + return com.google.cloud.securitycentermanagement.v1.ListEffectiveEventThreatDetectionCustomModulesRequest.getDefaultInstance(); } @java.lang.Override - public com.google.cloud.securitycentermanagement.v1 - .ListEffectiveEventThreatDetectionCustomModulesRequest - build() { - com.google.cloud.securitycentermanagement.v1 - .ListEffectiveEventThreatDetectionCustomModulesRequest - result = buildPartial(); + public com.google.cloud.securitycentermanagement.v1.ListEffectiveEventThreatDetectionCustomModulesRequest build() { + com.google.cloud.securitycentermanagement.v1.ListEffectiveEventThreatDetectionCustomModulesRequest result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } @@ -486,25 +406,14 @@ public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { } @java.lang.Override - public com.google.cloud.securitycentermanagement.v1 - .ListEffectiveEventThreatDetectionCustomModulesRequest - buildPartial() { - com.google.cloud.securitycentermanagement.v1 - .ListEffectiveEventThreatDetectionCustomModulesRequest - result = - new com.google.cloud.securitycentermanagement.v1 - .ListEffectiveEventThreatDetectionCustomModulesRequest(this); - if (bitField0_ != 0) { - buildPartial0(result); - } + public com.google.cloud.securitycentermanagement.v1.ListEffectiveEventThreatDetectionCustomModulesRequest buildPartial() { + com.google.cloud.securitycentermanagement.v1.ListEffectiveEventThreatDetectionCustomModulesRequest result = new com.google.cloud.securitycentermanagement.v1.ListEffectiveEventThreatDetectionCustomModulesRequest(this); + if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } - private void buildPartial0( - com.google.cloud.securitycentermanagement.v1 - .ListEffectiveEventThreatDetectionCustomModulesRequest - result) { + private void buildPartial0(com.google.cloud.securitycentermanagement.v1.ListEffectiveEventThreatDetectionCustomModulesRequest result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000001) != 0)) { result.parent_ = parent_; @@ -521,59 +430,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.securitycentermanagement.v1 - .ListEffectiveEventThreatDetectionCustomModulesRequest) { - return mergeFrom( - (com.google.cloud.securitycentermanagement.v1 - .ListEffectiveEventThreatDetectionCustomModulesRequest) - other); + if (other instanceof com.google.cloud.securitycentermanagement.v1.ListEffectiveEventThreatDetectionCustomModulesRequest) { + return mergeFrom((com.google.cloud.securitycentermanagement.v1.ListEffectiveEventThreatDetectionCustomModulesRequest)other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom( - com.google.cloud.securitycentermanagement.v1 - .ListEffectiveEventThreatDetectionCustomModulesRequest - other) { - if (other - == com.google.cloud.securitycentermanagement.v1 - .ListEffectiveEventThreatDetectionCustomModulesRequest.getDefaultInstance()) - return this; + public Builder mergeFrom(com.google.cloud.securitycentermanagement.v1.ListEffectiveEventThreatDetectionCustomModulesRequest other) { + if (other == com.google.cloud.securitycentermanagement.v1.ListEffectiveEventThreatDetectionCustomModulesRequest.getDefaultInstance()) return this; if (!other.getParent().isEmpty()) { parent_ = other.parent_; bitField0_ |= 0x00000001; @@ -613,31 +509,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) { @@ -647,13 +539,10 @@ public Builder mergeFrom( } // finally return this; } - private int bitField0_; private java.lang.Object parent_ = ""; /** - * - * *
      * Required. Name of parent to list effective custom modules. Its format is
      * "organizations/{organization}/locations/{location}",
@@ -662,16 +551,14 @@ public Builder mergeFrom(
      * "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; @@ -680,8 +567,6 @@ public java.lang.String getParent() { } } /** - * - * *
      * Required. Name of parent to list effective custom modules. Its format is
      * "organizations/{organization}/locations/{location}",
@@ -690,17 +575,16 @@ public java.lang.String getParent() {
      * "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 { @@ -708,8 +592,6 @@ public com.google.protobuf.ByteString getParentBytes() { } } /** - * - * *
      * Required. Name of parent to list effective custom modules. Its format is
      * "organizations/{organization}/locations/{location}",
@@ -718,25 +600,19 @@ public com.google.protobuf.ByteString getParentBytes() {
      * "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. Name of parent to list effective custom modules. Its format is
      * "organizations/{organization}/locations/{location}",
@@ -745,10 +621,7 @@ public Builder setParent(java.lang.String value) {
      * "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() { @@ -758,8 +631,6 @@ public Builder clearParent() { return this; } /** - * - * *
      * Required. Name of parent to list effective custom modules. Its format is
      * "organizations/{organization}/locations/{location}",
@@ -768,17 +639,13 @@ public Builder clearParent() {
      * "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; @@ -786,17 +653,14 @@ public Builder setParentBytes(com.google.protobuf.ByteString value) { return this; } - private int pageSize_; + private int pageSize_ ; /** - * - * *
      * Optional. The maximum number of results to return in a single response.
      * Default is 10, minimum is 1, maximum is 1000.
      * 
* * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The pageSize. */ @java.lang.Override @@ -804,15 +668,12 @@ public int getPageSize() { return pageSize_; } /** - * - * *
      * Optional. The maximum number of results to return in a single response.
      * Default is 10, minimum is 1, maximum is 1000.
      * 
* * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @param value The pageSize to set. * @return This builder for chaining. */ @@ -824,15 +685,12 @@ public Builder setPageSize(int value) { return this; } /** - * - * *
      * Optional. The maximum number of results to return in a single response.
      * Default is 10, minimum is 1, maximum is 1000.
      * 
* * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @return This builder for chaining. */ public Builder clearPageSize() { @@ -844,20 +702,18 @@ public Builder clearPageSize() { private java.lang.Object pageToken_ = ""; /** - * - * *
      * Optional. The value returned by the last call indicating a continuation
      * 
* * 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; @@ -866,21 +722,20 @@ public java.lang.String getPageToken() { } } /** - * - * *
      * Optional. The value returned by the last call indicating a continuation
      * 
* * 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 { @@ -888,35 +743,28 @@ public com.google.protobuf.ByteString getPageTokenBytes() { } } /** - * - * *
      * Optional. The value returned by the last call indicating a continuation
      * 
* * 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. The value returned by the last call indicating a continuation
      * 
* * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @return This builder for chaining. */ public Builder clearPageToken() { @@ -926,30 +774,26 @@ public Builder clearPageToken() { return this; } /** - * - * *
      * Optional. The value returned by the last call indicating a continuation
      * 
* * 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); } @@ -959,67 +803,55 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.securitycentermanagement.v1.ListEffectiveEventThreatDetectionCustomModulesRequest) } // @@protoc_insertion_point(class_scope:google.cloud.securitycentermanagement.v1.ListEffectiveEventThreatDetectionCustomModulesRequest) - private static final com.google.cloud.securitycentermanagement.v1 - .ListEffectiveEventThreatDetectionCustomModulesRequest - DEFAULT_INSTANCE; - + private static final com.google.cloud.securitycentermanagement.v1.ListEffectiveEventThreatDetectionCustomModulesRequest DEFAULT_INSTANCE; static { - DEFAULT_INSTANCE = - new com.google.cloud.securitycentermanagement.v1 - .ListEffectiveEventThreatDetectionCustomModulesRequest(); + DEFAULT_INSTANCE = new com.google.cloud.securitycentermanagement.v1.ListEffectiveEventThreatDetectionCustomModulesRequest(); } - public static com.google.cloud.securitycentermanagement.v1 - .ListEffectiveEventThreatDetectionCustomModulesRequest - getDefaultInstance() { + public static com.google.cloud.securitycentermanagement.v1.ListEffectiveEventThreatDetectionCustomModulesRequest getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser< - ListEffectiveEventThreatDetectionCustomModulesRequest> - PARSER = - new com.google.protobuf.AbstractParser< - ListEffectiveEventThreatDetectionCustomModulesRequest>() { - @java.lang.Override - public ListEffectiveEventThreatDetectionCustomModulesRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException() - .setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListEffectiveEventThreatDetectionCustomModulesRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; - public static com.google.protobuf.Parser - parser() { + public static com.google.protobuf.Parser parser() { return PARSER; } @java.lang.Override - public com.google.protobuf.Parser - getParserForType() { + public com.google.protobuf.Parser getParserForType() { return PARSER; } @java.lang.Override - public com.google.cloud.securitycentermanagement.v1 - .ListEffectiveEventThreatDetectionCustomModulesRequest - getDefaultInstanceForType() { + public com.google.cloud.securitycentermanagement.v1.ListEffectiveEventThreatDetectionCustomModulesRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/java-securitycentermanagement/proto-google-cloud-securitycentermanagement-v1/src/main/java/com/google/cloud/securitycentermanagement/v1/ListEffectiveEventThreatDetectionCustomModulesRequestOrBuilder.java b/owl-bot-staging/java-securitycentermanagement/v1/proto-google-cloud-securitycentermanagement-v1/src/main/java/com/google/cloud/securitycentermanagement/v1/ListEffectiveEventThreatDetectionCustomModulesRequestOrBuilder.java similarity index 64% rename from java-securitycentermanagement/proto-google-cloud-securitycentermanagement-v1/src/main/java/com/google/cloud/securitycentermanagement/v1/ListEffectiveEventThreatDetectionCustomModulesRequestOrBuilder.java rename to owl-bot-staging/java-securitycentermanagement/v1/proto-google-cloud-securitycentermanagement-v1/src/main/java/com/google/cloud/securitycentermanagement/v1/ListEffectiveEventThreatDetectionCustomModulesRequestOrBuilder.java index 189f8bd5ac9b..6fb4d4371379 100644 --- a/java-securitycentermanagement/proto-google-cloud-securitycentermanagement-v1/src/main/java/com/google/cloud/securitycentermanagement/v1/ListEffectiveEventThreatDetectionCustomModulesRequestOrBuilder.java +++ b/owl-bot-staging/java-securitycentermanagement/v1/proto-google-cloud-securitycentermanagement-v1/src/main/java/com/google/cloud/securitycentermanagement/v1/ListEffectiveEventThreatDetectionCustomModulesRequestOrBuilder.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/securitycentermanagement/v1/security_center_management.proto package com.google.cloud.securitycentermanagement.v1; -public interface ListEffectiveEventThreatDetectionCustomModulesRequestOrBuilder - extends +public interface ListEffectiveEventThreatDetectionCustomModulesRequestOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.securitycentermanagement.v1.ListEffectiveEventThreatDetectionCustomModulesRequest) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * Required. Name of parent to list effective custom modules. Its format is
    * "organizations/{organization}/locations/{location}",
@@ -34,16 +16,11 @@ public interface ListEffectiveEventThreatDetectionCustomModulesRequestOrBuilder
    * "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. Name of parent to list effective custom modules. Its format is
    * "organizations/{organization}/locations/{location}",
@@ -52,50 +29,40 @@ public interface ListEffectiveEventThreatDetectionCustomModulesRequestOrBuilder
    * "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(); /** - * - * *
    * Optional. The maximum number of results to return in a single response.
    * Default is 10, minimum is 1, maximum is 1000.
    * 
* * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The pageSize. */ int getPageSize(); /** - * - * *
    * Optional. The value returned by the last call indicating a continuation
    * 
* * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The pageToken. */ java.lang.String getPageToken(); /** - * - * *
    * Optional. The value returned by the last call indicating a continuation
    * 
* * 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-securitycentermanagement/v1/proto-google-cloud-securitycentermanagement-v1/src/main/java/com/google/cloud/securitycentermanagement/v1/ListEffectiveEventThreatDetectionCustomModulesResponse.java b/owl-bot-staging/java-securitycentermanagement/v1/proto-google-cloud-securitycentermanagement-v1/src/main/java/com/google/cloud/securitycentermanagement/v1/ListEffectiveEventThreatDetectionCustomModulesResponse.java new file mode 100644 index 000000000000..c0645c1dca7b --- /dev/null +++ b/owl-bot-staging/java-securitycentermanagement/v1/proto-google-cloud-securitycentermanagement-v1/src/main/java/com/google/cloud/securitycentermanagement/v1/ListEffectiveEventThreatDetectionCustomModulesResponse.java @@ -0,0 +1,1025 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/securitycentermanagement/v1/security_center_management.proto + +package com.google.cloud.securitycentermanagement.v1; + +/** + *
+ * Response message for listing effective Event Threat Detection custom
+ * modules.
+ * 
+ * + * Protobuf type {@code google.cloud.securitycentermanagement.v1.ListEffectiveEventThreatDetectionCustomModulesResponse} + */ +public final class ListEffectiveEventThreatDetectionCustomModulesResponse extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:google.cloud.securitycentermanagement.v1.ListEffectiveEventThreatDetectionCustomModulesResponse) + ListEffectiveEventThreatDetectionCustomModulesResponseOrBuilder { +private static final long serialVersionUID = 0L; + // Use ListEffectiveEventThreatDetectionCustomModulesResponse.newBuilder() to construct. + private ListEffectiveEventThreatDetectionCustomModulesResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private ListEffectiveEventThreatDetectionCustomModulesResponse() { + effectiveEventThreatDetectionCustomModules_ = java.util.Collections.emptyList(); + nextPageToken_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new ListEffectiveEventThreatDetectionCustomModulesResponse(); + } + + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.securitycentermanagement.v1.SecurityCenterManagementProto.internal_static_google_cloud_securitycentermanagement_v1_ListEffectiveEventThreatDetectionCustomModulesResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.securitycentermanagement.v1.SecurityCenterManagementProto.internal_static_google_cloud_securitycentermanagement_v1_ListEffectiveEventThreatDetectionCustomModulesResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.securitycentermanagement.v1.ListEffectiveEventThreatDetectionCustomModulesResponse.class, com.google.cloud.securitycentermanagement.v1.ListEffectiveEventThreatDetectionCustomModulesResponse.Builder.class); + } + + public static final int EFFECTIVE_EVENT_THREAT_DETECTION_CUSTOM_MODULES_FIELD_NUMBER = 1; + @SuppressWarnings("serial") + private java.util.List effectiveEventThreatDetectionCustomModules_; + /** + *
+   * The list of EffectiveEventThreatDetectionCustomModules
+   * 
+ * + * repeated .google.cloud.securitycentermanagement.v1.EffectiveEventThreatDetectionCustomModule effective_event_threat_detection_custom_modules = 1; + */ + @java.lang.Override + public java.util.List getEffectiveEventThreatDetectionCustomModulesList() { + return effectiveEventThreatDetectionCustomModules_; + } + /** + *
+   * The list of EffectiveEventThreatDetectionCustomModules
+   * 
+ * + * repeated .google.cloud.securitycentermanagement.v1.EffectiveEventThreatDetectionCustomModule effective_event_threat_detection_custom_modules = 1; + */ + @java.lang.Override + public java.util.List + getEffectiveEventThreatDetectionCustomModulesOrBuilderList() { + return effectiveEventThreatDetectionCustomModules_; + } + /** + *
+   * The list of EffectiveEventThreatDetectionCustomModules
+   * 
+ * + * repeated .google.cloud.securitycentermanagement.v1.EffectiveEventThreatDetectionCustomModule effective_event_threat_detection_custom_modules = 1; + */ + @java.lang.Override + public int getEffectiveEventThreatDetectionCustomModulesCount() { + return effectiveEventThreatDetectionCustomModules_.size(); + } + /** + *
+   * The list of EffectiveEventThreatDetectionCustomModules
+   * 
+ * + * repeated .google.cloud.securitycentermanagement.v1.EffectiveEventThreatDetectionCustomModule effective_event_threat_detection_custom_modules = 1; + */ + @java.lang.Override + public com.google.cloud.securitycentermanagement.v1.EffectiveEventThreatDetectionCustomModule getEffectiveEventThreatDetectionCustomModules(int index) { + return effectiveEventThreatDetectionCustomModules_.get(index); + } + /** + *
+   * The list of EffectiveEventThreatDetectionCustomModules
+   * 
+ * + * repeated .google.cloud.securitycentermanagement.v1.EffectiveEventThreatDetectionCustomModule effective_event_threat_detection_custom_modules = 1; + */ + @java.lang.Override + public com.google.cloud.securitycentermanagement.v1.EffectiveEventThreatDetectionCustomModuleOrBuilder getEffectiveEventThreatDetectionCustomModulesOrBuilder( + int index) { + return effectiveEventThreatDetectionCustomModules_.get(index); + } + + public static final int NEXT_PAGE_TOKEN_FIELD_NUMBER = 2; + @SuppressWarnings("serial") + private volatile java.lang.Object nextPageToken_ = ""; + /** + *
+   * A token identifying a page of results the server should return.
+   * 
+ * + * string next_page_token = 2; + * @return The nextPageToken. + */ + @java.lang.Override + public java.lang.String getNextPageToken() { + java.lang.Object ref = nextPageToken_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + nextPageToken_ = s; + return s; + } + } + /** + *
+   * A token identifying a page of results the server should return.
+   * 
+ * + * string next_page_token = 2; + * @return The bytes for nextPageToken. + */ + @java.lang.Override + 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); + nextPageToken_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + for (int i = 0; i < effectiveEventThreatDetectionCustomModules_.size(); i++) { + output.writeMessage(1, effectiveEventThreatDetectionCustomModules_.get(i)); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(nextPageToken_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, nextPageToken_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + for (int i = 0; i < effectiveEventThreatDetectionCustomModules_.size(); i++) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, effectiveEventThreatDetectionCustomModules_.get(i)); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(nextPageToken_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, nextPageToken_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.securitycentermanagement.v1.ListEffectiveEventThreatDetectionCustomModulesResponse)) { + return super.equals(obj); + } + com.google.cloud.securitycentermanagement.v1.ListEffectiveEventThreatDetectionCustomModulesResponse other = (com.google.cloud.securitycentermanagement.v1.ListEffectiveEventThreatDetectionCustomModulesResponse) obj; + + if (!getEffectiveEventThreatDetectionCustomModulesList() + .equals(other.getEffectiveEventThreatDetectionCustomModulesList())) return false; + if (!getNextPageToken() + .equals(other.getNextPageToken())) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (getEffectiveEventThreatDetectionCustomModulesCount() > 0) { + hash = (37 * hash) + EFFECTIVE_EVENT_THREAT_DETECTION_CUSTOM_MODULES_FIELD_NUMBER; + hash = (53 * hash) + getEffectiveEventThreatDetectionCustomModulesList().hashCode(); + } + hash = (37 * hash) + NEXT_PAGE_TOKEN_FIELD_NUMBER; + hash = (53 * hash) + getNextPageToken().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.securitycentermanagement.v1.ListEffectiveEventThreatDetectionCustomModulesResponse parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.cloud.securitycentermanagement.v1.ListEffectiveEventThreatDetectionCustomModulesResponse 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.securitycentermanagement.v1.ListEffectiveEventThreatDetectionCustomModulesResponse parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.cloud.securitycentermanagement.v1.ListEffectiveEventThreatDetectionCustomModulesResponse parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.cloud.securitycentermanagement.v1.ListEffectiveEventThreatDetectionCustomModulesResponse parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.cloud.securitycentermanagement.v1.ListEffectiveEventThreatDetectionCustomModulesResponse parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.cloud.securitycentermanagement.v1.ListEffectiveEventThreatDetectionCustomModulesResponse parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.google.cloud.securitycentermanagement.v1.ListEffectiveEventThreatDetectionCustomModulesResponse 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.securitycentermanagement.v1.ListEffectiveEventThreatDetectionCustomModulesResponse parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.securitycentermanagement.v1.ListEffectiveEventThreatDetectionCustomModulesResponse parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static com.google.cloud.securitycentermanagement.v1.ListEffectiveEventThreatDetectionCustomModulesResponse parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.google.cloud.securitycentermanagement.v1.ListEffectiveEventThreatDetectionCustomModulesResponse 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.securitycentermanagement.v1.ListEffectiveEventThreatDetectionCustomModulesResponse prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + *
+   * Response message for listing effective Event Threat Detection custom
+   * modules.
+   * 
+ * + * Protobuf type {@code google.cloud.securitycentermanagement.v1.ListEffectiveEventThreatDetectionCustomModulesResponse} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:google.cloud.securitycentermanagement.v1.ListEffectiveEventThreatDetectionCustomModulesResponse) + com.google.cloud.securitycentermanagement.v1.ListEffectiveEventThreatDetectionCustomModulesResponseOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.securitycentermanagement.v1.SecurityCenterManagementProto.internal_static_google_cloud_securitycentermanagement_v1_ListEffectiveEventThreatDetectionCustomModulesResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.securitycentermanagement.v1.SecurityCenterManagementProto.internal_static_google_cloud_securitycentermanagement_v1_ListEffectiveEventThreatDetectionCustomModulesResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.securitycentermanagement.v1.ListEffectiveEventThreatDetectionCustomModulesResponse.class, com.google.cloud.securitycentermanagement.v1.ListEffectiveEventThreatDetectionCustomModulesResponse.Builder.class); + } + + // Construct using com.google.cloud.securitycentermanagement.v1.ListEffectiveEventThreatDetectionCustomModulesResponse.newBuilder() + private Builder() { + + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + if (effectiveEventThreatDetectionCustomModulesBuilder_ == null) { + effectiveEventThreatDetectionCustomModules_ = java.util.Collections.emptyList(); + } else { + effectiveEventThreatDetectionCustomModules_ = null; + effectiveEventThreatDetectionCustomModulesBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000001); + nextPageToken_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.securitycentermanagement.v1.SecurityCenterManagementProto.internal_static_google_cloud_securitycentermanagement_v1_ListEffectiveEventThreatDetectionCustomModulesResponse_descriptor; + } + + @java.lang.Override + public com.google.cloud.securitycentermanagement.v1.ListEffectiveEventThreatDetectionCustomModulesResponse getDefaultInstanceForType() { + return com.google.cloud.securitycentermanagement.v1.ListEffectiveEventThreatDetectionCustomModulesResponse.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.securitycentermanagement.v1.ListEffectiveEventThreatDetectionCustomModulesResponse build() { + com.google.cloud.securitycentermanagement.v1.ListEffectiveEventThreatDetectionCustomModulesResponse result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.securitycentermanagement.v1.ListEffectiveEventThreatDetectionCustomModulesResponse buildPartial() { + com.google.cloud.securitycentermanagement.v1.ListEffectiveEventThreatDetectionCustomModulesResponse result = new com.google.cloud.securitycentermanagement.v1.ListEffectiveEventThreatDetectionCustomModulesResponse(this); + buildPartialRepeatedFields(result); + if (bitField0_ != 0) { buildPartial0(result); } + onBuilt(); + return result; + } + + private void buildPartialRepeatedFields(com.google.cloud.securitycentermanagement.v1.ListEffectiveEventThreatDetectionCustomModulesResponse result) { + if (effectiveEventThreatDetectionCustomModulesBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0)) { + effectiveEventThreatDetectionCustomModules_ = java.util.Collections.unmodifiableList(effectiveEventThreatDetectionCustomModules_); + bitField0_ = (bitField0_ & ~0x00000001); + } + result.effectiveEventThreatDetectionCustomModules_ = effectiveEventThreatDetectionCustomModules_; + } else { + result.effectiveEventThreatDetectionCustomModules_ = effectiveEventThreatDetectionCustomModulesBuilder_.build(); + } + } + + private void buildPartial0(com.google.cloud.securitycentermanagement.v1.ListEffectiveEventThreatDetectionCustomModulesResponse result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000002) != 0)) { + result.nextPageToken_ = nextPageToken_; + } + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.securitycentermanagement.v1.ListEffectiveEventThreatDetectionCustomModulesResponse) { + return mergeFrom((com.google.cloud.securitycentermanagement.v1.ListEffectiveEventThreatDetectionCustomModulesResponse)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.securitycentermanagement.v1.ListEffectiveEventThreatDetectionCustomModulesResponse other) { + if (other == com.google.cloud.securitycentermanagement.v1.ListEffectiveEventThreatDetectionCustomModulesResponse.getDefaultInstance()) return this; + if (effectiveEventThreatDetectionCustomModulesBuilder_ == null) { + if (!other.effectiveEventThreatDetectionCustomModules_.isEmpty()) { + if (effectiveEventThreatDetectionCustomModules_.isEmpty()) { + effectiveEventThreatDetectionCustomModules_ = other.effectiveEventThreatDetectionCustomModules_; + bitField0_ = (bitField0_ & ~0x00000001); + } else { + ensureEffectiveEventThreatDetectionCustomModulesIsMutable(); + effectiveEventThreatDetectionCustomModules_.addAll(other.effectiveEventThreatDetectionCustomModules_); + } + onChanged(); + } + } else { + if (!other.effectiveEventThreatDetectionCustomModules_.isEmpty()) { + if (effectiveEventThreatDetectionCustomModulesBuilder_.isEmpty()) { + effectiveEventThreatDetectionCustomModulesBuilder_.dispose(); + effectiveEventThreatDetectionCustomModulesBuilder_ = null; + effectiveEventThreatDetectionCustomModules_ = other.effectiveEventThreatDetectionCustomModules_; + bitField0_ = (bitField0_ & ~0x00000001); + effectiveEventThreatDetectionCustomModulesBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? + getEffectiveEventThreatDetectionCustomModulesFieldBuilder() : null; + } else { + effectiveEventThreatDetectionCustomModulesBuilder_.addAllMessages(other.effectiveEventThreatDetectionCustomModules_); + } + } + } + if (!other.getNextPageToken().isEmpty()) { + nextPageToken_ = other.nextPageToken_; + bitField0_ |= 0x00000002; + onChanged(); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + com.google.cloud.securitycentermanagement.v1.EffectiveEventThreatDetectionCustomModule m = + input.readMessage( + com.google.cloud.securitycentermanagement.v1.EffectiveEventThreatDetectionCustomModule.parser(), + extensionRegistry); + if (effectiveEventThreatDetectionCustomModulesBuilder_ == null) { + ensureEffectiveEventThreatDetectionCustomModulesIsMutable(); + effectiveEventThreatDetectionCustomModules_.add(m); + } else { + effectiveEventThreatDetectionCustomModulesBuilder_.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) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + private int bitField0_; + + private java.util.List effectiveEventThreatDetectionCustomModules_ = + java.util.Collections.emptyList(); + private void ensureEffectiveEventThreatDetectionCustomModulesIsMutable() { + if (!((bitField0_ & 0x00000001) != 0)) { + effectiveEventThreatDetectionCustomModules_ = new java.util.ArrayList(effectiveEventThreatDetectionCustomModules_); + bitField0_ |= 0x00000001; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.securitycentermanagement.v1.EffectiveEventThreatDetectionCustomModule, com.google.cloud.securitycentermanagement.v1.EffectiveEventThreatDetectionCustomModule.Builder, com.google.cloud.securitycentermanagement.v1.EffectiveEventThreatDetectionCustomModuleOrBuilder> effectiveEventThreatDetectionCustomModulesBuilder_; + + /** + *
+     * The list of EffectiveEventThreatDetectionCustomModules
+     * 
+ * + * repeated .google.cloud.securitycentermanagement.v1.EffectiveEventThreatDetectionCustomModule effective_event_threat_detection_custom_modules = 1; + */ + public java.util.List getEffectiveEventThreatDetectionCustomModulesList() { + if (effectiveEventThreatDetectionCustomModulesBuilder_ == null) { + return java.util.Collections.unmodifiableList(effectiveEventThreatDetectionCustomModules_); + } else { + return effectiveEventThreatDetectionCustomModulesBuilder_.getMessageList(); + } + } + /** + *
+     * The list of EffectiveEventThreatDetectionCustomModules
+     * 
+ * + * repeated .google.cloud.securitycentermanagement.v1.EffectiveEventThreatDetectionCustomModule effective_event_threat_detection_custom_modules = 1; + */ + public int getEffectiveEventThreatDetectionCustomModulesCount() { + if (effectiveEventThreatDetectionCustomModulesBuilder_ == null) { + return effectiveEventThreatDetectionCustomModules_.size(); + } else { + return effectiveEventThreatDetectionCustomModulesBuilder_.getCount(); + } + } + /** + *
+     * The list of EffectiveEventThreatDetectionCustomModules
+     * 
+ * + * repeated .google.cloud.securitycentermanagement.v1.EffectiveEventThreatDetectionCustomModule effective_event_threat_detection_custom_modules = 1; + */ + public com.google.cloud.securitycentermanagement.v1.EffectiveEventThreatDetectionCustomModule getEffectiveEventThreatDetectionCustomModules(int index) { + if (effectiveEventThreatDetectionCustomModulesBuilder_ == null) { + return effectiveEventThreatDetectionCustomModules_.get(index); + } else { + return effectiveEventThreatDetectionCustomModulesBuilder_.getMessage(index); + } + } + /** + *
+     * The list of EffectiveEventThreatDetectionCustomModules
+     * 
+ * + * repeated .google.cloud.securitycentermanagement.v1.EffectiveEventThreatDetectionCustomModule effective_event_threat_detection_custom_modules = 1; + */ + public Builder setEffectiveEventThreatDetectionCustomModules( + int index, com.google.cloud.securitycentermanagement.v1.EffectiveEventThreatDetectionCustomModule value) { + if (effectiveEventThreatDetectionCustomModulesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureEffectiveEventThreatDetectionCustomModulesIsMutable(); + effectiveEventThreatDetectionCustomModules_.set(index, value); + onChanged(); + } else { + effectiveEventThreatDetectionCustomModulesBuilder_.setMessage(index, value); + } + return this; + } + /** + *
+     * The list of EffectiveEventThreatDetectionCustomModules
+     * 
+ * + * repeated .google.cloud.securitycentermanagement.v1.EffectiveEventThreatDetectionCustomModule effective_event_threat_detection_custom_modules = 1; + */ + public Builder setEffectiveEventThreatDetectionCustomModules( + int index, com.google.cloud.securitycentermanagement.v1.EffectiveEventThreatDetectionCustomModule.Builder builderForValue) { + if (effectiveEventThreatDetectionCustomModulesBuilder_ == null) { + ensureEffectiveEventThreatDetectionCustomModulesIsMutable(); + effectiveEventThreatDetectionCustomModules_.set(index, builderForValue.build()); + onChanged(); + } else { + effectiveEventThreatDetectionCustomModulesBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + /** + *
+     * The list of EffectiveEventThreatDetectionCustomModules
+     * 
+ * + * repeated .google.cloud.securitycentermanagement.v1.EffectiveEventThreatDetectionCustomModule effective_event_threat_detection_custom_modules = 1; + */ + public Builder addEffectiveEventThreatDetectionCustomModules(com.google.cloud.securitycentermanagement.v1.EffectiveEventThreatDetectionCustomModule value) { + if (effectiveEventThreatDetectionCustomModulesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureEffectiveEventThreatDetectionCustomModulesIsMutable(); + effectiveEventThreatDetectionCustomModules_.add(value); + onChanged(); + } else { + effectiveEventThreatDetectionCustomModulesBuilder_.addMessage(value); + } + return this; + } + /** + *
+     * The list of EffectiveEventThreatDetectionCustomModules
+     * 
+ * + * repeated .google.cloud.securitycentermanagement.v1.EffectiveEventThreatDetectionCustomModule effective_event_threat_detection_custom_modules = 1; + */ + public Builder addEffectiveEventThreatDetectionCustomModules( + int index, com.google.cloud.securitycentermanagement.v1.EffectiveEventThreatDetectionCustomModule value) { + if (effectiveEventThreatDetectionCustomModulesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureEffectiveEventThreatDetectionCustomModulesIsMutable(); + effectiveEventThreatDetectionCustomModules_.add(index, value); + onChanged(); + } else { + effectiveEventThreatDetectionCustomModulesBuilder_.addMessage(index, value); + } + return this; + } + /** + *
+     * The list of EffectiveEventThreatDetectionCustomModules
+     * 
+ * + * repeated .google.cloud.securitycentermanagement.v1.EffectiveEventThreatDetectionCustomModule effective_event_threat_detection_custom_modules = 1; + */ + public Builder addEffectiveEventThreatDetectionCustomModules( + com.google.cloud.securitycentermanagement.v1.EffectiveEventThreatDetectionCustomModule.Builder builderForValue) { + if (effectiveEventThreatDetectionCustomModulesBuilder_ == null) { + ensureEffectiveEventThreatDetectionCustomModulesIsMutable(); + effectiveEventThreatDetectionCustomModules_.add(builderForValue.build()); + onChanged(); + } else { + effectiveEventThreatDetectionCustomModulesBuilder_.addMessage(builderForValue.build()); + } + return this; + } + /** + *
+     * The list of EffectiveEventThreatDetectionCustomModules
+     * 
+ * + * repeated .google.cloud.securitycentermanagement.v1.EffectiveEventThreatDetectionCustomModule effective_event_threat_detection_custom_modules = 1; + */ + public Builder addEffectiveEventThreatDetectionCustomModules( + int index, com.google.cloud.securitycentermanagement.v1.EffectiveEventThreatDetectionCustomModule.Builder builderForValue) { + if (effectiveEventThreatDetectionCustomModulesBuilder_ == null) { + ensureEffectiveEventThreatDetectionCustomModulesIsMutable(); + effectiveEventThreatDetectionCustomModules_.add(index, builderForValue.build()); + onChanged(); + } else { + effectiveEventThreatDetectionCustomModulesBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + /** + *
+     * The list of EffectiveEventThreatDetectionCustomModules
+     * 
+ * + * repeated .google.cloud.securitycentermanagement.v1.EffectiveEventThreatDetectionCustomModule effective_event_threat_detection_custom_modules = 1; + */ + public Builder addAllEffectiveEventThreatDetectionCustomModules( + java.lang.Iterable values) { + if (effectiveEventThreatDetectionCustomModulesBuilder_ == null) { + ensureEffectiveEventThreatDetectionCustomModulesIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, effectiveEventThreatDetectionCustomModules_); + onChanged(); + } else { + effectiveEventThreatDetectionCustomModulesBuilder_.addAllMessages(values); + } + return this; + } + /** + *
+     * The list of EffectiveEventThreatDetectionCustomModules
+     * 
+ * + * repeated .google.cloud.securitycentermanagement.v1.EffectiveEventThreatDetectionCustomModule effective_event_threat_detection_custom_modules = 1; + */ + public Builder clearEffectiveEventThreatDetectionCustomModules() { + if (effectiveEventThreatDetectionCustomModulesBuilder_ == null) { + effectiveEventThreatDetectionCustomModules_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + } else { + effectiveEventThreatDetectionCustomModulesBuilder_.clear(); + } + return this; + } + /** + *
+     * The list of EffectiveEventThreatDetectionCustomModules
+     * 
+ * + * repeated .google.cloud.securitycentermanagement.v1.EffectiveEventThreatDetectionCustomModule effective_event_threat_detection_custom_modules = 1; + */ + public Builder removeEffectiveEventThreatDetectionCustomModules(int index) { + if (effectiveEventThreatDetectionCustomModulesBuilder_ == null) { + ensureEffectiveEventThreatDetectionCustomModulesIsMutable(); + effectiveEventThreatDetectionCustomModules_.remove(index); + onChanged(); + } else { + effectiveEventThreatDetectionCustomModulesBuilder_.remove(index); + } + return this; + } + /** + *
+     * The list of EffectiveEventThreatDetectionCustomModules
+     * 
+ * + * repeated .google.cloud.securitycentermanagement.v1.EffectiveEventThreatDetectionCustomModule effective_event_threat_detection_custom_modules = 1; + */ + public com.google.cloud.securitycentermanagement.v1.EffectiveEventThreatDetectionCustomModule.Builder getEffectiveEventThreatDetectionCustomModulesBuilder( + int index) { + return getEffectiveEventThreatDetectionCustomModulesFieldBuilder().getBuilder(index); + } + /** + *
+     * The list of EffectiveEventThreatDetectionCustomModules
+     * 
+ * + * repeated .google.cloud.securitycentermanagement.v1.EffectiveEventThreatDetectionCustomModule effective_event_threat_detection_custom_modules = 1; + */ + public com.google.cloud.securitycentermanagement.v1.EffectiveEventThreatDetectionCustomModuleOrBuilder getEffectiveEventThreatDetectionCustomModulesOrBuilder( + int index) { + if (effectiveEventThreatDetectionCustomModulesBuilder_ == null) { + return effectiveEventThreatDetectionCustomModules_.get(index); } else { + return effectiveEventThreatDetectionCustomModulesBuilder_.getMessageOrBuilder(index); + } + } + /** + *
+     * The list of EffectiveEventThreatDetectionCustomModules
+     * 
+ * + * repeated .google.cloud.securitycentermanagement.v1.EffectiveEventThreatDetectionCustomModule effective_event_threat_detection_custom_modules = 1; + */ + public java.util.List + getEffectiveEventThreatDetectionCustomModulesOrBuilderList() { + if (effectiveEventThreatDetectionCustomModulesBuilder_ != null) { + return effectiveEventThreatDetectionCustomModulesBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(effectiveEventThreatDetectionCustomModules_); + } + } + /** + *
+     * The list of EffectiveEventThreatDetectionCustomModules
+     * 
+ * + * repeated .google.cloud.securitycentermanagement.v1.EffectiveEventThreatDetectionCustomModule effective_event_threat_detection_custom_modules = 1; + */ + public com.google.cloud.securitycentermanagement.v1.EffectiveEventThreatDetectionCustomModule.Builder addEffectiveEventThreatDetectionCustomModulesBuilder() { + return getEffectiveEventThreatDetectionCustomModulesFieldBuilder().addBuilder( + com.google.cloud.securitycentermanagement.v1.EffectiveEventThreatDetectionCustomModule.getDefaultInstance()); + } + /** + *
+     * The list of EffectiveEventThreatDetectionCustomModules
+     * 
+ * + * repeated .google.cloud.securitycentermanagement.v1.EffectiveEventThreatDetectionCustomModule effective_event_threat_detection_custom_modules = 1; + */ + public com.google.cloud.securitycentermanagement.v1.EffectiveEventThreatDetectionCustomModule.Builder addEffectiveEventThreatDetectionCustomModulesBuilder( + int index) { + return getEffectiveEventThreatDetectionCustomModulesFieldBuilder().addBuilder( + index, com.google.cloud.securitycentermanagement.v1.EffectiveEventThreatDetectionCustomModule.getDefaultInstance()); + } + /** + *
+     * The list of EffectiveEventThreatDetectionCustomModules
+     * 
+ * + * repeated .google.cloud.securitycentermanagement.v1.EffectiveEventThreatDetectionCustomModule effective_event_threat_detection_custom_modules = 1; + */ + public java.util.List + getEffectiveEventThreatDetectionCustomModulesBuilderList() { + return getEffectiveEventThreatDetectionCustomModulesFieldBuilder().getBuilderList(); + } + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.securitycentermanagement.v1.EffectiveEventThreatDetectionCustomModule, com.google.cloud.securitycentermanagement.v1.EffectiveEventThreatDetectionCustomModule.Builder, com.google.cloud.securitycentermanagement.v1.EffectiveEventThreatDetectionCustomModuleOrBuilder> + getEffectiveEventThreatDetectionCustomModulesFieldBuilder() { + if (effectiveEventThreatDetectionCustomModulesBuilder_ == null) { + effectiveEventThreatDetectionCustomModulesBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.securitycentermanagement.v1.EffectiveEventThreatDetectionCustomModule, com.google.cloud.securitycentermanagement.v1.EffectiveEventThreatDetectionCustomModule.Builder, com.google.cloud.securitycentermanagement.v1.EffectiveEventThreatDetectionCustomModuleOrBuilder>( + effectiveEventThreatDetectionCustomModules_, + ((bitField0_ & 0x00000001) != 0), + getParentForChildren(), + isClean()); + effectiveEventThreatDetectionCustomModules_ = null; + } + return effectiveEventThreatDetectionCustomModulesBuilder_; + } + + private java.lang.Object nextPageToken_ = ""; + /** + *
+     * A token identifying a page of results the server should return.
+     * 
+ * + * 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; + java.lang.String s = bs.toStringUtf8(); + nextPageToken_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+     * A token identifying a page of results the server should return.
+     * 
+ * + * string next_page_token = 2; + * @return The bytes for nextPageToken. + */ + 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); + nextPageToken_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+     * A token identifying a page of results the server should return.
+     * 
+ * + * 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(); } + nextPageToken_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + *
+     * A token identifying a page of results the server should return.
+     * 
+ * + * string next_page_token = 2; + * @return This builder for chaining. + */ + public Builder clearNextPageToken() { + nextPageToken_ = getDefaultInstance().getNextPageToken(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + /** + *
+     * A token identifying a page of results the server should return.
+     * 
+ * + * 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(); } + checkByteStringIsUtf8(value); + nextPageToken_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:google.cloud.securitycentermanagement.v1.ListEffectiveEventThreatDetectionCustomModulesResponse) + } + + // @@protoc_insertion_point(class_scope:google.cloud.securitycentermanagement.v1.ListEffectiveEventThreatDetectionCustomModulesResponse) + private static final com.google.cloud.securitycentermanagement.v1.ListEffectiveEventThreatDetectionCustomModulesResponse DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new com.google.cloud.securitycentermanagement.v1.ListEffectiveEventThreatDetectionCustomModulesResponse(); + } + + public static com.google.cloud.securitycentermanagement.v1.ListEffectiveEventThreatDetectionCustomModulesResponse getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListEffectiveEventThreatDetectionCustomModulesResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.securitycentermanagement.v1.ListEffectiveEventThreatDetectionCustomModulesResponse getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + +} + diff --git a/owl-bot-staging/java-securitycentermanagement/v1/proto-google-cloud-securitycentermanagement-v1/src/main/java/com/google/cloud/securitycentermanagement/v1/ListEffectiveEventThreatDetectionCustomModulesResponseOrBuilder.java b/owl-bot-staging/java-securitycentermanagement/v1/proto-google-cloud-securitycentermanagement-v1/src/main/java/com/google/cloud/securitycentermanagement/v1/ListEffectiveEventThreatDetectionCustomModulesResponseOrBuilder.java new file mode 100644 index 000000000000..cca7c8874d71 --- /dev/null +++ b/owl-bot-staging/java-securitycentermanagement/v1/proto-google-cloud-securitycentermanagement-v1/src/main/java/com/google/cloud/securitycentermanagement/v1/ListEffectiveEventThreatDetectionCustomModulesResponseOrBuilder.java @@ -0,0 +1,73 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/securitycentermanagement/v1/security_center_management.proto + +package com.google.cloud.securitycentermanagement.v1; + +public interface ListEffectiveEventThreatDetectionCustomModulesResponseOrBuilder extends + // @@protoc_insertion_point(interface_extends:google.cloud.securitycentermanagement.v1.ListEffectiveEventThreatDetectionCustomModulesResponse) + com.google.protobuf.MessageOrBuilder { + + /** + *
+   * The list of EffectiveEventThreatDetectionCustomModules
+   * 
+ * + * repeated .google.cloud.securitycentermanagement.v1.EffectiveEventThreatDetectionCustomModule effective_event_threat_detection_custom_modules = 1; + */ + java.util.List + getEffectiveEventThreatDetectionCustomModulesList(); + /** + *
+   * The list of EffectiveEventThreatDetectionCustomModules
+   * 
+ * + * repeated .google.cloud.securitycentermanagement.v1.EffectiveEventThreatDetectionCustomModule effective_event_threat_detection_custom_modules = 1; + */ + com.google.cloud.securitycentermanagement.v1.EffectiveEventThreatDetectionCustomModule getEffectiveEventThreatDetectionCustomModules(int index); + /** + *
+   * The list of EffectiveEventThreatDetectionCustomModules
+   * 
+ * + * repeated .google.cloud.securitycentermanagement.v1.EffectiveEventThreatDetectionCustomModule effective_event_threat_detection_custom_modules = 1; + */ + int getEffectiveEventThreatDetectionCustomModulesCount(); + /** + *
+   * The list of EffectiveEventThreatDetectionCustomModules
+   * 
+ * + * repeated .google.cloud.securitycentermanagement.v1.EffectiveEventThreatDetectionCustomModule effective_event_threat_detection_custom_modules = 1; + */ + java.util.List + getEffectiveEventThreatDetectionCustomModulesOrBuilderList(); + /** + *
+   * The list of EffectiveEventThreatDetectionCustomModules
+   * 
+ * + * repeated .google.cloud.securitycentermanagement.v1.EffectiveEventThreatDetectionCustomModule effective_event_threat_detection_custom_modules = 1; + */ + com.google.cloud.securitycentermanagement.v1.EffectiveEventThreatDetectionCustomModuleOrBuilder getEffectiveEventThreatDetectionCustomModulesOrBuilder( + int index); + + /** + *
+   * A token identifying a page of results the server should return.
+   * 
+ * + * string next_page_token = 2; + * @return The nextPageToken. + */ + java.lang.String getNextPageToken(); + /** + *
+   * A token identifying a page of results the server should return.
+   * 
+ * + * string next_page_token = 2; + * @return The bytes for nextPageToken. + */ + com.google.protobuf.ByteString + getNextPageTokenBytes(); +} diff --git a/java-securitycentermanagement/proto-google-cloud-securitycentermanagement-v1/src/main/java/com/google/cloud/securitycentermanagement/v1/ListEffectiveSecurityHealthAnalyticsCustomModulesRequest.java b/owl-bot-staging/java-securitycentermanagement/v1/proto-google-cloud-securitycentermanagement-v1/src/main/java/com/google/cloud/securitycentermanagement/v1/ListEffectiveSecurityHealthAnalyticsCustomModulesRequest.java similarity index 52% rename from java-securitycentermanagement/proto-google-cloud-securitycentermanagement-v1/src/main/java/com/google/cloud/securitycentermanagement/v1/ListEffectiveSecurityHealthAnalyticsCustomModulesRequest.java rename to owl-bot-staging/java-securitycentermanagement/v1/proto-google-cloud-securitycentermanagement-v1/src/main/java/com/google/cloud/securitycentermanagement/v1/ListEffectiveSecurityHealthAnalyticsCustomModulesRequest.java index c4677905d6d4..abc9f2f0f515 100644 --- a/java-securitycentermanagement/proto-google-cloud-securitycentermanagement-v1/src/main/java/com/google/cloud/securitycentermanagement/v1/ListEffectiveSecurityHealthAnalyticsCustomModulesRequest.java +++ b/owl-bot-staging/java-securitycentermanagement/v1/proto-google-cloud-securitycentermanagement-v1/src/main/java/com/google/cloud/securitycentermanagement/v1/ListEffectiveSecurityHealthAnalyticsCustomModulesRequest.java @@ -1,46 +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. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/securitycentermanagement/v1/security_center_management.proto package com.google.cloud.securitycentermanagement.v1; /** - * - * *
  * Request message for listing effective Security Health Analytics custom
  * modules.
  * 
* - * Protobuf type {@code - * google.cloud.securitycentermanagement.v1.ListEffectiveSecurityHealthAnalyticsCustomModulesRequest} + * Protobuf type {@code google.cloud.securitycentermanagement.v1.ListEffectiveSecurityHealthAnalyticsCustomModulesRequest} */ -public final class ListEffectiveSecurityHealthAnalyticsCustomModulesRequest - extends com.google.protobuf.GeneratedMessageV3 - implements +public final class ListEffectiveSecurityHealthAnalyticsCustomModulesRequest extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.securitycentermanagement.v1.ListEffectiveSecurityHealthAnalyticsCustomModulesRequest) ListEffectiveSecurityHealthAnalyticsCustomModulesRequestOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use ListEffectiveSecurityHealthAnalyticsCustomModulesRequest.newBuilder() to construct. - private ListEffectiveSecurityHealthAnalyticsCustomModulesRequest( - com.google.protobuf.GeneratedMessageV3.Builder builder) { + private ListEffectiveSecurityHealthAnalyticsCustomModulesRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private ListEffectiveSecurityHealthAnalyticsCustomModulesRequest() { parent_ = ""; pageToken_ = ""; @@ -48,34 +27,28 @@ private ListEffectiveSecurityHealthAnalyticsCustomModulesRequest() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new ListEffectiveSecurityHealthAnalyticsCustomModulesRequest(); } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.securitycentermanagement.v1.SecurityCenterManagementProto - .internal_static_google_cloud_securitycentermanagement_v1_ListEffectiveSecurityHealthAnalyticsCustomModulesRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.securitycentermanagement.v1.SecurityCenterManagementProto.internal_static_google_cloud_securitycentermanagement_v1_ListEffectiveSecurityHealthAnalyticsCustomModulesRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.securitycentermanagement.v1.SecurityCenterManagementProto - .internal_static_google_cloud_securitycentermanagement_v1_ListEffectiveSecurityHealthAnalyticsCustomModulesRequest_fieldAccessorTable + return com.google.cloud.securitycentermanagement.v1.SecurityCenterManagementProto.internal_static_google_cloud_securitycentermanagement_v1_ListEffectiveSecurityHealthAnalyticsCustomModulesRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.securitycentermanagement.v1 - .ListEffectiveSecurityHealthAnalyticsCustomModulesRequest.class, - com.google.cloud.securitycentermanagement.v1 - .ListEffectiveSecurityHealthAnalyticsCustomModulesRequest.Builder.class); + com.google.cloud.securitycentermanagement.v1.ListEffectiveSecurityHealthAnalyticsCustomModulesRequest.class, com.google.cloud.securitycentermanagement.v1.ListEffectiveSecurityHealthAnalyticsCustomModulesRequest.Builder.class); } public static final int PARENT_FIELD_NUMBER = 1; - @SuppressWarnings("serial") private volatile java.lang.Object parent_ = ""; /** - * - * *
    * Required. Name of parent to list effective custom modules. Its format is
    * "organizations/{organization}/locations/{location}",
@@ -84,10 +57,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
    * "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 @@ -96,15 +66,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. Name of parent to list effective custom modules. Its format is
    * "organizations/{organization}/locations/{location}",
@@ -113,18 +82,17 @@ public java.lang.String getParent() {
    * "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 { @@ -135,15 +103,12 @@ public com.google.protobuf.ByteString getParentBytes() { public static final int PAGE_SIZE_FIELD_NUMBER = 2; private int pageSize_ = 0; /** - * - * *
    * Optional. The maximum number of results to return in a single response.
    * Default is 10, minimum is 1, maximum is 1000.
    * 
* * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The pageSize. */ @java.lang.Override @@ -152,18 +117,14 @@ public int getPageSize() { } public static final int PAGE_TOKEN_FIELD_NUMBER = 3; - @SuppressWarnings("serial") private volatile java.lang.Object pageToken_ = ""; /** - * - * *
    * Optional. The value returned by the last call indicating a continuation
    * 
* * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The pageToken. */ @java.lang.Override @@ -172,29 +133,29 @@ 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. The value returned by the last call indicating a continuation
    * 
* * 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 { @@ -203,7 +164,6 @@ public com.google.protobuf.ByteString getPageTokenBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -215,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_); } @@ -238,7 +199,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_); @@ -251,24 +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.securitycentermanagement.v1 - .ListEffectiveSecurityHealthAnalyticsCustomModulesRequest)) { + if (!(obj instanceof com.google.cloud.securitycentermanagement.v1.ListEffectiveSecurityHealthAnalyticsCustomModulesRequest)) { return super.equals(obj); } - com.google.cloud.securitycentermanagement.v1 - .ListEffectiveSecurityHealthAnalyticsCustomModulesRequest - other = - (com.google.cloud.securitycentermanagement.v1 - .ListEffectiveSecurityHealthAnalyticsCustomModulesRequest) - obj; + com.google.cloud.securitycentermanagement.v1.ListEffectiveSecurityHealthAnalyticsCustomModulesRequest other = (com.google.cloud.securitycentermanagement.v1.ListEffectiveSecurityHealthAnalyticsCustomModulesRequest) 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; } @@ -291,163 +248,133 @@ public int hashCode() { return hash; } - public static com.google.cloud.securitycentermanagement.v1 - .ListEffectiveSecurityHealthAnalyticsCustomModulesRequest - parseFrom(java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.securitycentermanagement.v1.ListEffectiveSecurityHealthAnalyticsCustomModulesRequest parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - - public static com.google.cloud.securitycentermanagement.v1 - .ListEffectiveSecurityHealthAnalyticsCustomModulesRequest - parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.securitycentermanagement.v1.ListEffectiveSecurityHealthAnalyticsCustomModulesRequest 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.securitycentermanagement.v1 - .ListEffectiveSecurityHealthAnalyticsCustomModulesRequest - parseFrom(com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.securitycentermanagement.v1.ListEffectiveSecurityHealthAnalyticsCustomModulesRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - - public static com.google.cloud.securitycentermanagement.v1 - .ListEffectiveSecurityHealthAnalyticsCustomModulesRequest - parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.securitycentermanagement.v1.ListEffectiveSecurityHealthAnalyticsCustomModulesRequest parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.securitycentermanagement.v1 - .ListEffectiveSecurityHealthAnalyticsCustomModulesRequest - parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.securitycentermanagement.v1.ListEffectiveSecurityHealthAnalyticsCustomModulesRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - - public static com.google.cloud.securitycentermanagement.v1 - .ListEffectiveSecurityHealthAnalyticsCustomModulesRequest - parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.securitycentermanagement.v1.ListEffectiveSecurityHealthAnalyticsCustomModulesRequest parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.securitycentermanagement.v1 - .ListEffectiveSecurityHealthAnalyticsCustomModulesRequest - parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.securitycentermanagement.v1.ListEffectiveSecurityHealthAnalyticsCustomModulesRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - - public static com.google.cloud.securitycentermanagement.v1 - .ListEffectiveSecurityHealthAnalyticsCustomModulesRequest - 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.securitycentermanagement.v1.ListEffectiveSecurityHealthAnalyticsCustomModulesRequest 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.securitycentermanagement.v1 - .ListEffectiveSecurityHealthAnalyticsCustomModulesRequest - parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.securitycentermanagement.v1.ListEffectiveSecurityHealthAnalyticsCustomModulesRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.securitycentermanagement.v1 - .ListEffectiveSecurityHealthAnalyticsCustomModulesRequest - parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + public static com.google.cloud.securitycentermanagement.v1.ListEffectiveSecurityHealthAnalyticsCustomModulesRequest parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.securitycentermanagement.v1 - .ListEffectiveSecurityHealthAnalyticsCustomModulesRequest - parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.securitycentermanagement.v1.ListEffectiveSecurityHealthAnalyticsCustomModulesRequest parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - - public static com.google.cloud.securitycentermanagement.v1 - .ListEffectiveSecurityHealthAnalyticsCustomModulesRequest - 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.securitycentermanagement.v1.ListEffectiveSecurityHealthAnalyticsCustomModulesRequest 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.securitycentermanagement.v1 - .ListEffectiveSecurityHealthAnalyticsCustomModulesRequest - prototype) { + public static Builder newBuilder(com.google.cloud.securitycentermanagement.v1.ListEffectiveSecurityHealthAnalyticsCustomModulesRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected 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 listing effective Security Health Analytics custom
    * modules.
    * 
* - * Protobuf type {@code - * google.cloud.securitycentermanagement.v1.ListEffectiveSecurityHealthAnalyticsCustomModulesRequest} + * Protobuf type {@code google.cloud.securitycentermanagement.v1.ListEffectiveSecurityHealthAnalyticsCustomModulesRequest} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.securitycentermanagement.v1.ListEffectiveSecurityHealthAnalyticsCustomModulesRequest) - com.google.cloud.securitycentermanagement.v1 - .ListEffectiveSecurityHealthAnalyticsCustomModulesRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.securitycentermanagement.v1.SecurityCenterManagementProto - .internal_static_google_cloud_securitycentermanagement_v1_ListEffectiveSecurityHealthAnalyticsCustomModulesRequest_descriptor; + com.google.cloud.securitycentermanagement.v1.ListEffectiveSecurityHealthAnalyticsCustomModulesRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.securitycentermanagement.v1.SecurityCenterManagementProto.internal_static_google_cloud_securitycentermanagement_v1_ListEffectiveSecurityHealthAnalyticsCustomModulesRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.securitycentermanagement.v1.SecurityCenterManagementProto - .internal_static_google_cloud_securitycentermanagement_v1_ListEffectiveSecurityHealthAnalyticsCustomModulesRequest_fieldAccessorTable + return com.google.cloud.securitycentermanagement.v1.SecurityCenterManagementProto.internal_static_google_cloud_securitycentermanagement_v1_ListEffectiveSecurityHealthAnalyticsCustomModulesRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.securitycentermanagement.v1 - .ListEffectiveSecurityHealthAnalyticsCustomModulesRequest.class, - com.google.cloud.securitycentermanagement.v1 - .ListEffectiveSecurityHealthAnalyticsCustomModulesRequest.Builder.class); + com.google.cloud.securitycentermanagement.v1.ListEffectiveSecurityHealthAnalyticsCustomModulesRequest.class, com.google.cloud.securitycentermanagement.v1.ListEffectiveSecurityHealthAnalyticsCustomModulesRequest.Builder.class); } - // Construct using - // com.google.cloud.securitycentermanagement.v1.ListEffectiveSecurityHealthAnalyticsCustomModulesRequest.newBuilder() - private Builder() {} + // Construct using com.google.cloud.securitycentermanagement.v1.ListEffectiveSecurityHealthAnalyticsCustomModulesRequest.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(); @@ -459,26 +386,19 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.securitycentermanagement.v1.SecurityCenterManagementProto - .internal_static_google_cloud_securitycentermanagement_v1_ListEffectiveSecurityHealthAnalyticsCustomModulesRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.securitycentermanagement.v1.SecurityCenterManagementProto.internal_static_google_cloud_securitycentermanagement_v1_ListEffectiveSecurityHealthAnalyticsCustomModulesRequest_descriptor; } @java.lang.Override - public com.google.cloud.securitycentermanagement.v1 - .ListEffectiveSecurityHealthAnalyticsCustomModulesRequest - getDefaultInstanceForType() { - return com.google.cloud.securitycentermanagement.v1 - .ListEffectiveSecurityHealthAnalyticsCustomModulesRequest.getDefaultInstance(); + public com.google.cloud.securitycentermanagement.v1.ListEffectiveSecurityHealthAnalyticsCustomModulesRequest getDefaultInstanceForType() { + return com.google.cloud.securitycentermanagement.v1.ListEffectiveSecurityHealthAnalyticsCustomModulesRequest.getDefaultInstance(); } @java.lang.Override - public com.google.cloud.securitycentermanagement.v1 - .ListEffectiveSecurityHealthAnalyticsCustomModulesRequest - build() { - com.google.cloud.securitycentermanagement.v1 - .ListEffectiveSecurityHealthAnalyticsCustomModulesRequest - result = buildPartial(); + public com.google.cloud.securitycentermanagement.v1.ListEffectiveSecurityHealthAnalyticsCustomModulesRequest build() { + com.google.cloud.securitycentermanagement.v1.ListEffectiveSecurityHealthAnalyticsCustomModulesRequest result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } @@ -486,25 +406,14 @@ public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { } @java.lang.Override - public com.google.cloud.securitycentermanagement.v1 - .ListEffectiveSecurityHealthAnalyticsCustomModulesRequest - buildPartial() { - com.google.cloud.securitycentermanagement.v1 - .ListEffectiveSecurityHealthAnalyticsCustomModulesRequest - result = - new com.google.cloud.securitycentermanagement.v1 - .ListEffectiveSecurityHealthAnalyticsCustomModulesRequest(this); - if (bitField0_ != 0) { - buildPartial0(result); - } + public com.google.cloud.securitycentermanagement.v1.ListEffectiveSecurityHealthAnalyticsCustomModulesRequest buildPartial() { + com.google.cloud.securitycentermanagement.v1.ListEffectiveSecurityHealthAnalyticsCustomModulesRequest result = new com.google.cloud.securitycentermanagement.v1.ListEffectiveSecurityHealthAnalyticsCustomModulesRequest(this); + if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } - private void buildPartial0( - com.google.cloud.securitycentermanagement.v1 - .ListEffectiveSecurityHealthAnalyticsCustomModulesRequest - result) { + private void buildPartial0(com.google.cloud.securitycentermanagement.v1.ListEffectiveSecurityHealthAnalyticsCustomModulesRequest result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000001) != 0)) { result.parent_ = parent_; @@ -521,59 +430,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.securitycentermanagement.v1 - .ListEffectiveSecurityHealthAnalyticsCustomModulesRequest) { - return mergeFrom( - (com.google.cloud.securitycentermanagement.v1 - .ListEffectiveSecurityHealthAnalyticsCustomModulesRequest) - other); + if (other instanceof com.google.cloud.securitycentermanagement.v1.ListEffectiveSecurityHealthAnalyticsCustomModulesRequest) { + return mergeFrom((com.google.cloud.securitycentermanagement.v1.ListEffectiveSecurityHealthAnalyticsCustomModulesRequest)other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom( - com.google.cloud.securitycentermanagement.v1 - .ListEffectiveSecurityHealthAnalyticsCustomModulesRequest - other) { - if (other - == com.google.cloud.securitycentermanagement.v1 - .ListEffectiveSecurityHealthAnalyticsCustomModulesRequest.getDefaultInstance()) - return this; + public Builder mergeFrom(com.google.cloud.securitycentermanagement.v1.ListEffectiveSecurityHealthAnalyticsCustomModulesRequest other) { + if (other == com.google.cloud.securitycentermanagement.v1.ListEffectiveSecurityHealthAnalyticsCustomModulesRequest.getDefaultInstance()) return this; if (!other.getParent().isEmpty()) { parent_ = other.parent_; bitField0_ |= 0x00000001; @@ -613,31 +509,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) { @@ -647,13 +539,10 @@ public Builder mergeFrom( } // finally return this; } - private int bitField0_; private java.lang.Object parent_ = ""; /** - * - * *
      * Required. Name of parent to list effective custom modules. Its format is
      * "organizations/{organization}/locations/{location}",
@@ -662,16 +551,14 @@ public Builder mergeFrom(
      * "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; @@ -680,8 +567,6 @@ public java.lang.String getParent() { } } /** - * - * *
      * Required. Name of parent to list effective custom modules. Its format is
      * "organizations/{organization}/locations/{location}",
@@ -690,17 +575,16 @@ public java.lang.String getParent() {
      * "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 { @@ -708,8 +592,6 @@ public com.google.protobuf.ByteString getParentBytes() { } } /** - * - * *
      * Required. Name of parent to list effective custom modules. Its format is
      * "organizations/{organization}/locations/{location}",
@@ -718,25 +600,19 @@ public com.google.protobuf.ByteString getParentBytes() {
      * "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. Name of parent to list effective custom modules. Its format is
      * "organizations/{organization}/locations/{location}",
@@ -745,10 +621,7 @@ public Builder setParent(java.lang.String value) {
      * "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() { @@ -758,8 +631,6 @@ public Builder clearParent() { return this; } /** - * - * *
      * Required. Name of parent to list effective custom modules. Its format is
      * "organizations/{organization}/locations/{location}",
@@ -768,17 +639,13 @@ public Builder clearParent() {
      * "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; @@ -786,17 +653,14 @@ public Builder setParentBytes(com.google.protobuf.ByteString value) { return this; } - private int pageSize_; + private int pageSize_ ; /** - * - * *
      * Optional. The maximum number of results to return in a single response.
      * Default is 10, minimum is 1, maximum is 1000.
      * 
* * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The pageSize. */ @java.lang.Override @@ -804,15 +668,12 @@ public int getPageSize() { return pageSize_; } /** - * - * *
      * Optional. The maximum number of results to return in a single response.
      * Default is 10, minimum is 1, maximum is 1000.
      * 
* * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @param value The pageSize to set. * @return This builder for chaining. */ @@ -824,15 +685,12 @@ public Builder setPageSize(int value) { return this; } /** - * - * *
      * Optional. The maximum number of results to return in a single response.
      * Default is 10, minimum is 1, maximum is 1000.
      * 
* * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @return This builder for chaining. */ public Builder clearPageSize() { @@ -844,20 +702,18 @@ public Builder clearPageSize() { private java.lang.Object pageToken_ = ""; /** - * - * *
      * Optional. The value returned by the last call indicating a continuation
      * 
* * 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; @@ -866,21 +722,20 @@ public java.lang.String getPageToken() { } } /** - * - * *
      * Optional. The value returned by the last call indicating a continuation
      * 
* * 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 { @@ -888,35 +743,28 @@ public com.google.protobuf.ByteString getPageTokenBytes() { } } /** - * - * *
      * Optional. The value returned by the last call indicating a continuation
      * 
* * 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. The value returned by the last call indicating a continuation
      * 
* * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @return This builder for chaining. */ public Builder clearPageToken() { @@ -926,30 +774,26 @@ public Builder clearPageToken() { return this; } /** - * - * *
      * Optional. The value returned by the last call indicating a continuation
      * 
* * 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); } @@ -959,67 +803,55 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.securitycentermanagement.v1.ListEffectiveSecurityHealthAnalyticsCustomModulesRequest) } // @@protoc_insertion_point(class_scope:google.cloud.securitycentermanagement.v1.ListEffectiveSecurityHealthAnalyticsCustomModulesRequest) - private static final com.google.cloud.securitycentermanagement.v1 - .ListEffectiveSecurityHealthAnalyticsCustomModulesRequest - DEFAULT_INSTANCE; - + private static final com.google.cloud.securitycentermanagement.v1.ListEffectiveSecurityHealthAnalyticsCustomModulesRequest DEFAULT_INSTANCE; static { - DEFAULT_INSTANCE = - new com.google.cloud.securitycentermanagement.v1 - .ListEffectiveSecurityHealthAnalyticsCustomModulesRequest(); + DEFAULT_INSTANCE = new com.google.cloud.securitycentermanagement.v1.ListEffectiveSecurityHealthAnalyticsCustomModulesRequest(); } - public static com.google.cloud.securitycentermanagement.v1 - .ListEffectiveSecurityHealthAnalyticsCustomModulesRequest - getDefaultInstance() { + public static com.google.cloud.securitycentermanagement.v1.ListEffectiveSecurityHealthAnalyticsCustomModulesRequest getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser< - ListEffectiveSecurityHealthAnalyticsCustomModulesRequest> - PARSER = - new com.google.protobuf.AbstractParser< - ListEffectiveSecurityHealthAnalyticsCustomModulesRequest>() { - @java.lang.Override - public ListEffectiveSecurityHealthAnalyticsCustomModulesRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException() - .setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListEffectiveSecurityHealthAnalyticsCustomModulesRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; - public static com.google.protobuf.Parser - parser() { + public static com.google.protobuf.Parser parser() { return PARSER; } @java.lang.Override - public com.google.protobuf.Parser - getParserForType() { + public com.google.protobuf.Parser getParserForType() { return PARSER; } @java.lang.Override - public com.google.cloud.securitycentermanagement.v1 - .ListEffectiveSecurityHealthAnalyticsCustomModulesRequest - getDefaultInstanceForType() { + public com.google.cloud.securitycentermanagement.v1.ListEffectiveSecurityHealthAnalyticsCustomModulesRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/java-securitycentermanagement/proto-google-cloud-securitycentermanagement-v1/src/main/java/com/google/cloud/securitycentermanagement/v1/ListEffectiveSecurityHealthAnalyticsCustomModulesRequestOrBuilder.java b/owl-bot-staging/java-securitycentermanagement/v1/proto-google-cloud-securitycentermanagement-v1/src/main/java/com/google/cloud/securitycentermanagement/v1/ListEffectiveSecurityHealthAnalyticsCustomModulesRequestOrBuilder.java similarity index 64% rename from java-securitycentermanagement/proto-google-cloud-securitycentermanagement-v1/src/main/java/com/google/cloud/securitycentermanagement/v1/ListEffectiveSecurityHealthAnalyticsCustomModulesRequestOrBuilder.java rename to owl-bot-staging/java-securitycentermanagement/v1/proto-google-cloud-securitycentermanagement-v1/src/main/java/com/google/cloud/securitycentermanagement/v1/ListEffectiveSecurityHealthAnalyticsCustomModulesRequestOrBuilder.java index cabe3d1c614d..f54593f87d39 100644 --- a/java-securitycentermanagement/proto-google-cloud-securitycentermanagement-v1/src/main/java/com/google/cloud/securitycentermanagement/v1/ListEffectiveSecurityHealthAnalyticsCustomModulesRequestOrBuilder.java +++ b/owl-bot-staging/java-securitycentermanagement/v1/proto-google-cloud-securitycentermanagement-v1/src/main/java/com/google/cloud/securitycentermanagement/v1/ListEffectiveSecurityHealthAnalyticsCustomModulesRequestOrBuilder.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/securitycentermanagement/v1/security_center_management.proto package com.google.cloud.securitycentermanagement.v1; -public interface ListEffectiveSecurityHealthAnalyticsCustomModulesRequestOrBuilder - extends +public interface ListEffectiveSecurityHealthAnalyticsCustomModulesRequestOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.securitycentermanagement.v1.ListEffectiveSecurityHealthAnalyticsCustomModulesRequest) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * Required. Name of parent to list effective custom modules. Its format is
    * "organizations/{organization}/locations/{location}",
@@ -34,16 +16,11 @@ public interface ListEffectiveSecurityHealthAnalyticsCustomModulesRequestOrBuild
    * "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. Name of parent to list effective custom modules. Its format is
    * "organizations/{organization}/locations/{location}",
@@ -52,50 +29,40 @@ public interface ListEffectiveSecurityHealthAnalyticsCustomModulesRequestOrBuild
    * "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(); /** - * - * *
    * Optional. The maximum number of results to return in a single response.
    * Default is 10, minimum is 1, maximum is 1000.
    * 
* * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The pageSize. */ int getPageSize(); /** - * - * *
    * Optional. The value returned by the last call indicating a continuation
    * 
* * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The pageToken. */ java.lang.String getPageToken(); /** - * - * *
    * Optional. The value returned by the last call indicating a continuation
    * 
* * 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-securitycentermanagement/v1/proto-google-cloud-securitycentermanagement-v1/src/main/java/com/google/cloud/securitycentermanagement/v1/ListEffectiveSecurityHealthAnalyticsCustomModulesResponse.java b/owl-bot-staging/java-securitycentermanagement/v1/proto-google-cloud-securitycentermanagement-v1/src/main/java/com/google/cloud/securitycentermanagement/v1/ListEffectiveSecurityHealthAnalyticsCustomModulesResponse.java new file mode 100644 index 000000000000..f95903f6107e --- /dev/null +++ b/owl-bot-staging/java-securitycentermanagement/v1/proto-google-cloud-securitycentermanagement-v1/src/main/java/com/google/cloud/securitycentermanagement/v1/ListEffectiveSecurityHealthAnalyticsCustomModulesResponse.java @@ -0,0 +1,1025 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/securitycentermanagement/v1/security_center_management.proto + +package com.google.cloud.securitycentermanagement.v1; + +/** + *
+ * Response message for listing effective Security Health Analytics custom
+ * modules.
+ * 
+ * + * Protobuf type {@code google.cloud.securitycentermanagement.v1.ListEffectiveSecurityHealthAnalyticsCustomModulesResponse} + */ +public final class ListEffectiveSecurityHealthAnalyticsCustomModulesResponse extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:google.cloud.securitycentermanagement.v1.ListEffectiveSecurityHealthAnalyticsCustomModulesResponse) + ListEffectiveSecurityHealthAnalyticsCustomModulesResponseOrBuilder { +private static final long serialVersionUID = 0L; + // Use ListEffectiveSecurityHealthAnalyticsCustomModulesResponse.newBuilder() to construct. + private ListEffectiveSecurityHealthAnalyticsCustomModulesResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private ListEffectiveSecurityHealthAnalyticsCustomModulesResponse() { + effectiveSecurityHealthAnalyticsCustomModules_ = java.util.Collections.emptyList(); + nextPageToken_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new ListEffectiveSecurityHealthAnalyticsCustomModulesResponse(); + } + + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.securitycentermanagement.v1.SecurityCenterManagementProto.internal_static_google_cloud_securitycentermanagement_v1_ListEffectiveSecurityHealthAnalyticsCustomModulesResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.securitycentermanagement.v1.SecurityCenterManagementProto.internal_static_google_cloud_securitycentermanagement_v1_ListEffectiveSecurityHealthAnalyticsCustomModulesResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.securitycentermanagement.v1.ListEffectiveSecurityHealthAnalyticsCustomModulesResponse.class, com.google.cloud.securitycentermanagement.v1.ListEffectiveSecurityHealthAnalyticsCustomModulesResponse.Builder.class); + } + + public static final int EFFECTIVE_SECURITY_HEALTH_ANALYTICS_CUSTOM_MODULES_FIELD_NUMBER = 1; + @SuppressWarnings("serial") + private java.util.List effectiveSecurityHealthAnalyticsCustomModules_; + /** + *
+   * The list of EffectiveSecurityHealthAnalyticsCustomModule
+   * 
+ * + * repeated .google.cloud.securitycentermanagement.v1.EffectiveSecurityHealthAnalyticsCustomModule effective_security_health_analytics_custom_modules = 1; + */ + @java.lang.Override + public java.util.List getEffectiveSecurityHealthAnalyticsCustomModulesList() { + return effectiveSecurityHealthAnalyticsCustomModules_; + } + /** + *
+   * The list of EffectiveSecurityHealthAnalyticsCustomModule
+   * 
+ * + * repeated .google.cloud.securitycentermanagement.v1.EffectiveSecurityHealthAnalyticsCustomModule effective_security_health_analytics_custom_modules = 1; + */ + @java.lang.Override + public java.util.List + getEffectiveSecurityHealthAnalyticsCustomModulesOrBuilderList() { + return effectiveSecurityHealthAnalyticsCustomModules_; + } + /** + *
+   * The list of EffectiveSecurityHealthAnalyticsCustomModule
+   * 
+ * + * repeated .google.cloud.securitycentermanagement.v1.EffectiveSecurityHealthAnalyticsCustomModule effective_security_health_analytics_custom_modules = 1; + */ + @java.lang.Override + public int getEffectiveSecurityHealthAnalyticsCustomModulesCount() { + return effectiveSecurityHealthAnalyticsCustomModules_.size(); + } + /** + *
+   * The list of EffectiveSecurityHealthAnalyticsCustomModule
+   * 
+ * + * repeated .google.cloud.securitycentermanagement.v1.EffectiveSecurityHealthAnalyticsCustomModule effective_security_health_analytics_custom_modules = 1; + */ + @java.lang.Override + public com.google.cloud.securitycentermanagement.v1.EffectiveSecurityHealthAnalyticsCustomModule getEffectiveSecurityHealthAnalyticsCustomModules(int index) { + return effectiveSecurityHealthAnalyticsCustomModules_.get(index); + } + /** + *
+   * The list of EffectiveSecurityHealthAnalyticsCustomModule
+   * 
+ * + * repeated .google.cloud.securitycentermanagement.v1.EffectiveSecurityHealthAnalyticsCustomModule effective_security_health_analytics_custom_modules = 1; + */ + @java.lang.Override + public com.google.cloud.securitycentermanagement.v1.EffectiveSecurityHealthAnalyticsCustomModuleOrBuilder getEffectiveSecurityHealthAnalyticsCustomModulesOrBuilder( + int index) { + return effectiveSecurityHealthAnalyticsCustomModules_.get(index); + } + + public static final int NEXT_PAGE_TOKEN_FIELD_NUMBER = 2; + @SuppressWarnings("serial") + private volatile java.lang.Object nextPageToken_ = ""; + /** + *
+   * A token identifying a page of results the server should return.
+   * 
+ * + * string next_page_token = 2; + * @return The nextPageToken. + */ + @java.lang.Override + public java.lang.String getNextPageToken() { + java.lang.Object ref = nextPageToken_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + nextPageToken_ = s; + return s; + } + } + /** + *
+   * A token identifying a page of results the server should return.
+   * 
+ * + * string next_page_token = 2; + * @return The bytes for nextPageToken. + */ + @java.lang.Override + 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); + nextPageToken_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + for (int i = 0; i < effectiveSecurityHealthAnalyticsCustomModules_.size(); i++) { + output.writeMessage(1, effectiveSecurityHealthAnalyticsCustomModules_.get(i)); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(nextPageToken_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, nextPageToken_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + for (int i = 0; i < effectiveSecurityHealthAnalyticsCustomModules_.size(); i++) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, effectiveSecurityHealthAnalyticsCustomModules_.get(i)); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(nextPageToken_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, nextPageToken_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.securitycentermanagement.v1.ListEffectiveSecurityHealthAnalyticsCustomModulesResponse)) { + return super.equals(obj); + } + com.google.cloud.securitycentermanagement.v1.ListEffectiveSecurityHealthAnalyticsCustomModulesResponse other = (com.google.cloud.securitycentermanagement.v1.ListEffectiveSecurityHealthAnalyticsCustomModulesResponse) obj; + + if (!getEffectiveSecurityHealthAnalyticsCustomModulesList() + .equals(other.getEffectiveSecurityHealthAnalyticsCustomModulesList())) return false; + if (!getNextPageToken() + .equals(other.getNextPageToken())) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (getEffectiveSecurityHealthAnalyticsCustomModulesCount() > 0) { + hash = (37 * hash) + EFFECTIVE_SECURITY_HEALTH_ANALYTICS_CUSTOM_MODULES_FIELD_NUMBER; + hash = (53 * hash) + getEffectiveSecurityHealthAnalyticsCustomModulesList().hashCode(); + } + hash = (37 * hash) + NEXT_PAGE_TOKEN_FIELD_NUMBER; + hash = (53 * hash) + getNextPageToken().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.securitycentermanagement.v1.ListEffectiveSecurityHealthAnalyticsCustomModulesResponse parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.cloud.securitycentermanagement.v1.ListEffectiveSecurityHealthAnalyticsCustomModulesResponse 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.securitycentermanagement.v1.ListEffectiveSecurityHealthAnalyticsCustomModulesResponse parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.cloud.securitycentermanagement.v1.ListEffectiveSecurityHealthAnalyticsCustomModulesResponse parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.cloud.securitycentermanagement.v1.ListEffectiveSecurityHealthAnalyticsCustomModulesResponse parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.cloud.securitycentermanagement.v1.ListEffectiveSecurityHealthAnalyticsCustomModulesResponse parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.cloud.securitycentermanagement.v1.ListEffectiveSecurityHealthAnalyticsCustomModulesResponse parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.google.cloud.securitycentermanagement.v1.ListEffectiveSecurityHealthAnalyticsCustomModulesResponse 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.securitycentermanagement.v1.ListEffectiveSecurityHealthAnalyticsCustomModulesResponse parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.securitycentermanagement.v1.ListEffectiveSecurityHealthAnalyticsCustomModulesResponse parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static com.google.cloud.securitycentermanagement.v1.ListEffectiveSecurityHealthAnalyticsCustomModulesResponse parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.google.cloud.securitycentermanagement.v1.ListEffectiveSecurityHealthAnalyticsCustomModulesResponse 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.securitycentermanagement.v1.ListEffectiveSecurityHealthAnalyticsCustomModulesResponse prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + *
+   * Response message for listing effective Security Health Analytics custom
+   * modules.
+   * 
+ * + * Protobuf type {@code google.cloud.securitycentermanagement.v1.ListEffectiveSecurityHealthAnalyticsCustomModulesResponse} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:google.cloud.securitycentermanagement.v1.ListEffectiveSecurityHealthAnalyticsCustomModulesResponse) + com.google.cloud.securitycentermanagement.v1.ListEffectiveSecurityHealthAnalyticsCustomModulesResponseOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.securitycentermanagement.v1.SecurityCenterManagementProto.internal_static_google_cloud_securitycentermanagement_v1_ListEffectiveSecurityHealthAnalyticsCustomModulesResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.securitycentermanagement.v1.SecurityCenterManagementProto.internal_static_google_cloud_securitycentermanagement_v1_ListEffectiveSecurityHealthAnalyticsCustomModulesResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.securitycentermanagement.v1.ListEffectiveSecurityHealthAnalyticsCustomModulesResponse.class, com.google.cloud.securitycentermanagement.v1.ListEffectiveSecurityHealthAnalyticsCustomModulesResponse.Builder.class); + } + + // Construct using com.google.cloud.securitycentermanagement.v1.ListEffectiveSecurityHealthAnalyticsCustomModulesResponse.newBuilder() + private Builder() { + + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + if (effectiveSecurityHealthAnalyticsCustomModulesBuilder_ == null) { + effectiveSecurityHealthAnalyticsCustomModules_ = java.util.Collections.emptyList(); + } else { + effectiveSecurityHealthAnalyticsCustomModules_ = null; + effectiveSecurityHealthAnalyticsCustomModulesBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000001); + nextPageToken_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.securitycentermanagement.v1.SecurityCenterManagementProto.internal_static_google_cloud_securitycentermanagement_v1_ListEffectiveSecurityHealthAnalyticsCustomModulesResponse_descriptor; + } + + @java.lang.Override + public com.google.cloud.securitycentermanagement.v1.ListEffectiveSecurityHealthAnalyticsCustomModulesResponse getDefaultInstanceForType() { + return com.google.cloud.securitycentermanagement.v1.ListEffectiveSecurityHealthAnalyticsCustomModulesResponse.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.securitycentermanagement.v1.ListEffectiveSecurityHealthAnalyticsCustomModulesResponse build() { + com.google.cloud.securitycentermanagement.v1.ListEffectiveSecurityHealthAnalyticsCustomModulesResponse result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.securitycentermanagement.v1.ListEffectiveSecurityHealthAnalyticsCustomModulesResponse buildPartial() { + com.google.cloud.securitycentermanagement.v1.ListEffectiveSecurityHealthAnalyticsCustomModulesResponse result = new com.google.cloud.securitycentermanagement.v1.ListEffectiveSecurityHealthAnalyticsCustomModulesResponse(this); + buildPartialRepeatedFields(result); + if (bitField0_ != 0) { buildPartial0(result); } + onBuilt(); + return result; + } + + private void buildPartialRepeatedFields(com.google.cloud.securitycentermanagement.v1.ListEffectiveSecurityHealthAnalyticsCustomModulesResponse result) { + if (effectiveSecurityHealthAnalyticsCustomModulesBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0)) { + effectiveSecurityHealthAnalyticsCustomModules_ = java.util.Collections.unmodifiableList(effectiveSecurityHealthAnalyticsCustomModules_); + bitField0_ = (bitField0_ & ~0x00000001); + } + result.effectiveSecurityHealthAnalyticsCustomModules_ = effectiveSecurityHealthAnalyticsCustomModules_; + } else { + result.effectiveSecurityHealthAnalyticsCustomModules_ = effectiveSecurityHealthAnalyticsCustomModulesBuilder_.build(); + } + } + + private void buildPartial0(com.google.cloud.securitycentermanagement.v1.ListEffectiveSecurityHealthAnalyticsCustomModulesResponse result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000002) != 0)) { + result.nextPageToken_ = nextPageToken_; + } + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.securitycentermanagement.v1.ListEffectiveSecurityHealthAnalyticsCustomModulesResponse) { + return mergeFrom((com.google.cloud.securitycentermanagement.v1.ListEffectiveSecurityHealthAnalyticsCustomModulesResponse)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.securitycentermanagement.v1.ListEffectiveSecurityHealthAnalyticsCustomModulesResponse other) { + if (other == com.google.cloud.securitycentermanagement.v1.ListEffectiveSecurityHealthAnalyticsCustomModulesResponse.getDefaultInstance()) return this; + if (effectiveSecurityHealthAnalyticsCustomModulesBuilder_ == null) { + if (!other.effectiveSecurityHealthAnalyticsCustomModules_.isEmpty()) { + if (effectiveSecurityHealthAnalyticsCustomModules_.isEmpty()) { + effectiveSecurityHealthAnalyticsCustomModules_ = other.effectiveSecurityHealthAnalyticsCustomModules_; + bitField0_ = (bitField0_ & ~0x00000001); + } else { + ensureEffectiveSecurityHealthAnalyticsCustomModulesIsMutable(); + effectiveSecurityHealthAnalyticsCustomModules_.addAll(other.effectiveSecurityHealthAnalyticsCustomModules_); + } + onChanged(); + } + } else { + if (!other.effectiveSecurityHealthAnalyticsCustomModules_.isEmpty()) { + if (effectiveSecurityHealthAnalyticsCustomModulesBuilder_.isEmpty()) { + effectiveSecurityHealthAnalyticsCustomModulesBuilder_.dispose(); + effectiveSecurityHealthAnalyticsCustomModulesBuilder_ = null; + effectiveSecurityHealthAnalyticsCustomModules_ = other.effectiveSecurityHealthAnalyticsCustomModules_; + bitField0_ = (bitField0_ & ~0x00000001); + effectiveSecurityHealthAnalyticsCustomModulesBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? + getEffectiveSecurityHealthAnalyticsCustomModulesFieldBuilder() : null; + } else { + effectiveSecurityHealthAnalyticsCustomModulesBuilder_.addAllMessages(other.effectiveSecurityHealthAnalyticsCustomModules_); + } + } + } + if (!other.getNextPageToken().isEmpty()) { + nextPageToken_ = other.nextPageToken_; + bitField0_ |= 0x00000002; + onChanged(); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + com.google.cloud.securitycentermanagement.v1.EffectiveSecurityHealthAnalyticsCustomModule m = + input.readMessage( + com.google.cloud.securitycentermanagement.v1.EffectiveSecurityHealthAnalyticsCustomModule.parser(), + extensionRegistry); + if (effectiveSecurityHealthAnalyticsCustomModulesBuilder_ == null) { + ensureEffectiveSecurityHealthAnalyticsCustomModulesIsMutable(); + effectiveSecurityHealthAnalyticsCustomModules_.add(m); + } else { + effectiveSecurityHealthAnalyticsCustomModulesBuilder_.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) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + private int bitField0_; + + private java.util.List effectiveSecurityHealthAnalyticsCustomModules_ = + java.util.Collections.emptyList(); + private void ensureEffectiveSecurityHealthAnalyticsCustomModulesIsMutable() { + if (!((bitField0_ & 0x00000001) != 0)) { + effectiveSecurityHealthAnalyticsCustomModules_ = new java.util.ArrayList(effectiveSecurityHealthAnalyticsCustomModules_); + bitField0_ |= 0x00000001; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.securitycentermanagement.v1.EffectiveSecurityHealthAnalyticsCustomModule, com.google.cloud.securitycentermanagement.v1.EffectiveSecurityHealthAnalyticsCustomModule.Builder, com.google.cloud.securitycentermanagement.v1.EffectiveSecurityHealthAnalyticsCustomModuleOrBuilder> effectiveSecurityHealthAnalyticsCustomModulesBuilder_; + + /** + *
+     * The list of EffectiveSecurityHealthAnalyticsCustomModule
+     * 
+ * + * repeated .google.cloud.securitycentermanagement.v1.EffectiveSecurityHealthAnalyticsCustomModule effective_security_health_analytics_custom_modules = 1; + */ + public java.util.List getEffectiveSecurityHealthAnalyticsCustomModulesList() { + if (effectiveSecurityHealthAnalyticsCustomModulesBuilder_ == null) { + return java.util.Collections.unmodifiableList(effectiveSecurityHealthAnalyticsCustomModules_); + } else { + return effectiveSecurityHealthAnalyticsCustomModulesBuilder_.getMessageList(); + } + } + /** + *
+     * The list of EffectiveSecurityHealthAnalyticsCustomModule
+     * 
+ * + * repeated .google.cloud.securitycentermanagement.v1.EffectiveSecurityHealthAnalyticsCustomModule effective_security_health_analytics_custom_modules = 1; + */ + public int getEffectiveSecurityHealthAnalyticsCustomModulesCount() { + if (effectiveSecurityHealthAnalyticsCustomModulesBuilder_ == null) { + return effectiveSecurityHealthAnalyticsCustomModules_.size(); + } else { + return effectiveSecurityHealthAnalyticsCustomModulesBuilder_.getCount(); + } + } + /** + *
+     * The list of EffectiveSecurityHealthAnalyticsCustomModule
+     * 
+ * + * repeated .google.cloud.securitycentermanagement.v1.EffectiveSecurityHealthAnalyticsCustomModule effective_security_health_analytics_custom_modules = 1; + */ + public com.google.cloud.securitycentermanagement.v1.EffectiveSecurityHealthAnalyticsCustomModule getEffectiveSecurityHealthAnalyticsCustomModules(int index) { + if (effectiveSecurityHealthAnalyticsCustomModulesBuilder_ == null) { + return effectiveSecurityHealthAnalyticsCustomModules_.get(index); + } else { + return effectiveSecurityHealthAnalyticsCustomModulesBuilder_.getMessage(index); + } + } + /** + *
+     * The list of EffectiveSecurityHealthAnalyticsCustomModule
+     * 
+ * + * repeated .google.cloud.securitycentermanagement.v1.EffectiveSecurityHealthAnalyticsCustomModule effective_security_health_analytics_custom_modules = 1; + */ + public Builder setEffectiveSecurityHealthAnalyticsCustomModules( + int index, com.google.cloud.securitycentermanagement.v1.EffectiveSecurityHealthAnalyticsCustomModule value) { + if (effectiveSecurityHealthAnalyticsCustomModulesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureEffectiveSecurityHealthAnalyticsCustomModulesIsMutable(); + effectiveSecurityHealthAnalyticsCustomModules_.set(index, value); + onChanged(); + } else { + effectiveSecurityHealthAnalyticsCustomModulesBuilder_.setMessage(index, value); + } + return this; + } + /** + *
+     * The list of EffectiveSecurityHealthAnalyticsCustomModule
+     * 
+ * + * repeated .google.cloud.securitycentermanagement.v1.EffectiveSecurityHealthAnalyticsCustomModule effective_security_health_analytics_custom_modules = 1; + */ + public Builder setEffectiveSecurityHealthAnalyticsCustomModules( + int index, com.google.cloud.securitycentermanagement.v1.EffectiveSecurityHealthAnalyticsCustomModule.Builder builderForValue) { + if (effectiveSecurityHealthAnalyticsCustomModulesBuilder_ == null) { + ensureEffectiveSecurityHealthAnalyticsCustomModulesIsMutable(); + effectiveSecurityHealthAnalyticsCustomModules_.set(index, builderForValue.build()); + onChanged(); + } else { + effectiveSecurityHealthAnalyticsCustomModulesBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + /** + *
+     * The list of EffectiveSecurityHealthAnalyticsCustomModule
+     * 
+ * + * repeated .google.cloud.securitycentermanagement.v1.EffectiveSecurityHealthAnalyticsCustomModule effective_security_health_analytics_custom_modules = 1; + */ + public Builder addEffectiveSecurityHealthAnalyticsCustomModules(com.google.cloud.securitycentermanagement.v1.EffectiveSecurityHealthAnalyticsCustomModule value) { + if (effectiveSecurityHealthAnalyticsCustomModulesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureEffectiveSecurityHealthAnalyticsCustomModulesIsMutable(); + effectiveSecurityHealthAnalyticsCustomModules_.add(value); + onChanged(); + } else { + effectiveSecurityHealthAnalyticsCustomModulesBuilder_.addMessage(value); + } + return this; + } + /** + *
+     * The list of EffectiveSecurityHealthAnalyticsCustomModule
+     * 
+ * + * repeated .google.cloud.securitycentermanagement.v1.EffectiveSecurityHealthAnalyticsCustomModule effective_security_health_analytics_custom_modules = 1; + */ + public Builder addEffectiveSecurityHealthAnalyticsCustomModules( + int index, com.google.cloud.securitycentermanagement.v1.EffectiveSecurityHealthAnalyticsCustomModule value) { + if (effectiveSecurityHealthAnalyticsCustomModulesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureEffectiveSecurityHealthAnalyticsCustomModulesIsMutable(); + effectiveSecurityHealthAnalyticsCustomModules_.add(index, value); + onChanged(); + } else { + effectiveSecurityHealthAnalyticsCustomModulesBuilder_.addMessage(index, value); + } + return this; + } + /** + *
+     * The list of EffectiveSecurityHealthAnalyticsCustomModule
+     * 
+ * + * repeated .google.cloud.securitycentermanagement.v1.EffectiveSecurityHealthAnalyticsCustomModule effective_security_health_analytics_custom_modules = 1; + */ + public Builder addEffectiveSecurityHealthAnalyticsCustomModules( + com.google.cloud.securitycentermanagement.v1.EffectiveSecurityHealthAnalyticsCustomModule.Builder builderForValue) { + if (effectiveSecurityHealthAnalyticsCustomModulesBuilder_ == null) { + ensureEffectiveSecurityHealthAnalyticsCustomModulesIsMutable(); + effectiveSecurityHealthAnalyticsCustomModules_.add(builderForValue.build()); + onChanged(); + } else { + effectiveSecurityHealthAnalyticsCustomModulesBuilder_.addMessage(builderForValue.build()); + } + return this; + } + /** + *
+     * The list of EffectiveSecurityHealthAnalyticsCustomModule
+     * 
+ * + * repeated .google.cloud.securitycentermanagement.v1.EffectiveSecurityHealthAnalyticsCustomModule effective_security_health_analytics_custom_modules = 1; + */ + public Builder addEffectiveSecurityHealthAnalyticsCustomModules( + int index, com.google.cloud.securitycentermanagement.v1.EffectiveSecurityHealthAnalyticsCustomModule.Builder builderForValue) { + if (effectiveSecurityHealthAnalyticsCustomModulesBuilder_ == null) { + ensureEffectiveSecurityHealthAnalyticsCustomModulesIsMutable(); + effectiveSecurityHealthAnalyticsCustomModules_.add(index, builderForValue.build()); + onChanged(); + } else { + effectiveSecurityHealthAnalyticsCustomModulesBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + /** + *
+     * The list of EffectiveSecurityHealthAnalyticsCustomModule
+     * 
+ * + * repeated .google.cloud.securitycentermanagement.v1.EffectiveSecurityHealthAnalyticsCustomModule effective_security_health_analytics_custom_modules = 1; + */ + public Builder addAllEffectiveSecurityHealthAnalyticsCustomModules( + java.lang.Iterable values) { + if (effectiveSecurityHealthAnalyticsCustomModulesBuilder_ == null) { + ensureEffectiveSecurityHealthAnalyticsCustomModulesIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, effectiveSecurityHealthAnalyticsCustomModules_); + onChanged(); + } else { + effectiveSecurityHealthAnalyticsCustomModulesBuilder_.addAllMessages(values); + } + return this; + } + /** + *
+     * The list of EffectiveSecurityHealthAnalyticsCustomModule
+     * 
+ * + * repeated .google.cloud.securitycentermanagement.v1.EffectiveSecurityHealthAnalyticsCustomModule effective_security_health_analytics_custom_modules = 1; + */ + public Builder clearEffectiveSecurityHealthAnalyticsCustomModules() { + if (effectiveSecurityHealthAnalyticsCustomModulesBuilder_ == null) { + effectiveSecurityHealthAnalyticsCustomModules_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + } else { + effectiveSecurityHealthAnalyticsCustomModulesBuilder_.clear(); + } + return this; + } + /** + *
+     * The list of EffectiveSecurityHealthAnalyticsCustomModule
+     * 
+ * + * repeated .google.cloud.securitycentermanagement.v1.EffectiveSecurityHealthAnalyticsCustomModule effective_security_health_analytics_custom_modules = 1; + */ + public Builder removeEffectiveSecurityHealthAnalyticsCustomModules(int index) { + if (effectiveSecurityHealthAnalyticsCustomModulesBuilder_ == null) { + ensureEffectiveSecurityHealthAnalyticsCustomModulesIsMutable(); + effectiveSecurityHealthAnalyticsCustomModules_.remove(index); + onChanged(); + } else { + effectiveSecurityHealthAnalyticsCustomModulesBuilder_.remove(index); + } + return this; + } + /** + *
+     * The list of EffectiveSecurityHealthAnalyticsCustomModule
+     * 
+ * + * repeated .google.cloud.securitycentermanagement.v1.EffectiveSecurityHealthAnalyticsCustomModule effective_security_health_analytics_custom_modules = 1; + */ + public com.google.cloud.securitycentermanagement.v1.EffectiveSecurityHealthAnalyticsCustomModule.Builder getEffectiveSecurityHealthAnalyticsCustomModulesBuilder( + int index) { + return getEffectiveSecurityHealthAnalyticsCustomModulesFieldBuilder().getBuilder(index); + } + /** + *
+     * The list of EffectiveSecurityHealthAnalyticsCustomModule
+     * 
+ * + * repeated .google.cloud.securitycentermanagement.v1.EffectiveSecurityHealthAnalyticsCustomModule effective_security_health_analytics_custom_modules = 1; + */ + public com.google.cloud.securitycentermanagement.v1.EffectiveSecurityHealthAnalyticsCustomModuleOrBuilder getEffectiveSecurityHealthAnalyticsCustomModulesOrBuilder( + int index) { + if (effectiveSecurityHealthAnalyticsCustomModulesBuilder_ == null) { + return effectiveSecurityHealthAnalyticsCustomModules_.get(index); } else { + return effectiveSecurityHealthAnalyticsCustomModulesBuilder_.getMessageOrBuilder(index); + } + } + /** + *
+     * The list of EffectiveSecurityHealthAnalyticsCustomModule
+     * 
+ * + * repeated .google.cloud.securitycentermanagement.v1.EffectiveSecurityHealthAnalyticsCustomModule effective_security_health_analytics_custom_modules = 1; + */ + public java.util.List + getEffectiveSecurityHealthAnalyticsCustomModulesOrBuilderList() { + if (effectiveSecurityHealthAnalyticsCustomModulesBuilder_ != null) { + return effectiveSecurityHealthAnalyticsCustomModulesBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(effectiveSecurityHealthAnalyticsCustomModules_); + } + } + /** + *
+     * The list of EffectiveSecurityHealthAnalyticsCustomModule
+     * 
+ * + * repeated .google.cloud.securitycentermanagement.v1.EffectiveSecurityHealthAnalyticsCustomModule effective_security_health_analytics_custom_modules = 1; + */ + public com.google.cloud.securitycentermanagement.v1.EffectiveSecurityHealthAnalyticsCustomModule.Builder addEffectiveSecurityHealthAnalyticsCustomModulesBuilder() { + return getEffectiveSecurityHealthAnalyticsCustomModulesFieldBuilder().addBuilder( + com.google.cloud.securitycentermanagement.v1.EffectiveSecurityHealthAnalyticsCustomModule.getDefaultInstance()); + } + /** + *
+     * The list of EffectiveSecurityHealthAnalyticsCustomModule
+     * 
+ * + * repeated .google.cloud.securitycentermanagement.v1.EffectiveSecurityHealthAnalyticsCustomModule effective_security_health_analytics_custom_modules = 1; + */ + public com.google.cloud.securitycentermanagement.v1.EffectiveSecurityHealthAnalyticsCustomModule.Builder addEffectiveSecurityHealthAnalyticsCustomModulesBuilder( + int index) { + return getEffectiveSecurityHealthAnalyticsCustomModulesFieldBuilder().addBuilder( + index, com.google.cloud.securitycentermanagement.v1.EffectiveSecurityHealthAnalyticsCustomModule.getDefaultInstance()); + } + /** + *
+     * The list of EffectiveSecurityHealthAnalyticsCustomModule
+     * 
+ * + * repeated .google.cloud.securitycentermanagement.v1.EffectiveSecurityHealthAnalyticsCustomModule effective_security_health_analytics_custom_modules = 1; + */ + public java.util.List + getEffectiveSecurityHealthAnalyticsCustomModulesBuilderList() { + return getEffectiveSecurityHealthAnalyticsCustomModulesFieldBuilder().getBuilderList(); + } + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.securitycentermanagement.v1.EffectiveSecurityHealthAnalyticsCustomModule, com.google.cloud.securitycentermanagement.v1.EffectiveSecurityHealthAnalyticsCustomModule.Builder, com.google.cloud.securitycentermanagement.v1.EffectiveSecurityHealthAnalyticsCustomModuleOrBuilder> + getEffectiveSecurityHealthAnalyticsCustomModulesFieldBuilder() { + if (effectiveSecurityHealthAnalyticsCustomModulesBuilder_ == null) { + effectiveSecurityHealthAnalyticsCustomModulesBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.securitycentermanagement.v1.EffectiveSecurityHealthAnalyticsCustomModule, com.google.cloud.securitycentermanagement.v1.EffectiveSecurityHealthAnalyticsCustomModule.Builder, com.google.cloud.securitycentermanagement.v1.EffectiveSecurityHealthAnalyticsCustomModuleOrBuilder>( + effectiveSecurityHealthAnalyticsCustomModules_, + ((bitField0_ & 0x00000001) != 0), + getParentForChildren(), + isClean()); + effectiveSecurityHealthAnalyticsCustomModules_ = null; + } + return effectiveSecurityHealthAnalyticsCustomModulesBuilder_; + } + + private java.lang.Object nextPageToken_ = ""; + /** + *
+     * A token identifying a page of results the server should return.
+     * 
+ * + * 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; + java.lang.String s = bs.toStringUtf8(); + nextPageToken_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+     * A token identifying a page of results the server should return.
+     * 
+ * + * string next_page_token = 2; + * @return The bytes for nextPageToken. + */ + 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); + nextPageToken_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+     * A token identifying a page of results the server should return.
+     * 
+ * + * 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(); } + nextPageToken_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + *
+     * A token identifying a page of results the server should return.
+     * 
+ * + * string next_page_token = 2; + * @return This builder for chaining. + */ + public Builder clearNextPageToken() { + nextPageToken_ = getDefaultInstance().getNextPageToken(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + /** + *
+     * A token identifying a page of results the server should return.
+     * 
+ * + * 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(); } + checkByteStringIsUtf8(value); + nextPageToken_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:google.cloud.securitycentermanagement.v1.ListEffectiveSecurityHealthAnalyticsCustomModulesResponse) + } + + // @@protoc_insertion_point(class_scope:google.cloud.securitycentermanagement.v1.ListEffectiveSecurityHealthAnalyticsCustomModulesResponse) + private static final com.google.cloud.securitycentermanagement.v1.ListEffectiveSecurityHealthAnalyticsCustomModulesResponse DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new com.google.cloud.securitycentermanagement.v1.ListEffectiveSecurityHealthAnalyticsCustomModulesResponse(); + } + + public static com.google.cloud.securitycentermanagement.v1.ListEffectiveSecurityHealthAnalyticsCustomModulesResponse getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListEffectiveSecurityHealthAnalyticsCustomModulesResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.securitycentermanagement.v1.ListEffectiveSecurityHealthAnalyticsCustomModulesResponse getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + +} + diff --git a/owl-bot-staging/java-securitycentermanagement/v1/proto-google-cloud-securitycentermanagement-v1/src/main/java/com/google/cloud/securitycentermanagement/v1/ListEffectiveSecurityHealthAnalyticsCustomModulesResponseOrBuilder.java b/owl-bot-staging/java-securitycentermanagement/v1/proto-google-cloud-securitycentermanagement-v1/src/main/java/com/google/cloud/securitycentermanagement/v1/ListEffectiveSecurityHealthAnalyticsCustomModulesResponseOrBuilder.java new file mode 100644 index 000000000000..64bac02345b8 --- /dev/null +++ b/owl-bot-staging/java-securitycentermanagement/v1/proto-google-cloud-securitycentermanagement-v1/src/main/java/com/google/cloud/securitycentermanagement/v1/ListEffectiveSecurityHealthAnalyticsCustomModulesResponseOrBuilder.java @@ -0,0 +1,73 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/securitycentermanagement/v1/security_center_management.proto + +package com.google.cloud.securitycentermanagement.v1; + +public interface ListEffectiveSecurityHealthAnalyticsCustomModulesResponseOrBuilder extends + // @@protoc_insertion_point(interface_extends:google.cloud.securitycentermanagement.v1.ListEffectiveSecurityHealthAnalyticsCustomModulesResponse) + com.google.protobuf.MessageOrBuilder { + + /** + *
+   * The list of EffectiveSecurityHealthAnalyticsCustomModule
+   * 
+ * + * repeated .google.cloud.securitycentermanagement.v1.EffectiveSecurityHealthAnalyticsCustomModule effective_security_health_analytics_custom_modules = 1; + */ + java.util.List + getEffectiveSecurityHealthAnalyticsCustomModulesList(); + /** + *
+   * The list of EffectiveSecurityHealthAnalyticsCustomModule
+   * 
+ * + * repeated .google.cloud.securitycentermanagement.v1.EffectiveSecurityHealthAnalyticsCustomModule effective_security_health_analytics_custom_modules = 1; + */ + com.google.cloud.securitycentermanagement.v1.EffectiveSecurityHealthAnalyticsCustomModule getEffectiveSecurityHealthAnalyticsCustomModules(int index); + /** + *
+   * The list of EffectiveSecurityHealthAnalyticsCustomModule
+   * 
+ * + * repeated .google.cloud.securitycentermanagement.v1.EffectiveSecurityHealthAnalyticsCustomModule effective_security_health_analytics_custom_modules = 1; + */ + int getEffectiveSecurityHealthAnalyticsCustomModulesCount(); + /** + *
+   * The list of EffectiveSecurityHealthAnalyticsCustomModule
+   * 
+ * + * repeated .google.cloud.securitycentermanagement.v1.EffectiveSecurityHealthAnalyticsCustomModule effective_security_health_analytics_custom_modules = 1; + */ + java.util.List + getEffectiveSecurityHealthAnalyticsCustomModulesOrBuilderList(); + /** + *
+   * The list of EffectiveSecurityHealthAnalyticsCustomModule
+   * 
+ * + * repeated .google.cloud.securitycentermanagement.v1.EffectiveSecurityHealthAnalyticsCustomModule effective_security_health_analytics_custom_modules = 1; + */ + com.google.cloud.securitycentermanagement.v1.EffectiveSecurityHealthAnalyticsCustomModuleOrBuilder getEffectiveSecurityHealthAnalyticsCustomModulesOrBuilder( + int index); + + /** + *
+   * A token identifying a page of results the server should return.
+   * 
+ * + * string next_page_token = 2; + * @return The nextPageToken. + */ + java.lang.String getNextPageToken(); + /** + *
+   * A token identifying a page of results the server should return.
+   * 
+ * + * string next_page_token = 2; + * @return The bytes for nextPageToken. + */ + com.google.protobuf.ByteString + getNextPageTokenBytes(); +} diff --git a/java-securitycentermanagement/proto-google-cloud-securitycentermanagement-v1/src/main/java/com/google/cloud/securitycentermanagement/v1/ListEventThreatDetectionCustomModulesRequest.java b/owl-bot-staging/java-securitycentermanagement/v1/proto-google-cloud-securitycentermanagement-v1/src/main/java/com/google/cloud/securitycentermanagement/v1/ListEventThreatDetectionCustomModulesRequest.java similarity index 57% rename from java-securitycentermanagement/proto-google-cloud-securitycentermanagement-v1/src/main/java/com/google/cloud/securitycentermanagement/v1/ListEventThreatDetectionCustomModulesRequest.java rename to owl-bot-staging/java-securitycentermanagement/v1/proto-google-cloud-securitycentermanagement-v1/src/main/java/com/google/cloud/securitycentermanagement/v1/ListEventThreatDetectionCustomModulesRequest.java index 939f59f273d8..676cac5495ac 100644 --- a/java-securitycentermanagement/proto-google-cloud-securitycentermanagement-v1/src/main/java/com/google/cloud/securitycentermanagement/v1/ListEventThreatDetectionCustomModulesRequest.java +++ b/owl-bot-staging/java-securitycentermanagement/v1/proto-google-cloud-securitycentermanagement-v1/src/main/java/com/google/cloud/securitycentermanagement/v1/ListEventThreatDetectionCustomModulesRequest.java @@ -1,45 +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/securitycentermanagement/v1/security_center_management.proto package com.google.cloud.securitycentermanagement.v1; /** - * - * *
  * Request message for listing Event Threat Detection custom modules.
  * 
* - * Protobuf type {@code - * google.cloud.securitycentermanagement.v1.ListEventThreatDetectionCustomModulesRequest} + * Protobuf type {@code google.cloud.securitycentermanagement.v1.ListEventThreatDetectionCustomModulesRequest} */ -public final class ListEventThreatDetectionCustomModulesRequest - extends com.google.protobuf.GeneratedMessageV3 - implements +public final class ListEventThreatDetectionCustomModulesRequest extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.securitycentermanagement.v1.ListEventThreatDetectionCustomModulesRequest) ListEventThreatDetectionCustomModulesRequestOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use ListEventThreatDetectionCustomModulesRequest.newBuilder() to construct. - private ListEventThreatDetectionCustomModulesRequest( - com.google.protobuf.GeneratedMessageV3.Builder builder) { + private ListEventThreatDetectionCustomModulesRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private ListEventThreatDetectionCustomModulesRequest() { parent_ = ""; pageToken_ = ""; @@ -47,34 +26,28 @@ private ListEventThreatDetectionCustomModulesRequest() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new ListEventThreatDetectionCustomModulesRequest(); } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.securitycentermanagement.v1.SecurityCenterManagementProto - .internal_static_google_cloud_securitycentermanagement_v1_ListEventThreatDetectionCustomModulesRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.securitycentermanagement.v1.SecurityCenterManagementProto.internal_static_google_cloud_securitycentermanagement_v1_ListEventThreatDetectionCustomModulesRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.securitycentermanagement.v1.SecurityCenterManagementProto - .internal_static_google_cloud_securitycentermanagement_v1_ListEventThreatDetectionCustomModulesRequest_fieldAccessorTable + return com.google.cloud.securitycentermanagement.v1.SecurityCenterManagementProto.internal_static_google_cloud_securitycentermanagement_v1_ListEventThreatDetectionCustomModulesRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.securitycentermanagement.v1 - .ListEventThreatDetectionCustomModulesRequest.class, - com.google.cloud.securitycentermanagement.v1 - .ListEventThreatDetectionCustomModulesRequest.Builder.class); + com.google.cloud.securitycentermanagement.v1.ListEventThreatDetectionCustomModulesRequest.class, com.google.cloud.securitycentermanagement.v1.ListEventThreatDetectionCustomModulesRequest.Builder.class); } public static final int PARENT_FIELD_NUMBER = 1; - @SuppressWarnings("serial") private volatile java.lang.Object parent_ = ""; /** - * - * *
    * Required. Name of parent to list custom modules. Its format is
    * "organizations/{organization}/locations/{location}",
@@ -83,10 +56,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
    * "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 @@ -95,15 +65,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. Name of parent to list custom modules. Its format is
    * "organizations/{organization}/locations/{location}",
@@ -112,18 +81,17 @@ public java.lang.String getParent() {
    * "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 { @@ -134,8 +102,6 @@ public com.google.protobuf.ByteString getParentBytes() { public static final int PAGE_SIZE_FIELD_NUMBER = 2; private int pageSize_ = 0; /** - * - * *
    * Optional. The maximum number of modules to return. The service may return
    * fewer than this value. If unspecified, at most 10 configs will be returned.
@@ -143,7 +109,6 @@ public com.google.protobuf.ByteString getParentBytes() {
    * 
* * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The pageSize. */ @java.lang.Override @@ -152,12 +117,9 @@ public int getPageSize() { } public static final int PAGE_TOKEN_FIELD_NUMBER = 3; - @SuppressWarnings("serial") private volatile java.lang.Object pageToken_ = ""; /** - * - * *
    * Optional. A page token, received from a previous
    * `ListEventThreatDetectionCustomModules` call. Provide this to retrieve the
@@ -169,7 +131,6 @@ public int getPageSize() {
    * 
* * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The pageToken. */ @java.lang.Override @@ -178,15 +139,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; } } /** - * - * *
    * Optional. A page token, received from a previous
    * `ListEventThreatDetectionCustomModules` call. Provide this to retrieve the
@@ -198,15 +158,16 @@ public java.lang.String getPageToken() {
    * 
* * 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 { @@ -215,7 +176,6 @@ public com.google.protobuf.ByteString getPageTokenBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -227,7 +187,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.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_); } @@ -250,7 +211,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_); @@ -263,23 +225,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.securitycentermanagement.v1 - .ListEventThreatDetectionCustomModulesRequest)) { + if (!(obj instanceof com.google.cloud.securitycentermanagement.v1.ListEventThreatDetectionCustomModulesRequest)) { return super.equals(obj); } - com.google.cloud.securitycentermanagement.v1.ListEventThreatDetectionCustomModulesRequest - other = - (com.google.cloud.securitycentermanagement.v1 - .ListEventThreatDetectionCustomModulesRequest) - obj; + com.google.cloud.securitycentermanagement.v1.ListEventThreatDetectionCustomModulesRequest other = (com.google.cloud.securitycentermanagement.v1.ListEventThreatDetectionCustomModulesRequest) 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; } @@ -302,161 +260,132 @@ public int hashCode() { return hash; } - public static com.google.cloud.securitycentermanagement.v1 - .ListEventThreatDetectionCustomModulesRequest - parseFrom(java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.securitycentermanagement.v1.ListEventThreatDetectionCustomModulesRequest parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - - public static com.google.cloud.securitycentermanagement.v1 - .ListEventThreatDetectionCustomModulesRequest - parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.securitycentermanagement.v1.ListEventThreatDetectionCustomModulesRequest 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.securitycentermanagement.v1 - .ListEventThreatDetectionCustomModulesRequest - parseFrom(com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.securitycentermanagement.v1.ListEventThreatDetectionCustomModulesRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - - public static com.google.cloud.securitycentermanagement.v1 - .ListEventThreatDetectionCustomModulesRequest - parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.securitycentermanagement.v1.ListEventThreatDetectionCustomModulesRequest parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.securitycentermanagement.v1 - .ListEventThreatDetectionCustomModulesRequest - parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.securitycentermanagement.v1.ListEventThreatDetectionCustomModulesRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - - public static com.google.cloud.securitycentermanagement.v1 - .ListEventThreatDetectionCustomModulesRequest - parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.securitycentermanagement.v1.ListEventThreatDetectionCustomModulesRequest parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.securitycentermanagement.v1 - .ListEventThreatDetectionCustomModulesRequest - parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.securitycentermanagement.v1.ListEventThreatDetectionCustomModulesRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - - public static com.google.cloud.securitycentermanagement.v1 - .ListEventThreatDetectionCustomModulesRequest - 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.securitycentermanagement.v1.ListEventThreatDetectionCustomModulesRequest 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.securitycentermanagement.v1 - .ListEventThreatDetectionCustomModulesRequest - parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.securitycentermanagement.v1.ListEventThreatDetectionCustomModulesRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.securitycentermanagement.v1 - .ListEventThreatDetectionCustomModulesRequest - parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + public static com.google.cloud.securitycentermanagement.v1.ListEventThreatDetectionCustomModulesRequest parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.securitycentermanagement.v1 - .ListEventThreatDetectionCustomModulesRequest - parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.securitycentermanagement.v1.ListEventThreatDetectionCustomModulesRequest parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - - public static com.google.cloud.securitycentermanagement.v1 - .ListEventThreatDetectionCustomModulesRequest - 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.securitycentermanagement.v1.ListEventThreatDetectionCustomModulesRequest 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.securitycentermanagement.v1.ListEventThreatDetectionCustomModulesRequest - prototype) { + public static Builder newBuilder(com.google.cloud.securitycentermanagement.v1.ListEventThreatDetectionCustomModulesRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected 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 listing Event Threat Detection custom modules.
    * 
* - * Protobuf type {@code - * google.cloud.securitycentermanagement.v1.ListEventThreatDetectionCustomModulesRequest} + * Protobuf type {@code google.cloud.securitycentermanagement.v1.ListEventThreatDetectionCustomModulesRequest} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.securitycentermanagement.v1.ListEventThreatDetectionCustomModulesRequest) - com.google.cloud.securitycentermanagement.v1 - .ListEventThreatDetectionCustomModulesRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.securitycentermanagement.v1.SecurityCenterManagementProto - .internal_static_google_cloud_securitycentermanagement_v1_ListEventThreatDetectionCustomModulesRequest_descriptor; + com.google.cloud.securitycentermanagement.v1.ListEventThreatDetectionCustomModulesRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.securitycentermanagement.v1.SecurityCenterManagementProto.internal_static_google_cloud_securitycentermanagement_v1_ListEventThreatDetectionCustomModulesRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.securitycentermanagement.v1.SecurityCenterManagementProto - .internal_static_google_cloud_securitycentermanagement_v1_ListEventThreatDetectionCustomModulesRequest_fieldAccessorTable + return com.google.cloud.securitycentermanagement.v1.SecurityCenterManagementProto.internal_static_google_cloud_securitycentermanagement_v1_ListEventThreatDetectionCustomModulesRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.securitycentermanagement.v1 - .ListEventThreatDetectionCustomModulesRequest.class, - com.google.cloud.securitycentermanagement.v1 - .ListEventThreatDetectionCustomModulesRequest.Builder.class); + com.google.cloud.securitycentermanagement.v1.ListEventThreatDetectionCustomModulesRequest.class, com.google.cloud.securitycentermanagement.v1.ListEventThreatDetectionCustomModulesRequest.Builder.class); } - // Construct using - // com.google.cloud.securitycentermanagement.v1.ListEventThreatDetectionCustomModulesRequest.newBuilder() - private Builder() {} + // Construct using com.google.cloud.securitycentermanagement.v1.ListEventThreatDetectionCustomModulesRequest.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(); @@ -468,23 +397,19 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.securitycentermanagement.v1.SecurityCenterManagementProto - .internal_static_google_cloud_securitycentermanagement_v1_ListEventThreatDetectionCustomModulesRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.securitycentermanagement.v1.SecurityCenterManagementProto.internal_static_google_cloud_securitycentermanagement_v1_ListEventThreatDetectionCustomModulesRequest_descriptor; } @java.lang.Override - public com.google.cloud.securitycentermanagement.v1.ListEventThreatDetectionCustomModulesRequest - getDefaultInstanceForType() { - return com.google.cloud.securitycentermanagement.v1 - .ListEventThreatDetectionCustomModulesRequest.getDefaultInstance(); + public com.google.cloud.securitycentermanagement.v1.ListEventThreatDetectionCustomModulesRequest getDefaultInstanceForType() { + return com.google.cloud.securitycentermanagement.v1.ListEventThreatDetectionCustomModulesRequest.getDefaultInstance(); } @java.lang.Override - public com.google.cloud.securitycentermanagement.v1.ListEventThreatDetectionCustomModulesRequest - build() { - com.google.cloud.securitycentermanagement.v1.ListEventThreatDetectionCustomModulesRequest - result = buildPartial(); + public com.google.cloud.securitycentermanagement.v1.ListEventThreatDetectionCustomModulesRequest build() { + com.google.cloud.securitycentermanagement.v1.ListEventThreatDetectionCustomModulesRequest result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } @@ -492,22 +417,14 @@ public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { } @java.lang.Override - public com.google.cloud.securitycentermanagement.v1.ListEventThreatDetectionCustomModulesRequest - buildPartial() { - com.google.cloud.securitycentermanagement.v1.ListEventThreatDetectionCustomModulesRequest - result = - new com.google.cloud.securitycentermanagement.v1 - .ListEventThreatDetectionCustomModulesRequest(this); - if (bitField0_ != 0) { - buildPartial0(result); - } + public com.google.cloud.securitycentermanagement.v1.ListEventThreatDetectionCustomModulesRequest buildPartial() { + com.google.cloud.securitycentermanagement.v1.ListEventThreatDetectionCustomModulesRequest result = new com.google.cloud.securitycentermanagement.v1.ListEventThreatDetectionCustomModulesRequest(this); + if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } - private void buildPartial0( - com.google.cloud.securitycentermanagement.v1.ListEventThreatDetectionCustomModulesRequest - result) { + private void buildPartial0(com.google.cloud.securitycentermanagement.v1.ListEventThreatDetectionCustomModulesRequest result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000001) != 0)) { result.parent_ = parent_; @@ -524,57 +441,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.securitycentermanagement.v1 - .ListEventThreatDetectionCustomModulesRequest) { - return mergeFrom( - (com.google.cloud.securitycentermanagement.v1 - .ListEventThreatDetectionCustomModulesRequest) - other); + if (other instanceof com.google.cloud.securitycentermanagement.v1.ListEventThreatDetectionCustomModulesRequest) { + return mergeFrom((com.google.cloud.securitycentermanagement.v1.ListEventThreatDetectionCustomModulesRequest)other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom( - com.google.cloud.securitycentermanagement.v1.ListEventThreatDetectionCustomModulesRequest - other) { - if (other - == com.google.cloud.securitycentermanagement.v1 - .ListEventThreatDetectionCustomModulesRequest.getDefaultInstance()) return this; + public Builder mergeFrom(com.google.cloud.securitycentermanagement.v1.ListEventThreatDetectionCustomModulesRequest other) { + if (other == com.google.cloud.securitycentermanagement.v1.ListEventThreatDetectionCustomModulesRequest.getDefaultInstance()) return this; if (!other.getParent().isEmpty()) { parent_ = other.parent_; bitField0_ |= 0x00000001; @@ -614,31 +520,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) { @@ -648,13 +550,10 @@ public Builder mergeFrom( } // finally return this; } - private int bitField0_; private java.lang.Object parent_ = ""; /** - * - * *
      * Required. Name of parent to list custom modules. Its format is
      * "organizations/{organization}/locations/{location}",
@@ -663,16 +562,14 @@ public Builder mergeFrom(
      * "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; @@ -681,8 +578,6 @@ public java.lang.String getParent() { } } /** - * - * *
      * Required. Name of parent to list custom modules. Its format is
      * "organizations/{organization}/locations/{location}",
@@ -691,17 +586,16 @@ public java.lang.String getParent() {
      * "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 { @@ -709,8 +603,6 @@ public com.google.protobuf.ByteString getParentBytes() { } } /** - * - * *
      * Required. Name of parent to list custom modules. Its format is
      * "organizations/{organization}/locations/{location}",
@@ -719,25 +611,19 @@ public com.google.protobuf.ByteString getParentBytes() {
      * "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. Name of parent to list custom modules. Its format is
      * "organizations/{organization}/locations/{location}",
@@ -746,10 +632,7 @@ public Builder setParent(java.lang.String value) {
      * "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() { @@ -759,8 +642,6 @@ public Builder clearParent() { return this; } /** - * - * *
      * Required. Name of parent to list custom modules. Its format is
      * "organizations/{organization}/locations/{location}",
@@ -769,17 +650,13 @@ public Builder clearParent() {
      * "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; @@ -787,10 +664,8 @@ public Builder setParentBytes(com.google.protobuf.ByteString value) { return this; } - private int pageSize_; + private int pageSize_ ; /** - * - * *
      * Optional. The maximum number of modules to return. The service may return
      * fewer than this value. If unspecified, at most 10 configs will be returned.
@@ -798,7 +673,6 @@ public Builder setParentBytes(com.google.protobuf.ByteString value) {
      * 
* * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The pageSize. */ @java.lang.Override @@ -806,8 +680,6 @@ public int getPageSize() { return pageSize_; } /** - * - * *
      * Optional. The maximum number of modules to return. The service may return
      * fewer than this value. If unspecified, at most 10 configs will be returned.
@@ -815,7 +687,6 @@ public int getPageSize() {
      * 
* * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @param value The pageSize to set. * @return This builder for chaining. */ @@ -827,8 +698,6 @@ public Builder setPageSize(int value) { return this; } /** - * - * *
      * Optional. The maximum number of modules to return. The service may return
      * fewer than this value. If unspecified, at most 10 configs will be returned.
@@ -836,7 +705,6 @@ public Builder setPageSize(int value) {
      * 
* * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @return This builder for chaining. */ public Builder clearPageSize() { @@ -848,8 +716,6 @@ public Builder clearPageSize() { private java.lang.Object pageToken_ = ""; /** - * - * *
      * Optional. A page token, received from a previous
      * `ListEventThreatDetectionCustomModules` call. Provide this to retrieve the
@@ -861,13 +727,13 @@ public Builder clearPageSize() {
      * 
* * 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; @@ -876,8 +742,6 @@ public java.lang.String getPageToken() { } } /** - * - * *
      * Optional. A page token, received from a previous
      * `ListEventThreatDetectionCustomModules` call. Provide this to retrieve the
@@ -889,14 +753,15 @@ public java.lang.String getPageToken() {
      * 
* * 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 { @@ -904,8 +769,6 @@ public com.google.protobuf.ByteString getPageTokenBytes() { } } /** - * - * *
      * Optional. A page token, received from a previous
      * `ListEventThreatDetectionCustomModules` call. Provide this to retrieve the
@@ -917,22 +780,18 @@ public com.google.protobuf.ByteString getPageTokenBytes() {
      * 
* * 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. A page token, received from a previous
      * `ListEventThreatDetectionCustomModules` call. Provide this to retrieve the
@@ -944,7 +803,6 @@ public Builder setPageToken(java.lang.String value) {
      * 
* * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @return This builder for chaining. */ public Builder clearPageToken() { @@ -954,8 +812,6 @@ public Builder clearPageToken() { return this; } /** - * - * *
      * Optional. A page token, received from a previous
      * `ListEventThreatDetectionCustomModules` call. Provide this to retrieve the
@@ -967,23 +823,21 @@ public Builder clearPageToken() {
      * 
* * 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); } @@ -993,63 +847,55 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.securitycentermanagement.v1.ListEventThreatDetectionCustomModulesRequest) } // @@protoc_insertion_point(class_scope:google.cloud.securitycentermanagement.v1.ListEventThreatDetectionCustomModulesRequest) - private static final com.google.cloud.securitycentermanagement.v1 - .ListEventThreatDetectionCustomModulesRequest - DEFAULT_INSTANCE; - + private static final com.google.cloud.securitycentermanagement.v1.ListEventThreatDetectionCustomModulesRequest DEFAULT_INSTANCE; static { - DEFAULT_INSTANCE = - new com.google.cloud.securitycentermanagement.v1 - .ListEventThreatDetectionCustomModulesRequest(); + DEFAULT_INSTANCE = new com.google.cloud.securitycentermanagement.v1.ListEventThreatDetectionCustomModulesRequest(); } - public static com.google.cloud.securitycentermanagement.v1 - .ListEventThreatDetectionCustomModulesRequest - getDefaultInstance() { + public static com.google.cloud.securitycentermanagement.v1.ListEventThreatDetectionCustomModulesRequest getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser - PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ListEventThreatDetectionCustomModulesRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException() - .setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListEventThreatDetectionCustomModulesRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; } @java.lang.Override - public com.google.protobuf.Parser - getParserForType() { + public com.google.protobuf.Parser getParserForType() { return PARSER; } @java.lang.Override - public com.google.cloud.securitycentermanagement.v1.ListEventThreatDetectionCustomModulesRequest - getDefaultInstanceForType() { + public com.google.cloud.securitycentermanagement.v1.ListEventThreatDetectionCustomModulesRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/java-securitycentermanagement/proto-google-cloud-securitycentermanagement-v1/src/main/java/com/google/cloud/securitycentermanagement/v1/ListEventThreatDetectionCustomModulesRequestOrBuilder.java b/owl-bot-staging/java-securitycentermanagement/v1/proto-google-cloud-securitycentermanagement-v1/src/main/java/com/google/cloud/securitycentermanagement/v1/ListEventThreatDetectionCustomModulesRequestOrBuilder.java similarity index 69% rename from java-securitycentermanagement/proto-google-cloud-securitycentermanagement-v1/src/main/java/com/google/cloud/securitycentermanagement/v1/ListEventThreatDetectionCustomModulesRequestOrBuilder.java rename to owl-bot-staging/java-securitycentermanagement/v1/proto-google-cloud-securitycentermanagement-v1/src/main/java/com/google/cloud/securitycentermanagement/v1/ListEventThreatDetectionCustomModulesRequestOrBuilder.java index 69aca4ee22c4..c8e13121caeb 100644 --- a/java-securitycentermanagement/proto-google-cloud-securitycentermanagement-v1/src/main/java/com/google/cloud/securitycentermanagement/v1/ListEventThreatDetectionCustomModulesRequestOrBuilder.java +++ b/owl-bot-staging/java-securitycentermanagement/v1/proto-google-cloud-securitycentermanagement-v1/src/main/java/com/google/cloud/securitycentermanagement/v1/ListEventThreatDetectionCustomModulesRequestOrBuilder.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/securitycentermanagement/v1/security_center_management.proto package com.google.cloud.securitycentermanagement.v1; -public interface ListEventThreatDetectionCustomModulesRequestOrBuilder - extends +public interface ListEventThreatDetectionCustomModulesRequestOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.securitycentermanagement.v1.ListEventThreatDetectionCustomModulesRequest) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * Required. Name of parent to list custom modules. Its format is
    * "organizations/{organization}/locations/{location}",
@@ -34,16 +16,11 @@ public interface ListEventThreatDetectionCustomModulesRequestOrBuilder
    * "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. Name of parent to list custom modules. Its format is
    * "organizations/{organization}/locations/{location}",
@@ -52,17 +29,13 @@ public interface ListEventThreatDetectionCustomModulesRequestOrBuilder
    * "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(); /** - * - * *
    * Optional. The maximum number of modules to return. The service may return
    * fewer than this value. If unspecified, at most 10 configs will be returned.
@@ -70,14 +43,11 @@ public interface ListEventThreatDetectionCustomModulesRequestOrBuilder
    * 
* * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The pageSize. */ int getPageSize(); /** - * - * *
    * Optional. A page token, received from a previous
    * `ListEventThreatDetectionCustomModules` call. Provide this to retrieve the
@@ -89,13 +59,10 @@ public interface ListEventThreatDetectionCustomModulesRequestOrBuilder
    * 
* * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The pageToken. */ java.lang.String getPageToken(); /** - * - * *
    * Optional. A page token, received from a previous
    * `ListEventThreatDetectionCustomModules` call. Provide this to retrieve the
@@ -107,8 +74,8 @@ public interface ListEventThreatDetectionCustomModulesRequestOrBuilder
    * 
* * 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-securitycentermanagement/proto-google-cloud-securitycentermanagement-v1/src/main/java/com/google/cloud/securitycentermanagement/v1/ListEventThreatDetectionCustomModulesResponse.java b/owl-bot-staging/java-securitycentermanagement/v1/proto-google-cloud-securitycentermanagement-v1/src/main/java/com/google/cloud/securitycentermanagement/v1/ListEventThreatDetectionCustomModulesResponse.java similarity index 50% rename from java-securitycentermanagement/proto-google-cloud-securitycentermanagement-v1/src/main/java/com/google/cloud/securitycentermanagement/v1/ListEventThreatDetectionCustomModulesResponse.java rename to owl-bot-staging/java-securitycentermanagement/v1/proto-google-cloud-securitycentermanagement-v1/src/main/java/com/google/cloud/securitycentermanagement/v1/ListEventThreatDetectionCustomModulesResponse.java index 32d5320bde2f..76a5e176ad12 100644 --- a/java-securitycentermanagement/proto-google-cloud-securitycentermanagement-v1/src/main/java/com/google/cloud/securitycentermanagement/v1/ListEventThreatDetectionCustomModulesResponse.java +++ b/owl-bot-staging/java-securitycentermanagement/v1/proto-google-cloud-securitycentermanagement-v1/src/main/java/com/google/cloud/securitycentermanagement/v1/ListEventThreatDetectionCustomModulesResponse.java @@ -1,45 +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/securitycentermanagement/v1/security_center_management.proto package com.google.cloud.securitycentermanagement.v1; /** - * - * *
  * Response message for listing Event Threat Detection custom modules.
  * 
* - * Protobuf type {@code - * google.cloud.securitycentermanagement.v1.ListEventThreatDetectionCustomModulesResponse} + * Protobuf type {@code google.cloud.securitycentermanagement.v1.ListEventThreatDetectionCustomModulesResponse} */ -public final class ListEventThreatDetectionCustomModulesResponse - extends com.google.protobuf.GeneratedMessageV3 - implements +public final class ListEventThreatDetectionCustomModulesResponse extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.securitycentermanagement.v1.ListEventThreatDetectionCustomModulesResponse) ListEventThreatDetectionCustomModulesResponseOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use ListEventThreatDetectionCustomModulesResponse.newBuilder() to construct. - private ListEventThreatDetectionCustomModulesResponse( - com.google.protobuf.GeneratedMessageV3.Builder builder) { + private ListEventThreatDetectionCustomModulesResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private ListEventThreatDetectionCustomModulesResponse() { eventThreatDetectionCustomModules_ = java.util.Collections.emptyList(); nextPageToken_ = ""; @@ -47,130 +26,94 @@ private ListEventThreatDetectionCustomModulesResponse() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new ListEventThreatDetectionCustomModulesResponse(); } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.securitycentermanagement.v1.SecurityCenterManagementProto - .internal_static_google_cloud_securitycentermanagement_v1_ListEventThreatDetectionCustomModulesResponse_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.securitycentermanagement.v1.SecurityCenterManagementProto.internal_static_google_cloud_securitycentermanagement_v1_ListEventThreatDetectionCustomModulesResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.securitycentermanagement.v1.SecurityCenterManagementProto - .internal_static_google_cloud_securitycentermanagement_v1_ListEventThreatDetectionCustomModulesResponse_fieldAccessorTable + return com.google.cloud.securitycentermanagement.v1.SecurityCenterManagementProto.internal_static_google_cloud_securitycentermanagement_v1_ListEventThreatDetectionCustomModulesResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.securitycentermanagement.v1 - .ListEventThreatDetectionCustomModulesResponse.class, - com.google.cloud.securitycentermanagement.v1 - .ListEventThreatDetectionCustomModulesResponse.Builder.class); + com.google.cloud.securitycentermanagement.v1.ListEventThreatDetectionCustomModulesResponse.class, com.google.cloud.securitycentermanagement.v1.ListEventThreatDetectionCustomModulesResponse.Builder.class); } public static final int EVENT_THREAT_DETECTION_CUSTOM_MODULES_FIELD_NUMBER = 1; - @SuppressWarnings("serial") - private java.util.List< - com.google.cloud.securitycentermanagement.v1.EventThreatDetectionCustomModule> - eventThreatDetectionCustomModules_; + private java.util.List eventThreatDetectionCustomModules_; /** - * - * *
    * The list of EventThreatDetectionCustomModules
    * 
* - * - * repeated .google.cloud.securitycentermanagement.v1.EventThreatDetectionCustomModule event_threat_detection_custom_modules = 1; - * + * repeated .google.cloud.securitycentermanagement.v1.EventThreatDetectionCustomModule event_threat_detection_custom_modules = 1; */ @java.lang.Override - public java.util.List< - com.google.cloud.securitycentermanagement.v1.EventThreatDetectionCustomModule> - getEventThreatDetectionCustomModulesList() { + public java.util.List getEventThreatDetectionCustomModulesList() { return eventThreatDetectionCustomModules_; } /** - * - * *
    * The list of EventThreatDetectionCustomModules
    * 
* - * - * repeated .google.cloud.securitycentermanagement.v1.EventThreatDetectionCustomModule event_threat_detection_custom_modules = 1; - * + * repeated .google.cloud.securitycentermanagement.v1.EventThreatDetectionCustomModule event_threat_detection_custom_modules = 1; */ @java.lang.Override - public java.util.List< - ? extends - com.google.cloud.securitycentermanagement.v1 - .EventThreatDetectionCustomModuleOrBuilder> + public java.util.List getEventThreatDetectionCustomModulesOrBuilderList() { return eventThreatDetectionCustomModules_; } /** - * - * *
    * The list of EventThreatDetectionCustomModules
    * 
* - * - * repeated .google.cloud.securitycentermanagement.v1.EventThreatDetectionCustomModule event_threat_detection_custom_modules = 1; - * + * repeated .google.cloud.securitycentermanagement.v1.EventThreatDetectionCustomModule event_threat_detection_custom_modules = 1; */ @java.lang.Override public int getEventThreatDetectionCustomModulesCount() { return eventThreatDetectionCustomModules_.size(); } /** - * - * *
    * The list of EventThreatDetectionCustomModules
    * 
* - * - * repeated .google.cloud.securitycentermanagement.v1.EventThreatDetectionCustomModule event_threat_detection_custom_modules = 1; - * + * repeated .google.cloud.securitycentermanagement.v1.EventThreatDetectionCustomModule event_threat_detection_custom_modules = 1; */ @java.lang.Override - public com.google.cloud.securitycentermanagement.v1.EventThreatDetectionCustomModule - getEventThreatDetectionCustomModules(int index) { + public com.google.cloud.securitycentermanagement.v1.EventThreatDetectionCustomModule getEventThreatDetectionCustomModules(int index) { return eventThreatDetectionCustomModules_.get(index); } /** - * - * *
    * The list of EventThreatDetectionCustomModules
    * 
* - * - * repeated .google.cloud.securitycentermanagement.v1.EventThreatDetectionCustomModule event_threat_detection_custom_modules = 1; - * + * repeated .google.cloud.securitycentermanagement.v1.EventThreatDetectionCustomModule event_threat_detection_custom_modules = 1; */ @java.lang.Override - public com.google.cloud.securitycentermanagement.v1.EventThreatDetectionCustomModuleOrBuilder - getEventThreatDetectionCustomModulesOrBuilder(int index) { + public com.google.cloud.securitycentermanagement.v1.EventThreatDetectionCustomModuleOrBuilder getEventThreatDetectionCustomModulesOrBuilder( + int index) { return eventThreatDetectionCustomModules_.get(index); } public static final int NEXT_PAGE_TOKEN_FIELD_NUMBER = 2; - @SuppressWarnings("serial") private volatile java.lang.Object nextPageToken_ = ""; /** - * - * *
    * A token identifying a page of results the server should return.
    * 
* * string next_page_token = 2; - * * @return The nextPageToken. */ @java.lang.Override @@ -179,29 +122,29 @@ 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 identifying a page of results the server should return.
    * 
* * 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 { @@ -210,7 +153,6 @@ public com.google.protobuf.ByteString getNextPageTokenBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -222,7 +164,8 @@ public final boolean isInitialized() { } @java.lang.Override - 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 < eventThreatDetectionCustomModules_.size(); i++) { output.writeMessage(1, eventThreatDetectionCustomModules_.get(i)); } @@ -239,9 +182,8 @@ public int getSerializedSize() { size = 0; for (int i = 0; i < eventThreatDetectionCustomModules_.size(); i++) { - size += - com.google.protobuf.CodedOutputStream.computeMessageSize( - 1, eventThreatDetectionCustomModules_.get(i)); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, eventThreatDetectionCustomModules_.get(i)); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(nextPageToken_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, nextPageToken_); @@ -254,23 +196,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.securitycentermanagement.v1 - .ListEventThreatDetectionCustomModulesResponse)) { + if (!(obj instanceof com.google.cloud.securitycentermanagement.v1.ListEventThreatDetectionCustomModulesResponse)) { return super.equals(obj); } - com.google.cloud.securitycentermanagement.v1.ListEventThreatDetectionCustomModulesResponse - other = - (com.google.cloud.securitycentermanagement.v1 - .ListEventThreatDetectionCustomModulesResponse) - obj; + com.google.cloud.securitycentermanagement.v1.ListEventThreatDetectionCustomModulesResponse other = (com.google.cloud.securitycentermanagement.v1.ListEventThreatDetectionCustomModulesResponse) obj; if (!getEventThreatDetectionCustomModulesList() .equals(other.getEventThreatDetectionCustomModulesList())) return false; - if (!getNextPageToken().equals(other.getNextPageToken())) return false; + if (!getNextPageToken() + .equals(other.getNextPageToken())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -293,161 +229,132 @@ public int hashCode() { return hash; } - public static com.google.cloud.securitycentermanagement.v1 - .ListEventThreatDetectionCustomModulesResponse - parseFrom(java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.securitycentermanagement.v1.ListEventThreatDetectionCustomModulesResponse parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - - public static com.google.cloud.securitycentermanagement.v1 - .ListEventThreatDetectionCustomModulesResponse - parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.securitycentermanagement.v1.ListEventThreatDetectionCustomModulesResponse 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.securitycentermanagement.v1 - .ListEventThreatDetectionCustomModulesResponse - parseFrom(com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.securitycentermanagement.v1.ListEventThreatDetectionCustomModulesResponse parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - - public static com.google.cloud.securitycentermanagement.v1 - .ListEventThreatDetectionCustomModulesResponse - parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.securitycentermanagement.v1.ListEventThreatDetectionCustomModulesResponse parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.securitycentermanagement.v1 - .ListEventThreatDetectionCustomModulesResponse - parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.securitycentermanagement.v1.ListEventThreatDetectionCustomModulesResponse parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - - public static com.google.cloud.securitycentermanagement.v1 - .ListEventThreatDetectionCustomModulesResponse - parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.securitycentermanagement.v1.ListEventThreatDetectionCustomModulesResponse parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.securitycentermanagement.v1 - .ListEventThreatDetectionCustomModulesResponse - parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.securitycentermanagement.v1.ListEventThreatDetectionCustomModulesResponse parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - - public static com.google.cloud.securitycentermanagement.v1 - .ListEventThreatDetectionCustomModulesResponse - 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.securitycentermanagement.v1.ListEventThreatDetectionCustomModulesResponse 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.securitycentermanagement.v1 - .ListEventThreatDetectionCustomModulesResponse - parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.securitycentermanagement.v1.ListEventThreatDetectionCustomModulesResponse parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.securitycentermanagement.v1 - .ListEventThreatDetectionCustomModulesResponse - parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + public static com.google.cloud.securitycentermanagement.v1.ListEventThreatDetectionCustomModulesResponse parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.securitycentermanagement.v1 - .ListEventThreatDetectionCustomModulesResponse - parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.securitycentermanagement.v1.ListEventThreatDetectionCustomModulesResponse parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - - public static com.google.cloud.securitycentermanagement.v1 - .ListEventThreatDetectionCustomModulesResponse - 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.securitycentermanagement.v1.ListEventThreatDetectionCustomModulesResponse 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.securitycentermanagement.v1.ListEventThreatDetectionCustomModulesResponse - prototype) { + public static Builder newBuilder(com.google.cloud.securitycentermanagement.v1.ListEventThreatDetectionCustomModulesResponse prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected 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 listing Event Threat Detection custom modules.
    * 
* - * Protobuf type {@code - * google.cloud.securitycentermanagement.v1.ListEventThreatDetectionCustomModulesResponse} + * Protobuf type {@code google.cloud.securitycentermanagement.v1.ListEventThreatDetectionCustomModulesResponse} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.securitycentermanagement.v1.ListEventThreatDetectionCustomModulesResponse) - com.google.cloud.securitycentermanagement.v1 - .ListEventThreatDetectionCustomModulesResponseOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.securitycentermanagement.v1.SecurityCenterManagementProto - .internal_static_google_cloud_securitycentermanagement_v1_ListEventThreatDetectionCustomModulesResponse_descriptor; + com.google.cloud.securitycentermanagement.v1.ListEventThreatDetectionCustomModulesResponseOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.securitycentermanagement.v1.SecurityCenterManagementProto.internal_static_google_cloud_securitycentermanagement_v1_ListEventThreatDetectionCustomModulesResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.securitycentermanagement.v1.SecurityCenterManagementProto - .internal_static_google_cloud_securitycentermanagement_v1_ListEventThreatDetectionCustomModulesResponse_fieldAccessorTable + return com.google.cloud.securitycentermanagement.v1.SecurityCenterManagementProto.internal_static_google_cloud_securitycentermanagement_v1_ListEventThreatDetectionCustomModulesResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.securitycentermanagement.v1 - .ListEventThreatDetectionCustomModulesResponse.class, - com.google.cloud.securitycentermanagement.v1 - .ListEventThreatDetectionCustomModulesResponse.Builder.class); + com.google.cloud.securitycentermanagement.v1.ListEventThreatDetectionCustomModulesResponse.class, com.google.cloud.securitycentermanagement.v1.ListEventThreatDetectionCustomModulesResponse.Builder.class); } - // Construct using - // com.google.cloud.securitycentermanagement.v1.ListEventThreatDetectionCustomModulesResponse.newBuilder() - private Builder() {} + // Construct using com.google.cloud.securitycentermanagement.v1.ListEventThreatDetectionCustomModulesResponse.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(); @@ -464,25 +371,19 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.securitycentermanagement.v1.SecurityCenterManagementProto - .internal_static_google_cloud_securitycentermanagement_v1_ListEventThreatDetectionCustomModulesResponse_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.securitycentermanagement.v1.SecurityCenterManagementProto.internal_static_google_cloud_securitycentermanagement_v1_ListEventThreatDetectionCustomModulesResponse_descriptor; } @java.lang.Override - public com.google.cloud.securitycentermanagement.v1 - .ListEventThreatDetectionCustomModulesResponse - getDefaultInstanceForType() { - return com.google.cloud.securitycentermanagement.v1 - .ListEventThreatDetectionCustomModulesResponse.getDefaultInstance(); + public com.google.cloud.securitycentermanagement.v1.ListEventThreatDetectionCustomModulesResponse getDefaultInstanceForType() { + return com.google.cloud.securitycentermanagement.v1.ListEventThreatDetectionCustomModulesResponse.getDefaultInstance(); } @java.lang.Override - public com.google.cloud.securitycentermanagement.v1 - .ListEventThreatDetectionCustomModulesResponse - build() { - com.google.cloud.securitycentermanagement.v1.ListEventThreatDetectionCustomModulesResponse - result = buildPartial(); + public com.google.cloud.securitycentermanagement.v1.ListEventThreatDetectionCustomModulesResponse build() { + com.google.cloud.securitycentermanagement.v1.ListEventThreatDetectionCustomModulesResponse result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } @@ -490,40 +391,27 @@ public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { } @java.lang.Override - public com.google.cloud.securitycentermanagement.v1 - .ListEventThreatDetectionCustomModulesResponse - buildPartial() { - com.google.cloud.securitycentermanagement.v1.ListEventThreatDetectionCustomModulesResponse - result = - new com.google.cloud.securitycentermanagement.v1 - .ListEventThreatDetectionCustomModulesResponse(this); + public com.google.cloud.securitycentermanagement.v1.ListEventThreatDetectionCustomModulesResponse buildPartial() { + com.google.cloud.securitycentermanagement.v1.ListEventThreatDetectionCustomModulesResponse result = new com.google.cloud.securitycentermanagement.v1.ListEventThreatDetectionCustomModulesResponse(this); buildPartialRepeatedFields(result); - if (bitField0_ != 0) { - buildPartial0(result); - } + if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } - private void buildPartialRepeatedFields( - com.google.cloud.securitycentermanagement.v1.ListEventThreatDetectionCustomModulesResponse - result) { + private void buildPartialRepeatedFields(com.google.cloud.securitycentermanagement.v1.ListEventThreatDetectionCustomModulesResponse result) { if (eventThreatDetectionCustomModulesBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0)) { - eventThreatDetectionCustomModules_ = - java.util.Collections.unmodifiableList(eventThreatDetectionCustomModules_); + eventThreatDetectionCustomModules_ = java.util.Collections.unmodifiableList(eventThreatDetectionCustomModules_); bitField0_ = (bitField0_ & ~0x00000001); } result.eventThreatDetectionCustomModules_ = eventThreatDetectionCustomModules_; } else { - result.eventThreatDetectionCustomModules_ = - eventThreatDetectionCustomModulesBuilder_.build(); + result.eventThreatDetectionCustomModules_ = eventThreatDetectionCustomModulesBuilder_.build(); } } - private void buildPartial0( - com.google.cloud.securitycentermanagement.v1.ListEventThreatDetectionCustomModulesResponse - result) { + private void buildPartial0(com.google.cloud.securitycentermanagement.v1.ListEventThreatDetectionCustomModulesResponse result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000002) != 0)) { result.nextPageToken_ = nextPageToken_; @@ -534,57 +422,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.securitycentermanagement.v1 - .ListEventThreatDetectionCustomModulesResponse) { - return mergeFrom( - (com.google.cloud.securitycentermanagement.v1 - .ListEventThreatDetectionCustomModulesResponse) - other); + if (other instanceof com.google.cloud.securitycentermanagement.v1.ListEventThreatDetectionCustomModulesResponse) { + return mergeFrom((com.google.cloud.securitycentermanagement.v1.ListEventThreatDetectionCustomModulesResponse)other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom( - com.google.cloud.securitycentermanagement.v1.ListEventThreatDetectionCustomModulesResponse - other) { - if (other - == com.google.cloud.securitycentermanagement.v1 - .ListEventThreatDetectionCustomModulesResponse.getDefaultInstance()) return this; + public Builder mergeFrom(com.google.cloud.securitycentermanagement.v1.ListEventThreatDetectionCustomModulesResponse other) { + if (other == com.google.cloud.securitycentermanagement.v1.ListEventThreatDetectionCustomModulesResponse.getDefaultInstance()) return this; if (eventThreatDetectionCustomModulesBuilder_ == null) { if (!other.eventThreatDetectionCustomModules_.isEmpty()) { if (eventThreatDetectionCustomModules_.isEmpty()) { @@ -603,13 +480,11 @@ public Builder mergeFrom( eventThreatDetectionCustomModulesBuilder_ = null; eventThreatDetectionCustomModules_ = other.eventThreatDetectionCustomModules_; bitField0_ = (bitField0_ & ~0x00000001); - eventThreatDetectionCustomModulesBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders - ? getEventThreatDetectionCustomModulesFieldBuilder() - : null; + eventThreatDetectionCustomModulesBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? + getEventThreatDetectionCustomModulesFieldBuilder() : null; } else { - eventThreatDetectionCustomModulesBuilder_.addAllMessages( - other.eventThreatDetectionCustomModules_); + eventThreatDetectionCustomModulesBuilder_.addAllMessages(other.eventThreatDetectionCustomModules_); } } } @@ -644,34 +519,30 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: - { - com.google.cloud.securitycentermanagement.v1.EventThreatDetectionCustomModule m = - input.readMessage( - com.google.cloud.securitycentermanagement.v1 - .EventThreatDetectionCustomModule.parser(), - extensionRegistry); - if (eventThreatDetectionCustomModulesBuilder_ == null) { - ensureEventThreatDetectionCustomModulesIsMutable(); - eventThreatDetectionCustomModules_.add(m); - } else { - eventThreatDetectionCustomModulesBuilder_.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.securitycentermanagement.v1.EventThreatDetectionCustomModule m = + input.readMessage( + com.google.cloud.securitycentermanagement.v1.EventThreatDetectionCustomModule.parser(), + extensionRegistry); + if (eventThreatDetectionCustomModulesBuilder_ == null) { + ensureEventThreatDetectionCustomModulesIsMutable(); + eventThreatDetectionCustomModules_.add(m); + } else { + eventThreatDetectionCustomModulesBuilder_.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) { @@ -681,43 +552,28 @@ public Builder mergeFrom( } // finally return this; } - private int bitField0_; - private java.util.List< - com.google.cloud.securitycentermanagement.v1.EventThreatDetectionCustomModule> - eventThreatDetectionCustomModules_ = java.util.Collections.emptyList(); - + private java.util.List eventThreatDetectionCustomModules_ = + java.util.Collections.emptyList(); private void ensureEventThreatDetectionCustomModulesIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { - eventThreatDetectionCustomModules_ = - new java.util.ArrayList< - com.google.cloud.securitycentermanagement.v1.EventThreatDetectionCustomModule>( - eventThreatDetectionCustomModules_); + eventThreatDetectionCustomModules_ = new java.util.ArrayList(eventThreatDetectionCustomModules_); bitField0_ |= 0x00000001; - } + } } private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.securitycentermanagement.v1.EventThreatDetectionCustomModule, - com.google.cloud.securitycentermanagement.v1.EventThreatDetectionCustomModule.Builder, - com.google.cloud.securitycentermanagement.v1.EventThreatDetectionCustomModuleOrBuilder> - eventThreatDetectionCustomModulesBuilder_; + com.google.cloud.securitycentermanagement.v1.EventThreatDetectionCustomModule, com.google.cloud.securitycentermanagement.v1.EventThreatDetectionCustomModule.Builder, com.google.cloud.securitycentermanagement.v1.EventThreatDetectionCustomModuleOrBuilder> eventThreatDetectionCustomModulesBuilder_; /** - * - * *
      * The list of EventThreatDetectionCustomModules
      * 
* - * - * repeated .google.cloud.securitycentermanagement.v1.EventThreatDetectionCustomModule event_threat_detection_custom_modules = 1; - * + * repeated .google.cloud.securitycentermanagement.v1.EventThreatDetectionCustomModule event_threat_detection_custom_modules = 1; */ - public java.util.List< - com.google.cloud.securitycentermanagement.v1.EventThreatDetectionCustomModule> - getEventThreatDetectionCustomModulesList() { + public java.util.List getEventThreatDetectionCustomModulesList() { if (eventThreatDetectionCustomModulesBuilder_ == null) { return java.util.Collections.unmodifiableList(eventThreatDetectionCustomModules_); } else { @@ -725,15 +581,11 @@ private void ensureEventThreatDetectionCustomModulesIsMutable() { } } /** - * - * *
      * The list of EventThreatDetectionCustomModules
      * 
* - * - * repeated .google.cloud.securitycentermanagement.v1.EventThreatDetectionCustomModule event_threat_detection_custom_modules = 1; - * + * repeated .google.cloud.securitycentermanagement.v1.EventThreatDetectionCustomModule event_threat_detection_custom_modules = 1; */ public int getEventThreatDetectionCustomModulesCount() { if (eventThreatDetectionCustomModulesBuilder_ == null) { @@ -743,18 +595,13 @@ public int getEventThreatDetectionCustomModulesCount() { } } /** - * - * *
      * The list of EventThreatDetectionCustomModules
      * 
* - * - * repeated .google.cloud.securitycentermanagement.v1.EventThreatDetectionCustomModule event_threat_detection_custom_modules = 1; - * + * repeated .google.cloud.securitycentermanagement.v1.EventThreatDetectionCustomModule event_threat_detection_custom_modules = 1; */ - public com.google.cloud.securitycentermanagement.v1.EventThreatDetectionCustomModule - getEventThreatDetectionCustomModules(int index) { + public com.google.cloud.securitycentermanagement.v1.EventThreatDetectionCustomModule getEventThreatDetectionCustomModules(int index) { if (eventThreatDetectionCustomModulesBuilder_ == null) { return eventThreatDetectionCustomModules_.get(index); } else { @@ -762,19 +609,14 @@ public int getEventThreatDetectionCustomModulesCount() { } } /** - * - * *
      * The list of EventThreatDetectionCustomModules
      * 
* - * - * repeated .google.cloud.securitycentermanagement.v1.EventThreatDetectionCustomModule event_threat_detection_custom_modules = 1; - * + * repeated .google.cloud.securitycentermanagement.v1.EventThreatDetectionCustomModule event_threat_detection_custom_modules = 1; */ public Builder setEventThreatDetectionCustomModules( - int index, - com.google.cloud.securitycentermanagement.v1.EventThreatDetectionCustomModule value) { + int index, com.google.cloud.securitycentermanagement.v1.EventThreatDetectionCustomModule value) { if (eventThreatDetectionCustomModulesBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -788,20 +630,14 @@ public Builder setEventThreatDetectionCustomModules( return this; } /** - * - * *
      * The list of EventThreatDetectionCustomModules
      * 
* - * - * repeated .google.cloud.securitycentermanagement.v1.EventThreatDetectionCustomModule event_threat_detection_custom_modules = 1; - * + * repeated .google.cloud.securitycentermanagement.v1.EventThreatDetectionCustomModule event_threat_detection_custom_modules = 1; */ public Builder setEventThreatDetectionCustomModules( - int index, - com.google.cloud.securitycentermanagement.v1.EventThreatDetectionCustomModule.Builder - builderForValue) { + int index, com.google.cloud.securitycentermanagement.v1.EventThreatDetectionCustomModule.Builder builderForValue) { if (eventThreatDetectionCustomModulesBuilder_ == null) { ensureEventThreatDetectionCustomModulesIsMutable(); eventThreatDetectionCustomModules_.set(index, builderForValue.build()); @@ -812,18 +648,13 @@ public Builder setEventThreatDetectionCustomModules( return this; } /** - * - * *
      * The list of EventThreatDetectionCustomModules
      * 
* - * - * repeated .google.cloud.securitycentermanagement.v1.EventThreatDetectionCustomModule event_threat_detection_custom_modules = 1; - * + * repeated .google.cloud.securitycentermanagement.v1.EventThreatDetectionCustomModule event_threat_detection_custom_modules = 1; */ - public Builder addEventThreatDetectionCustomModules( - com.google.cloud.securitycentermanagement.v1.EventThreatDetectionCustomModule value) { + public Builder addEventThreatDetectionCustomModules(com.google.cloud.securitycentermanagement.v1.EventThreatDetectionCustomModule value) { if (eventThreatDetectionCustomModulesBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -837,19 +668,14 @@ public Builder addEventThreatDetectionCustomModules( return this; } /** - * - * *
      * The list of EventThreatDetectionCustomModules
      * 
* - * - * repeated .google.cloud.securitycentermanagement.v1.EventThreatDetectionCustomModule event_threat_detection_custom_modules = 1; - * + * repeated .google.cloud.securitycentermanagement.v1.EventThreatDetectionCustomModule event_threat_detection_custom_modules = 1; */ public Builder addEventThreatDetectionCustomModules( - int index, - com.google.cloud.securitycentermanagement.v1.EventThreatDetectionCustomModule value) { + int index, com.google.cloud.securitycentermanagement.v1.EventThreatDetectionCustomModule value) { if (eventThreatDetectionCustomModulesBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -863,19 +689,14 @@ public Builder addEventThreatDetectionCustomModules( return this; } /** - * - * *
      * The list of EventThreatDetectionCustomModules
      * 
* - * - * repeated .google.cloud.securitycentermanagement.v1.EventThreatDetectionCustomModule event_threat_detection_custom_modules = 1; - * + * repeated .google.cloud.securitycentermanagement.v1.EventThreatDetectionCustomModule event_threat_detection_custom_modules = 1; */ public Builder addEventThreatDetectionCustomModules( - com.google.cloud.securitycentermanagement.v1.EventThreatDetectionCustomModule.Builder - builderForValue) { + com.google.cloud.securitycentermanagement.v1.EventThreatDetectionCustomModule.Builder builderForValue) { if (eventThreatDetectionCustomModulesBuilder_ == null) { ensureEventThreatDetectionCustomModulesIsMutable(); eventThreatDetectionCustomModules_.add(builderForValue.build()); @@ -886,20 +707,14 @@ public Builder addEventThreatDetectionCustomModules( return this; } /** - * - * *
      * The list of EventThreatDetectionCustomModules
      * 
* - * - * repeated .google.cloud.securitycentermanagement.v1.EventThreatDetectionCustomModule event_threat_detection_custom_modules = 1; - * + * repeated .google.cloud.securitycentermanagement.v1.EventThreatDetectionCustomModule event_threat_detection_custom_modules = 1; */ public Builder addEventThreatDetectionCustomModules( - int index, - com.google.cloud.securitycentermanagement.v1.EventThreatDetectionCustomModule.Builder - builderForValue) { + int index, com.google.cloud.securitycentermanagement.v1.EventThreatDetectionCustomModule.Builder builderForValue) { if (eventThreatDetectionCustomModulesBuilder_ == null) { ensureEventThreatDetectionCustomModulesIsMutable(); eventThreatDetectionCustomModules_.add(index, builderForValue.build()); @@ -910,21 +725,14 @@ public Builder addEventThreatDetectionCustomModules( return this; } /** - * - * *
      * The list of EventThreatDetectionCustomModules
      * 
* - * - * repeated .google.cloud.securitycentermanagement.v1.EventThreatDetectionCustomModule event_threat_detection_custom_modules = 1; - * + * repeated .google.cloud.securitycentermanagement.v1.EventThreatDetectionCustomModule event_threat_detection_custom_modules = 1; */ public Builder addAllEventThreatDetectionCustomModules( - java.lang.Iterable< - ? extends - com.google.cloud.securitycentermanagement.v1.EventThreatDetectionCustomModule> - values) { + java.lang.Iterable values) { if (eventThreatDetectionCustomModulesBuilder_ == null) { ensureEventThreatDetectionCustomModulesIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( @@ -936,15 +744,11 @@ public Builder addAllEventThreatDetectionCustomModules( return this; } /** - * - * *
      * The list of EventThreatDetectionCustomModules
      * 
* - * - * repeated .google.cloud.securitycentermanagement.v1.EventThreatDetectionCustomModule event_threat_detection_custom_modules = 1; - * + * repeated .google.cloud.securitycentermanagement.v1.EventThreatDetectionCustomModule event_threat_detection_custom_modules = 1; */ public Builder clearEventThreatDetectionCustomModules() { if (eventThreatDetectionCustomModulesBuilder_ == null) { @@ -957,15 +761,11 @@ public Builder clearEventThreatDetectionCustomModules() { return this; } /** - * - * *
      * The list of EventThreatDetectionCustomModules
      * 
* - * - * repeated .google.cloud.securitycentermanagement.v1.EventThreatDetectionCustomModule event_threat_detection_custom_modules = 1; - * + * repeated .google.cloud.securitycentermanagement.v1.EventThreatDetectionCustomModule event_threat_detection_custom_modules = 1; */ public Builder removeEventThreatDetectionCustomModules(int index) { if (eventThreatDetectionCustomModulesBuilder_ == null) { @@ -978,55 +778,39 @@ public Builder removeEventThreatDetectionCustomModules(int index) { return this; } /** - * - * *
      * The list of EventThreatDetectionCustomModules
      * 
* - * - * repeated .google.cloud.securitycentermanagement.v1.EventThreatDetectionCustomModule event_threat_detection_custom_modules = 1; - * + * repeated .google.cloud.securitycentermanagement.v1.EventThreatDetectionCustomModule event_threat_detection_custom_modules = 1; */ - public com.google.cloud.securitycentermanagement.v1.EventThreatDetectionCustomModule.Builder - getEventThreatDetectionCustomModulesBuilder(int index) { + public com.google.cloud.securitycentermanagement.v1.EventThreatDetectionCustomModule.Builder getEventThreatDetectionCustomModulesBuilder( + int index) { return getEventThreatDetectionCustomModulesFieldBuilder().getBuilder(index); } /** - * - * *
      * The list of EventThreatDetectionCustomModules
      * 
* - * - * repeated .google.cloud.securitycentermanagement.v1.EventThreatDetectionCustomModule event_threat_detection_custom_modules = 1; - * + * repeated .google.cloud.securitycentermanagement.v1.EventThreatDetectionCustomModule event_threat_detection_custom_modules = 1; */ - public com.google.cloud.securitycentermanagement.v1.EventThreatDetectionCustomModuleOrBuilder - getEventThreatDetectionCustomModulesOrBuilder(int index) { + public com.google.cloud.securitycentermanagement.v1.EventThreatDetectionCustomModuleOrBuilder getEventThreatDetectionCustomModulesOrBuilder( + int index) { if (eventThreatDetectionCustomModulesBuilder_ == null) { - return eventThreatDetectionCustomModules_.get(index); - } else { + return eventThreatDetectionCustomModules_.get(index); } else { return eventThreatDetectionCustomModulesBuilder_.getMessageOrBuilder(index); } } /** - * - * *
      * The list of EventThreatDetectionCustomModules
      * 
* - * - * repeated .google.cloud.securitycentermanagement.v1.EventThreatDetectionCustomModule event_threat_detection_custom_modules = 1; - * + * repeated .google.cloud.securitycentermanagement.v1.EventThreatDetectionCustomModule event_threat_detection_custom_modules = 1; */ - public java.util.List< - ? extends - com.google.cloud.securitycentermanagement.v1 - .EventThreatDetectionCustomModuleOrBuilder> - getEventThreatDetectionCustomModulesOrBuilderList() { + public java.util.List + getEventThreatDetectionCustomModulesOrBuilderList() { if (eventThreatDetectionCustomModulesBuilder_ != null) { return eventThreatDetectionCustomModulesBuilder_.getMessageOrBuilderList(); } else { @@ -1034,72 +818,45 @@ public Builder removeEventThreatDetectionCustomModules(int index) { } } /** - * - * *
      * The list of EventThreatDetectionCustomModules
      * 
* - * - * repeated .google.cloud.securitycentermanagement.v1.EventThreatDetectionCustomModule event_threat_detection_custom_modules = 1; - * + * repeated .google.cloud.securitycentermanagement.v1.EventThreatDetectionCustomModule event_threat_detection_custom_modules = 1; */ - public com.google.cloud.securitycentermanagement.v1.EventThreatDetectionCustomModule.Builder - addEventThreatDetectionCustomModulesBuilder() { - return getEventThreatDetectionCustomModulesFieldBuilder() - .addBuilder( - com.google.cloud.securitycentermanagement.v1.EventThreatDetectionCustomModule - .getDefaultInstance()); + public com.google.cloud.securitycentermanagement.v1.EventThreatDetectionCustomModule.Builder addEventThreatDetectionCustomModulesBuilder() { + return getEventThreatDetectionCustomModulesFieldBuilder().addBuilder( + com.google.cloud.securitycentermanagement.v1.EventThreatDetectionCustomModule.getDefaultInstance()); } /** - * - * *
      * The list of EventThreatDetectionCustomModules
      * 
* - * - * repeated .google.cloud.securitycentermanagement.v1.EventThreatDetectionCustomModule event_threat_detection_custom_modules = 1; - * + * repeated .google.cloud.securitycentermanagement.v1.EventThreatDetectionCustomModule event_threat_detection_custom_modules = 1; */ - public com.google.cloud.securitycentermanagement.v1.EventThreatDetectionCustomModule.Builder - addEventThreatDetectionCustomModulesBuilder(int index) { - return getEventThreatDetectionCustomModulesFieldBuilder() - .addBuilder( - index, - com.google.cloud.securitycentermanagement.v1.EventThreatDetectionCustomModule - .getDefaultInstance()); + public com.google.cloud.securitycentermanagement.v1.EventThreatDetectionCustomModule.Builder addEventThreatDetectionCustomModulesBuilder( + int index) { + return getEventThreatDetectionCustomModulesFieldBuilder().addBuilder( + index, com.google.cloud.securitycentermanagement.v1.EventThreatDetectionCustomModule.getDefaultInstance()); } /** - * - * *
      * The list of EventThreatDetectionCustomModules
      * 
* - * - * repeated .google.cloud.securitycentermanagement.v1.EventThreatDetectionCustomModule event_threat_detection_custom_modules = 1; - * + * repeated .google.cloud.securitycentermanagement.v1.EventThreatDetectionCustomModule event_threat_detection_custom_modules = 1; */ - public java.util.List< - com.google.cloud.securitycentermanagement.v1.EventThreatDetectionCustomModule.Builder> - getEventThreatDetectionCustomModulesBuilderList() { + public java.util.List + getEventThreatDetectionCustomModulesBuilderList() { return getEventThreatDetectionCustomModulesFieldBuilder().getBuilderList(); } - private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.securitycentermanagement.v1.EventThreatDetectionCustomModule, - com.google.cloud.securitycentermanagement.v1.EventThreatDetectionCustomModule.Builder, - com.google.cloud.securitycentermanagement.v1.EventThreatDetectionCustomModuleOrBuilder> + com.google.cloud.securitycentermanagement.v1.EventThreatDetectionCustomModule, com.google.cloud.securitycentermanagement.v1.EventThreatDetectionCustomModule.Builder, com.google.cloud.securitycentermanagement.v1.EventThreatDetectionCustomModuleOrBuilder> getEventThreatDetectionCustomModulesFieldBuilder() { if (eventThreatDetectionCustomModulesBuilder_ == null) { - eventThreatDetectionCustomModulesBuilder_ = - new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.securitycentermanagement.v1.EventThreatDetectionCustomModule, - com.google.cloud.securitycentermanagement.v1.EventThreatDetectionCustomModule - .Builder, - com.google.cloud.securitycentermanagement.v1 - .EventThreatDetectionCustomModuleOrBuilder>( + eventThreatDetectionCustomModulesBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.securitycentermanagement.v1.EventThreatDetectionCustomModule, com.google.cloud.securitycentermanagement.v1.EventThreatDetectionCustomModule.Builder, com.google.cloud.securitycentermanagement.v1.EventThreatDetectionCustomModuleOrBuilder>( eventThreatDetectionCustomModules_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), @@ -1111,20 +868,18 @@ public Builder removeEventThreatDetectionCustomModules(int index) { private java.lang.Object nextPageToken_ = ""; /** - * - * *
      * A token identifying a page of results the server should return.
      * 
* * 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; @@ -1133,21 +888,20 @@ public java.lang.String getNextPageToken() { } } /** - * - * *
      * A token identifying a page of results the server should return.
      * 
* * 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,35 +909,28 @@ public com.google.protobuf.ByteString getNextPageTokenBytes() { } } /** - * - * *
      * A token identifying a page of results the server should return.
      * 
* * 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 identifying a page of results the server should return.
      * 
* * string next_page_token = 2; - * * @return This builder for chaining. */ public Builder clearNextPageToken() { @@ -1193,30 +940,26 @@ public Builder clearNextPageToken() { return this; } /** - * - * *
      * A token identifying a page of results the server should return.
      * 
* * 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); } @@ -1226,63 +969,55 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.securitycentermanagement.v1.ListEventThreatDetectionCustomModulesResponse) } // @@protoc_insertion_point(class_scope:google.cloud.securitycentermanagement.v1.ListEventThreatDetectionCustomModulesResponse) - private static final com.google.cloud.securitycentermanagement.v1 - .ListEventThreatDetectionCustomModulesResponse - DEFAULT_INSTANCE; - + private static final com.google.cloud.securitycentermanagement.v1.ListEventThreatDetectionCustomModulesResponse DEFAULT_INSTANCE; static { - DEFAULT_INSTANCE = - new com.google.cloud.securitycentermanagement.v1 - .ListEventThreatDetectionCustomModulesResponse(); + DEFAULT_INSTANCE = new com.google.cloud.securitycentermanagement.v1.ListEventThreatDetectionCustomModulesResponse(); } - public static com.google.cloud.securitycentermanagement.v1 - .ListEventThreatDetectionCustomModulesResponse - getDefaultInstance() { + public static com.google.cloud.securitycentermanagement.v1.ListEventThreatDetectionCustomModulesResponse getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser - PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ListEventThreatDetectionCustomModulesResponse parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException() - .setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListEventThreatDetectionCustomModulesResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; } @java.lang.Override - public com.google.protobuf.Parser - getParserForType() { + public com.google.protobuf.Parser getParserForType() { return PARSER; } @java.lang.Override - public com.google.cloud.securitycentermanagement.v1.ListEventThreatDetectionCustomModulesResponse - getDefaultInstanceForType() { + public com.google.cloud.securitycentermanagement.v1.ListEventThreatDetectionCustomModulesResponse getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/owl-bot-staging/java-securitycentermanagement/v1/proto-google-cloud-securitycentermanagement-v1/src/main/java/com/google/cloud/securitycentermanagement/v1/ListEventThreatDetectionCustomModulesResponseOrBuilder.java b/owl-bot-staging/java-securitycentermanagement/v1/proto-google-cloud-securitycentermanagement-v1/src/main/java/com/google/cloud/securitycentermanagement/v1/ListEventThreatDetectionCustomModulesResponseOrBuilder.java new file mode 100644 index 000000000000..c4d8c9b0466d --- /dev/null +++ b/owl-bot-staging/java-securitycentermanagement/v1/proto-google-cloud-securitycentermanagement-v1/src/main/java/com/google/cloud/securitycentermanagement/v1/ListEventThreatDetectionCustomModulesResponseOrBuilder.java @@ -0,0 +1,73 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/securitycentermanagement/v1/security_center_management.proto + +package com.google.cloud.securitycentermanagement.v1; + +public interface ListEventThreatDetectionCustomModulesResponseOrBuilder extends + // @@protoc_insertion_point(interface_extends:google.cloud.securitycentermanagement.v1.ListEventThreatDetectionCustomModulesResponse) + com.google.protobuf.MessageOrBuilder { + + /** + *
+   * The list of EventThreatDetectionCustomModules
+   * 
+ * + * repeated .google.cloud.securitycentermanagement.v1.EventThreatDetectionCustomModule event_threat_detection_custom_modules = 1; + */ + java.util.List + getEventThreatDetectionCustomModulesList(); + /** + *
+   * The list of EventThreatDetectionCustomModules
+   * 
+ * + * repeated .google.cloud.securitycentermanagement.v1.EventThreatDetectionCustomModule event_threat_detection_custom_modules = 1; + */ + com.google.cloud.securitycentermanagement.v1.EventThreatDetectionCustomModule getEventThreatDetectionCustomModules(int index); + /** + *
+   * The list of EventThreatDetectionCustomModules
+   * 
+ * + * repeated .google.cloud.securitycentermanagement.v1.EventThreatDetectionCustomModule event_threat_detection_custom_modules = 1; + */ + int getEventThreatDetectionCustomModulesCount(); + /** + *
+   * The list of EventThreatDetectionCustomModules
+   * 
+ * + * repeated .google.cloud.securitycentermanagement.v1.EventThreatDetectionCustomModule event_threat_detection_custom_modules = 1; + */ + java.util.List + getEventThreatDetectionCustomModulesOrBuilderList(); + /** + *
+   * The list of EventThreatDetectionCustomModules
+   * 
+ * + * repeated .google.cloud.securitycentermanagement.v1.EventThreatDetectionCustomModule event_threat_detection_custom_modules = 1; + */ + com.google.cloud.securitycentermanagement.v1.EventThreatDetectionCustomModuleOrBuilder getEventThreatDetectionCustomModulesOrBuilder( + int index); + + /** + *
+   * A token identifying a page of results the server should return.
+   * 
+ * + * string next_page_token = 2; + * @return The nextPageToken. + */ + java.lang.String getNextPageToken(); + /** + *
+   * A token identifying a page of results the server should return.
+   * 
+ * + * string next_page_token = 2; + * @return The bytes for nextPageToken. + */ + com.google.protobuf.ByteString + getNextPageTokenBytes(); +} diff --git a/java-securitycentermanagement/proto-google-cloud-securitycentermanagement-v1/src/main/java/com/google/cloud/securitycentermanagement/v1/ListSecurityHealthAnalyticsCustomModulesRequest.java b/owl-bot-staging/java-securitycentermanagement/v1/proto-google-cloud-securitycentermanagement-v1/src/main/java/com/google/cloud/securitycentermanagement/v1/ListSecurityHealthAnalyticsCustomModulesRequest.java similarity index 53% rename from java-securitycentermanagement/proto-google-cloud-securitycentermanagement-v1/src/main/java/com/google/cloud/securitycentermanagement/v1/ListSecurityHealthAnalyticsCustomModulesRequest.java rename to owl-bot-staging/java-securitycentermanagement/v1/proto-google-cloud-securitycentermanagement-v1/src/main/java/com/google/cloud/securitycentermanagement/v1/ListSecurityHealthAnalyticsCustomModulesRequest.java index 3c9d0fe4ffbc..9cd0ab9866ff 100644 --- a/java-securitycentermanagement/proto-google-cloud-securitycentermanagement-v1/src/main/java/com/google/cloud/securitycentermanagement/v1/ListSecurityHealthAnalyticsCustomModulesRequest.java +++ b/owl-bot-staging/java-securitycentermanagement/v1/proto-google-cloud-securitycentermanagement-v1/src/main/java/com/google/cloud/securitycentermanagement/v1/ListSecurityHealthAnalyticsCustomModulesRequest.java @@ -1,45 +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/securitycentermanagement/v1/security_center_management.proto package com.google.cloud.securitycentermanagement.v1; /** - * - * *
  * Request message for listing Security Health Analytics custom modules.
  * 
* - * Protobuf type {@code - * google.cloud.securitycentermanagement.v1.ListSecurityHealthAnalyticsCustomModulesRequest} + * Protobuf type {@code google.cloud.securitycentermanagement.v1.ListSecurityHealthAnalyticsCustomModulesRequest} */ -public final class ListSecurityHealthAnalyticsCustomModulesRequest - extends com.google.protobuf.GeneratedMessageV3 - implements +public final class ListSecurityHealthAnalyticsCustomModulesRequest extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.securitycentermanagement.v1.ListSecurityHealthAnalyticsCustomModulesRequest) ListSecurityHealthAnalyticsCustomModulesRequestOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use ListSecurityHealthAnalyticsCustomModulesRequest.newBuilder() to construct. - private ListSecurityHealthAnalyticsCustomModulesRequest( - com.google.protobuf.GeneratedMessageV3.Builder builder) { + private ListSecurityHealthAnalyticsCustomModulesRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private ListSecurityHealthAnalyticsCustomModulesRequest() { parent_ = ""; pageToken_ = ""; @@ -47,34 +26,28 @@ private ListSecurityHealthAnalyticsCustomModulesRequest() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new ListSecurityHealthAnalyticsCustomModulesRequest(); } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.securitycentermanagement.v1.SecurityCenterManagementProto - .internal_static_google_cloud_securitycentermanagement_v1_ListSecurityHealthAnalyticsCustomModulesRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.securitycentermanagement.v1.SecurityCenterManagementProto.internal_static_google_cloud_securitycentermanagement_v1_ListSecurityHealthAnalyticsCustomModulesRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.securitycentermanagement.v1.SecurityCenterManagementProto - .internal_static_google_cloud_securitycentermanagement_v1_ListSecurityHealthAnalyticsCustomModulesRequest_fieldAccessorTable + return com.google.cloud.securitycentermanagement.v1.SecurityCenterManagementProto.internal_static_google_cloud_securitycentermanagement_v1_ListSecurityHealthAnalyticsCustomModulesRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.securitycentermanagement.v1 - .ListSecurityHealthAnalyticsCustomModulesRequest.class, - com.google.cloud.securitycentermanagement.v1 - .ListSecurityHealthAnalyticsCustomModulesRequest.Builder.class); + com.google.cloud.securitycentermanagement.v1.ListSecurityHealthAnalyticsCustomModulesRequest.class, com.google.cloud.securitycentermanagement.v1.ListSecurityHealthAnalyticsCustomModulesRequest.Builder.class); } public static final int PARENT_FIELD_NUMBER = 1; - @SuppressWarnings("serial") private volatile java.lang.Object parent_ = ""; /** - * - * *
    * Required. Name of parent to list custom modules. Its format is
    * "organizations/{organization}/locations/{location}",
@@ -83,10 +56,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
    * "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 @@ -95,15 +65,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. Name of parent to list custom modules. Its format is
    * "organizations/{organization}/locations/{location}",
@@ -112,18 +81,17 @@ public java.lang.String getParent() {
    * "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 { @@ -134,15 +102,12 @@ public com.google.protobuf.ByteString getParentBytes() { public static final int PAGE_SIZE_FIELD_NUMBER = 2; private int pageSize_ = 0; /** - * - * *
    * Optional. The maximum number of results to return in a single response.
    * Default is 10, minimum is 1, maximum is 1000.
    * 
* * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The pageSize. */ @java.lang.Override @@ -151,18 +116,14 @@ public int getPageSize() { } public static final int PAGE_TOKEN_FIELD_NUMBER = 3; - @SuppressWarnings("serial") private volatile java.lang.Object pageToken_ = ""; /** - * - * *
    * Optional. A token identifying a page of results the server should return.
    * 
* * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The pageToken. */ @java.lang.Override @@ -171,29 +132,29 @@ 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. A token identifying a page of results the server should return.
    * 
* * 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 { @@ -202,7 +163,6 @@ public com.google.protobuf.ByteString getPageTokenBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -214,7 +174,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.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_); } @@ -237,7 +198,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_); @@ -250,23 +212,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.securitycentermanagement.v1 - .ListSecurityHealthAnalyticsCustomModulesRequest)) { + if (!(obj instanceof com.google.cloud.securitycentermanagement.v1.ListSecurityHealthAnalyticsCustomModulesRequest)) { return super.equals(obj); } - com.google.cloud.securitycentermanagement.v1.ListSecurityHealthAnalyticsCustomModulesRequest - other = - (com.google.cloud.securitycentermanagement.v1 - .ListSecurityHealthAnalyticsCustomModulesRequest) - obj; + com.google.cloud.securitycentermanagement.v1.ListSecurityHealthAnalyticsCustomModulesRequest other = (com.google.cloud.securitycentermanagement.v1.ListSecurityHealthAnalyticsCustomModulesRequest) 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; } @@ -289,161 +247,132 @@ public int hashCode() { return hash; } - public static com.google.cloud.securitycentermanagement.v1 - .ListSecurityHealthAnalyticsCustomModulesRequest - parseFrom(java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.securitycentermanagement.v1.ListSecurityHealthAnalyticsCustomModulesRequest parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - - public static com.google.cloud.securitycentermanagement.v1 - .ListSecurityHealthAnalyticsCustomModulesRequest - parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.securitycentermanagement.v1.ListSecurityHealthAnalyticsCustomModulesRequest 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.securitycentermanagement.v1 - .ListSecurityHealthAnalyticsCustomModulesRequest - parseFrom(com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.securitycentermanagement.v1.ListSecurityHealthAnalyticsCustomModulesRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - - public static com.google.cloud.securitycentermanagement.v1 - .ListSecurityHealthAnalyticsCustomModulesRequest - parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.securitycentermanagement.v1.ListSecurityHealthAnalyticsCustomModulesRequest parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.securitycentermanagement.v1 - .ListSecurityHealthAnalyticsCustomModulesRequest - parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.securitycentermanagement.v1.ListSecurityHealthAnalyticsCustomModulesRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - - public static com.google.cloud.securitycentermanagement.v1 - .ListSecurityHealthAnalyticsCustomModulesRequest - parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.securitycentermanagement.v1.ListSecurityHealthAnalyticsCustomModulesRequest parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.securitycentermanagement.v1 - .ListSecurityHealthAnalyticsCustomModulesRequest - parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.securitycentermanagement.v1.ListSecurityHealthAnalyticsCustomModulesRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - - public static com.google.cloud.securitycentermanagement.v1 - .ListSecurityHealthAnalyticsCustomModulesRequest - 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.securitycentermanagement.v1.ListSecurityHealthAnalyticsCustomModulesRequest 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.securitycentermanagement.v1 - .ListSecurityHealthAnalyticsCustomModulesRequest - parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.securitycentermanagement.v1.ListSecurityHealthAnalyticsCustomModulesRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.securitycentermanagement.v1 - .ListSecurityHealthAnalyticsCustomModulesRequest - parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + public static com.google.cloud.securitycentermanagement.v1.ListSecurityHealthAnalyticsCustomModulesRequest parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.securitycentermanagement.v1 - .ListSecurityHealthAnalyticsCustomModulesRequest - parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.securitycentermanagement.v1.ListSecurityHealthAnalyticsCustomModulesRequest parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - - public static com.google.cloud.securitycentermanagement.v1 - .ListSecurityHealthAnalyticsCustomModulesRequest - 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.securitycentermanagement.v1.ListSecurityHealthAnalyticsCustomModulesRequest 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.securitycentermanagement.v1.ListSecurityHealthAnalyticsCustomModulesRequest - prototype) { + public static Builder newBuilder(com.google.cloud.securitycentermanagement.v1.ListSecurityHealthAnalyticsCustomModulesRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected 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 listing Security Health Analytics custom modules.
    * 
* - * Protobuf type {@code - * google.cloud.securitycentermanagement.v1.ListSecurityHealthAnalyticsCustomModulesRequest} + * Protobuf type {@code google.cloud.securitycentermanagement.v1.ListSecurityHealthAnalyticsCustomModulesRequest} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.securitycentermanagement.v1.ListSecurityHealthAnalyticsCustomModulesRequest) - com.google.cloud.securitycentermanagement.v1 - .ListSecurityHealthAnalyticsCustomModulesRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.securitycentermanagement.v1.SecurityCenterManagementProto - .internal_static_google_cloud_securitycentermanagement_v1_ListSecurityHealthAnalyticsCustomModulesRequest_descriptor; + com.google.cloud.securitycentermanagement.v1.ListSecurityHealthAnalyticsCustomModulesRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.securitycentermanagement.v1.SecurityCenterManagementProto.internal_static_google_cloud_securitycentermanagement_v1_ListSecurityHealthAnalyticsCustomModulesRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.securitycentermanagement.v1.SecurityCenterManagementProto - .internal_static_google_cloud_securitycentermanagement_v1_ListSecurityHealthAnalyticsCustomModulesRequest_fieldAccessorTable + return com.google.cloud.securitycentermanagement.v1.SecurityCenterManagementProto.internal_static_google_cloud_securitycentermanagement_v1_ListSecurityHealthAnalyticsCustomModulesRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.securitycentermanagement.v1 - .ListSecurityHealthAnalyticsCustomModulesRequest.class, - com.google.cloud.securitycentermanagement.v1 - .ListSecurityHealthAnalyticsCustomModulesRequest.Builder.class); + com.google.cloud.securitycentermanagement.v1.ListSecurityHealthAnalyticsCustomModulesRequest.class, com.google.cloud.securitycentermanagement.v1.ListSecurityHealthAnalyticsCustomModulesRequest.Builder.class); } - // Construct using - // com.google.cloud.securitycentermanagement.v1.ListSecurityHealthAnalyticsCustomModulesRequest.newBuilder() - private Builder() {} + // Construct using com.google.cloud.securitycentermanagement.v1.ListSecurityHealthAnalyticsCustomModulesRequest.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(); @@ -455,25 +384,19 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.securitycentermanagement.v1.SecurityCenterManagementProto - .internal_static_google_cloud_securitycentermanagement_v1_ListSecurityHealthAnalyticsCustomModulesRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.securitycentermanagement.v1.SecurityCenterManagementProto.internal_static_google_cloud_securitycentermanagement_v1_ListSecurityHealthAnalyticsCustomModulesRequest_descriptor; } @java.lang.Override - public com.google.cloud.securitycentermanagement.v1 - .ListSecurityHealthAnalyticsCustomModulesRequest - getDefaultInstanceForType() { - return com.google.cloud.securitycentermanagement.v1 - .ListSecurityHealthAnalyticsCustomModulesRequest.getDefaultInstance(); + public com.google.cloud.securitycentermanagement.v1.ListSecurityHealthAnalyticsCustomModulesRequest getDefaultInstanceForType() { + return com.google.cloud.securitycentermanagement.v1.ListSecurityHealthAnalyticsCustomModulesRequest.getDefaultInstance(); } @java.lang.Override - public com.google.cloud.securitycentermanagement.v1 - .ListSecurityHealthAnalyticsCustomModulesRequest - build() { - com.google.cloud.securitycentermanagement.v1.ListSecurityHealthAnalyticsCustomModulesRequest - result = buildPartial(); + public com.google.cloud.securitycentermanagement.v1.ListSecurityHealthAnalyticsCustomModulesRequest build() { + com.google.cloud.securitycentermanagement.v1.ListSecurityHealthAnalyticsCustomModulesRequest result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } @@ -481,23 +404,14 @@ public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { } @java.lang.Override - public com.google.cloud.securitycentermanagement.v1 - .ListSecurityHealthAnalyticsCustomModulesRequest - buildPartial() { - com.google.cloud.securitycentermanagement.v1.ListSecurityHealthAnalyticsCustomModulesRequest - result = - new com.google.cloud.securitycentermanagement.v1 - .ListSecurityHealthAnalyticsCustomModulesRequest(this); - if (bitField0_ != 0) { - buildPartial0(result); - } + public com.google.cloud.securitycentermanagement.v1.ListSecurityHealthAnalyticsCustomModulesRequest buildPartial() { + com.google.cloud.securitycentermanagement.v1.ListSecurityHealthAnalyticsCustomModulesRequest result = new com.google.cloud.securitycentermanagement.v1.ListSecurityHealthAnalyticsCustomModulesRequest(this); + if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } - private void buildPartial0( - com.google.cloud.securitycentermanagement.v1.ListSecurityHealthAnalyticsCustomModulesRequest - result) { + private void buildPartial0(com.google.cloud.securitycentermanagement.v1.ListSecurityHealthAnalyticsCustomModulesRequest result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000001) != 0)) { result.parent_ = parent_; @@ -514,57 +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.securitycentermanagement.v1 - .ListSecurityHealthAnalyticsCustomModulesRequest) { - return mergeFrom( - (com.google.cloud.securitycentermanagement.v1 - .ListSecurityHealthAnalyticsCustomModulesRequest) - other); + if (other instanceof com.google.cloud.securitycentermanagement.v1.ListSecurityHealthAnalyticsCustomModulesRequest) { + return mergeFrom((com.google.cloud.securitycentermanagement.v1.ListSecurityHealthAnalyticsCustomModulesRequest)other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom( - com.google.cloud.securitycentermanagement.v1.ListSecurityHealthAnalyticsCustomModulesRequest - other) { - if (other - == com.google.cloud.securitycentermanagement.v1 - .ListSecurityHealthAnalyticsCustomModulesRequest.getDefaultInstance()) return this; + public Builder mergeFrom(com.google.cloud.securitycentermanagement.v1.ListSecurityHealthAnalyticsCustomModulesRequest other) { + if (other == com.google.cloud.securitycentermanagement.v1.ListSecurityHealthAnalyticsCustomModulesRequest.getDefaultInstance()) return this; if (!other.getParent().isEmpty()) { parent_ = other.parent_; bitField0_ |= 0x00000001; @@ -604,31 +507,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) { @@ -638,13 +537,10 @@ public Builder mergeFrom( } // finally return this; } - private int bitField0_; private java.lang.Object parent_ = ""; /** - * - * *
      * Required. Name of parent to list custom modules. Its format is
      * "organizations/{organization}/locations/{location}",
@@ -653,16 +549,14 @@ public Builder mergeFrom(
      * "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; @@ -671,8 +565,6 @@ public java.lang.String getParent() { } } /** - * - * *
      * Required. Name of parent to list custom modules. Its format is
      * "organizations/{organization}/locations/{location}",
@@ -681,17 +573,16 @@ public java.lang.String getParent() {
      * "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 { @@ -699,8 +590,6 @@ public com.google.protobuf.ByteString getParentBytes() { } } /** - * - * *
      * Required. Name of parent to list custom modules. Its format is
      * "organizations/{organization}/locations/{location}",
@@ -709,25 +598,19 @@ public com.google.protobuf.ByteString getParentBytes() {
      * "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. Name of parent to list custom modules. Its format is
      * "organizations/{organization}/locations/{location}",
@@ -736,10 +619,7 @@ public Builder setParent(java.lang.String value) {
      * "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() { @@ -749,8 +629,6 @@ public Builder clearParent() { return this; } /** - * - * *
      * Required. Name of parent to list custom modules. Its format is
      * "organizations/{organization}/locations/{location}",
@@ -759,17 +637,13 @@ public Builder clearParent() {
      * "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; @@ -777,17 +651,14 @@ public Builder setParentBytes(com.google.protobuf.ByteString value) { return this; } - private int pageSize_; + private int pageSize_ ; /** - * - * *
      * Optional. The maximum number of results to return in a single response.
      * Default is 10, minimum is 1, maximum is 1000.
      * 
* * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The pageSize. */ @java.lang.Override @@ -795,15 +666,12 @@ public int getPageSize() { return pageSize_; } /** - * - * *
      * Optional. The maximum number of results to return in a single response.
      * Default is 10, minimum is 1, maximum is 1000.
      * 
* * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @param value The pageSize to set. * @return This builder for chaining. */ @@ -815,15 +683,12 @@ public Builder setPageSize(int value) { return this; } /** - * - * *
      * Optional. The maximum number of results to return in a single response.
      * Default is 10, minimum is 1, maximum is 1000.
      * 
* * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @return This builder for chaining. */ public Builder clearPageSize() { @@ -835,20 +700,18 @@ public Builder clearPageSize() { private java.lang.Object pageToken_ = ""; /** - * - * *
      * Optional. A token identifying a page of results the server should return.
      * 
* * 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; @@ -857,21 +720,20 @@ public java.lang.String getPageToken() { } } /** - * - * *
      * Optional. A token identifying a page of results the server should return.
      * 
* * 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 { @@ -879,35 +741,28 @@ public com.google.protobuf.ByteString getPageTokenBytes() { } } /** - * - * *
      * Optional. A token identifying a page of results the server should return.
      * 
* * 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. A token identifying a page of results the server should return.
      * 
* * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @return This builder for chaining. */ public Builder clearPageToken() { @@ -917,30 +772,26 @@ public Builder clearPageToken() { return this; } /** - * - * *
      * Optional. A token identifying a page of results the server should return.
      * 
* * 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); } @@ -950,66 +801,55 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.securitycentermanagement.v1.ListSecurityHealthAnalyticsCustomModulesRequest) } // @@protoc_insertion_point(class_scope:google.cloud.securitycentermanagement.v1.ListSecurityHealthAnalyticsCustomModulesRequest) - private static final com.google.cloud.securitycentermanagement.v1 - .ListSecurityHealthAnalyticsCustomModulesRequest - DEFAULT_INSTANCE; - + private static final com.google.cloud.securitycentermanagement.v1.ListSecurityHealthAnalyticsCustomModulesRequest DEFAULT_INSTANCE; static { - DEFAULT_INSTANCE = - new com.google.cloud.securitycentermanagement.v1 - .ListSecurityHealthAnalyticsCustomModulesRequest(); + DEFAULT_INSTANCE = new com.google.cloud.securitycentermanagement.v1.ListSecurityHealthAnalyticsCustomModulesRequest(); } - public static com.google.cloud.securitycentermanagement.v1 - .ListSecurityHealthAnalyticsCustomModulesRequest - getDefaultInstance() { + public static com.google.cloud.securitycentermanagement.v1.ListSecurityHealthAnalyticsCustomModulesRequest getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser - PARSER = - new com.google.protobuf.AbstractParser< - ListSecurityHealthAnalyticsCustomModulesRequest>() { - @java.lang.Override - public ListSecurityHealthAnalyticsCustomModulesRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException() - .setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListSecurityHealthAnalyticsCustomModulesRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; - public static com.google.protobuf.Parser - parser() { + public static com.google.protobuf.Parser parser() { return PARSER; } @java.lang.Override - public com.google.protobuf.Parser - getParserForType() { + public com.google.protobuf.Parser getParserForType() { return PARSER; } @java.lang.Override - public com.google.cloud.securitycentermanagement.v1 - .ListSecurityHealthAnalyticsCustomModulesRequest - getDefaultInstanceForType() { + public com.google.cloud.securitycentermanagement.v1.ListSecurityHealthAnalyticsCustomModulesRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/java-securitycentermanagement/proto-google-cloud-securitycentermanagement-v1/src/main/java/com/google/cloud/securitycentermanagement/v1/ListSecurityHealthAnalyticsCustomModulesRequestOrBuilder.java b/owl-bot-staging/java-securitycentermanagement/v1/proto-google-cloud-securitycentermanagement-v1/src/main/java/com/google/cloud/securitycentermanagement/v1/ListSecurityHealthAnalyticsCustomModulesRequestOrBuilder.java similarity index 63% rename from java-securitycentermanagement/proto-google-cloud-securitycentermanagement-v1/src/main/java/com/google/cloud/securitycentermanagement/v1/ListSecurityHealthAnalyticsCustomModulesRequestOrBuilder.java rename to owl-bot-staging/java-securitycentermanagement/v1/proto-google-cloud-securitycentermanagement-v1/src/main/java/com/google/cloud/securitycentermanagement/v1/ListSecurityHealthAnalyticsCustomModulesRequestOrBuilder.java index e36aebd7909b..22c486568751 100644 --- a/java-securitycentermanagement/proto-google-cloud-securitycentermanagement-v1/src/main/java/com/google/cloud/securitycentermanagement/v1/ListSecurityHealthAnalyticsCustomModulesRequestOrBuilder.java +++ b/owl-bot-staging/java-securitycentermanagement/v1/proto-google-cloud-securitycentermanagement-v1/src/main/java/com/google/cloud/securitycentermanagement/v1/ListSecurityHealthAnalyticsCustomModulesRequestOrBuilder.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/securitycentermanagement/v1/security_center_management.proto package com.google.cloud.securitycentermanagement.v1; -public interface ListSecurityHealthAnalyticsCustomModulesRequestOrBuilder - extends +public interface ListSecurityHealthAnalyticsCustomModulesRequestOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.securitycentermanagement.v1.ListSecurityHealthAnalyticsCustomModulesRequest) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * Required. Name of parent to list custom modules. Its format is
    * "organizations/{organization}/locations/{location}",
@@ -34,16 +16,11 @@ public interface ListSecurityHealthAnalyticsCustomModulesRequestOrBuilder
    * "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. Name of parent to list custom modules. Its format is
    * "organizations/{organization}/locations/{location}",
@@ -52,50 +29,40 @@ public interface ListSecurityHealthAnalyticsCustomModulesRequestOrBuilder
    * "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(); /** - * - * *
    * Optional. The maximum number of results to return in a single response.
    * Default is 10, minimum is 1, maximum is 1000.
    * 
* * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The pageSize. */ int getPageSize(); /** - * - * *
    * Optional. A token identifying a page of results the server should return.
    * 
* * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The pageToken. */ java.lang.String getPageToken(); /** - * - * *
    * Optional. A token identifying a page of results the server should return.
    * 
* * 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-securitycentermanagement/proto-google-cloud-securitycentermanagement-v1/src/main/java/com/google/cloud/securitycentermanagement/v1/ListSecurityHealthAnalyticsCustomModulesResponse.java b/owl-bot-staging/java-securitycentermanagement/v1/proto-google-cloud-securitycentermanagement-v1/src/main/java/com/google/cloud/securitycentermanagement/v1/ListSecurityHealthAnalyticsCustomModulesResponse.java similarity index 50% rename from java-securitycentermanagement/proto-google-cloud-securitycentermanagement-v1/src/main/java/com/google/cloud/securitycentermanagement/v1/ListSecurityHealthAnalyticsCustomModulesResponse.java rename to owl-bot-staging/java-securitycentermanagement/v1/proto-google-cloud-securitycentermanagement-v1/src/main/java/com/google/cloud/securitycentermanagement/v1/ListSecurityHealthAnalyticsCustomModulesResponse.java index 6805362378fb..5cf0ffb5215d 100644 --- a/java-securitycentermanagement/proto-google-cloud-securitycentermanagement-v1/src/main/java/com/google/cloud/securitycentermanagement/v1/ListSecurityHealthAnalyticsCustomModulesResponse.java +++ b/owl-bot-staging/java-securitycentermanagement/v1/proto-google-cloud-securitycentermanagement-v1/src/main/java/com/google/cloud/securitycentermanagement/v1/ListSecurityHealthAnalyticsCustomModulesResponse.java @@ -1,45 +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/securitycentermanagement/v1/security_center_management.proto package com.google.cloud.securitycentermanagement.v1; /** - * - * *
  * Response message for listing Security Health Analytics custom modules.
  * 
* - * Protobuf type {@code - * google.cloud.securitycentermanagement.v1.ListSecurityHealthAnalyticsCustomModulesResponse} + * Protobuf type {@code google.cloud.securitycentermanagement.v1.ListSecurityHealthAnalyticsCustomModulesResponse} */ -public final class ListSecurityHealthAnalyticsCustomModulesResponse - extends com.google.protobuf.GeneratedMessageV3 - implements +public final class ListSecurityHealthAnalyticsCustomModulesResponse extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.securitycentermanagement.v1.ListSecurityHealthAnalyticsCustomModulesResponse) ListSecurityHealthAnalyticsCustomModulesResponseOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use ListSecurityHealthAnalyticsCustomModulesResponse.newBuilder() to construct. - private ListSecurityHealthAnalyticsCustomModulesResponse( - com.google.protobuf.GeneratedMessageV3.Builder builder) { + private ListSecurityHealthAnalyticsCustomModulesResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private ListSecurityHealthAnalyticsCustomModulesResponse() { securityHealthAnalyticsCustomModules_ = java.util.Collections.emptyList(); nextPageToken_ = ""; @@ -47,130 +26,94 @@ private ListSecurityHealthAnalyticsCustomModulesResponse() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new ListSecurityHealthAnalyticsCustomModulesResponse(); } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.securitycentermanagement.v1.SecurityCenterManagementProto - .internal_static_google_cloud_securitycentermanagement_v1_ListSecurityHealthAnalyticsCustomModulesResponse_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.securitycentermanagement.v1.SecurityCenterManagementProto.internal_static_google_cloud_securitycentermanagement_v1_ListSecurityHealthAnalyticsCustomModulesResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.securitycentermanagement.v1.SecurityCenterManagementProto - .internal_static_google_cloud_securitycentermanagement_v1_ListSecurityHealthAnalyticsCustomModulesResponse_fieldAccessorTable + return com.google.cloud.securitycentermanagement.v1.SecurityCenterManagementProto.internal_static_google_cloud_securitycentermanagement_v1_ListSecurityHealthAnalyticsCustomModulesResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.securitycentermanagement.v1 - .ListSecurityHealthAnalyticsCustomModulesResponse.class, - com.google.cloud.securitycentermanagement.v1 - .ListSecurityHealthAnalyticsCustomModulesResponse.Builder.class); + com.google.cloud.securitycentermanagement.v1.ListSecurityHealthAnalyticsCustomModulesResponse.class, com.google.cloud.securitycentermanagement.v1.ListSecurityHealthAnalyticsCustomModulesResponse.Builder.class); } public static final int SECURITY_HEALTH_ANALYTICS_CUSTOM_MODULES_FIELD_NUMBER = 1; - @SuppressWarnings("serial") - private java.util.List< - com.google.cloud.securitycentermanagement.v1.SecurityHealthAnalyticsCustomModule> - securityHealthAnalyticsCustomModules_; + private java.util.List securityHealthAnalyticsCustomModules_; /** - * - * *
    * The list of SecurityHealthAnalyticsCustomModules
    * 
* - * - * repeated .google.cloud.securitycentermanagement.v1.SecurityHealthAnalyticsCustomModule security_health_analytics_custom_modules = 1; - * + * repeated .google.cloud.securitycentermanagement.v1.SecurityHealthAnalyticsCustomModule security_health_analytics_custom_modules = 1; */ @java.lang.Override - public java.util.List< - com.google.cloud.securitycentermanagement.v1.SecurityHealthAnalyticsCustomModule> - getSecurityHealthAnalyticsCustomModulesList() { + public java.util.List getSecurityHealthAnalyticsCustomModulesList() { return securityHealthAnalyticsCustomModules_; } /** - * - * *
    * The list of SecurityHealthAnalyticsCustomModules
    * 
* - * - * repeated .google.cloud.securitycentermanagement.v1.SecurityHealthAnalyticsCustomModule security_health_analytics_custom_modules = 1; - * + * repeated .google.cloud.securitycentermanagement.v1.SecurityHealthAnalyticsCustomModule security_health_analytics_custom_modules = 1; */ @java.lang.Override - public java.util.List< - ? extends - com.google.cloud.securitycentermanagement.v1 - .SecurityHealthAnalyticsCustomModuleOrBuilder> + public java.util.List getSecurityHealthAnalyticsCustomModulesOrBuilderList() { return securityHealthAnalyticsCustomModules_; } /** - * - * *
    * The list of SecurityHealthAnalyticsCustomModules
    * 
* - * - * repeated .google.cloud.securitycentermanagement.v1.SecurityHealthAnalyticsCustomModule security_health_analytics_custom_modules = 1; - * + * repeated .google.cloud.securitycentermanagement.v1.SecurityHealthAnalyticsCustomModule security_health_analytics_custom_modules = 1; */ @java.lang.Override public int getSecurityHealthAnalyticsCustomModulesCount() { return securityHealthAnalyticsCustomModules_.size(); } /** - * - * *
    * The list of SecurityHealthAnalyticsCustomModules
    * 
* - * - * repeated .google.cloud.securitycentermanagement.v1.SecurityHealthAnalyticsCustomModule security_health_analytics_custom_modules = 1; - * + * repeated .google.cloud.securitycentermanagement.v1.SecurityHealthAnalyticsCustomModule security_health_analytics_custom_modules = 1; */ @java.lang.Override - public com.google.cloud.securitycentermanagement.v1.SecurityHealthAnalyticsCustomModule - getSecurityHealthAnalyticsCustomModules(int index) { + public com.google.cloud.securitycentermanagement.v1.SecurityHealthAnalyticsCustomModule getSecurityHealthAnalyticsCustomModules(int index) { return securityHealthAnalyticsCustomModules_.get(index); } /** - * - * *
    * The list of SecurityHealthAnalyticsCustomModules
    * 
* - * - * repeated .google.cloud.securitycentermanagement.v1.SecurityHealthAnalyticsCustomModule security_health_analytics_custom_modules = 1; - * + * repeated .google.cloud.securitycentermanagement.v1.SecurityHealthAnalyticsCustomModule security_health_analytics_custom_modules = 1; */ @java.lang.Override - public com.google.cloud.securitycentermanagement.v1.SecurityHealthAnalyticsCustomModuleOrBuilder - getSecurityHealthAnalyticsCustomModulesOrBuilder(int index) { + public com.google.cloud.securitycentermanagement.v1.SecurityHealthAnalyticsCustomModuleOrBuilder getSecurityHealthAnalyticsCustomModulesOrBuilder( + int index) { return securityHealthAnalyticsCustomModules_.get(index); } public static final int NEXT_PAGE_TOKEN_FIELD_NUMBER = 2; - @SuppressWarnings("serial") private volatile java.lang.Object nextPageToken_ = ""; /** - * - * *
    * A token identifying a page of results the server should return.
    * 
* * string next_page_token = 2; - * * @return The nextPageToken. */ @java.lang.Override @@ -179,29 +122,29 @@ 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 identifying a page of results the server should return.
    * 
* * 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 { @@ -210,7 +153,6 @@ public com.google.protobuf.ByteString getNextPageTokenBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -222,7 +164,8 @@ public final boolean isInitialized() { } @java.lang.Override - 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 < securityHealthAnalyticsCustomModules_.size(); i++) { output.writeMessage(1, securityHealthAnalyticsCustomModules_.get(i)); } @@ -239,9 +182,8 @@ public int getSerializedSize() { size = 0; for (int i = 0; i < securityHealthAnalyticsCustomModules_.size(); i++) { - size += - com.google.protobuf.CodedOutputStream.computeMessageSize( - 1, securityHealthAnalyticsCustomModules_.get(i)); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, securityHealthAnalyticsCustomModules_.get(i)); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(nextPageToken_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, nextPageToken_); @@ -254,23 +196,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.securitycentermanagement.v1 - .ListSecurityHealthAnalyticsCustomModulesResponse)) { + if (!(obj instanceof com.google.cloud.securitycentermanagement.v1.ListSecurityHealthAnalyticsCustomModulesResponse)) { return super.equals(obj); } - com.google.cloud.securitycentermanagement.v1.ListSecurityHealthAnalyticsCustomModulesResponse - other = - (com.google.cloud.securitycentermanagement.v1 - .ListSecurityHealthAnalyticsCustomModulesResponse) - obj; + com.google.cloud.securitycentermanagement.v1.ListSecurityHealthAnalyticsCustomModulesResponse other = (com.google.cloud.securitycentermanagement.v1.ListSecurityHealthAnalyticsCustomModulesResponse) obj; if (!getSecurityHealthAnalyticsCustomModulesList() .equals(other.getSecurityHealthAnalyticsCustomModulesList())) return false; - if (!getNextPageToken().equals(other.getNextPageToken())) return false; + if (!getNextPageToken() + .equals(other.getNextPageToken())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -293,161 +229,132 @@ public int hashCode() { return hash; } - public static com.google.cloud.securitycentermanagement.v1 - .ListSecurityHealthAnalyticsCustomModulesResponse - parseFrom(java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.securitycentermanagement.v1.ListSecurityHealthAnalyticsCustomModulesResponse parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - - public static com.google.cloud.securitycentermanagement.v1 - .ListSecurityHealthAnalyticsCustomModulesResponse - parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.securitycentermanagement.v1.ListSecurityHealthAnalyticsCustomModulesResponse 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.securitycentermanagement.v1 - .ListSecurityHealthAnalyticsCustomModulesResponse - parseFrom(com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.securitycentermanagement.v1.ListSecurityHealthAnalyticsCustomModulesResponse parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - - public static com.google.cloud.securitycentermanagement.v1 - .ListSecurityHealthAnalyticsCustomModulesResponse - parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.securitycentermanagement.v1.ListSecurityHealthAnalyticsCustomModulesResponse parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.securitycentermanagement.v1 - .ListSecurityHealthAnalyticsCustomModulesResponse - parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.securitycentermanagement.v1.ListSecurityHealthAnalyticsCustomModulesResponse parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - - public static com.google.cloud.securitycentermanagement.v1 - .ListSecurityHealthAnalyticsCustomModulesResponse - parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.securitycentermanagement.v1.ListSecurityHealthAnalyticsCustomModulesResponse parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.securitycentermanagement.v1 - .ListSecurityHealthAnalyticsCustomModulesResponse - parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.securitycentermanagement.v1.ListSecurityHealthAnalyticsCustomModulesResponse parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - - public static com.google.cloud.securitycentermanagement.v1 - .ListSecurityHealthAnalyticsCustomModulesResponse - 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.securitycentermanagement.v1.ListSecurityHealthAnalyticsCustomModulesResponse 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.securitycentermanagement.v1 - .ListSecurityHealthAnalyticsCustomModulesResponse - parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.securitycentermanagement.v1.ListSecurityHealthAnalyticsCustomModulesResponse parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.securitycentermanagement.v1 - .ListSecurityHealthAnalyticsCustomModulesResponse - parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + public static com.google.cloud.securitycentermanagement.v1.ListSecurityHealthAnalyticsCustomModulesResponse parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.securitycentermanagement.v1 - .ListSecurityHealthAnalyticsCustomModulesResponse - parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.securitycentermanagement.v1.ListSecurityHealthAnalyticsCustomModulesResponse parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - - public static com.google.cloud.securitycentermanagement.v1 - .ListSecurityHealthAnalyticsCustomModulesResponse - 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.securitycentermanagement.v1.ListSecurityHealthAnalyticsCustomModulesResponse 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.securitycentermanagement.v1.ListSecurityHealthAnalyticsCustomModulesResponse - prototype) { + public static Builder newBuilder(com.google.cloud.securitycentermanagement.v1.ListSecurityHealthAnalyticsCustomModulesResponse prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected 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 listing Security Health Analytics custom modules.
    * 
* - * Protobuf type {@code - * google.cloud.securitycentermanagement.v1.ListSecurityHealthAnalyticsCustomModulesResponse} + * Protobuf type {@code google.cloud.securitycentermanagement.v1.ListSecurityHealthAnalyticsCustomModulesResponse} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.securitycentermanagement.v1.ListSecurityHealthAnalyticsCustomModulesResponse) - com.google.cloud.securitycentermanagement.v1 - .ListSecurityHealthAnalyticsCustomModulesResponseOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.securitycentermanagement.v1.SecurityCenterManagementProto - .internal_static_google_cloud_securitycentermanagement_v1_ListSecurityHealthAnalyticsCustomModulesResponse_descriptor; + com.google.cloud.securitycentermanagement.v1.ListSecurityHealthAnalyticsCustomModulesResponseOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.securitycentermanagement.v1.SecurityCenterManagementProto.internal_static_google_cloud_securitycentermanagement_v1_ListSecurityHealthAnalyticsCustomModulesResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.securitycentermanagement.v1.SecurityCenterManagementProto - .internal_static_google_cloud_securitycentermanagement_v1_ListSecurityHealthAnalyticsCustomModulesResponse_fieldAccessorTable + return com.google.cloud.securitycentermanagement.v1.SecurityCenterManagementProto.internal_static_google_cloud_securitycentermanagement_v1_ListSecurityHealthAnalyticsCustomModulesResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.securitycentermanagement.v1 - .ListSecurityHealthAnalyticsCustomModulesResponse.class, - com.google.cloud.securitycentermanagement.v1 - .ListSecurityHealthAnalyticsCustomModulesResponse.Builder.class); + com.google.cloud.securitycentermanagement.v1.ListSecurityHealthAnalyticsCustomModulesResponse.class, com.google.cloud.securitycentermanagement.v1.ListSecurityHealthAnalyticsCustomModulesResponse.Builder.class); } - // Construct using - // com.google.cloud.securitycentermanagement.v1.ListSecurityHealthAnalyticsCustomModulesResponse.newBuilder() - private Builder() {} + // Construct using com.google.cloud.securitycentermanagement.v1.ListSecurityHealthAnalyticsCustomModulesResponse.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(); @@ -464,25 +371,19 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.securitycentermanagement.v1.SecurityCenterManagementProto - .internal_static_google_cloud_securitycentermanagement_v1_ListSecurityHealthAnalyticsCustomModulesResponse_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.securitycentermanagement.v1.SecurityCenterManagementProto.internal_static_google_cloud_securitycentermanagement_v1_ListSecurityHealthAnalyticsCustomModulesResponse_descriptor; } @java.lang.Override - public com.google.cloud.securitycentermanagement.v1 - .ListSecurityHealthAnalyticsCustomModulesResponse - getDefaultInstanceForType() { - return com.google.cloud.securitycentermanagement.v1 - .ListSecurityHealthAnalyticsCustomModulesResponse.getDefaultInstance(); + public com.google.cloud.securitycentermanagement.v1.ListSecurityHealthAnalyticsCustomModulesResponse getDefaultInstanceForType() { + return com.google.cloud.securitycentermanagement.v1.ListSecurityHealthAnalyticsCustomModulesResponse.getDefaultInstance(); } @java.lang.Override - public com.google.cloud.securitycentermanagement.v1 - .ListSecurityHealthAnalyticsCustomModulesResponse - build() { - com.google.cloud.securitycentermanagement.v1.ListSecurityHealthAnalyticsCustomModulesResponse - result = buildPartial(); + public com.google.cloud.securitycentermanagement.v1.ListSecurityHealthAnalyticsCustomModulesResponse build() { + com.google.cloud.securitycentermanagement.v1.ListSecurityHealthAnalyticsCustomModulesResponse result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } @@ -490,42 +391,27 @@ public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { } @java.lang.Override - public com.google.cloud.securitycentermanagement.v1 - .ListSecurityHealthAnalyticsCustomModulesResponse - buildPartial() { - com.google.cloud.securitycentermanagement.v1.ListSecurityHealthAnalyticsCustomModulesResponse - result = - new com.google.cloud.securitycentermanagement.v1 - .ListSecurityHealthAnalyticsCustomModulesResponse(this); + public com.google.cloud.securitycentermanagement.v1.ListSecurityHealthAnalyticsCustomModulesResponse buildPartial() { + com.google.cloud.securitycentermanagement.v1.ListSecurityHealthAnalyticsCustomModulesResponse result = new com.google.cloud.securitycentermanagement.v1.ListSecurityHealthAnalyticsCustomModulesResponse(this); buildPartialRepeatedFields(result); - if (bitField0_ != 0) { - buildPartial0(result); - } + if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } - private void buildPartialRepeatedFields( - com.google.cloud.securitycentermanagement.v1 - .ListSecurityHealthAnalyticsCustomModulesResponse - result) { + private void buildPartialRepeatedFields(com.google.cloud.securitycentermanagement.v1.ListSecurityHealthAnalyticsCustomModulesResponse result) { if (securityHealthAnalyticsCustomModulesBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0)) { - securityHealthAnalyticsCustomModules_ = - java.util.Collections.unmodifiableList(securityHealthAnalyticsCustomModules_); + securityHealthAnalyticsCustomModules_ = java.util.Collections.unmodifiableList(securityHealthAnalyticsCustomModules_); bitField0_ = (bitField0_ & ~0x00000001); } result.securityHealthAnalyticsCustomModules_ = securityHealthAnalyticsCustomModules_; } else { - result.securityHealthAnalyticsCustomModules_ = - securityHealthAnalyticsCustomModulesBuilder_.build(); + result.securityHealthAnalyticsCustomModules_ = securityHealthAnalyticsCustomModulesBuilder_.build(); } } - private void buildPartial0( - com.google.cloud.securitycentermanagement.v1 - .ListSecurityHealthAnalyticsCustomModulesResponse - result) { + private void buildPartial0(com.google.cloud.securitycentermanagement.v1.ListSecurityHealthAnalyticsCustomModulesResponse result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000002) != 0)) { result.nextPageToken_ = nextPageToken_; @@ -536,58 +422,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.securitycentermanagement.v1 - .ListSecurityHealthAnalyticsCustomModulesResponse) { - return mergeFrom( - (com.google.cloud.securitycentermanagement.v1 - .ListSecurityHealthAnalyticsCustomModulesResponse) - other); + if (other instanceof com.google.cloud.securitycentermanagement.v1.ListSecurityHealthAnalyticsCustomModulesResponse) { + return mergeFrom((com.google.cloud.securitycentermanagement.v1.ListSecurityHealthAnalyticsCustomModulesResponse)other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom( - com.google.cloud.securitycentermanagement.v1 - .ListSecurityHealthAnalyticsCustomModulesResponse - other) { - if (other - == com.google.cloud.securitycentermanagement.v1 - .ListSecurityHealthAnalyticsCustomModulesResponse.getDefaultInstance()) return this; + public Builder mergeFrom(com.google.cloud.securitycentermanagement.v1.ListSecurityHealthAnalyticsCustomModulesResponse other) { + if (other == com.google.cloud.securitycentermanagement.v1.ListSecurityHealthAnalyticsCustomModulesResponse.getDefaultInstance()) return this; if (securityHealthAnalyticsCustomModulesBuilder_ == null) { if (!other.securityHealthAnalyticsCustomModules_.isEmpty()) { if (securityHealthAnalyticsCustomModules_.isEmpty()) { @@ -595,8 +469,7 @@ public Builder mergeFrom( bitField0_ = (bitField0_ & ~0x00000001); } else { ensureSecurityHealthAnalyticsCustomModulesIsMutable(); - securityHealthAnalyticsCustomModules_.addAll( - other.securityHealthAnalyticsCustomModules_); + securityHealthAnalyticsCustomModules_.addAll(other.securityHealthAnalyticsCustomModules_); } onChanged(); } @@ -607,13 +480,11 @@ public Builder mergeFrom( securityHealthAnalyticsCustomModulesBuilder_ = null; securityHealthAnalyticsCustomModules_ = other.securityHealthAnalyticsCustomModules_; bitField0_ = (bitField0_ & ~0x00000001); - securityHealthAnalyticsCustomModulesBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders - ? getSecurityHealthAnalyticsCustomModulesFieldBuilder() - : null; + securityHealthAnalyticsCustomModulesBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? + getSecurityHealthAnalyticsCustomModulesFieldBuilder() : null; } else { - securityHealthAnalyticsCustomModulesBuilder_.addAllMessages( - other.securityHealthAnalyticsCustomModules_); + securityHealthAnalyticsCustomModulesBuilder_.addAllMessages(other.securityHealthAnalyticsCustomModules_); } } } @@ -648,34 +519,30 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: - { - com.google.cloud.securitycentermanagement.v1.SecurityHealthAnalyticsCustomModule m = - input.readMessage( - com.google.cloud.securitycentermanagement.v1 - .SecurityHealthAnalyticsCustomModule.parser(), - extensionRegistry); - if (securityHealthAnalyticsCustomModulesBuilder_ == null) { - ensureSecurityHealthAnalyticsCustomModulesIsMutable(); - securityHealthAnalyticsCustomModules_.add(m); - } else { - securityHealthAnalyticsCustomModulesBuilder_.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.securitycentermanagement.v1.SecurityHealthAnalyticsCustomModule m = + input.readMessage( + com.google.cloud.securitycentermanagement.v1.SecurityHealthAnalyticsCustomModule.parser(), + extensionRegistry); + if (securityHealthAnalyticsCustomModulesBuilder_ == null) { + ensureSecurityHealthAnalyticsCustomModulesIsMutable(); + securityHealthAnalyticsCustomModules_.add(m); + } else { + securityHealthAnalyticsCustomModulesBuilder_.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) { @@ -685,45 +552,28 @@ public Builder mergeFrom( } // finally return this; } - private int bitField0_; - private java.util.List< - com.google.cloud.securitycentermanagement.v1.SecurityHealthAnalyticsCustomModule> - securityHealthAnalyticsCustomModules_ = java.util.Collections.emptyList(); - + private java.util.List securityHealthAnalyticsCustomModules_ = + java.util.Collections.emptyList(); private void ensureSecurityHealthAnalyticsCustomModulesIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { - securityHealthAnalyticsCustomModules_ = - new java.util.ArrayList< - com.google.cloud.securitycentermanagement.v1.SecurityHealthAnalyticsCustomModule>( - securityHealthAnalyticsCustomModules_); + securityHealthAnalyticsCustomModules_ = new java.util.ArrayList(securityHealthAnalyticsCustomModules_); bitField0_ |= 0x00000001; - } + } } private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.securitycentermanagement.v1.SecurityHealthAnalyticsCustomModule, - com.google.cloud.securitycentermanagement.v1.SecurityHealthAnalyticsCustomModule - .Builder, - com.google.cloud.securitycentermanagement.v1 - .SecurityHealthAnalyticsCustomModuleOrBuilder> - securityHealthAnalyticsCustomModulesBuilder_; + com.google.cloud.securitycentermanagement.v1.SecurityHealthAnalyticsCustomModule, com.google.cloud.securitycentermanagement.v1.SecurityHealthAnalyticsCustomModule.Builder, com.google.cloud.securitycentermanagement.v1.SecurityHealthAnalyticsCustomModuleOrBuilder> securityHealthAnalyticsCustomModulesBuilder_; /** - * - * *
      * The list of SecurityHealthAnalyticsCustomModules
      * 
* - * - * repeated .google.cloud.securitycentermanagement.v1.SecurityHealthAnalyticsCustomModule security_health_analytics_custom_modules = 1; - * + * repeated .google.cloud.securitycentermanagement.v1.SecurityHealthAnalyticsCustomModule security_health_analytics_custom_modules = 1; */ - public java.util.List< - com.google.cloud.securitycentermanagement.v1.SecurityHealthAnalyticsCustomModule> - getSecurityHealthAnalyticsCustomModulesList() { + public java.util.List getSecurityHealthAnalyticsCustomModulesList() { if (securityHealthAnalyticsCustomModulesBuilder_ == null) { return java.util.Collections.unmodifiableList(securityHealthAnalyticsCustomModules_); } else { @@ -731,15 +581,11 @@ private void ensureSecurityHealthAnalyticsCustomModulesIsMutable() { } } /** - * - * *
      * The list of SecurityHealthAnalyticsCustomModules
      * 
* - * - * repeated .google.cloud.securitycentermanagement.v1.SecurityHealthAnalyticsCustomModule security_health_analytics_custom_modules = 1; - * + * repeated .google.cloud.securitycentermanagement.v1.SecurityHealthAnalyticsCustomModule security_health_analytics_custom_modules = 1; */ public int getSecurityHealthAnalyticsCustomModulesCount() { if (securityHealthAnalyticsCustomModulesBuilder_ == null) { @@ -749,18 +595,13 @@ public int getSecurityHealthAnalyticsCustomModulesCount() { } } /** - * - * *
      * The list of SecurityHealthAnalyticsCustomModules
      * 
* - * - * repeated .google.cloud.securitycentermanagement.v1.SecurityHealthAnalyticsCustomModule security_health_analytics_custom_modules = 1; - * + * repeated .google.cloud.securitycentermanagement.v1.SecurityHealthAnalyticsCustomModule security_health_analytics_custom_modules = 1; */ - public com.google.cloud.securitycentermanagement.v1.SecurityHealthAnalyticsCustomModule - getSecurityHealthAnalyticsCustomModules(int index) { + public com.google.cloud.securitycentermanagement.v1.SecurityHealthAnalyticsCustomModule getSecurityHealthAnalyticsCustomModules(int index) { if (securityHealthAnalyticsCustomModulesBuilder_ == null) { return securityHealthAnalyticsCustomModules_.get(index); } else { @@ -768,19 +609,14 @@ public int getSecurityHealthAnalyticsCustomModulesCount() { } } /** - * - * *
      * The list of SecurityHealthAnalyticsCustomModules
      * 
* - * - * repeated .google.cloud.securitycentermanagement.v1.SecurityHealthAnalyticsCustomModule security_health_analytics_custom_modules = 1; - * + * repeated .google.cloud.securitycentermanagement.v1.SecurityHealthAnalyticsCustomModule security_health_analytics_custom_modules = 1; */ public Builder setSecurityHealthAnalyticsCustomModules( - int index, - com.google.cloud.securitycentermanagement.v1.SecurityHealthAnalyticsCustomModule value) { + int index, com.google.cloud.securitycentermanagement.v1.SecurityHealthAnalyticsCustomModule value) { if (securityHealthAnalyticsCustomModulesBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -794,20 +630,14 @@ public Builder setSecurityHealthAnalyticsCustomModules( return this; } /** - * - * *
      * The list of SecurityHealthAnalyticsCustomModules
      * 
* - * - * repeated .google.cloud.securitycentermanagement.v1.SecurityHealthAnalyticsCustomModule security_health_analytics_custom_modules = 1; - * + * repeated .google.cloud.securitycentermanagement.v1.SecurityHealthAnalyticsCustomModule security_health_analytics_custom_modules = 1; */ public Builder setSecurityHealthAnalyticsCustomModules( - int index, - com.google.cloud.securitycentermanagement.v1.SecurityHealthAnalyticsCustomModule.Builder - builderForValue) { + int index, com.google.cloud.securitycentermanagement.v1.SecurityHealthAnalyticsCustomModule.Builder builderForValue) { if (securityHealthAnalyticsCustomModulesBuilder_ == null) { ensureSecurityHealthAnalyticsCustomModulesIsMutable(); securityHealthAnalyticsCustomModules_.set(index, builderForValue.build()); @@ -818,18 +648,13 @@ public Builder setSecurityHealthAnalyticsCustomModules( return this; } /** - * - * *
      * The list of SecurityHealthAnalyticsCustomModules
      * 
* - * - * repeated .google.cloud.securitycentermanagement.v1.SecurityHealthAnalyticsCustomModule security_health_analytics_custom_modules = 1; - * + * repeated .google.cloud.securitycentermanagement.v1.SecurityHealthAnalyticsCustomModule security_health_analytics_custom_modules = 1; */ - public Builder addSecurityHealthAnalyticsCustomModules( - com.google.cloud.securitycentermanagement.v1.SecurityHealthAnalyticsCustomModule value) { + public Builder addSecurityHealthAnalyticsCustomModules(com.google.cloud.securitycentermanagement.v1.SecurityHealthAnalyticsCustomModule value) { if (securityHealthAnalyticsCustomModulesBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -843,19 +668,14 @@ public Builder addSecurityHealthAnalyticsCustomModules( return this; } /** - * - * *
      * The list of SecurityHealthAnalyticsCustomModules
      * 
* - * - * repeated .google.cloud.securitycentermanagement.v1.SecurityHealthAnalyticsCustomModule security_health_analytics_custom_modules = 1; - * + * repeated .google.cloud.securitycentermanagement.v1.SecurityHealthAnalyticsCustomModule security_health_analytics_custom_modules = 1; */ public Builder addSecurityHealthAnalyticsCustomModules( - int index, - com.google.cloud.securitycentermanagement.v1.SecurityHealthAnalyticsCustomModule value) { + int index, com.google.cloud.securitycentermanagement.v1.SecurityHealthAnalyticsCustomModule value) { if (securityHealthAnalyticsCustomModulesBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -869,19 +689,14 @@ public Builder addSecurityHealthAnalyticsCustomModules( return this; } /** - * - * *
      * The list of SecurityHealthAnalyticsCustomModules
      * 
* - * - * repeated .google.cloud.securitycentermanagement.v1.SecurityHealthAnalyticsCustomModule security_health_analytics_custom_modules = 1; - * + * repeated .google.cloud.securitycentermanagement.v1.SecurityHealthAnalyticsCustomModule security_health_analytics_custom_modules = 1; */ public Builder addSecurityHealthAnalyticsCustomModules( - com.google.cloud.securitycentermanagement.v1.SecurityHealthAnalyticsCustomModule.Builder - builderForValue) { + com.google.cloud.securitycentermanagement.v1.SecurityHealthAnalyticsCustomModule.Builder builderForValue) { if (securityHealthAnalyticsCustomModulesBuilder_ == null) { ensureSecurityHealthAnalyticsCustomModulesIsMutable(); securityHealthAnalyticsCustomModules_.add(builderForValue.build()); @@ -892,20 +707,14 @@ public Builder addSecurityHealthAnalyticsCustomModules( return this; } /** - * - * *
      * The list of SecurityHealthAnalyticsCustomModules
      * 
* - * - * repeated .google.cloud.securitycentermanagement.v1.SecurityHealthAnalyticsCustomModule security_health_analytics_custom_modules = 1; - * + * repeated .google.cloud.securitycentermanagement.v1.SecurityHealthAnalyticsCustomModule security_health_analytics_custom_modules = 1; */ public Builder addSecurityHealthAnalyticsCustomModules( - int index, - com.google.cloud.securitycentermanagement.v1.SecurityHealthAnalyticsCustomModule.Builder - builderForValue) { + int index, com.google.cloud.securitycentermanagement.v1.SecurityHealthAnalyticsCustomModule.Builder builderForValue) { if (securityHealthAnalyticsCustomModulesBuilder_ == null) { ensureSecurityHealthAnalyticsCustomModulesIsMutable(); securityHealthAnalyticsCustomModules_.add(index, builderForValue.build()); @@ -916,22 +725,14 @@ public Builder addSecurityHealthAnalyticsCustomModules( return this; } /** - * - * *
      * The list of SecurityHealthAnalyticsCustomModules
      * 
* - * - * repeated .google.cloud.securitycentermanagement.v1.SecurityHealthAnalyticsCustomModule security_health_analytics_custom_modules = 1; - * + * repeated .google.cloud.securitycentermanagement.v1.SecurityHealthAnalyticsCustomModule security_health_analytics_custom_modules = 1; */ public Builder addAllSecurityHealthAnalyticsCustomModules( - java.lang.Iterable< - ? extends - com.google.cloud.securitycentermanagement.v1 - .SecurityHealthAnalyticsCustomModule> - values) { + java.lang.Iterable values) { if (securityHealthAnalyticsCustomModulesBuilder_ == null) { ensureSecurityHealthAnalyticsCustomModulesIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( @@ -943,15 +744,11 @@ public Builder addAllSecurityHealthAnalyticsCustomModules( return this; } /** - * - * *
      * The list of SecurityHealthAnalyticsCustomModules
      * 
* - * - * repeated .google.cloud.securitycentermanagement.v1.SecurityHealthAnalyticsCustomModule security_health_analytics_custom_modules = 1; - * + * repeated .google.cloud.securitycentermanagement.v1.SecurityHealthAnalyticsCustomModule security_health_analytics_custom_modules = 1; */ public Builder clearSecurityHealthAnalyticsCustomModules() { if (securityHealthAnalyticsCustomModulesBuilder_ == null) { @@ -964,15 +761,11 @@ public Builder clearSecurityHealthAnalyticsCustomModules() { return this; } /** - * - * *
      * The list of SecurityHealthAnalyticsCustomModules
      * 
* - * - * repeated .google.cloud.securitycentermanagement.v1.SecurityHealthAnalyticsCustomModule security_health_analytics_custom_modules = 1; - * + * repeated .google.cloud.securitycentermanagement.v1.SecurityHealthAnalyticsCustomModule security_health_analytics_custom_modules = 1; */ public Builder removeSecurityHealthAnalyticsCustomModules(int index) { if (securityHealthAnalyticsCustomModulesBuilder_ == null) { @@ -985,55 +778,39 @@ public Builder removeSecurityHealthAnalyticsCustomModules(int index) { return this; } /** - * - * *
      * The list of SecurityHealthAnalyticsCustomModules
      * 
* - * - * repeated .google.cloud.securitycentermanagement.v1.SecurityHealthAnalyticsCustomModule security_health_analytics_custom_modules = 1; - * + * repeated .google.cloud.securitycentermanagement.v1.SecurityHealthAnalyticsCustomModule security_health_analytics_custom_modules = 1; */ - public com.google.cloud.securitycentermanagement.v1.SecurityHealthAnalyticsCustomModule.Builder - getSecurityHealthAnalyticsCustomModulesBuilder(int index) { + public com.google.cloud.securitycentermanagement.v1.SecurityHealthAnalyticsCustomModule.Builder getSecurityHealthAnalyticsCustomModulesBuilder( + int index) { return getSecurityHealthAnalyticsCustomModulesFieldBuilder().getBuilder(index); } /** - * - * *
      * The list of SecurityHealthAnalyticsCustomModules
      * 
* - * - * repeated .google.cloud.securitycentermanagement.v1.SecurityHealthAnalyticsCustomModule security_health_analytics_custom_modules = 1; - * + * repeated .google.cloud.securitycentermanagement.v1.SecurityHealthAnalyticsCustomModule security_health_analytics_custom_modules = 1; */ - public com.google.cloud.securitycentermanagement.v1.SecurityHealthAnalyticsCustomModuleOrBuilder - getSecurityHealthAnalyticsCustomModulesOrBuilder(int index) { + public com.google.cloud.securitycentermanagement.v1.SecurityHealthAnalyticsCustomModuleOrBuilder getSecurityHealthAnalyticsCustomModulesOrBuilder( + int index) { if (securityHealthAnalyticsCustomModulesBuilder_ == null) { - return securityHealthAnalyticsCustomModules_.get(index); - } else { + return securityHealthAnalyticsCustomModules_.get(index); } else { return securityHealthAnalyticsCustomModulesBuilder_.getMessageOrBuilder(index); } } /** - * - * *
      * The list of SecurityHealthAnalyticsCustomModules
      * 
* - * - * repeated .google.cloud.securitycentermanagement.v1.SecurityHealthAnalyticsCustomModule security_health_analytics_custom_modules = 1; - * + * repeated .google.cloud.securitycentermanagement.v1.SecurityHealthAnalyticsCustomModule security_health_analytics_custom_modules = 1; */ - public java.util.List< - ? extends - com.google.cloud.securitycentermanagement.v1 - .SecurityHealthAnalyticsCustomModuleOrBuilder> - getSecurityHealthAnalyticsCustomModulesOrBuilderList() { + public java.util.List + getSecurityHealthAnalyticsCustomModulesOrBuilderList() { if (securityHealthAnalyticsCustomModulesBuilder_ != null) { return securityHealthAnalyticsCustomModulesBuilder_.getMessageOrBuilderList(); } else { @@ -1041,75 +818,45 @@ public Builder removeSecurityHealthAnalyticsCustomModules(int index) { } } /** - * - * *
      * The list of SecurityHealthAnalyticsCustomModules
      * 
* - * - * repeated .google.cloud.securitycentermanagement.v1.SecurityHealthAnalyticsCustomModule security_health_analytics_custom_modules = 1; - * + * repeated .google.cloud.securitycentermanagement.v1.SecurityHealthAnalyticsCustomModule security_health_analytics_custom_modules = 1; */ - public com.google.cloud.securitycentermanagement.v1.SecurityHealthAnalyticsCustomModule.Builder - addSecurityHealthAnalyticsCustomModulesBuilder() { - return getSecurityHealthAnalyticsCustomModulesFieldBuilder() - .addBuilder( - com.google.cloud.securitycentermanagement.v1.SecurityHealthAnalyticsCustomModule - .getDefaultInstance()); + public com.google.cloud.securitycentermanagement.v1.SecurityHealthAnalyticsCustomModule.Builder addSecurityHealthAnalyticsCustomModulesBuilder() { + return getSecurityHealthAnalyticsCustomModulesFieldBuilder().addBuilder( + com.google.cloud.securitycentermanagement.v1.SecurityHealthAnalyticsCustomModule.getDefaultInstance()); } /** - * - * *
      * The list of SecurityHealthAnalyticsCustomModules
      * 
* - * - * repeated .google.cloud.securitycentermanagement.v1.SecurityHealthAnalyticsCustomModule security_health_analytics_custom_modules = 1; - * + * repeated .google.cloud.securitycentermanagement.v1.SecurityHealthAnalyticsCustomModule security_health_analytics_custom_modules = 1; */ - public com.google.cloud.securitycentermanagement.v1.SecurityHealthAnalyticsCustomModule.Builder - addSecurityHealthAnalyticsCustomModulesBuilder(int index) { - return getSecurityHealthAnalyticsCustomModulesFieldBuilder() - .addBuilder( - index, - com.google.cloud.securitycentermanagement.v1.SecurityHealthAnalyticsCustomModule - .getDefaultInstance()); + public com.google.cloud.securitycentermanagement.v1.SecurityHealthAnalyticsCustomModule.Builder addSecurityHealthAnalyticsCustomModulesBuilder( + int index) { + return getSecurityHealthAnalyticsCustomModulesFieldBuilder().addBuilder( + index, com.google.cloud.securitycentermanagement.v1.SecurityHealthAnalyticsCustomModule.getDefaultInstance()); } /** - * - * *
      * The list of SecurityHealthAnalyticsCustomModules
      * 
* - * - * repeated .google.cloud.securitycentermanagement.v1.SecurityHealthAnalyticsCustomModule security_health_analytics_custom_modules = 1; - * + * repeated .google.cloud.securitycentermanagement.v1.SecurityHealthAnalyticsCustomModule security_health_analytics_custom_modules = 1; */ - public java.util.List< - com.google.cloud.securitycentermanagement.v1.SecurityHealthAnalyticsCustomModule - .Builder> - getSecurityHealthAnalyticsCustomModulesBuilderList() { + public java.util.List + getSecurityHealthAnalyticsCustomModulesBuilderList() { return getSecurityHealthAnalyticsCustomModulesFieldBuilder().getBuilderList(); } - private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.securitycentermanagement.v1.SecurityHealthAnalyticsCustomModule, - com.google.cloud.securitycentermanagement.v1.SecurityHealthAnalyticsCustomModule - .Builder, - com.google.cloud.securitycentermanagement.v1 - .SecurityHealthAnalyticsCustomModuleOrBuilder> + com.google.cloud.securitycentermanagement.v1.SecurityHealthAnalyticsCustomModule, com.google.cloud.securitycentermanagement.v1.SecurityHealthAnalyticsCustomModule.Builder, com.google.cloud.securitycentermanagement.v1.SecurityHealthAnalyticsCustomModuleOrBuilder> getSecurityHealthAnalyticsCustomModulesFieldBuilder() { if (securityHealthAnalyticsCustomModulesBuilder_ == null) { - securityHealthAnalyticsCustomModulesBuilder_ = - new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.securitycentermanagement.v1.SecurityHealthAnalyticsCustomModule, - com.google.cloud.securitycentermanagement.v1.SecurityHealthAnalyticsCustomModule - .Builder, - com.google.cloud.securitycentermanagement.v1 - .SecurityHealthAnalyticsCustomModuleOrBuilder>( + securityHealthAnalyticsCustomModulesBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.securitycentermanagement.v1.SecurityHealthAnalyticsCustomModule, com.google.cloud.securitycentermanagement.v1.SecurityHealthAnalyticsCustomModule.Builder, com.google.cloud.securitycentermanagement.v1.SecurityHealthAnalyticsCustomModuleOrBuilder>( securityHealthAnalyticsCustomModules_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), @@ -1121,20 +868,18 @@ public Builder removeSecurityHealthAnalyticsCustomModules(int index) { private java.lang.Object nextPageToken_ = ""; /** - * - * *
      * A token identifying a page of results the server should return.
      * 
* * 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; @@ -1143,21 +888,20 @@ public java.lang.String getNextPageToken() { } } /** - * - * *
      * A token identifying a page of results the server should return.
      * 
* * 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 { @@ -1165,35 +909,28 @@ public com.google.protobuf.ByteString getNextPageTokenBytes() { } } /** - * - * *
      * A token identifying a page of results the server should return.
      * 
* * 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 identifying a page of results the server should return.
      * 
* * string next_page_token = 2; - * * @return This builder for chaining. */ public Builder clearNextPageToken() { @@ -1203,30 +940,26 @@ public Builder clearNextPageToken() { return this; } /** - * - * *
      * A token identifying a page of results the server should return.
      * 
* * 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); } @@ -1236,66 +969,55 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.securitycentermanagement.v1.ListSecurityHealthAnalyticsCustomModulesResponse) } // @@protoc_insertion_point(class_scope:google.cloud.securitycentermanagement.v1.ListSecurityHealthAnalyticsCustomModulesResponse) - private static final com.google.cloud.securitycentermanagement.v1 - .ListSecurityHealthAnalyticsCustomModulesResponse - DEFAULT_INSTANCE; - + private static final com.google.cloud.securitycentermanagement.v1.ListSecurityHealthAnalyticsCustomModulesResponse DEFAULT_INSTANCE; static { - DEFAULT_INSTANCE = - new com.google.cloud.securitycentermanagement.v1 - .ListSecurityHealthAnalyticsCustomModulesResponse(); + DEFAULT_INSTANCE = new com.google.cloud.securitycentermanagement.v1.ListSecurityHealthAnalyticsCustomModulesResponse(); } - public static com.google.cloud.securitycentermanagement.v1 - .ListSecurityHealthAnalyticsCustomModulesResponse - getDefaultInstance() { + public static com.google.cloud.securitycentermanagement.v1.ListSecurityHealthAnalyticsCustomModulesResponse getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser - PARSER = - new com.google.protobuf.AbstractParser< - ListSecurityHealthAnalyticsCustomModulesResponse>() { - @java.lang.Override - public ListSecurityHealthAnalyticsCustomModulesResponse parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException() - .setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListSecurityHealthAnalyticsCustomModulesResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; - public static com.google.protobuf.Parser - parser() { + public static com.google.protobuf.Parser parser() { return PARSER; } @java.lang.Override - public com.google.protobuf.Parser - getParserForType() { + public com.google.protobuf.Parser getParserForType() { return PARSER; } @java.lang.Override - public com.google.cloud.securitycentermanagement.v1 - .ListSecurityHealthAnalyticsCustomModulesResponse - getDefaultInstanceForType() { + public com.google.cloud.securitycentermanagement.v1.ListSecurityHealthAnalyticsCustomModulesResponse getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/owl-bot-staging/java-securitycentermanagement/v1/proto-google-cloud-securitycentermanagement-v1/src/main/java/com/google/cloud/securitycentermanagement/v1/ListSecurityHealthAnalyticsCustomModulesResponseOrBuilder.java b/owl-bot-staging/java-securitycentermanagement/v1/proto-google-cloud-securitycentermanagement-v1/src/main/java/com/google/cloud/securitycentermanagement/v1/ListSecurityHealthAnalyticsCustomModulesResponseOrBuilder.java new file mode 100644 index 000000000000..475c5ce4f0a6 --- /dev/null +++ b/owl-bot-staging/java-securitycentermanagement/v1/proto-google-cloud-securitycentermanagement-v1/src/main/java/com/google/cloud/securitycentermanagement/v1/ListSecurityHealthAnalyticsCustomModulesResponseOrBuilder.java @@ -0,0 +1,73 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/securitycentermanagement/v1/security_center_management.proto + +package com.google.cloud.securitycentermanagement.v1; + +public interface ListSecurityHealthAnalyticsCustomModulesResponseOrBuilder extends + // @@protoc_insertion_point(interface_extends:google.cloud.securitycentermanagement.v1.ListSecurityHealthAnalyticsCustomModulesResponse) + com.google.protobuf.MessageOrBuilder { + + /** + *
+   * The list of SecurityHealthAnalyticsCustomModules
+   * 
+ * + * repeated .google.cloud.securitycentermanagement.v1.SecurityHealthAnalyticsCustomModule security_health_analytics_custom_modules = 1; + */ + java.util.List + getSecurityHealthAnalyticsCustomModulesList(); + /** + *
+   * The list of SecurityHealthAnalyticsCustomModules
+   * 
+ * + * repeated .google.cloud.securitycentermanagement.v1.SecurityHealthAnalyticsCustomModule security_health_analytics_custom_modules = 1; + */ + com.google.cloud.securitycentermanagement.v1.SecurityHealthAnalyticsCustomModule getSecurityHealthAnalyticsCustomModules(int index); + /** + *
+   * The list of SecurityHealthAnalyticsCustomModules
+   * 
+ * + * repeated .google.cloud.securitycentermanagement.v1.SecurityHealthAnalyticsCustomModule security_health_analytics_custom_modules = 1; + */ + int getSecurityHealthAnalyticsCustomModulesCount(); + /** + *
+   * The list of SecurityHealthAnalyticsCustomModules
+   * 
+ * + * repeated .google.cloud.securitycentermanagement.v1.SecurityHealthAnalyticsCustomModule security_health_analytics_custom_modules = 1; + */ + java.util.List + getSecurityHealthAnalyticsCustomModulesOrBuilderList(); + /** + *
+   * The list of SecurityHealthAnalyticsCustomModules
+   * 
+ * + * repeated .google.cloud.securitycentermanagement.v1.SecurityHealthAnalyticsCustomModule security_health_analytics_custom_modules = 1; + */ + com.google.cloud.securitycentermanagement.v1.SecurityHealthAnalyticsCustomModuleOrBuilder getSecurityHealthAnalyticsCustomModulesOrBuilder( + int index); + + /** + *
+   * A token identifying a page of results the server should return.
+   * 
+ * + * string next_page_token = 2; + * @return The nextPageToken. + */ + java.lang.String getNextPageToken(); + /** + *
+   * A token identifying a page of results the server should return.
+   * 
+ * + * string next_page_token = 2; + * @return The bytes for nextPageToken. + */ + com.google.protobuf.ByteString + getNextPageTokenBytes(); +} diff --git a/java-securitycentermanagement/proto-google-cloud-securitycentermanagement-v1/src/main/java/com/google/cloud/securitycentermanagement/v1/LocationName.java b/owl-bot-staging/java-securitycentermanagement/v1/proto-google-cloud-securitycentermanagement-v1/src/main/java/com/google/cloud/securitycentermanagement/v1/LocationName.java similarity index 100% rename from java-securitycentermanagement/proto-google-cloud-securitycentermanagement-v1/src/main/java/com/google/cloud/securitycentermanagement/v1/LocationName.java rename to owl-bot-staging/java-securitycentermanagement/v1/proto-google-cloud-securitycentermanagement-v1/src/main/java/com/google/cloud/securitycentermanagement/v1/LocationName.java diff --git a/java-securitycentermanagement/proto-google-cloud-securitycentermanagement-v1/src/main/java/com/google/cloud/securitycentermanagement/v1/OrganizationLocationName.java b/owl-bot-staging/java-securitycentermanagement/v1/proto-google-cloud-securitycentermanagement-v1/src/main/java/com/google/cloud/securitycentermanagement/v1/OrganizationLocationName.java similarity index 100% rename from java-securitycentermanagement/proto-google-cloud-securitycentermanagement-v1/src/main/java/com/google/cloud/securitycentermanagement/v1/OrganizationLocationName.java rename to owl-bot-staging/java-securitycentermanagement/v1/proto-google-cloud-securitycentermanagement-v1/src/main/java/com/google/cloud/securitycentermanagement/v1/OrganizationLocationName.java diff --git a/owl-bot-staging/java-securitycentermanagement/v1/proto-google-cloud-securitycentermanagement-v1/src/main/java/com/google/cloud/securitycentermanagement/v1/SecurityCenterManagementProto.java b/owl-bot-staging/java-securitycentermanagement/v1/proto-google-cloud-securitycentermanagement-v1/src/main/java/com/google/cloud/securitycentermanagement/v1/SecurityCenterManagementProto.java new file mode 100644 index 000000000000..133f689fa872 --- /dev/null +++ b/owl-bot-staging/java-securitycentermanagement/v1/proto-google-cloud-securitycentermanagement-v1/src/main/java/com/google/cloud/securitycentermanagement/v1/SecurityCenterManagementProto.java @@ -0,0 +1,1084 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/securitycentermanagement/v1/security_center_management.proto + +package com.google.cloud.securitycentermanagement.v1; + +public final class SecurityCenterManagementProto { + private SecurityCenterManagementProto() {} + 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_securitycentermanagement_v1_EffectiveSecurityHealthAnalyticsCustomModule_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_securitycentermanagement_v1_EffectiveSecurityHealthAnalyticsCustomModule_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_securitycentermanagement_v1_ListEffectiveSecurityHealthAnalyticsCustomModulesRequest_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_securitycentermanagement_v1_ListEffectiveSecurityHealthAnalyticsCustomModulesRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_securitycentermanagement_v1_ListEffectiveSecurityHealthAnalyticsCustomModulesResponse_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_securitycentermanagement_v1_ListEffectiveSecurityHealthAnalyticsCustomModulesResponse_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_securitycentermanagement_v1_GetEffectiveSecurityHealthAnalyticsCustomModuleRequest_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_securitycentermanagement_v1_GetEffectiveSecurityHealthAnalyticsCustomModuleRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_securitycentermanagement_v1_SecurityHealthAnalyticsCustomModule_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_securitycentermanagement_v1_SecurityHealthAnalyticsCustomModule_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_securitycentermanagement_v1_CustomConfig_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_securitycentermanagement_v1_CustomConfig_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_securitycentermanagement_v1_CustomConfig_CustomOutputSpec_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_securitycentermanagement_v1_CustomConfig_CustomOutputSpec_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_securitycentermanagement_v1_CustomConfig_CustomOutputSpec_Property_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_securitycentermanagement_v1_CustomConfig_CustomOutputSpec_Property_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_securitycentermanagement_v1_CustomConfig_ResourceSelector_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_securitycentermanagement_v1_CustomConfig_ResourceSelector_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_securitycentermanagement_v1_ListSecurityHealthAnalyticsCustomModulesRequest_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_securitycentermanagement_v1_ListSecurityHealthAnalyticsCustomModulesRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_securitycentermanagement_v1_ListSecurityHealthAnalyticsCustomModulesResponse_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_securitycentermanagement_v1_ListSecurityHealthAnalyticsCustomModulesResponse_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_securitycentermanagement_v1_ListDescendantSecurityHealthAnalyticsCustomModulesRequest_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_securitycentermanagement_v1_ListDescendantSecurityHealthAnalyticsCustomModulesRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_securitycentermanagement_v1_ListDescendantSecurityHealthAnalyticsCustomModulesResponse_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_securitycentermanagement_v1_ListDescendantSecurityHealthAnalyticsCustomModulesResponse_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_securitycentermanagement_v1_GetSecurityHealthAnalyticsCustomModuleRequest_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_securitycentermanagement_v1_GetSecurityHealthAnalyticsCustomModuleRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_securitycentermanagement_v1_CreateSecurityHealthAnalyticsCustomModuleRequest_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_securitycentermanagement_v1_CreateSecurityHealthAnalyticsCustomModuleRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_securitycentermanagement_v1_UpdateSecurityHealthAnalyticsCustomModuleRequest_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_securitycentermanagement_v1_UpdateSecurityHealthAnalyticsCustomModuleRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_securitycentermanagement_v1_DeleteSecurityHealthAnalyticsCustomModuleRequest_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_securitycentermanagement_v1_DeleteSecurityHealthAnalyticsCustomModuleRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_securitycentermanagement_v1_SimulateSecurityHealthAnalyticsCustomModuleRequest_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_securitycentermanagement_v1_SimulateSecurityHealthAnalyticsCustomModuleRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_securitycentermanagement_v1_SimulateSecurityHealthAnalyticsCustomModuleRequest_SimulatedResource_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_securitycentermanagement_v1_SimulateSecurityHealthAnalyticsCustomModuleRequest_SimulatedResource_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_securitycentermanagement_v1_SimulatedFinding_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_securitycentermanagement_v1_SimulatedFinding_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_securitycentermanagement_v1_SimulatedFinding_SourcePropertiesEntry_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_securitycentermanagement_v1_SimulatedFinding_SourcePropertiesEntry_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_securitycentermanagement_v1_SimulateSecurityHealthAnalyticsCustomModuleResponse_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_securitycentermanagement_v1_SimulateSecurityHealthAnalyticsCustomModuleResponse_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_securitycentermanagement_v1_SimulateSecurityHealthAnalyticsCustomModuleResponse_SimulatedResult_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_securitycentermanagement_v1_SimulateSecurityHealthAnalyticsCustomModuleResponse_SimulatedResult_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_securitycentermanagement_v1_EffectiveEventThreatDetectionCustomModule_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_securitycentermanagement_v1_EffectiveEventThreatDetectionCustomModule_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_securitycentermanagement_v1_ListEffectiveEventThreatDetectionCustomModulesRequest_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_securitycentermanagement_v1_ListEffectiveEventThreatDetectionCustomModulesRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_securitycentermanagement_v1_ListEffectiveEventThreatDetectionCustomModulesResponse_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_securitycentermanagement_v1_ListEffectiveEventThreatDetectionCustomModulesResponse_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_securitycentermanagement_v1_GetEffectiveEventThreatDetectionCustomModuleRequest_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_securitycentermanagement_v1_GetEffectiveEventThreatDetectionCustomModuleRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_securitycentermanagement_v1_EventThreatDetectionCustomModule_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_securitycentermanagement_v1_EventThreatDetectionCustomModule_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_securitycentermanagement_v1_ListEventThreatDetectionCustomModulesRequest_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_securitycentermanagement_v1_ListEventThreatDetectionCustomModulesRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_securitycentermanagement_v1_ListEventThreatDetectionCustomModulesResponse_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_securitycentermanagement_v1_ListEventThreatDetectionCustomModulesResponse_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_securitycentermanagement_v1_ListDescendantEventThreatDetectionCustomModulesRequest_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_securitycentermanagement_v1_ListDescendantEventThreatDetectionCustomModulesRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_securitycentermanagement_v1_ListDescendantEventThreatDetectionCustomModulesResponse_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_securitycentermanagement_v1_ListDescendantEventThreatDetectionCustomModulesResponse_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_securitycentermanagement_v1_GetEventThreatDetectionCustomModuleRequest_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_securitycentermanagement_v1_GetEventThreatDetectionCustomModuleRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_securitycentermanagement_v1_CreateEventThreatDetectionCustomModuleRequest_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_securitycentermanagement_v1_CreateEventThreatDetectionCustomModuleRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_securitycentermanagement_v1_UpdateEventThreatDetectionCustomModuleRequest_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_securitycentermanagement_v1_UpdateEventThreatDetectionCustomModuleRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_securitycentermanagement_v1_DeleteEventThreatDetectionCustomModuleRequest_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_securitycentermanagement_v1_DeleteEventThreatDetectionCustomModuleRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_securitycentermanagement_v1_ValidateEventThreatDetectionCustomModuleRequest_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_securitycentermanagement_v1_ValidateEventThreatDetectionCustomModuleRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_securitycentermanagement_v1_ValidateEventThreatDetectionCustomModuleResponse_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_securitycentermanagement_v1_ValidateEventThreatDetectionCustomModuleResponse_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_securitycentermanagement_v1_ValidateEventThreatDetectionCustomModuleResponse_CustomModuleValidationError_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_securitycentermanagement_v1_ValidateEventThreatDetectionCustomModuleResponse_CustomModuleValidationError_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_securitycentermanagement_v1_ValidateEventThreatDetectionCustomModuleResponse_Position_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_securitycentermanagement_v1_ValidateEventThreatDetectionCustomModuleResponse_Position_fieldAccessorTable; + + public static com.google.protobuf.Descriptors.FileDescriptor + getDescriptor() { + return descriptor; + } + private static com.google.protobuf.Descriptors.FileDescriptor + descriptor; + static { + java.lang.String[] descriptorData = { + "\nIgoogle/cloud/securitycentermanagement/" + + "v1/security_center_management.proto\022(goo" + + "gle.cloud.securitycentermanagement.v1\032\034g" + + "oogle/api/annotations.proto\032\027google/api/" + + "client.proto\032\037google/api/field_behavior." + + "proto\032\031google/api/resource.proto\032\032google" + + "/iam/v1/policy.proto\032\033google/protobuf/em" + + "pty.proto\032 google/protobuf/field_mask.pr" + + "oto\032\034google/protobuf/struct.proto\032\037googl" + + "e/protobuf/timestamp.proto\032\027google/rpc/s" + + "tatus.proto\032\026google/type/expr.proto\"\362\007\n," + + "EffectiveSecurityHealthAnalyticsCustomMo" + + "dule\022\022\n\004name\030\001 \001(\tB\004\342A\001\003\022S\n\rcustom_confi" + + "g\030\002 \001(\01326.google.cloud.securitycenterman" + + "agement.v1.CustomConfigB\004\342A\001\003\022\206\001\n\020enable" + + "ment_state\030\003 \001(\0162f.google.cloud.security" + + "centermanagement.v1.EffectiveSecurityHea" + + "lthAnalyticsCustomModule.EnablementState" + + "B\004\342A\001\003\022\032\n\014display_name\030\004 \001(\tB\004\342A\001\003\"N\n\017En" + + "ablementState\022 \n\034ENABLEMENT_STATE_UNSPEC" + + "IFIED\020\000\022\013\n\007ENABLED\020\001\022\014\n\010DISABLED\020\002:\343\004\352A\337" + + "\004\nTsecuritycentermanagement.googleapis.c" + + "om/EffectiveSecurityHealthAnalyticsCusto" + + "mModule\022\223\001organizations/{organization}/l" + + "ocations/{location}/effectiveSecurityHea" + + "lthAnalyticsCustomModules/{effective_sec" + + "urity_health_analytics_custom_module}\022\211\001" + + "projects/{project}/locations/{location}/" + + "effectiveSecurityHealthAnalyticsCustomMo" + + "dules/{effective_security_health_analyti" + + "cs_custom_module}\022\207\001folders/{folder}/loc" + + "ations/{location}/effectiveSecurityHealt" + + "hAnalyticsCustomModules/{effective_secur" + + "ity_health_analytics_custom_module}*-eff" + + "ectiveSecurityHealthAnalyticsCustomModul" + + "es2,effectiveSecurityHealthAnalyticsCust" + + "omModule\"\334\001\n8ListEffectiveSecurityHealth" + + "AnalyticsCustomModulesRequest\022m\n\006parent\030" + + "\001 \001(\tB]\342A\001\002\372AV\022Tsecuritycentermanagement" + + ".googleapis.com/EffectiveSecurityHealthA" + + "nalyticsCustomModule\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\"\351\001\n9List" + + "EffectiveSecurityHealthAnalyticsCustomMo" + + "dulesResponse\022\222\001\n2effective_security_hea" + + "lth_analytics_custom_modules\030\001 \003(\0132V.goo" + + "gle.cloud.securitycentermanagement.v1.Ef" + + "fectiveSecurityHealthAnalyticsCustomModu" + + "le\022\027\n\017next_page_token\030\002 \001(\t\"\245\001\n6GetEffec" + + "tiveSecurityHealthAnalyticsCustomModuleR" + + "equest\022k\n\004name\030\001 \001(\tB]\342A\001\002\372AV\nTsecurityc" + + "entermanagement.googleapis.com/Effective" + + "SecurityHealthAnalyticsCustomModule\"\331\010\n#" + + "SecurityHealthAnalyticsCustomModule\022\022\n\004n" + + "ame\030\001 \001(\tB\004\342A\001\005\022\032\n\014display_name\030\002 \001(\tB\004\342" + + "A\001\001\022}\n\020enablement_state\030\003 \001(\0162].google.c" + + "loud.securitycentermanagement.v1.Securit" + + "yHealthAnalyticsCustomModule.EnablementS" + + "tateB\004\342A\001\001\0225\n\013update_time\030\004 \001(\0132\032.google" + + ".protobuf.TimestampB\004\342A\001\003\022\031\n\013last_editor" + + "\030\005 \001(\tB\004\342A\001\003\022m\n\017ancestor_module\030\006 \001(\tBT\342" + + "A\001\003\372AM\nKsecuritycentermanagement.googlea" + + "pis.com/SecurityHealthAnalyticsCustomMod" + + "ule\022S\n\rcustom_config\030\007 \001(\01326.google.clou" + + "d.securitycentermanagement.v1.CustomConf" + + "igB\004\342A\001\001\"]\n\017EnablementState\022 \n\034ENABLEMEN" + + "T_STATE_UNSPECIFIED\020\000\022\013\n\007ENABLED\020\001\022\014\n\010DI" + + "SABLED\020\002\022\r\n\tINHERITED\020\003:\215\004\352A\211\004\nKsecurity" + + "centermanagement.googleapis.com/Security" + + "HealthAnalyticsCustomModule\022\200\001organizati" + + "ons/{organization}/locations/{location}/" + + "securityHealthAnalyticsCustomModules/{se" + + "curity_health_analytics_custom_module}\022v" + + "projects/{project}/locations/{location}/" + + "securityHealthAnalyticsCustomModules/{se" + + "curity_health_analytics_custom_module}\022t" + + "folders/{folder}/locations/{location}/se" + + "curityHealthAnalyticsCustomModules/{secu" + + "rity_health_analytics_custom_module}*$se" + + "curityHealthAnalyticsCustomModules2#secu" + + "rityHealthAnalyticsCustomModule\"\365\005\n\014Cust" + + "omConfig\022*\n\tpredicate\030\001 \001(\0132\021.google.typ" + + "e.ExprB\004\342A\001\001\022d\n\rcustom_output\030\002 \001(\0132G.go" + + "ogle.cloud.securitycentermanagement.v1.C" + + "ustomConfig.CustomOutputSpecB\004\342A\001\001\022h\n\021re" + + "source_selector\030\003 \001(\0132G.google.cloud.sec" + + "uritycentermanagement.v1.CustomConfig.Re" + + "sourceSelectorB\004\342A\001\001\022W\n\010severity\030\004 \001(\0162?" + + ".google.cloud.securitycentermanagement.v" + + "1.CustomConfig.SeverityB\004\342A\001\001\022\031\n\013descrip" + + "tion\030\005 \001(\tB\004\342A\001\001\022\034\n\016recommendation\030\006 \001(\t" + + "B\004\342A\001\001\032\321\001\n\020CustomOutputSpec\022j\n\npropertie" + + "s\030\001 \003(\0132P.google.cloud.securitycenterman" + + "agement.v1.CustomConfig.CustomOutputSpec" + + ".PropertyB\004\342A\001\001\032Q\n\010Property\022\022\n\004name\030\001 \001(" + + "\tB\004\342A\001\001\0221\n\020value_expression\030\002 \001(\0132\021.goog" + + "le.type.ExprB\004\342A\001\001\0320\n\020ResourceSelector\022\034" + + "\n\016resource_types\030\001 \003(\tB\004\342A\001\001\"Q\n\010Severity" + + "\022\030\n\024SEVERITY_UNSPECIFIED\020\000\022\014\n\010CRITICAL\020\001" + + "\022\010\n\004HIGH\020\002\022\n\n\006MEDIUM\020\003\022\007\n\003LOW\020\004\"\312\001\n/List" + + "SecurityHealthAnalyticsCustomModulesRequ" + + "est\022d\n\006parent\030\001 \001(\tBT\342A\001\002\372AM\022Ksecurityce" + + "ntermanagement.googleapis.com/SecurityHe" + + "althAnalyticsCustomModule\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\"\314\001\n" + + "0ListSecurityHealthAnalyticsCustomModule" + + "sResponse\022\177\n(security_health_analytics_c" + + "ustom_modules\030\001 \003(\0132M.google.cloud.secur" + + "itycentermanagement.v1.SecurityHealthAna" + + "lyticsCustomModule\022\027\n\017next_page_token\030\002 " + + "\001(\t\"\324\001\n9ListDescendantSecurityHealthAnal" + + "yticsCustomModulesRequest\022d\n\006parent\030\001 \001(" + + "\tBT\342A\001\002\372AM\022Ksecuritycentermanagement.goo" + + "gleapis.com/SecurityHealthAnalyticsCusto" + + "mModule\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\"\326\001\n:ListDescendantSec" + + "urityHealthAnalyticsCustomModulesRespons" + + "e\022\177\n(security_health_analytics_custom_mo" + + "dules\030\001 \003(\0132M.google.cloud.securitycente" + + "rmanagement.v1.SecurityHealthAnalyticsCu" + + "stomModule\022\027\n\017next_page_token\030\002 \001(\t\"\223\001\n-" + + "GetSecurityHealthAnalyticsCustomModuleRe" + + "quest\022b\n\004name\030\001 \001(\tBT\342A\001\002\372AM\nKsecurityce" + + "ntermanagement.googleapis.com/SecurityHe" + + "althAnalyticsCustomModule\"\274\002\n0CreateSecu" + + "rityHealthAnalyticsCustomModuleRequest\022d" + + "\n\006parent\030\001 \001(\tBT\342A\001\002\372AM\022Ksecuritycenterm" + + "anagement.googleapis.com/SecurityHealthA" + + "nalyticsCustomModule\022\204\001\n\'security_health" + + "_analytics_custom_module\030\002 \001(\0132M.google." + + "cloud.securitycentermanagement.v1.Securi" + + "tyHealthAnalyticsCustomModuleB\004\342A\001\002\022\033\n\rv" + + "alidate_only\030\003 \001(\010B\004\342A\001\001\"\215\002\n0UpdateSecur" + + "ityHealthAnalyticsCustomModuleRequest\0225\n" + + "\013update_mask\030\001 \001(\0132\032.google.protobuf.Fie" + + "ldMaskB\004\342A\001\002\022\204\001\n\'security_health_analyti" + + "cs_custom_module\030\002 \001(\0132M.google.cloud.se" + + "curitycentermanagement.v1.SecurityHealth" + + "AnalyticsCustomModuleB\004\342A\001\002\022\033\n\rvalidate_" + + "only\030\003 \001(\010B\004\342A\001\001\"\263\001\n0DeleteSecurityHealt" + + "hAnalyticsCustomModuleRequest\022b\n\004name\030\001 " + + "\001(\tBT\342A\001\002\372AM\nKsecuritycentermanagement.g" + + "oogleapis.com/SecurityHealthAnalyticsCus" + + "tomModule\022\033\n\rvalidate_only\030\002 \001(\010B\004\342A\001\001\"\307" + + "\003\n2SimulateSecurityHealthAnalyticsCustom" + + "ModuleRequest\022\024\n\006parent\030\001 \001(\tB\004\342A\001\002\022S\n\rc" + + "ustom_config\030\002 \001(\01326.google.cloud.securi" + + "tycentermanagement.v1.CustomConfigB\004\342A\001\002" + + "\022\206\001\n\010resource\030\003 \001(\0132n.google.cloud.secur" + + "itycentermanagement.v1.SimulateSecurityH" + + "ealthAnalyticsCustomModuleRequest.Simula" + + "tedResourceB\004\342A\001\002\032\234\001\n\021SimulatedResource\022" + + "\033\n\rresource_type\030\001 \001(\tB\004\342A\001\002\0224\n\rresource" + + "_data\030\002 \001(\0132\027.google.protobuf.StructB\004\342A" + + "\001\001\0224\n\017iam_policy_data\030\003 \001(\0132\025.google.iam" + + ".v1.PolicyB\004\342A\001\001\"\365\010\n\020SimulatedFinding\022\022\n" + + "\004name\030\001 \001(\tB\004\342A\001\010\022\016\n\006parent\030\002 \001(\t\022\025\n\rres" + + "ource_name\030\003 \001(\t\022\020\n\010category\030\004 \001(\t\022U\n\005st" + + "ate\030\005 \001(\0162@.google.cloud.securitycenterm" + + "anagement.v1.SimulatedFinding.StateB\004\342A\001" + + "\003\022k\n\021source_properties\030\006 \003(\0132P.google.cl" + + "oud.securitycentermanagement.v1.Simulate" + + "dFinding.SourcePropertiesEntry\022.\n\nevent_" + + "time\030\007 \001(\0132\032.google.protobuf.Timestamp\022U" + + "\n\010severity\030\010 \001(\0162C.google.cloud.security" + + "centermanagement.v1.SimulatedFinding.Sev" + + "erity\022^\n\rfinding_class\030\t \001(\0162G.google.cl" + + "oud.securitycentermanagement.v1.Simulate" + + "dFinding.FindingClass\032O\n\025SourcePropertie" + + "sEntry\022\013\n\003key\030\001 \001(\t\022%\n\005value\030\002 \001(\0132\026.goo" + + "gle.protobuf.Value:\0028\001\"8\n\005State\022\025\n\021STATE" + + "_UNSPECIFIED\020\000\022\n\n\006ACTIVE\020\001\022\014\n\010INACTIVE\020\002" + + "\"Q\n\010Severity\022\030\n\024SEVERITY_UNSPECIFIED\020\000\022\014" + + "\n\010CRITICAL\020\001\022\010\n\004HIGH\020\002\022\n\n\006MEDIUM\020\003\022\007\n\003LO" + + "W\020\004\"\231\001\n\014FindingClass\022\035\n\031FINDING_CLASS_UN" + + "SPECIFIED\020\000\022\n\n\006THREAT\020\001\022\021\n\rVULNERABILITY" + + "\020\002\022\024\n\020MISCONFIGURATION\020\003\022\017\n\013OBSERVATION\020" + + "\004\022\r\n\tSCC_ERROR\020\005\022\025\n\021POSTURE_VIOLATION\020\006:" + + "\356\001\352A\352\001\n%securitycenter.googleapis.com/Fi" + + "nding\022@organizations/{organization}/sour" + + "ces/{source}/findings/{finding}\0224folders" + + "/{folder}/sources/{source}/findings/{fin" + + "ding}\0226projects/{project}/sources/{sourc" + + "e}/findings/{finding}*\010findings2\007finding" + + "\"\366\002\n3SimulateSecurityHealthAnalyticsCust" + + "omModuleResponse\022}\n\006result\030\001 \001(\0132m.googl" + + "e.cloud.securitycentermanagement.v1.Simu" + + "lateSecurityHealthAnalyticsCustomModuleR" + + "esponse.SimulatedResult\032\277\001\n\017SimulatedRes" + + "ult\022M\n\007finding\030\001 \001(\0132:.google.cloud.secu" + + "ritycentermanagement.v1.SimulatedFinding" + + "H\000\022.\n\014no_violation\030\002 \001(\0132\026.google.protob" + + "uf.EmptyH\000\022#\n\005error\030\003 \001(\0132\022.google.rpc.S" + + "tatusH\000B\010\n\006result\"\332\007\n)EffectiveEventThre" + + "atDetectionCustomModule\022\022\n\004name\030\001 \001(\tB\004\342" + + "A\001\005\022-\n\006config\030\002 \001(\0132\027.google.protobuf.St" + + "ructB\004\342A\001\003\022\203\001\n\020enablement_state\030\003 \001(\0162c." + + "google.cloud.securitycentermanagement.v1" + + ".EffectiveEventThreatDetectionCustomModu" + + "le.EnablementStateB\004\342A\001\003\022\022\n\004type\030\004 \001(\tB\004" + + "\342A\001\003\022\032\n\014display_name\030\005 \001(\tB\004\342A\001\003\022\031\n\013desc" + + "ription\030\006 \001(\tB\004\342A\001\003\"N\n\017EnablementState\022 " + + "\n\034ENABLEMENT_STATE_UNSPECIFIED\020\000\022\013\n\007ENAB" + + "LED\020\001\022\014\n\010DISABLED\020\002:\310\004\352A\304\004\nQsecuritycent" + + "ermanagement.googleapis.com/EffectiveEve" + + "ntThreatDetectionCustomModule\022\215\001organiza" + + "tions/{organization}/locations/{location" + + "}/effectiveEventThreatDetectionCustomMod" + + "ules/{effective_event_threat_detection_c" + + "ustom_module}\022\203\001projects/{project}/locat" + + "ions/{location}/effectiveEventThreatDete" + + "ctionCustomModules/{effective_event_thre" + + "at_detection_custom_module}\022\201\001folders/{f" + + "older}/locations/{location}/effectiveEve" + + "ntThreatDetectionCustomModules/{effectiv" + + "e_event_threat_detection_custom_module}*" + + "*effectiveEventThreatDetectionCustomModu" + + "les2)effectiveEventThreatDetectionCustom" + + "Module\"\326\001\n5ListEffectiveEventThreatDetec" + + "tionCustomModulesRequest\022j\n\006parent\030\001 \001(\t" + + "BZ\342A\001\002\372AS\022Qsecuritycentermanagement.goog" + + "leapis.com/EffectiveEventThreatDetection" + + "CustomModule\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\"\340\001\n6ListEffectiv" + + "eEventThreatDetectionCustomModulesRespon" + + "se\022\214\001\n/effective_event_threat_detection_" + + "custom_modules\030\001 \003(\0132S.google.cloud.secu" + + "ritycentermanagement.v1.EffectiveEventTh" + + "reatDetectionCustomModule\022\027\n\017next_page_t" + + "oken\030\002 \001(\t\"\237\001\n3GetEffectiveEventThreatDe" + + "tectionCustomModuleRequest\022h\n\004name\030\001 \001(\t" + + "BZ\342A\001\002\372AS\nQsecuritycentermanagement.goog" + + "leapis.com/EffectiveEventThreatDetection" + + "CustomModule\"\275\010\n EventThreatDetectionCus" + + "tomModule\022\022\n\004name\030\001 \001(\tB\004\342A\001\005\022-\n\006config\030" + + "\002 \001(\0132\027.google.protobuf.StructB\004\342A\001\001\022j\n\017" + + "ancestor_module\030\003 \001(\tBQ\342A\001\003\372AJ\nHsecurity" + + "centermanagement.googleapis.com/EventThr" + + "eatDetectionCustomModule\022z\n\020enablement_s" + + "tate\030\004 \001(\0162Z.google.cloud.securitycenter" + + "management.v1.EventThreatDetectionCustom" + + "Module.EnablementStateB\004\342A\001\001\022\022\n\004type\030\005 \001" + + "(\tB\004\342A\001\001\022\032\n\014display_name\030\006 \001(\tB\004\342A\001\001\022\031\n\013" + + "description\030\007 \001(\tB\004\342A\001\001\0225\n\013update_time\030\010" + + " \001(\0132\032.google.protobuf.TimestampB\004\342A\001\003\022\031" + + "\n\013last_editor\030\t \001(\tB\004\342A\001\003\"]\n\017EnablementS" + + "tate\022 \n\034ENABLEMENT_STATE_UNSPECIFIED\020\000\022\013" + + "\n\007ENABLED\020\001\022\014\n\010DISABLED\020\002\022\r\n\tINHERITED\020\003" + + ":\361\003\352A\355\003\nHsecuritycentermanagement.google" + + "apis.com/EventThreatDetectionCustomModul" + + "e\022zorganizations/{organization}/location" + + "s/{location}/eventThreatDetectionCustomM" + + "odules/{event_threat_detection_custom_mo" + + "dule}\022pprojects/{project}/locations/{loc" + + "ation}/eventThreatDetectionCustomModules" + + "/{event_threat_detection_custom_module}\022" + + "nfolders/{folder}/locations/{location}/e" + + "ventThreatDetectionCustomModules/{event_" + + "threat_detection_custom_module}*!eventTh" + + "reatDetectionCustomModules2 eventThreatD" + + "etectionCustomModule\"\304\001\n,ListEventThreat" + + "DetectionCustomModulesRequest\022a\n\006parent\030" + + "\001 \001(\tBQ\342A\001\002\372AJ\022Hsecuritycentermanagement" + + ".googleapis.com/EventThreatDetectionCust" + + "omModule\022\027\n\tpage_size\030\002 \001(\005B\004\342A\001\001\022\030\n\npag" + + "e_token\030\003 \001(\tB\004\342A\001\001\"\303\001\n-ListEventThreatD" + + "etectionCustomModulesResponse\022y\n%event_t" + + "hreat_detection_custom_modules\030\001 \003(\0132J.g" + + "oogle.cloud.securitycentermanagement.v1." + + "EventThreatDetectionCustomModule\022\027\n\017next" + + "_page_token\030\002 \001(\t\"\316\001\n6ListDescendantEven" + + "tThreatDetectionCustomModulesRequest\022a\n\006" + + "parent\030\001 \001(\tBQ\342A\001\002\372AJ\022Hsecuritycenterman" + + "agement.googleapis.com/EventThreatDetect" + + "ionCustomModule\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\"\315\001\n7ListDesce" + + "ndantEventThreatDetectionCustomModulesRe" + + "sponse\022y\n%event_threat_detection_custom_" + + "modules\030\001 \003(\0132J.google.cloud.securitycen" + + "termanagement.v1.EventThreatDetectionCus" + + "tomModule\022\027\n\017next_page_token\030\002 \001(\t\"\215\001\n*G" + + "etEventThreatDetectionCustomModuleReques" + + "t\022_\n\004name\030\001 \001(\tBQ\342A\001\002\372AJ\nHsecuritycenter" + + "management.googleapis.com/EventThreatDet" + + "ectionCustomModule\"\257\002\n-CreateEventThreat" + + "DetectionCustomModuleRequest\022a\n\006parent\030\001" + + " \001(\tBQ\342A\001\002\372AJ\022Hsecuritycentermanagement." + + "googleapis.com/EventThreatDetectionCusto" + + "mModule\022~\n$event_threat_detection_custom" + + "_module\030\003 \001(\0132J.google.cloud.securitycen" + + "termanagement.v1.EventThreatDetectionCus" + + "tomModuleB\004\342A\001\002\022\033\n\rvalidate_only\030\004 \001(\010B\004" + + "\342A\001\001\"\203\002\n-UpdateEventThreatDetectionCusto" + + "mModuleRequest\0225\n\013update_mask\030\001 \001(\0132\032.go" + + "ogle.protobuf.FieldMaskB\004\342A\001\002\022~\n$event_t" + + "hreat_detection_custom_module\030\002 \001(\0132J.go" + + "ogle.cloud.securitycentermanagement.v1.E" + + "ventThreatDetectionCustomModuleB\004\342A\001\002\022\033\n" + + "\rvalidate_only\030\003 \001(\010B\004\342A\001\001\"\255\001\n-DeleteEve" + + "ntThreatDetectionCustomModuleRequest\022_\n\004" + + "name\030\001 \001(\tBQ\342A\001\002\372AJ\nHsecuritycentermanag" + + "ement.googleapis.com/EventThreatDetectio" + + "nCustomModule\022\033\n\rvalidate_only\030\002 \001(\010B\004\342A" + + "\001\001\"\300\001\n/ValidateEventThreatDetectionCusto" + + "mModuleRequest\022a\n\006parent\030\001 \001(\tBQ\342A\001\002\372AJ\022" + + "Hsecuritycentermanagement.googleapis.com" + + "/EventThreatDetectionCustomModule\022\026\n\010raw" + + "_text\030\002 \001(\tB\004\342A\001\002\022\022\n\004type\030\003 \001(\tB\004\342A\001\002\"\276\004" + + "\n0ValidateEventThreatDetectionCustomModu" + + "leResponse\022\206\001\n\006errors\030\002 \003(\0132v.google.clo" + + "ud.securitycentermanagement.v1.ValidateE" + + "ventThreatDetectionCustomModuleResponse." + + "CustomModuleValidationError\032\310\002\n\033CustomMo" + + "duleValidationError\022\023\n\013description\030\001 \001(\t" + + "\022\022\n\nfield_path\030\002 \001(\t\022w\n\005start\030\003 \001(\0132c.go" + + "ogle.cloud.securitycentermanagement.v1.V" + + "alidateEventThreatDetectionCustomModuleR" + + "esponse.PositionH\000\210\001\001\022u\n\003end\030\004 \001(\0132c.goo" + + "gle.cloud.securitycentermanagement.v1.Va" + + "lidateEventThreatDetectionCustomModuleRe" + + "sponse.PositionH\001\210\001\001B\010\n\006_startB\006\n\004_end\0326" + + "\n\010Position\022\023\n\013line_number\030\001 \001(\005\022\025\n\rcolum" + + "n_number\030\002 \001(\0052\241K\n\030SecurityCenterManagem" + + "ent\022\220\004\n1ListEffectiveSecurityHealthAnaly" + + "ticsCustomModules\022b.google.cloud.securit" + + "ycentermanagement.v1.ListEffectiveSecuri" + + "tyHealthAnalyticsCustomModulesRequest\032c." + + "google.cloud.securitycentermanagement.v1" + + ".ListEffectiveSecurityHealthAnalyticsCus" + + "tomModulesResponse\"\221\002\332A\006parent\202\323\344\223\002\201\002\022Q/" + + "v1/{parent=projects/*/locations/*}/effec" + + "tiveSecurityHealthAnalyticsCustomModules" + + "ZR\022P/v1/{parent=folders/*/locations/*}/e" + + "ffectiveSecurityHealthAnalyticsCustomMod" + + "ulesZX\022V/v1/{parent=organizations/*/loca" + + "tions/*}/effectiveSecurityHealthAnalytic" + + "sCustomModules\022\375\003\n/GetEffectiveSecurityH" + + "ealthAnalyticsCustomModule\022`.google.clou" + + "d.securitycentermanagement.v1.GetEffecti" + + "veSecurityHealthAnalyticsCustomModuleReq" + + "uest\032V.google.cloud.securitycentermanage" + + "ment.v1.EffectiveSecurityHealthAnalytics" + + "CustomModule\"\217\002\332A\004name\202\323\344\223\002\201\002\022Q/v1/{name" + + "=projects/*/locations/*/effectiveSecurit" + + "yHealthAnalyticsCustomModules/*}ZR\022P/v1/" + + "{name=folders/*/locations/*/effectiveSec" + + "urityHealthAnalyticsCustomModules/*}ZX\022V" + + "/v1/{name=organizations/*/locations/*/ef" + + "fectiveSecurityHealthAnalyticsCustomModu" + + "les/*}\022\332\003\n(ListSecurityHealthAnalyticsCu" + + "stomModules\022Y.google.cloud.securitycente" + + "rmanagement.v1.ListSecurityHealthAnalyti" + + "csCustomModulesRequest\032Z.google.cloud.se" + + "curitycentermanagement.v1.ListSecurityHe" + + "althAnalyticsCustomModulesResponse\"\366\001\332A\006" + + "parent\202\323\344\223\002\346\001\022H/v1/{parent=projects/*/lo" + + "cations/*}/securityHealthAnalyticsCustom" + + "ModulesZI\022G/v1/{parent=folders/*/locatio" + + "ns/*}/securityHealthAnalyticsCustomModul" + + "esZO\022M/v1/{parent=organizations/*/locati" + + "ons/*}/securityHealthAnalyticsCustomModu" + + "les\022\245\004\n2ListDescendantSecurityHealthAnal" + + "yticsCustomModules\022c.google.cloud.securi" + + "tycentermanagement.v1.ListDescendantSecu" + + "rityHealthAnalyticsCustomModulesRequest\032" + + "d.google.cloud.securitycentermanagement." + + "v1.ListDescendantSecurityHealthAnalytics" + + "CustomModulesResponse\"\243\002\332A\006parent\202\323\344\223\002\223\002" + + "\022W/v1/{parent=projects/*/locations/*}/se" + + "curityHealthAnalyticsCustomModules:listD" + + "escendantZX\022V/v1/{parent=folders/*/locat" + + "ions/*}/securityHealthAnalyticsCustomMod" + + "ules:listDescendantZ^\022\\/v1/{parent=organ" + + "izations/*/locations/*}/securityHealthAn" + + "alyticsCustomModules:listDescendant\022\307\003\n&" + + "GetSecurityHealthAnalyticsCustomModule\022W" + + ".google.cloud.securitycentermanagement.v" + + "1.GetSecurityHealthAnalyticsCustomModule" + + "Request\032M.google.cloud.securitycenterman" + + "agement.v1.SecurityHealthAnalyticsCustom" + + "Module\"\364\001\332A\004name\202\323\344\223\002\346\001\022H/v1/{name=proje" + + "cts/*/locations/*/securityHealthAnalytic" + + "sCustomModules/*}ZI\022G/v1/{name=folders/*" + + "/locations/*/securityHealthAnalyticsCust" + + "omModules/*}ZO\022M/v1/{name=organizations/" + + "*/locations/*/securityHealthAnalyticsCus" + + "tomModules/*}\022\362\004\n)CreateSecurityHealthAn" + + "alyticsCustomModule\022Z.google.cloud.secur" + + "itycentermanagement.v1.CreateSecurityHea" + + "lthAnalyticsCustomModuleRequest\032M.google" + + ".cloud.securitycentermanagement.v1.Secur" + + "ityHealthAnalyticsCustomModule\"\231\003\332A.pare" + + "nt,security_health_analytics_custom_modu" + + "le\202\323\344\223\002\341\002\"H/v1/{parent=projects/*/locati" + + "ons/*}/securityHealthAnalyticsCustomModu" + + "les:\'security_health_analytics_custom_mo" + + "duleZr\"G/v1/{parent=folders/*/locations/" + + "*}/securityHealthAnalyticsCustomModules:" + + "\'security_health_analytics_custom_module" + + "Zx\"M/v1/{parent=organizations/*/location" + + "s/*}/securityHealthAnalyticsCustomModule", + "s:\'security_health_analytics_custom_modu" + + "le\022\361\005\n)UpdateSecurityHealthAnalyticsCust" + + "omModule\022Z.google.cloud.securitycenterma" + + "nagement.v1.UpdateSecurityHealthAnalytic" + + "sCustomModuleRequest\032M.google.cloud.secu" + + "ritycentermanagement.v1.SecurityHealthAn" + + "alyticsCustomModule\"\230\004\332A3security_health" + + "_analytics_custom_module,update_mask\202\323\344\223" + + "\002\333\0032p/v1/{security_health_analytics_cust" + + "om_module.name=projects/*/locations/*/se" + + "curityHealthAnalyticsCustomModules/*}:\'s" + + "ecurity_health_analytics_custom_moduleZ\232" + + "\0012o/v1/{security_health_analytics_custom" + + "_module.name=folders/*/locations/*/secur" + + "ityHealthAnalyticsCustomModules/*}:\'secu" + + "rity_health_analytics_custom_moduleZ\240\0012u" + + "/v1/{security_health_analytics_custom_mo" + + "dule.name=organizations/*/locations/*/se" + + "curityHealthAnalyticsCustomModules/*}:\'s" + + "ecurity_health_analytics_custom_module\022\226" + + "\003\n)DeleteSecurityHealthAnalyticsCustomMo" + + "dule\022Z.google.cloud.securitycentermanage" + + "ment.v1.DeleteSecurityHealthAnalyticsCus" + + "tomModuleRequest\032\026.google.protobuf.Empty" + + "\"\364\001\332A\004name\202\323\344\223\002\346\001*H/v1/{name=projects/*/" + + "locations/*/securityHealthAnalyticsCusto" + + "mModules/*}ZI*G/v1/{name=folders/*/locat" + + "ions/*/securityHealthAnalyticsCustomModu" + + "les/*}ZO*M/v1/{name=organizations/*/loca" + + "tions/*/securityHealthAnalyticsCustomMod" + + "ules/*}\022\236\004\n+SimulateSecurityHealthAnalyt" + + "icsCustomModule\022\\.google.cloud.securityc" + + "entermanagement.v1.SimulateSecurityHealt" + + "hAnalyticsCustomModuleRequest\032].google.c" + + "loud.securitycentermanagement.v1.Simulat" + + "eSecurityHealthAnalyticsCustomModuleResp" + + "onse\"\261\002\332A\035parent,custom_config,resource\202" + + "\323\344\223\002\212\002\"Q/v1/{parent=projects/*/locations" + + "/*}/securityHealthAnalyticsCustomModules" + + ":simulate:\001*ZU\"P/v1/{parent=folders/*/lo" + + "cations/*}/securityHealthAnalyticsCustom" + + "Modules:simulate:\001*Z[\"V/v1/{parent=organ" + + "izations/*/locations/*}/securityHealthAn" + + "alyticsCustomModules:simulate:\001*\022\376\003\n.Lis" + + "tEffectiveEventThreatDetectionCustomModu" + + "les\022_.google.cloud.securitycentermanagem" + + "ent.v1.ListEffectiveEventThreatDetection" + + "CustomModulesRequest\032`.google.cloud.secu" + + "ritycentermanagement.v1.ListEffectiveEve" + + "ntThreatDetectionCustomModulesResponse\"\210" + + "\002\332A\006parent\202\323\344\223\002\370\001\022N/v1/{parent=projects/" + + "*/locations/*}/effectiveEventThreatDetec" + + "tionCustomModulesZO\022M/v1/{parent=folders" + + "/*/locations/*}/effectiveEventThreatDete" + + "ctionCustomModulesZU\022S/v1/{parent=organi" + + "zations/*/locations/*}/effectiveEventThr" + + "eatDetectionCustomModules\022\353\003\n,GetEffecti" + + "veEventThreatDetectionCustomModule\022].goo" + + "gle.cloud.securitycentermanagement.v1.Ge" + + "tEffectiveEventThreatDetectionCustomModu" + + "leRequest\032S.google.cloud.securitycenterm" + + "anagement.v1.EffectiveEventThreatDetecti" + + "onCustomModule\"\206\002\332A\004name\202\323\344\223\002\370\001\022N/v1/{na" + + "me=projects/*/locations/*/effectiveEvent" + + "ThreatDetectionCustomModules/*}ZO\022M/v1/{" + + "name=folders/*/locations/*/effectiveEven" + + "tThreatDetectionCustomModules/*}ZU\022S/v1/" + + "{name=organizations/*/locations/*/effect" + + "iveEventThreatDetectionCustomModules/*}\022" + + "\310\003\n%ListEventThreatDetectionCustomModule" + + "s\022V.google.cloud.securitycentermanagemen" + + "t.v1.ListEventThreatDetectionCustomModul" + + "esRequest\032W.google.cloud.securitycenterm" + + "anagement.v1.ListEventThreatDetectionCus" + + "tomModulesResponse\"\355\001\332A\006parent\202\323\344\223\002\335\001\022E/" + + "v1/{parent=projects/*/locations/*}/event" + + "ThreatDetectionCustomModulesZF\022D/v1/{par" + + "ent=folders/*/locations/*}/eventThreatDe" + + "tectionCustomModulesZL\022J/v1/{parent=orga" + + "nizations/*/locations/*}/eventThreatDete" + + "ctionCustomModules\022\223\004\n/ListDescendantEve" + + "ntThreatDetectionCustomModules\022`.google." + + "cloud.securitycentermanagement.v1.ListDe" + + "scendantEventThreatDetectionCustomModule" + + "sRequest\032a.google.cloud.securitycenterma" + + "nagement.v1.ListDescendantEventThreatDet" + + "ectionCustomModulesResponse\"\232\002\332A\006parent\202" + + "\323\344\223\002\212\002\022T/v1/{parent=projects/*/locations" + + "/*}/eventThreatDetectionCustomModules:li" + + "stDescendantZU\022S/v1/{parent=folders/*/lo" + + "cations/*}/eventThreatDetectionCustomMod" + + "ules:listDescendantZ[\022Y/v1/{parent=organ" + + "izations/*/locations/*}/eventThreatDetec" + + "tionCustomModules:listDescendant\022\265\003\n#Get" + + "EventThreatDetectionCustomModule\022T.googl" + + "e.cloud.securitycentermanagement.v1.GetE" + + "ventThreatDetectionCustomModuleRequest\032J" + + ".google.cloud.securitycentermanagement.v" + + "1.EventThreatDetectionCustomModule\"\353\001\332A\004" + + "name\202\323\344\223\002\335\001\022E/v1/{name=projects/*/locati" + + "ons/*/eventThreatDetectionCustomModules/" + + "*}ZF\022D/v1/{name=folders/*/locations/*/ev" + + "entThreatDetectionCustomModules/*}ZL\022J/v" + + "1/{name=organizations/*/locations/*/even" + + "tThreatDetectionCustomModules/*}\022\324\004\n&Cre" + + "ateEventThreatDetectionCustomModule\022W.go" + + "ogle.cloud.securitycentermanagement.v1.C" + + "reateEventThreatDetectionCustomModuleReq" + + "uest\032J.google.cloud.securitycentermanage" + + "ment.v1.EventThreatDetectionCustomModule" + + "\"\204\003\332A+parent,event_threat_detection_cust" + + "om_module\202\323\344\223\002\317\002\"E/v1/{parent=projects/*" + + "/locations/*}/eventThreatDetectionCustom" + + "Modules:$event_threat_detection_custom_m" + + "oduleZl\"D/v1/{parent=folders/*/locations" + + "/*}/eventThreatDetectionCustomModules:$e" + + "vent_threat_detection_custom_moduleZr\"J/" + + "v1/{parent=organizations/*/locations/*}/" + + "eventThreatDetectionCustomModules:$event" + + "_threat_detection_custom_module\022\312\005\n&Upda" + + "teEventThreatDetectionCustomModule\022W.goo" + + "gle.cloud.securitycentermanagement.v1.Up" + + "dateEventThreatDetectionCustomModuleRequ" + + "est\032J.google.cloud.securitycentermanagem" + + "ent.v1.EventThreatDetectionCustomModule\"" + + "\372\003\332A0event_threat_detection_custom_modul" + + "e,update_mask\202\323\344\223\002\300\0032j/v1/{event_threat_" + + "detection_custom_module.name=projects/*/" + + "locations/*/eventThreatDetectionCustomMo" + + "dules/*}:$event_threat_detection_custom_" + + "moduleZ\221\0012i/v1/{event_threat_detection_c" + + "ustom_module.name=folders/*/locations/*/" + + "eventThreatDetectionCustomModules/*}:$ev" + + "ent_threat_detection_custom_moduleZ\227\0012o/" + + "v1/{event_threat_detection_custom_module" + + ".name=organizations/*/locations/*/eventT" + + "hreatDetectionCustomModules/*}:$event_th" + + "reat_detection_custom_module\022\207\003\n&DeleteE" + + "ventThreatDetectionCustomModule\022W.google" + + ".cloud.securitycentermanagement.v1.Delet" + + "eEventThreatDetectionCustomModuleRequest" + + "\032\026.google.protobuf.Empty\"\353\001\332A\004name\202\323\344\223\002\335" + + "\001*E/v1/{name=projects/*/locations/*/even" + + "tThreatDetectionCustomModules/*}ZF*D/v1/" + + "{name=folders/*/locations/*/eventThreatD" + + "etectionCustomModules/*}ZL*J/v1/{name=or" + + "ganizations/*/locations/*/eventThreatDet" + + "ectionCustomModules/*}\022\354\003\n(ValidateEvent" + + "ThreatDetectionCustomModule\022Y.google.clo" + + "ud.securitycentermanagement.v1.ValidateE" + + "ventThreatDetectionCustomModuleRequest\032Z" + + ".google.cloud.securitycentermanagement.v" + + "1.ValidateEventThreatDetectionCustomModu" + + "leResponse\"\210\002\202\323\344\223\002\201\002\"N/v1/{parent=projec" + + "ts/*/locations/*}/eventThreatDetectionCu" + + "stomModules:validate:\001*ZR\"M/v1/{parent=f" + + "olders/*/locations/*}/eventThreatDetecti" + + "onCustomModules:validate:\001*ZX\"S/v1/{pare" + + "nt=organizations/*/locations/*}/eventThr" + + "eatDetectionCustomModules:validate:\001*\032[\312" + + "A\'securitycentermanagement.googleapis.co" + + "m\322A.https://www.googleapis.com/auth/clou" + + "d-platformB\223\004\n,com.google.cloud.security" + + "centermanagement.v1B\035SecurityCenterManag" + + "ementProtoP\001Zhcloud.google.com/go/securi" + + "tycentermanagement/apiv1/securitycenterm" + + "anagementpb;securitycentermanagementpb\252\002" + + "(Google.Cloud.SecurityCenterManagement.V" + + "1\312\002(Google\\Cloud\\SecurityCenterManagemen" + + "t\\V1\352\002+Google::Cloud::SecurityCenterMana" + + "gement::V1\352Aq\n * Represents an instance of a Security Health Analytics custom module, * including its full module name, display name, enablement state, and last @@ -29,21 +12,17 @@ * level are inherited by the child folders and projects. *
* - * Protobuf type {@code - * google.cloud.securitycentermanagement.v1.SecurityHealthAnalyticsCustomModule} + * Protobuf type {@code google.cloud.securitycentermanagement.v1.SecurityHealthAnalyticsCustomModule} */ -public final class SecurityHealthAnalyticsCustomModule - extends com.google.protobuf.GeneratedMessageV3 - implements +public final class SecurityHealthAnalyticsCustomModule extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.securitycentermanagement.v1.SecurityHealthAnalyticsCustomModule) SecurityHealthAnalyticsCustomModuleOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use SecurityHealthAnalyticsCustomModule.newBuilder() to construct. - private SecurityHealthAnalyticsCustomModule( - com.google.protobuf.GeneratedMessageV3.Builder builder) { + private SecurityHealthAnalyticsCustomModule(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private SecurityHealthAnalyticsCustomModule() { name_ = ""; displayName_ = ""; @@ -54,40 +33,34 @@ private SecurityHealthAnalyticsCustomModule() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new SecurityHealthAnalyticsCustomModule(); } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.securitycentermanagement.v1.SecurityCenterManagementProto - .internal_static_google_cloud_securitycentermanagement_v1_SecurityHealthAnalyticsCustomModule_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.securitycentermanagement.v1.SecurityCenterManagementProto.internal_static_google_cloud_securitycentermanagement_v1_SecurityHealthAnalyticsCustomModule_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.securitycentermanagement.v1.SecurityCenterManagementProto - .internal_static_google_cloud_securitycentermanagement_v1_SecurityHealthAnalyticsCustomModule_fieldAccessorTable + return com.google.cloud.securitycentermanagement.v1.SecurityCenterManagementProto.internal_static_google_cloud_securitycentermanagement_v1_SecurityHealthAnalyticsCustomModule_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.securitycentermanagement.v1.SecurityHealthAnalyticsCustomModule.class, - com.google.cloud.securitycentermanagement.v1.SecurityHealthAnalyticsCustomModule.Builder - .class); + com.google.cloud.securitycentermanagement.v1.SecurityHealthAnalyticsCustomModule.class, com.google.cloud.securitycentermanagement.v1.SecurityHealthAnalyticsCustomModule.Builder.class); } /** - * - * *
    * Possible enablement states of a custom module.
    * 
* - * Protobuf enum {@code - * google.cloud.securitycentermanagement.v1.SecurityHealthAnalyticsCustomModule.EnablementState} + * Protobuf enum {@code google.cloud.securitycentermanagement.v1.SecurityHealthAnalyticsCustomModule.EnablementState} */ - public enum EnablementState implements com.google.protobuf.ProtocolMessageEnum { + public enum EnablementState + implements com.google.protobuf.ProtocolMessageEnum { /** - * - * *
      * Unspecified enablement state.
      * 
@@ -96,8 +69,6 @@ public enum EnablementState implements com.google.protobuf.ProtocolMessageEnum { */ ENABLEMENT_STATE_UNSPECIFIED(0), /** - * - * *
      * The module is enabled at the given CRM resource.
      * 
@@ -106,8 +77,6 @@ public enum EnablementState implements com.google.protobuf.ProtocolMessageEnum { */ ENABLED(1), /** - * - * *
      * The module is disabled at the given CRM resource.
      * 
@@ -116,8 +85,6 @@ public enum EnablementState implements com.google.protobuf.ProtocolMessageEnum { */ DISABLED(2), /** - * - * *
      * State is inherited from an ancestor module. The module will either
      * be effectively ENABLED or DISABLED based on its closest non-inherited
@@ -133,8 +100,6 @@ public enum EnablementState implements com.google.protobuf.ProtocolMessageEnum {
     ;
 
     /**
-     *
-     *
      * 
      * Unspecified enablement state.
      * 
@@ -143,8 +108,6 @@ public enum EnablementState implements com.google.protobuf.ProtocolMessageEnum { */ public static final int ENABLEMENT_STATE_UNSPECIFIED_VALUE = 0; /** - * - * *
      * The module is enabled at the given CRM resource.
      * 
@@ -153,8 +116,6 @@ public enum EnablementState implements com.google.protobuf.ProtocolMessageEnum { */ public static final int ENABLED_VALUE = 1; /** - * - * *
      * The module is disabled at the given CRM resource.
      * 
@@ -163,8 +124,6 @@ public enum EnablementState implements com.google.protobuf.ProtocolMessageEnum { */ public static final int DISABLED_VALUE = 2; /** - * - * *
      * State is inherited from an ancestor module. The module will either
      * be effectively ENABLED or DISABLED based on its closest non-inherited
@@ -177,6 +136,7 @@ public enum EnablementState implements com.google.protobuf.ProtocolMessageEnum {
      */
     public static final int INHERITED_VALUE = 3;
 
+
     public final int getNumber() {
       if (this == UNRECOGNIZED) {
         throw new java.lang.IllegalArgumentException(
@@ -201,48 +161,41 @@ public static EnablementState valueOf(int value) {
      */
     public static EnablementState forNumber(int value) {
       switch (value) {
-        case 0:
-          return ENABLEMENT_STATE_UNSPECIFIED;
-        case 1:
-          return ENABLED;
-        case 2:
-          return DISABLED;
-        case 3:
-          return INHERITED;
-        default:
-          return null;
+        case 0: return ENABLEMENT_STATE_UNSPECIFIED;
+        case 1: return ENABLED;
+        case 2: return DISABLED;
+        case 3: return INHERITED;
+        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<
+        EnablementState> internalValueMap =
+          new com.google.protobuf.Internal.EnumLiteMap() {
+            public EnablementState findValueByNumber(int number) {
+              return EnablementState.forNumber(number);
+            }
+          };
 
-    private static final com.google.protobuf.Internal.EnumLiteMap
-        internalValueMap =
-            new com.google.protobuf.Internal.EnumLiteMap() {
-              public EnablementState findValueByNumber(int number) {
-                return EnablementState.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.securitycentermanagement.v1.SecurityHealthAnalyticsCustomModule
-          .getDescriptor()
-          .getEnumTypes()
-          .get(0);
+    public static final com.google.protobuf.Descriptors.EnumDescriptor
+        getDescriptor() {
+      return com.google.cloud.securitycentermanagement.v1.SecurityHealthAnalyticsCustomModule.getDescriptor().getEnumTypes().get(0);
     }
 
     private static final EnablementState[] VALUES = values();
@@ -250,7 +203,8 @@ public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor
     public static EnablementState 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;
@@ -268,12 +222,9 @@ private EnablementState(int value) {
   }
 
   public static final int NAME_FIELD_NUMBER = 1;
-
   @SuppressWarnings("serial")
   private volatile java.lang.Object name_ = "";
   /**
-   *
-   *
    * 
    * Immutable. The resource name of the custom module.
    * Its format is
@@ -288,7 +239,6 @@ private EnablementState(int value) {
    * 
* * string name = 1 [(.google.api.field_behavior) = IMMUTABLE]; - * * @return The name. */ @java.lang.Override @@ -297,15 +247,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; } } /** - * - * *
    * Immutable. The resource name of the custom module.
    * Its format is
@@ -320,15 +269,16 @@ public java.lang.String getName() {
    * 
* * string name = 1 [(.google.api.field_behavior) = IMMUTABLE]; - * * @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,12 +287,9 @@ public com.google.protobuf.ByteString getNameBytes() { } public static final int DISPLAY_NAME_FIELD_NUMBER = 2; - @SuppressWarnings("serial") private volatile java.lang.Object displayName_ = ""; /** - * - * *
    * Optional. The display name of the Security Health Analytics custom module.
    * This display name becomes the finding category for all findings that are
@@ -352,7 +299,6 @@ public com.google.protobuf.ByteString getNameBytes() {
    * 
* * string display_name = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The displayName. */ @java.lang.Override @@ -361,15 +307,14 @@ 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. The display name of the Security Health Analytics custom module.
    * This display name becomes the finding category for all findings that are
@@ -379,15 +324,16 @@ public java.lang.String getDisplayName() {
    * 
* * 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 { @@ -398,61 +344,37 @@ public com.google.protobuf.ByteString getDisplayNameBytes() { public static final int ENABLEMENT_STATE_FIELD_NUMBER = 3; private int enablementState_ = 0; /** - * - * *
    * Optional. The enablement state of the custom module.
    * 
* - * - * .google.cloud.securitycentermanagement.v1.SecurityHealthAnalyticsCustomModule.EnablementState enablement_state = 3 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.cloud.securitycentermanagement.v1.SecurityHealthAnalyticsCustomModule.EnablementState enablement_state = 3 [(.google.api.field_behavior) = OPTIONAL]; * @return The enum numeric value on the wire for enablementState. */ - @java.lang.Override - public int getEnablementStateValue() { + @java.lang.Override public int getEnablementStateValue() { return enablementState_; } /** - * - * *
    * Optional. The enablement state of the custom module.
    * 
* - * - * .google.cloud.securitycentermanagement.v1.SecurityHealthAnalyticsCustomModule.EnablementState enablement_state = 3 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.cloud.securitycentermanagement.v1.SecurityHealthAnalyticsCustomModule.EnablementState enablement_state = 3 [(.google.api.field_behavior) = OPTIONAL]; * @return The enablementState. */ - @java.lang.Override - public com.google.cloud.securitycentermanagement.v1.SecurityHealthAnalyticsCustomModule - .EnablementState - getEnablementState() { - com.google.cloud.securitycentermanagement.v1.SecurityHealthAnalyticsCustomModule.EnablementState - result = - com.google.cloud.securitycentermanagement.v1.SecurityHealthAnalyticsCustomModule - .EnablementState.forNumber(enablementState_); - return result == null - ? com.google.cloud.securitycentermanagement.v1.SecurityHealthAnalyticsCustomModule - .EnablementState.UNRECOGNIZED - : result; + @java.lang.Override public com.google.cloud.securitycentermanagement.v1.SecurityHealthAnalyticsCustomModule.EnablementState getEnablementState() { + com.google.cloud.securitycentermanagement.v1.SecurityHealthAnalyticsCustomModule.EnablementState result = com.google.cloud.securitycentermanagement.v1.SecurityHealthAnalyticsCustomModule.EnablementState.forNumber(enablementState_); + return result == null ? com.google.cloud.securitycentermanagement.v1.SecurityHealthAnalyticsCustomModule.EnablementState.UNRECOGNIZED : result; } public static final int UPDATE_TIME_FIELD_NUMBER = 4; private com.google.protobuf.Timestamp updateTime_; /** - * - * *
    * Output only. The time at which the custom module was last updated.
    * 
* - * .google.protobuf.Timestamp update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the updateTime field is set. */ @java.lang.Override @@ -460,15 +382,11 @@ public boolean hasUpdateTime() { return updateTime_ != null; } /** - * - * *
    * Output only. The time at which the custom module was last updated.
    * 
* - * .google.protobuf.Timestamp update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The updateTime. */ @java.lang.Override @@ -476,14 +394,11 @@ public com.google.protobuf.Timestamp getUpdateTime() { return updateTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : updateTime_; } /** - * - * *
    * Output only. The time at which the custom module was last updated.
    * 
* - * .google.protobuf.Timestamp update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ @java.lang.Override public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() { @@ -491,18 +406,14 @@ public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() { } public static final int LAST_EDITOR_FIELD_NUMBER = 5; - @SuppressWarnings("serial") private volatile java.lang.Object lastEditor_ = ""; /** - * - * *
    * Output only. The editor that last updated the custom module.
    * 
* * string last_editor = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The lastEditor. */ @java.lang.Override @@ -511,29 +422,29 @@ public java.lang.String getLastEditor() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); lastEditor_ = s; return s; } } /** - * - * *
    * Output only. The editor that last updated the custom module.
    * 
* * string last_editor = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The bytes for lastEditor. */ @java.lang.Override - public com.google.protobuf.ByteString getLastEditorBytes() { + public com.google.protobuf.ByteString + getLastEditorBytes() { java.lang.Object ref = lastEditor_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); lastEditor_ = b; return b; } else { @@ -542,12 +453,9 @@ public com.google.protobuf.ByteString getLastEditorBytes() { } public static final int ANCESTOR_MODULE_FIELD_NUMBER = 6; - @SuppressWarnings("serial") private volatile java.lang.Object ancestorModule_ = ""; /** - * - * *
    * Output only. Specifies the organization or folder from which the custom
    * module is inherited. If empty, indicates that the custom module was created
@@ -555,10 +463,7 @@ public com.google.protobuf.ByteString getLastEditorBytes() {
    * module.
    * 
* - * - * string ancestor_module = 6 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } - * - * + * string ancestor_module = 6 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } * @return The ancestorModule. */ @java.lang.Override @@ -567,15 +472,14 @@ public java.lang.String getAncestorModule() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); ancestorModule_ = s; return s; } } /** - * - * *
    * Output only. Specifies the organization or folder from which the custom
    * module is inherited. If empty, indicates that the custom module was created
@@ -583,18 +487,17 @@ public java.lang.String getAncestorModule() {
    * module.
    * 
* - * - * string ancestor_module = 6 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } - * - * + * string ancestor_module = 6 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } * @return The bytes for ancestorModule. */ @java.lang.Override - public com.google.protobuf.ByteString getAncestorModuleBytes() { + public com.google.protobuf.ByteString + getAncestorModuleBytes() { java.lang.Object ref = ancestorModule_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); ancestorModule_ = b; return b; } else { @@ -605,16 +508,11 @@ public com.google.protobuf.ByteString getAncestorModuleBytes() { public static final int CUSTOM_CONFIG_FIELD_NUMBER = 7; private com.google.cloud.securitycentermanagement.v1.CustomConfig customConfig_; /** - * - * *
    * Optional. The user specified custom configuration for the module.
    * 
* - * - * .google.cloud.securitycentermanagement.v1.CustomConfig custom_config = 7 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.cloud.securitycentermanagement.v1.CustomConfig custom_config = 7 [(.google.api.field_behavior) = OPTIONAL]; * @return Whether the customConfig field is set. */ @java.lang.Override @@ -622,45 +520,30 @@ public boolean hasCustomConfig() { return customConfig_ != null; } /** - * - * *
    * Optional. The user specified custom configuration for the module.
    * 
* - * - * .google.cloud.securitycentermanagement.v1.CustomConfig custom_config = 7 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.cloud.securitycentermanagement.v1.CustomConfig custom_config = 7 [(.google.api.field_behavior) = OPTIONAL]; * @return The customConfig. */ @java.lang.Override public com.google.cloud.securitycentermanagement.v1.CustomConfig getCustomConfig() { - return customConfig_ == null - ? com.google.cloud.securitycentermanagement.v1.CustomConfig.getDefaultInstance() - : customConfig_; + return customConfig_ == null ? com.google.cloud.securitycentermanagement.v1.CustomConfig.getDefaultInstance() : customConfig_; } /** - * - * *
    * Optional. The user specified custom configuration for the module.
    * 
* - * - * .google.cloud.securitycentermanagement.v1.CustomConfig custom_config = 7 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.securitycentermanagement.v1.CustomConfig custom_config = 7 [(.google.api.field_behavior) = OPTIONAL]; */ @java.lang.Override - public com.google.cloud.securitycentermanagement.v1.CustomConfigOrBuilder - getCustomConfigOrBuilder() { - return customConfig_ == null - ? com.google.cloud.securitycentermanagement.v1.CustomConfig.getDefaultInstance() - : customConfig_; + public com.google.cloud.securitycentermanagement.v1.CustomConfigOrBuilder getCustomConfigOrBuilder() { + return customConfig_ == null ? com.google.cloud.securitycentermanagement.v1.CustomConfig.getDefaultInstance() : customConfig_; } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -672,17 +555,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 (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(displayName_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 2, displayName_); } - if (enablementState_ - != com.google.cloud.securitycentermanagement.v1.SecurityHealthAnalyticsCustomModule - .EnablementState.ENABLEMENT_STATE_UNSPECIFIED - .getNumber()) { + if (enablementState_ != com.google.cloud.securitycentermanagement.v1.SecurityHealthAnalyticsCustomModule.EnablementState.ENABLEMENT_STATE_UNSPECIFIED.getNumber()) { output.writeEnum(3, enablementState_); } if (updateTime_ != null) { @@ -712,14 +593,13 @@ public int getSerializedSize() { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(displayName_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, displayName_); } - if (enablementState_ - != com.google.cloud.securitycentermanagement.v1.SecurityHealthAnalyticsCustomModule - .EnablementState.ENABLEMENT_STATE_UNSPECIFIED - .getNumber()) { - size += com.google.protobuf.CodedOutputStream.computeEnumSize(3, enablementState_); + if (enablementState_ != com.google.cloud.securitycentermanagement.v1.SecurityHealthAnalyticsCustomModule.EnablementState.ENABLEMENT_STATE_UNSPECIFIED.getNumber()) { + size += com.google.protobuf.CodedOutputStream + .computeEnumSize(3, enablementState_); } if (updateTime_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(4, getUpdateTime()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(4, getUpdateTime()); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(lastEditor_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, lastEditor_); @@ -728,7 +608,8 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(6, ancestorModule_); } if (customConfig_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(7, getCustomConfig()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(7, getCustomConfig()); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -738,28 +619,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.securitycentermanagement.v1.SecurityHealthAnalyticsCustomModule)) { + if (!(obj instanceof com.google.cloud.securitycentermanagement.v1.SecurityHealthAnalyticsCustomModule)) { return super.equals(obj); } - com.google.cloud.securitycentermanagement.v1.SecurityHealthAnalyticsCustomModule other = - (com.google.cloud.securitycentermanagement.v1.SecurityHealthAnalyticsCustomModule) obj; + com.google.cloud.securitycentermanagement.v1.SecurityHealthAnalyticsCustomModule other = (com.google.cloud.securitycentermanagement.v1.SecurityHealthAnalyticsCustomModule) obj; - if (!getName().equals(other.getName())) return false; - if (!getDisplayName().equals(other.getDisplayName())) return false; + if (!getName() + .equals(other.getName())) return false; + if (!getDisplayName() + .equals(other.getDisplayName())) return false; if (enablementState_ != other.enablementState_) 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 (!getLastEditor().equals(other.getLastEditor())) return false; - if (!getAncestorModule().equals(other.getAncestorModule())) return false; + if (!getLastEditor() + .equals(other.getLastEditor())) return false; + if (!getAncestorModule() + .equals(other.getAncestorModule())) return false; if (hasCustomConfig() != other.hasCustomConfig()) return false; if (hasCustomConfig()) { - if (!getCustomConfig().equals(other.getCustomConfig())) return false; + if (!getCustomConfig() + .equals(other.getCustomConfig())) return false; } if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; @@ -795,111 +679,99 @@ public int hashCode() { return hash; } - public static com.google.cloud.securitycentermanagement.v1.SecurityHealthAnalyticsCustomModule - parseFrom(java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.securitycentermanagement.v1.SecurityHealthAnalyticsCustomModule parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - - public static com.google.cloud.securitycentermanagement.v1.SecurityHealthAnalyticsCustomModule - parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.securitycentermanagement.v1.SecurityHealthAnalyticsCustomModule 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.securitycentermanagement.v1.SecurityHealthAnalyticsCustomModule - parseFrom(com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.securitycentermanagement.v1.SecurityHealthAnalyticsCustomModule parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - - public static com.google.cloud.securitycentermanagement.v1.SecurityHealthAnalyticsCustomModule - parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.securitycentermanagement.v1.SecurityHealthAnalyticsCustomModule parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.securitycentermanagement.v1.SecurityHealthAnalyticsCustomModule - parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.securitycentermanagement.v1.SecurityHealthAnalyticsCustomModule parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - - public static com.google.cloud.securitycentermanagement.v1.SecurityHealthAnalyticsCustomModule - parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.securitycentermanagement.v1.SecurityHealthAnalyticsCustomModule parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.securitycentermanagement.v1.SecurityHealthAnalyticsCustomModule - parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.securitycentermanagement.v1.SecurityHealthAnalyticsCustomModule parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - - public static com.google.cloud.securitycentermanagement.v1.SecurityHealthAnalyticsCustomModule - 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.securitycentermanagement.v1.SecurityHealthAnalyticsCustomModule 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.securitycentermanagement.v1.SecurityHealthAnalyticsCustomModule - parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.securitycentermanagement.v1.SecurityHealthAnalyticsCustomModule parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.securitycentermanagement.v1.SecurityHealthAnalyticsCustomModule - parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + public static com.google.cloud.securitycentermanagement.v1.SecurityHealthAnalyticsCustomModule parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.securitycentermanagement.v1.SecurityHealthAnalyticsCustomModule - parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.securitycentermanagement.v1.SecurityHealthAnalyticsCustomModule parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - - public static com.google.cloud.securitycentermanagement.v1.SecurityHealthAnalyticsCustomModule - 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.securitycentermanagement.v1.SecurityHealthAnalyticsCustomModule 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.securitycentermanagement.v1.SecurityHealthAnalyticsCustomModule prototype) { + public static Builder newBuilder(com.google.cloud.securitycentermanagement.v1.SecurityHealthAnalyticsCustomModule prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected 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 an instance of a Security Health Analytics custom module,
    * including its full module name, display name, enablement state, and last
@@ -908,38 +780,35 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build
    * level are inherited by the child folders and projects.
    * 
* - * Protobuf type {@code - * google.cloud.securitycentermanagement.v1.SecurityHealthAnalyticsCustomModule} + * Protobuf type {@code google.cloud.securitycentermanagement.v1.SecurityHealthAnalyticsCustomModule} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.securitycentermanagement.v1.SecurityHealthAnalyticsCustomModule) com.google.cloud.securitycentermanagement.v1.SecurityHealthAnalyticsCustomModuleOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.securitycentermanagement.v1.SecurityCenterManagementProto - .internal_static_google_cloud_securitycentermanagement_v1_SecurityHealthAnalyticsCustomModule_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.securitycentermanagement.v1.SecurityCenterManagementProto.internal_static_google_cloud_securitycentermanagement_v1_SecurityHealthAnalyticsCustomModule_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.securitycentermanagement.v1.SecurityCenterManagementProto - .internal_static_google_cloud_securitycentermanagement_v1_SecurityHealthAnalyticsCustomModule_fieldAccessorTable + return com.google.cloud.securitycentermanagement.v1.SecurityCenterManagementProto.internal_static_google_cloud_securitycentermanagement_v1_SecurityHealthAnalyticsCustomModule_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.securitycentermanagement.v1.SecurityHealthAnalyticsCustomModule - .class, - com.google.cloud.securitycentermanagement.v1.SecurityHealthAnalyticsCustomModule - .Builder.class); + com.google.cloud.securitycentermanagement.v1.SecurityHealthAnalyticsCustomModule.class, com.google.cloud.securitycentermanagement.v1.SecurityHealthAnalyticsCustomModule.Builder.class); } - // Construct using - // com.google.cloud.securitycentermanagement.v1.SecurityHealthAnalyticsCustomModule.newBuilder() - private Builder() {} + // Construct using com.google.cloud.securitycentermanagement.v1.SecurityHealthAnalyticsCustomModule.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(); @@ -963,23 +832,19 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.securitycentermanagement.v1.SecurityCenterManagementProto - .internal_static_google_cloud_securitycentermanagement_v1_SecurityHealthAnalyticsCustomModule_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.securitycentermanagement.v1.SecurityCenterManagementProto.internal_static_google_cloud_securitycentermanagement_v1_SecurityHealthAnalyticsCustomModule_descriptor; } @java.lang.Override - public com.google.cloud.securitycentermanagement.v1.SecurityHealthAnalyticsCustomModule - getDefaultInstanceForType() { - return com.google.cloud.securitycentermanagement.v1.SecurityHealthAnalyticsCustomModule - .getDefaultInstance(); + public com.google.cloud.securitycentermanagement.v1.SecurityHealthAnalyticsCustomModule getDefaultInstanceForType() { + return com.google.cloud.securitycentermanagement.v1.SecurityHealthAnalyticsCustomModule.getDefaultInstance(); } @java.lang.Override - public com.google.cloud.securitycentermanagement.v1.SecurityHealthAnalyticsCustomModule - build() { - com.google.cloud.securitycentermanagement.v1.SecurityHealthAnalyticsCustomModule result = - buildPartial(); + public com.google.cloud.securitycentermanagement.v1.SecurityHealthAnalyticsCustomModule build() { + com.google.cloud.securitycentermanagement.v1.SecurityHealthAnalyticsCustomModule result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } @@ -987,20 +852,14 @@ public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { } @java.lang.Override - public com.google.cloud.securitycentermanagement.v1.SecurityHealthAnalyticsCustomModule - buildPartial() { - com.google.cloud.securitycentermanagement.v1.SecurityHealthAnalyticsCustomModule result = - new com.google.cloud.securitycentermanagement.v1.SecurityHealthAnalyticsCustomModule( - this); - if (bitField0_ != 0) { - buildPartial0(result); - } + public com.google.cloud.securitycentermanagement.v1.SecurityHealthAnalyticsCustomModule buildPartial() { + com.google.cloud.securitycentermanagement.v1.SecurityHealthAnalyticsCustomModule result = new com.google.cloud.securitycentermanagement.v1.SecurityHealthAnalyticsCustomModule(this); + if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } - private void buildPartial0( - com.google.cloud.securitycentermanagement.v1.SecurityHealthAnalyticsCustomModule result) { + private void buildPartial0(com.google.cloud.securitycentermanagement.v1.SecurityHealthAnalyticsCustomModule result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000001) != 0)) { result.name_ = name_; @@ -1012,7 +871,9 @@ private void buildPartial0( result.enablementState_ = enablementState_; } if (((from_bitField0_ & 0x00000008) != 0)) { - result.updateTime_ = updateTimeBuilder_ == null ? updateTime_ : updateTimeBuilder_.build(); + result.updateTime_ = updateTimeBuilder_ == null + ? updateTime_ + : updateTimeBuilder_.build(); } if (((from_bitField0_ & 0x00000010) != 0)) { result.lastEditor_ = lastEditor_; @@ -1021,8 +882,9 @@ private void buildPartial0( result.ancestorModule_ = ancestorModule_; } if (((from_bitField0_ & 0x00000040) != 0)) { - result.customConfig_ = - customConfigBuilder_ == null ? customConfig_ : customConfigBuilder_.build(); + result.customConfig_ = customConfigBuilder_ == null + ? customConfig_ + : customConfigBuilder_.build(); } } @@ -1030,54 +892,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.securitycentermanagement.v1.SecurityHealthAnalyticsCustomModule) { - return mergeFrom( - (com.google.cloud.securitycentermanagement.v1.SecurityHealthAnalyticsCustomModule) - other); + if (other instanceof com.google.cloud.securitycentermanagement.v1.SecurityHealthAnalyticsCustomModule) { + return mergeFrom((com.google.cloud.securitycentermanagement.v1.SecurityHealthAnalyticsCustomModule)other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom( - com.google.cloud.securitycentermanagement.v1.SecurityHealthAnalyticsCustomModule other) { - if (other - == com.google.cloud.securitycentermanagement.v1.SecurityHealthAnalyticsCustomModule - .getDefaultInstance()) return this; + public Builder mergeFrom(com.google.cloud.securitycentermanagement.v1.SecurityHealthAnalyticsCustomModule other) { + if (other == com.google.cloud.securitycentermanagement.v1.SecurityHealthAnalyticsCustomModule.getDefaultInstance()) return this; if (!other.getName().isEmpty()) { name_ = other.name_; bitField0_ |= 0x00000001; @@ -1133,55 +987,51 @@ 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: - { - enablementState_ = input.readEnum(); - bitField0_ |= 0x00000004; - break; - } // case 24 - case 34: - { - input.readMessage(getUpdateTimeFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00000008; - break; - } // case 34 - case 42: - { - lastEditor_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000010; - break; - } // case 42 - case 50: - { - ancestorModule_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000020; - break; - } // case 50 - case 58: - { - input.readMessage(getCustomConfigFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00000040; - break; - } // case 58 - 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: { + enablementState_ = input.readEnum(); + bitField0_ |= 0x00000004; + break; + } // case 24 + case 34: { + input.readMessage( + getUpdateTimeFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000008; + break; + } // case 34 + case 42: { + lastEditor_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000010; + break; + } // case 42 + case 50: { + ancestorModule_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000020; + break; + } // case 50 + case 58: { + input.readMessage( + getCustomConfigFieldBuilder().getBuilder(), + extensionRegistry); + 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) { @@ -1191,13 +1041,10 @@ public Builder mergeFrom( } // finally return this; } - private int bitField0_; private java.lang.Object name_ = ""; /** - * - * *
      * Immutable. The resource name of the custom module.
      * Its format is
@@ -1212,13 +1059,13 @@ public Builder mergeFrom(
      * 
* * string name = 1 [(.google.api.field_behavior) = IMMUTABLE]; - * * @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; @@ -1227,8 +1074,6 @@ public java.lang.String getName() { } } /** - * - * *
      * Immutable. The resource name of the custom module.
      * Its format is
@@ -1243,14 +1088,15 @@ public java.lang.String getName() {
      * 
* * string name = 1 [(.google.api.field_behavior) = IMMUTABLE]; - * * @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 { @@ -1258,8 +1104,6 @@ public com.google.protobuf.ByteString getNameBytes() { } } /** - * - * *
      * Immutable. The resource name of the custom module.
      * Its format is
@@ -1274,22 +1118,18 @@ public com.google.protobuf.ByteString getNameBytes() {
      * 
* * string name = 1 [(.google.api.field_behavior) = IMMUTABLE]; - * * @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; } /** - * - * *
      * Immutable. The resource name of the custom module.
      * Its format is
@@ -1304,7 +1144,6 @@ public Builder setName(java.lang.String value) {
      * 
* * string name = 1 [(.google.api.field_behavior) = IMMUTABLE]; - * * @return This builder for chaining. */ public Builder clearName() { @@ -1314,8 +1153,6 @@ public Builder clearName() { return this; } /** - * - * *
      * Immutable. The resource name of the custom module.
      * Its format is
@@ -1330,14 +1167,12 @@ public Builder clearName() {
      * 
* * string name = 1 [(.google.api.field_behavior) = IMMUTABLE]; - * * @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; @@ -1347,8 +1182,6 @@ public Builder setNameBytes(com.google.protobuf.ByteString value) { private java.lang.Object displayName_ = ""; /** - * - * *
      * Optional. The display name of the Security Health Analytics custom module.
      * This display name becomes the finding category for all findings that are
@@ -1358,13 +1191,13 @@ public Builder setNameBytes(com.google.protobuf.ByteString value) {
      * 
* * 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; @@ -1373,8 +1206,6 @@ public java.lang.String getDisplayName() { } } /** - * - * *
      * Optional. The display name of the Security Health Analytics custom module.
      * This display name becomes the finding category for all findings that are
@@ -1384,14 +1215,15 @@ public java.lang.String getDisplayName() {
      * 
* * 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 { @@ -1399,8 +1231,6 @@ public com.google.protobuf.ByteString getDisplayNameBytes() { } } /** - * - * *
      * Optional. The display name of the Security Health Analytics custom module.
      * This display name becomes the finding category for all findings that are
@@ -1410,22 +1240,18 @@ public com.google.protobuf.ByteString getDisplayNameBytes() {
      * 
* * 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. The display name of the Security Health Analytics custom module.
      * This display name becomes the finding category for all findings that are
@@ -1435,7 +1261,6 @@ public Builder setDisplayName(java.lang.String value) {
      * 
* * string display_name = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @return This builder for chaining. */ public Builder clearDisplayName() { @@ -1445,8 +1270,6 @@ public Builder clearDisplayName() { return this; } /** - * - * *
      * Optional. The display name of the Security Health Analytics custom module.
      * This display name becomes the finding category for all findings that are
@@ -1456,14 +1279,12 @@ public Builder clearDisplayName() {
      * 
* * 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; @@ -1473,33 +1294,22 @@ public Builder setDisplayNameBytes(com.google.protobuf.ByteString value) { private int enablementState_ = 0; /** - * - * *
      * Optional. The enablement state of the custom module.
      * 
* - * - * .google.cloud.securitycentermanagement.v1.SecurityHealthAnalyticsCustomModule.EnablementState enablement_state = 3 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.cloud.securitycentermanagement.v1.SecurityHealthAnalyticsCustomModule.EnablementState enablement_state = 3 [(.google.api.field_behavior) = OPTIONAL]; * @return The enum numeric value on the wire for enablementState. */ - @java.lang.Override - public int getEnablementStateValue() { + @java.lang.Override public int getEnablementStateValue() { return enablementState_; } /** - * - * *
      * Optional. The enablement state of the custom module.
      * 
* - * - * .google.cloud.securitycentermanagement.v1.SecurityHealthAnalyticsCustomModule.EnablementState enablement_state = 3 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.cloud.securitycentermanagement.v1.SecurityHealthAnalyticsCustomModule.EnablementState enablement_state = 3 [(.google.api.field_behavior) = OPTIONAL]; * @param value The enum numeric value on the wire for enablementState to set. * @return This builder for chaining. */ @@ -1510,50 +1320,28 @@ public Builder setEnablementStateValue(int value) { return this; } /** - * - * *
      * Optional. The enablement state of the custom module.
      * 
* - * - * .google.cloud.securitycentermanagement.v1.SecurityHealthAnalyticsCustomModule.EnablementState enablement_state = 3 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.cloud.securitycentermanagement.v1.SecurityHealthAnalyticsCustomModule.EnablementState enablement_state = 3 [(.google.api.field_behavior) = OPTIONAL]; * @return The enablementState. */ @java.lang.Override - public com.google.cloud.securitycentermanagement.v1.SecurityHealthAnalyticsCustomModule - .EnablementState - getEnablementState() { - com.google.cloud.securitycentermanagement.v1.SecurityHealthAnalyticsCustomModule - .EnablementState - result = - com.google.cloud.securitycentermanagement.v1.SecurityHealthAnalyticsCustomModule - .EnablementState.forNumber(enablementState_); - return result == null - ? com.google.cloud.securitycentermanagement.v1.SecurityHealthAnalyticsCustomModule - .EnablementState.UNRECOGNIZED - : result; + public com.google.cloud.securitycentermanagement.v1.SecurityHealthAnalyticsCustomModule.EnablementState getEnablementState() { + com.google.cloud.securitycentermanagement.v1.SecurityHealthAnalyticsCustomModule.EnablementState result = com.google.cloud.securitycentermanagement.v1.SecurityHealthAnalyticsCustomModule.EnablementState.forNumber(enablementState_); + return result == null ? com.google.cloud.securitycentermanagement.v1.SecurityHealthAnalyticsCustomModule.EnablementState.UNRECOGNIZED : result; } /** - * - * *
      * Optional. The enablement state of the custom module.
      * 
* - * - * .google.cloud.securitycentermanagement.v1.SecurityHealthAnalyticsCustomModule.EnablementState enablement_state = 3 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.cloud.securitycentermanagement.v1.SecurityHealthAnalyticsCustomModule.EnablementState enablement_state = 3 [(.google.api.field_behavior) = OPTIONAL]; * @param value The enablementState to set. * @return This builder for chaining. */ - public Builder setEnablementState( - com.google.cloud.securitycentermanagement.v1.SecurityHealthAnalyticsCustomModule - .EnablementState - value) { + public Builder setEnablementState(com.google.cloud.securitycentermanagement.v1.SecurityHealthAnalyticsCustomModule.EnablementState value) { if (value == null) { throw new NullPointerException(); } @@ -1563,16 +1351,11 @@ public Builder setEnablementState( return this; } /** - * - * *
      * Optional. The enablement state of the custom module.
      * 
* - * - * .google.cloud.securitycentermanagement.v1.SecurityHealthAnalyticsCustomModule.EnablementState enablement_state = 3 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.cloud.securitycentermanagement.v1.SecurityHealthAnalyticsCustomModule.EnablementState enablement_state = 3 [(.google.api.field_behavior) = OPTIONAL]; * @return This builder for chaining. */ public Builder clearEnablementState() { @@ -1584,58 +1367,39 @@ public Builder clearEnablementState() { 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 time at which the custom module was last updated.
      * 
* - * - * .google.protobuf.Timestamp update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the updateTime field is set. */ public boolean hasUpdateTime() { return ((bitField0_ & 0x00000008) != 0); } /** - * - * *
      * Output only. The time at which the custom module was last updated.
      * 
* - * - * .google.protobuf.Timestamp update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp update_time = 4 [(.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 time at which the custom module was last updated.
      * 
* - * - * .google.protobuf.Timestamp update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder setUpdateTime(com.google.protobuf.Timestamp value) { if (updateTimeBuilder_ == null) { @@ -1651,17 +1415,14 @@ public Builder setUpdateTime(com.google.protobuf.Timestamp value) { return this; } /** - * - * *
      * Output only. The time at which the custom module was last updated.
      * 
* - * - * .google.protobuf.Timestamp update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp update_time = 4 [(.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 { @@ -1672,21 +1433,17 @@ public Builder setUpdateTime(com.google.protobuf.Timestamp.Builder builderForVal return this; } /** - * - * *
      * Output only. The time at which the custom module was last updated.
      * 
* - * - * .google.protobuf.Timestamp update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder mergeUpdateTime(com.google.protobuf.Timestamp value) { if (updateTimeBuilder_ == null) { - if (((bitField0_ & 0x00000008) != 0) - && updateTime_ != null - && updateTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { + if (((bitField0_ & 0x00000008) != 0) && + updateTime_ != null && + updateTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { getUpdateTimeBuilder().mergeFrom(value); } else { updateTime_ = value; @@ -1699,15 +1456,11 @@ public Builder mergeUpdateTime(com.google.protobuf.Timestamp value) { return this; } /** - * - * *
      * Output only. The time at which the custom module was last updated.
      * 
* - * - * .google.protobuf.Timestamp update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder clearUpdateTime() { bitField0_ = (bitField0_ & ~0x00000008); @@ -1720,15 +1473,11 @@ public Builder clearUpdateTime() { return this; } /** - * - * *
      * Output only. The time at which the custom module was last updated.
      * 
* - * - * .google.protobuf.Timestamp update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public com.google.protobuf.Timestamp.Builder getUpdateTimeBuilder() { bitField0_ |= 0x00000008; @@ -1736,48 +1485,36 @@ public com.google.protobuf.Timestamp.Builder getUpdateTimeBuilder() { return getUpdateTimeFieldBuilder().getBuilder(); } /** - * - * *
      * Output only. The time at which the custom module was last updated.
      * 
* - * - * .google.protobuf.Timestamp update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp update_time = 4 [(.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 time at which the custom module was last updated.
      * 
* - * - * .google.protobuf.Timestamp update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp update_time = 4 [(.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_; @@ -1785,20 +1522,18 @@ public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() { private java.lang.Object lastEditor_ = ""; /** - * - * *
      * Output only. The editor that last updated the custom module.
      * 
* * string last_editor = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The lastEditor. */ public java.lang.String getLastEditor() { java.lang.Object ref = lastEditor_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); lastEditor_ = s; return s; @@ -1807,21 +1542,20 @@ public java.lang.String getLastEditor() { } } /** - * - * *
      * Output only. The editor that last updated the custom module.
      * 
* * string last_editor = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The bytes for lastEditor. */ - public com.google.protobuf.ByteString getLastEditorBytes() { + public com.google.protobuf.ByteString + getLastEditorBytes() { java.lang.Object ref = lastEditor_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); lastEditor_ = b; return b; } else { @@ -1829,35 +1563,28 @@ public com.google.protobuf.ByteString getLastEditorBytes() { } } /** - * - * *
      * Output only. The editor that last updated the custom module.
      * 
* * string last_editor = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @param value The lastEditor to set. * @return This builder for chaining. */ - public Builder setLastEditor(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setLastEditor( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } lastEditor_ = value; bitField0_ |= 0x00000010; onChanged(); return this; } /** - * - * *
      * Output only. The editor that last updated the custom module.
      * 
* * string last_editor = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return This builder for chaining. */ public Builder clearLastEditor() { @@ -1867,21 +1594,17 @@ public Builder clearLastEditor() { return this; } /** - * - * *
      * Output only. The editor that last updated the custom module.
      * 
* * string last_editor = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @param value The bytes for lastEditor to set. * @return This builder for chaining. */ - public Builder setLastEditorBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setLastEditorBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); lastEditor_ = value; bitField0_ |= 0x00000010; @@ -1891,8 +1614,6 @@ public Builder setLastEditorBytes(com.google.protobuf.ByteString value) { private java.lang.Object ancestorModule_ = ""; /** - * - * *
      * Output only. Specifies the organization or folder from which the custom
      * module is inherited. If empty, indicates that the custom module was created
@@ -1900,16 +1621,14 @@ public Builder setLastEditorBytes(com.google.protobuf.ByteString value) {
      * module.
      * 
* - * - * string ancestor_module = 6 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } - * - * + * string ancestor_module = 6 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } * @return The ancestorModule. */ public java.lang.String getAncestorModule() { java.lang.Object ref = ancestorModule_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); ancestorModule_ = s; return s; @@ -1918,8 +1637,6 @@ public java.lang.String getAncestorModule() { } } /** - * - * *
      * Output only. Specifies the organization or folder from which the custom
      * module is inherited. If empty, indicates that the custom module was created
@@ -1927,17 +1644,16 @@ public java.lang.String getAncestorModule() {
      * module.
      * 
* - * - * string ancestor_module = 6 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } - * - * + * string ancestor_module = 6 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } * @return The bytes for ancestorModule. */ - public com.google.protobuf.ByteString getAncestorModuleBytes() { + public com.google.protobuf.ByteString + getAncestorModuleBytes() { java.lang.Object ref = ancestorModule_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); ancestorModule_ = b; return b; } else { @@ -1945,8 +1661,6 @@ public com.google.protobuf.ByteString getAncestorModuleBytes() { } } /** - * - * *
      * Output only. Specifies the organization or folder from which the custom
      * module is inherited. If empty, indicates that the custom module was created
@@ -1954,25 +1668,19 @@ public com.google.protobuf.ByteString getAncestorModuleBytes() {
      * module.
      * 
* - * - * string ancestor_module = 6 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } - * - * + * string ancestor_module = 6 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } * @param value The ancestorModule to set. * @return This builder for chaining. */ - public Builder setAncestorModule(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setAncestorModule( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } ancestorModule_ = value; bitField0_ |= 0x00000020; onChanged(); return this; } /** - * - * *
      * Output only. Specifies the organization or folder from which the custom
      * module is inherited. If empty, indicates that the custom module was created
@@ -1980,10 +1688,7 @@ public Builder setAncestorModule(java.lang.String value) {
      * module.
      * 
* - * - * string ancestor_module = 6 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } - * - * + * string ancestor_module = 6 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } * @return This builder for chaining. */ public Builder clearAncestorModule() { @@ -1993,8 +1698,6 @@ public Builder clearAncestorModule() { return this; } /** - * - * *
      * Output only. Specifies the organization or folder from which the custom
      * module is inherited. If empty, indicates that the custom module was created
@@ -2002,17 +1705,13 @@ public Builder clearAncestorModule() {
      * module.
      * 
* - * - * string ancestor_module = 6 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } - * - * + * string ancestor_module = 6 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } * @param value The bytes for ancestorModule to set. * @return This builder for chaining. */ - public Builder setAncestorModuleBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setAncestorModuleBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); ancestorModule_ = value; bitField0_ |= 0x00000020; @@ -2022,61 +1721,41 @@ public Builder setAncestorModuleBytes(com.google.protobuf.ByteString value) { private com.google.cloud.securitycentermanagement.v1.CustomConfig customConfig_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.securitycentermanagement.v1.CustomConfig, - com.google.cloud.securitycentermanagement.v1.CustomConfig.Builder, - com.google.cloud.securitycentermanagement.v1.CustomConfigOrBuilder> - customConfigBuilder_; + com.google.cloud.securitycentermanagement.v1.CustomConfig, com.google.cloud.securitycentermanagement.v1.CustomConfig.Builder, com.google.cloud.securitycentermanagement.v1.CustomConfigOrBuilder> customConfigBuilder_; /** - * - * *
      * Optional. The user specified custom configuration for the module.
      * 
* - * - * .google.cloud.securitycentermanagement.v1.CustomConfig custom_config = 7 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.cloud.securitycentermanagement.v1.CustomConfig custom_config = 7 [(.google.api.field_behavior) = OPTIONAL]; * @return Whether the customConfig field is set. */ public boolean hasCustomConfig() { return ((bitField0_ & 0x00000040) != 0); } /** - * - * *
      * Optional. The user specified custom configuration for the module.
      * 
* - * - * .google.cloud.securitycentermanagement.v1.CustomConfig custom_config = 7 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.cloud.securitycentermanagement.v1.CustomConfig custom_config = 7 [(.google.api.field_behavior) = OPTIONAL]; * @return The customConfig. */ public com.google.cloud.securitycentermanagement.v1.CustomConfig getCustomConfig() { if (customConfigBuilder_ == null) { - return customConfig_ == null - ? com.google.cloud.securitycentermanagement.v1.CustomConfig.getDefaultInstance() - : customConfig_; + return customConfig_ == null ? com.google.cloud.securitycentermanagement.v1.CustomConfig.getDefaultInstance() : customConfig_; } else { return customConfigBuilder_.getMessage(); } } /** - * - * *
      * Optional. The user specified custom configuration for the module.
      * 
* - * - * .google.cloud.securitycentermanagement.v1.CustomConfig custom_config = 7 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.securitycentermanagement.v1.CustomConfig custom_config = 7 [(.google.api.field_behavior) = OPTIONAL]; */ - public Builder setCustomConfig( - com.google.cloud.securitycentermanagement.v1.CustomConfig value) { + public Builder setCustomConfig(com.google.cloud.securitycentermanagement.v1.CustomConfig value) { if (customConfigBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -2090,15 +1769,11 @@ public Builder setCustomConfig( return this; } /** - * - * *
      * Optional. The user specified custom configuration for the module.
      * 
* - * - * .google.cloud.securitycentermanagement.v1.CustomConfig custom_config = 7 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.securitycentermanagement.v1.CustomConfig custom_config = 7 [(.google.api.field_behavior) = OPTIONAL]; */ public Builder setCustomConfig( com.google.cloud.securitycentermanagement.v1.CustomConfig.Builder builderForValue) { @@ -2112,23 +1787,17 @@ public Builder setCustomConfig( return this; } /** - * - * *
      * Optional. The user specified custom configuration for the module.
      * 
* - * - * .google.cloud.securitycentermanagement.v1.CustomConfig custom_config = 7 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.securitycentermanagement.v1.CustomConfig custom_config = 7 [(.google.api.field_behavior) = OPTIONAL]; */ - public Builder mergeCustomConfig( - com.google.cloud.securitycentermanagement.v1.CustomConfig value) { + public Builder mergeCustomConfig(com.google.cloud.securitycentermanagement.v1.CustomConfig value) { if (customConfigBuilder_ == null) { - if (((bitField0_ & 0x00000040) != 0) - && customConfig_ != null - && customConfig_ - != com.google.cloud.securitycentermanagement.v1.CustomConfig.getDefaultInstance()) { + if (((bitField0_ & 0x00000040) != 0) && + customConfig_ != null && + customConfig_ != com.google.cloud.securitycentermanagement.v1.CustomConfig.getDefaultInstance()) { getCustomConfigBuilder().mergeFrom(value); } else { customConfig_ = value; @@ -2141,15 +1810,11 @@ public Builder mergeCustomConfig( return this; } /** - * - * *
      * Optional. The user specified custom configuration for the module.
      * 
* - * - * .google.cloud.securitycentermanagement.v1.CustomConfig custom_config = 7 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.securitycentermanagement.v1.CustomConfig custom_config = 7 [(.google.api.field_behavior) = OPTIONAL]; */ public Builder clearCustomConfig() { bitField0_ = (bitField0_ & ~0x00000040); @@ -2162,73 +1827,55 @@ public Builder clearCustomConfig() { return this; } /** - * - * *
      * Optional. The user specified custom configuration for the module.
      * 
* - * - * .google.cloud.securitycentermanagement.v1.CustomConfig custom_config = 7 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.securitycentermanagement.v1.CustomConfig custom_config = 7 [(.google.api.field_behavior) = OPTIONAL]; */ - public com.google.cloud.securitycentermanagement.v1.CustomConfig.Builder - getCustomConfigBuilder() { + public com.google.cloud.securitycentermanagement.v1.CustomConfig.Builder getCustomConfigBuilder() { bitField0_ |= 0x00000040; onChanged(); return getCustomConfigFieldBuilder().getBuilder(); } /** - * - * *
      * Optional. The user specified custom configuration for the module.
      * 
* - * - * .google.cloud.securitycentermanagement.v1.CustomConfig custom_config = 7 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.securitycentermanagement.v1.CustomConfig custom_config = 7 [(.google.api.field_behavior) = OPTIONAL]; */ - public com.google.cloud.securitycentermanagement.v1.CustomConfigOrBuilder - getCustomConfigOrBuilder() { + public com.google.cloud.securitycentermanagement.v1.CustomConfigOrBuilder getCustomConfigOrBuilder() { if (customConfigBuilder_ != null) { return customConfigBuilder_.getMessageOrBuilder(); } else { - return customConfig_ == null - ? com.google.cloud.securitycentermanagement.v1.CustomConfig.getDefaultInstance() - : customConfig_; + return customConfig_ == null ? + com.google.cloud.securitycentermanagement.v1.CustomConfig.getDefaultInstance() : customConfig_; } } /** - * - * *
      * Optional. The user specified custom configuration for the module.
      * 
* - * - * .google.cloud.securitycentermanagement.v1.CustomConfig custom_config = 7 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.securitycentermanagement.v1.CustomConfig custom_config = 7 [(.google.api.field_behavior) = OPTIONAL]; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.securitycentermanagement.v1.CustomConfig, - com.google.cloud.securitycentermanagement.v1.CustomConfig.Builder, - com.google.cloud.securitycentermanagement.v1.CustomConfigOrBuilder> + com.google.cloud.securitycentermanagement.v1.CustomConfig, com.google.cloud.securitycentermanagement.v1.CustomConfig.Builder, com.google.cloud.securitycentermanagement.v1.CustomConfigOrBuilder> getCustomConfigFieldBuilder() { if (customConfigBuilder_ == null) { - customConfigBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.securitycentermanagement.v1.CustomConfig, - com.google.cloud.securitycentermanagement.v1.CustomConfig.Builder, - com.google.cloud.securitycentermanagement.v1.CustomConfigOrBuilder>( - getCustomConfig(), getParentForChildren(), isClean()); + customConfigBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.securitycentermanagement.v1.CustomConfig, com.google.cloud.securitycentermanagement.v1.CustomConfig.Builder, com.google.cloud.securitycentermanagement.v1.CustomConfigOrBuilder>( + getCustomConfig(), + getParentForChildren(), + isClean()); customConfig_ = null; } return customConfigBuilder_; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -2238,45 +1885,41 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.securitycentermanagement.v1.SecurityHealthAnalyticsCustomModule) } // @@protoc_insertion_point(class_scope:google.cloud.securitycentermanagement.v1.SecurityHealthAnalyticsCustomModule) - private static final com.google.cloud.securitycentermanagement.v1 - .SecurityHealthAnalyticsCustomModule - DEFAULT_INSTANCE; - + private static final com.google.cloud.securitycentermanagement.v1.SecurityHealthAnalyticsCustomModule DEFAULT_INSTANCE; static { - DEFAULT_INSTANCE = - new com.google.cloud.securitycentermanagement.v1.SecurityHealthAnalyticsCustomModule(); + DEFAULT_INSTANCE = new com.google.cloud.securitycentermanagement.v1.SecurityHealthAnalyticsCustomModule(); } - public static com.google.cloud.securitycentermanagement.v1.SecurityHealthAnalyticsCustomModule - getDefaultInstance() { + public static com.google.cloud.securitycentermanagement.v1.SecurityHealthAnalyticsCustomModule getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public SecurityHealthAnalyticsCustomModule parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public SecurityHealthAnalyticsCustomModule parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -2288,8 +1931,9 @@ public com.google.protobuf.Parser getParser } @java.lang.Override - public com.google.cloud.securitycentermanagement.v1.SecurityHealthAnalyticsCustomModule - getDefaultInstanceForType() { + public com.google.cloud.securitycentermanagement.v1.SecurityHealthAnalyticsCustomModule getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/java-securitycentermanagement/proto-google-cloud-securitycentermanagement-v1/src/main/java/com/google/cloud/securitycentermanagement/v1/SecurityHealthAnalyticsCustomModuleName.java b/owl-bot-staging/java-securitycentermanagement/v1/proto-google-cloud-securitycentermanagement-v1/src/main/java/com/google/cloud/securitycentermanagement/v1/SecurityHealthAnalyticsCustomModuleName.java similarity index 100% rename from java-securitycentermanagement/proto-google-cloud-securitycentermanagement-v1/src/main/java/com/google/cloud/securitycentermanagement/v1/SecurityHealthAnalyticsCustomModuleName.java rename to owl-bot-staging/java-securitycentermanagement/v1/proto-google-cloud-securitycentermanagement-v1/src/main/java/com/google/cloud/securitycentermanagement/v1/SecurityHealthAnalyticsCustomModuleName.java diff --git a/java-securitycentermanagement/proto-google-cloud-securitycentermanagement-v1/src/main/java/com/google/cloud/securitycentermanagement/v1/SecurityHealthAnalyticsCustomModuleOrBuilder.java b/owl-bot-staging/java-securitycentermanagement/v1/proto-google-cloud-securitycentermanagement-v1/src/main/java/com/google/cloud/securitycentermanagement/v1/SecurityHealthAnalyticsCustomModuleOrBuilder.java similarity index 70% rename from java-securitycentermanagement/proto-google-cloud-securitycentermanagement-v1/src/main/java/com/google/cloud/securitycentermanagement/v1/SecurityHealthAnalyticsCustomModuleOrBuilder.java rename to owl-bot-staging/java-securitycentermanagement/v1/proto-google-cloud-securitycentermanagement-v1/src/main/java/com/google/cloud/securitycentermanagement/v1/SecurityHealthAnalyticsCustomModuleOrBuilder.java index 5163b800faf6..642d64158e4c 100644 --- a/java-securitycentermanagement/proto-google-cloud-securitycentermanagement-v1/src/main/java/com/google/cloud/securitycentermanagement/v1/SecurityHealthAnalyticsCustomModuleOrBuilder.java +++ b/owl-bot-staging/java-securitycentermanagement/v1/proto-google-cloud-securitycentermanagement-v1/src/main/java/com/google/cloud/securitycentermanagement/v1/SecurityHealthAnalyticsCustomModuleOrBuilder.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/securitycentermanagement/v1/security_center_management.proto package com.google.cloud.securitycentermanagement.v1; -public interface SecurityHealthAnalyticsCustomModuleOrBuilder - extends +public interface SecurityHealthAnalyticsCustomModuleOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.securitycentermanagement.v1.SecurityHealthAnalyticsCustomModule) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * Immutable. The resource name of the custom module.
    * Its format is
@@ -40,13 +22,10 @@ public interface SecurityHealthAnalyticsCustomModuleOrBuilder
    * 
* * string name = 1 [(.google.api.field_behavior) = IMMUTABLE]; - * * @return The name. */ java.lang.String getName(); /** - * - * *
    * Immutable. The resource name of the custom module.
    * Its format is
@@ -61,14 +40,12 @@ public interface SecurityHealthAnalyticsCustomModuleOrBuilder
    * 
* * string name = 1 [(.google.api.field_behavior) = IMMUTABLE]; - * * @return The bytes for name. */ - com.google.protobuf.ByteString getNameBytes(); + com.google.protobuf.ByteString + getNameBytes(); /** - * - * *
    * Optional. The display name of the Security Health Analytics custom module.
    * This display name becomes the finding category for all findings that are
@@ -78,13 +55,10 @@ public interface SecurityHealthAnalyticsCustomModuleOrBuilder
    * 
* * string display_name = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The displayName. */ java.lang.String getDisplayName(); /** - * - * *
    * Optional. The display name of the Security Health Analytics custom module.
    * This display name becomes the finding category for all findings that are
@@ -94,107 +68,78 @@ public interface SecurityHealthAnalyticsCustomModuleOrBuilder
    * 
* * string display_name = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The bytes for displayName. */ - com.google.protobuf.ByteString getDisplayNameBytes(); + com.google.protobuf.ByteString + getDisplayNameBytes(); /** - * - * *
    * Optional. The enablement state of the custom module.
    * 
* - * - * .google.cloud.securitycentermanagement.v1.SecurityHealthAnalyticsCustomModule.EnablementState enablement_state = 3 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.cloud.securitycentermanagement.v1.SecurityHealthAnalyticsCustomModule.EnablementState enablement_state = 3 [(.google.api.field_behavior) = OPTIONAL]; * @return The enum numeric value on the wire for enablementState. */ int getEnablementStateValue(); /** - * - * *
    * Optional. The enablement state of the custom module.
    * 
* - * - * .google.cloud.securitycentermanagement.v1.SecurityHealthAnalyticsCustomModule.EnablementState enablement_state = 3 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.cloud.securitycentermanagement.v1.SecurityHealthAnalyticsCustomModule.EnablementState enablement_state = 3 [(.google.api.field_behavior) = OPTIONAL]; * @return The enablementState. */ - com.google.cloud.securitycentermanagement.v1.SecurityHealthAnalyticsCustomModule.EnablementState - getEnablementState(); + com.google.cloud.securitycentermanagement.v1.SecurityHealthAnalyticsCustomModule.EnablementState getEnablementState(); /** - * - * *
    * Output only. The time at which the custom module was last updated.
    * 
* - * .google.protobuf.Timestamp update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the updateTime field is set. */ boolean hasUpdateTime(); /** - * - * *
    * Output only. The time at which the custom module was last updated.
    * 
* - * .google.protobuf.Timestamp update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The updateTime. */ com.google.protobuf.Timestamp getUpdateTime(); /** - * - * *
    * Output only. The time at which the custom module was last updated.
    * 
* - * .google.protobuf.Timestamp update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder(); /** - * - * *
    * Output only. The editor that last updated the custom module.
    * 
* * string last_editor = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The lastEditor. */ java.lang.String getLastEditor(); /** - * - * *
    * Output only. The editor that last updated the custom module.
    * 
* * string last_editor = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The bytes for lastEditor. */ - com.google.protobuf.ByteString getLastEditorBytes(); + com.google.protobuf.ByteString + getLastEditorBytes(); /** - * - * *
    * Output only. Specifies the organization or folder from which the custom
    * module is inherited. If empty, indicates that the custom module was created
@@ -202,16 +147,11 @@ public interface SecurityHealthAnalyticsCustomModuleOrBuilder
    * module.
    * 
* - * - * string ancestor_module = 6 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } - * - * + * string ancestor_module = 6 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } * @return The ancestorModule. */ java.lang.String getAncestorModule(); /** - * - * *
    * Output only. Specifies the organization or folder from which the custom
    * module is inherited. If empty, indicates that the custom module was created
@@ -219,52 +159,36 @@ public interface SecurityHealthAnalyticsCustomModuleOrBuilder
    * module.
    * 
* - * - * string ancestor_module = 6 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } - * - * + * string ancestor_module = 6 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } * @return The bytes for ancestorModule. */ - com.google.protobuf.ByteString getAncestorModuleBytes(); + com.google.protobuf.ByteString + getAncestorModuleBytes(); /** - * - * *
    * Optional. The user specified custom configuration for the module.
    * 
* - * - * .google.cloud.securitycentermanagement.v1.CustomConfig custom_config = 7 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.cloud.securitycentermanagement.v1.CustomConfig custom_config = 7 [(.google.api.field_behavior) = OPTIONAL]; * @return Whether the customConfig field is set. */ boolean hasCustomConfig(); /** - * - * *
    * Optional. The user specified custom configuration for the module.
    * 
* - * - * .google.cloud.securitycentermanagement.v1.CustomConfig custom_config = 7 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.cloud.securitycentermanagement.v1.CustomConfig custom_config = 7 [(.google.api.field_behavior) = OPTIONAL]; * @return The customConfig. */ com.google.cloud.securitycentermanagement.v1.CustomConfig getCustomConfig(); /** - * - * *
    * Optional. The user specified custom configuration for the module.
    * 
* - * - * .google.cloud.securitycentermanagement.v1.CustomConfig custom_config = 7 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.securitycentermanagement.v1.CustomConfig custom_config = 7 [(.google.api.field_behavior) = OPTIONAL]; */ com.google.cloud.securitycentermanagement.v1.CustomConfigOrBuilder getCustomConfigOrBuilder(); } diff --git a/java-securitycentermanagement/proto-google-cloud-securitycentermanagement-v1/src/main/java/com/google/cloud/securitycentermanagement/v1/SimulateSecurityHealthAnalyticsCustomModuleRequest.java b/owl-bot-staging/java-securitycentermanagement/v1/proto-google-cloud-securitycentermanagement-v1/src/main/java/com/google/cloud/securitycentermanagement/v1/SimulateSecurityHealthAnalyticsCustomModuleRequest.java similarity index 53% rename from java-securitycentermanagement/proto-google-cloud-securitycentermanagement-v1/src/main/java/com/google/cloud/securitycentermanagement/v1/SimulateSecurityHealthAnalyticsCustomModuleRequest.java rename to owl-bot-staging/java-securitycentermanagement/v1/proto-google-cloud-securitycentermanagement-v1/src/main/java/com/google/cloud/securitycentermanagement/v1/SimulateSecurityHealthAnalyticsCustomModuleRequest.java index 4270c3a09765..cdfb5febd2fe 100644 --- a/java-securitycentermanagement/proto-google-cloud-securitycentermanagement-v1/src/main/java/com/google/cloud/securitycentermanagement/v1/SimulateSecurityHealthAnalyticsCustomModuleRequest.java +++ b/owl-bot-staging/java-securitycentermanagement/v1/proto-google-cloud-securitycentermanagement-v1/src/main/java/com/google/cloud/securitycentermanagement/v1/SimulateSecurityHealthAnalyticsCustomModuleRequest.java @@ -1,248 +1,184 @@ -/* - * Copyright 2023 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/securitycentermanagement/v1/security_center_management.proto package com.google.cloud.securitycentermanagement.v1; /** - * - * *
  * Request message to simulate a CustomConfig against a given test resource.
  * Maximum size of the request is 4 MB by default.
  * 
* - * Protobuf type {@code - * google.cloud.securitycentermanagement.v1.SimulateSecurityHealthAnalyticsCustomModuleRequest} + * Protobuf type {@code google.cloud.securitycentermanagement.v1.SimulateSecurityHealthAnalyticsCustomModuleRequest} */ -public final class SimulateSecurityHealthAnalyticsCustomModuleRequest - extends com.google.protobuf.GeneratedMessageV3 - implements +public final class SimulateSecurityHealthAnalyticsCustomModuleRequest extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.securitycentermanagement.v1.SimulateSecurityHealthAnalyticsCustomModuleRequest) SimulateSecurityHealthAnalyticsCustomModuleRequestOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use SimulateSecurityHealthAnalyticsCustomModuleRequest.newBuilder() to construct. - private SimulateSecurityHealthAnalyticsCustomModuleRequest( - com.google.protobuf.GeneratedMessageV3.Builder builder) { + private SimulateSecurityHealthAnalyticsCustomModuleRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private SimulateSecurityHealthAnalyticsCustomModuleRequest() { parent_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new SimulateSecurityHealthAnalyticsCustomModuleRequest(); } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.securitycentermanagement.v1.SecurityCenterManagementProto - .internal_static_google_cloud_securitycentermanagement_v1_SimulateSecurityHealthAnalyticsCustomModuleRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.securitycentermanagement.v1.SecurityCenterManagementProto.internal_static_google_cloud_securitycentermanagement_v1_SimulateSecurityHealthAnalyticsCustomModuleRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.securitycentermanagement.v1.SecurityCenterManagementProto - .internal_static_google_cloud_securitycentermanagement_v1_SimulateSecurityHealthAnalyticsCustomModuleRequest_fieldAccessorTable + return com.google.cloud.securitycentermanagement.v1.SecurityCenterManagementProto.internal_static_google_cloud_securitycentermanagement_v1_SimulateSecurityHealthAnalyticsCustomModuleRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.securitycentermanagement.v1 - .SimulateSecurityHealthAnalyticsCustomModuleRequest.class, - com.google.cloud.securitycentermanagement.v1 - .SimulateSecurityHealthAnalyticsCustomModuleRequest.Builder.class); + com.google.cloud.securitycentermanagement.v1.SimulateSecurityHealthAnalyticsCustomModuleRequest.class, com.google.cloud.securitycentermanagement.v1.SimulateSecurityHealthAnalyticsCustomModuleRequest.Builder.class); } - public interface SimulatedResourceOrBuilder - extends + public interface SimulatedResourceOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.securitycentermanagement.v1.SimulateSecurityHealthAnalyticsCustomModuleRequest.SimulatedResource) com.google.protobuf.MessageOrBuilder { /** - * - * *
      * Required. The type of the resource, for example,
      * `compute.googleapis.com/Disk`.
      * 
* * string resource_type = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @return The resourceType. */ java.lang.String getResourceType(); /** - * - * *
      * Required. The type of the resource, for example,
      * `compute.googleapis.com/Disk`.
      * 
* * string resource_type = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @return The bytes for resourceType. */ - com.google.protobuf.ByteString getResourceTypeBytes(); + com.google.protobuf.ByteString + getResourceTypeBytes(); /** - * - * *
      * Optional. A representation of the Google Cloud resource. Should match the
      * Google Cloud resource JSON format.
      * 
* - * .google.protobuf.Struct resource_data = 2 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.protobuf.Struct resource_data = 2 [(.google.api.field_behavior) = OPTIONAL]; * @return Whether the resourceData field is set. */ boolean hasResourceData(); /** - * - * *
      * Optional. A representation of the Google Cloud resource. Should match the
      * Google Cloud resource JSON format.
      * 
* - * .google.protobuf.Struct resource_data = 2 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.protobuf.Struct resource_data = 2 [(.google.api.field_behavior) = OPTIONAL]; * @return The resourceData. */ com.google.protobuf.Struct getResourceData(); /** - * - * *
      * Optional. A representation of the Google Cloud resource. Should match the
      * Google Cloud resource JSON format.
      * 
* - * .google.protobuf.Struct resource_data = 2 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.protobuf.Struct resource_data = 2 [(.google.api.field_behavior) = OPTIONAL]; */ com.google.protobuf.StructOrBuilder getResourceDataOrBuilder(); /** - * - * *
      * Optional. A representation of the IAM policy.
      * 
* - * .google.iam.v1.Policy iam_policy_data = 3 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.iam.v1.Policy iam_policy_data = 3 [(.google.api.field_behavior) = OPTIONAL]; * @return Whether the iamPolicyData field is set. */ boolean hasIamPolicyData(); /** - * - * *
      * Optional. A representation of the IAM policy.
      * 
* - * .google.iam.v1.Policy iam_policy_data = 3 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.iam.v1.Policy iam_policy_data = 3 [(.google.api.field_behavior) = OPTIONAL]; * @return The iamPolicyData. */ com.google.iam.v1.Policy getIamPolicyData(); /** - * - * *
      * Optional. A representation of the IAM policy.
      * 
* - * .google.iam.v1.Policy iam_policy_data = 3 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.iam.v1.Policy iam_policy_data = 3 [(.google.api.field_behavior) = OPTIONAL]; */ com.google.iam.v1.PolicyOrBuilder getIamPolicyDataOrBuilder(); } /** - * - * *
    * Manually constructed resource name. If the custom module evaluates against
    * only the resource data, you can omit the `iam_policy_data` field. If it
    * evaluates only the `iam_policy_data` field, you can omit the resource data.
    * 
* - * Protobuf type {@code - * google.cloud.securitycentermanagement.v1.SimulateSecurityHealthAnalyticsCustomModuleRequest.SimulatedResource} + * Protobuf type {@code google.cloud.securitycentermanagement.v1.SimulateSecurityHealthAnalyticsCustomModuleRequest.SimulatedResource} */ - public static final class SimulatedResource extends com.google.protobuf.GeneratedMessageV3 - implements + public static final class SimulatedResource extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.securitycentermanagement.v1.SimulateSecurityHealthAnalyticsCustomModuleRequest.SimulatedResource) SimulatedResourceOrBuilder { - private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use SimulatedResource.newBuilder() to construct. private SimulatedResource(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private SimulatedResource() { resourceType_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new SimulatedResource(); } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.securitycentermanagement.v1.SecurityCenterManagementProto - .internal_static_google_cloud_securitycentermanagement_v1_SimulateSecurityHealthAnalyticsCustomModuleRequest_SimulatedResource_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.securitycentermanagement.v1.SecurityCenterManagementProto.internal_static_google_cloud_securitycentermanagement_v1_SimulateSecurityHealthAnalyticsCustomModuleRequest_SimulatedResource_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.securitycentermanagement.v1.SecurityCenterManagementProto - .internal_static_google_cloud_securitycentermanagement_v1_SimulateSecurityHealthAnalyticsCustomModuleRequest_SimulatedResource_fieldAccessorTable + return com.google.cloud.securitycentermanagement.v1.SecurityCenterManagementProto.internal_static_google_cloud_securitycentermanagement_v1_SimulateSecurityHealthAnalyticsCustomModuleRequest_SimulatedResource_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.securitycentermanagement.v1 - .SimulateSecurityHealthAnalyticsCustomModuleRequest.SimulatedResource.class, - com.google.cloud.securitycentermanagement.v1 - .SimulateSecurityHealthAnalyticsCustomModuleRequest.SimulatedResource.Builder - .class); + com.google.cloud.securitycentermanagement.v1.SimulateSecurityHealthAnalyticsCustomModuleRequest.SimulatedResource.class, com.google.cloud.securitycentermanagement.v1.SimulateSecurityHealthAnalyticsCustomModuleRequest.SimulatedResource.Builder.class); } public static final int RESOURCE_TYPE_FIELD_NUMBER = 1; - @SuppressWarnings("serial") private volatile java.lang.Object resourceType_ = ""; /** - * - * *
      * Required. The type of the resource, for example,
      * `compute.googleapis.com/Disk`.
      * 
* * string resource_type = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @return The resourceType. */ @java.lang.Override @@ -251,30 +187,30 @@ public java.lang.String getResourceType() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); resourceType_ = s; return s; } } /** - * - * *
      * Required. The type of the resource, for example,
      * `compute.googleapis.com/Disk`.
      * 
* * string resource_type = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @return The bytes for resourceType. */ @java.lang.Override - public com.google.protobuf.ByteString getResourceTypeBytes() { + public com.google.protobuf.ByteString + getResourceTypeBytes() { java.lang.Object ref = resourceType_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); resourceType_ = b; return b; } else { @@ -285,16 +221,12 @@ public com.google.protobuf.ByteString getResourceTypeBytes() { public static final int RESOURCE_DATA_FIELD_NUMBER = 2; private com.google.protobuf.Struct resourceData_; /** - * - * *
      * Optional. A representation of the Google Cloud resource. Should match the
      * Google Cloud resource JSON format.
      * 
* - * .google.protobuf.Struct resource_data = 2 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.protobuf.Struct resource_data = 2 [(.google.api.field_behavior) = OPTIONAL]; * @return Whether the resourceData field is set. */ @java.lang.Override @@ -302,54 +234,39 @@ public boolean hasResourceData() { return resourceData_ != null; } /** - * - * *
      * Optional. A representation of the Google Cloud resource. Should match the
      * Google Cloud resource JSON format.
      * 
* - * .google.protobuf.Struct resource_data = 2 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.protobuf.Struct resource_data = 2 [(.google.api.field_behavior) = OPTIONAL]; * @return The resourceData. */ @java.lang.Override public com.google.protobuf.Struct getResourceData() { - return resourceData_ == null - ? com.google.protobuf.Struct.getDefaultInstance() - : resourceData_; + return resourceData_ == null ? com.google.protobuf.Struct.getDefaultInstance() : resourceData_; } /** - * - * *
      * Optional. A representation of the Google Cloud resource. Should match the
      * Google Cloud resource JSON format.
      * 
* - * .google.protobuf.Struct resource_data = 2 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.protobuf.Struct resource_data = 2 [(.google.api.field_behavior) = OPTIONAL]; */ @java.lang.Override public com.google.protobuf.StructOrBuilder getResourceDataOrBuilder() { - return resourceData_ == null - ? com.google.protobuf.Struct.getDefaultInstance() - : resourceData_; + return resourceData_ == null ? com.google.protobuf.Struct.getDefaultInstance() : resourceData_; } public static final int IAM_POLICY_DATA_FIELD_NUMBER = 3; private com.google.iam.v1.Policy iamPolicyData_; /** - * - * *
      * Optional. A representation of the IAM policy.
      * 
* - * .google.iam.v1.Policy iam_policy_data = 3 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.iam.v1.Policy iam_policy_data = 3 [(.google.api.field_behavior) = OPTIONAL]; * @return Whether the iamPolicyData field is set. */ @java.lang.Override @@ -357,42 +274,30 @@ public boolean hasIamPolicyData() { return iamPolicyData_ != null; } /** - * - * *
      * Optional. A representation of the IAM policy.
      * 
* - * .google.iam.v1.Policy iam_policy_data = 3 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.iam.v1.Policy iam_policy_data = 3 [(.google.api.field_behavior) = OPTIONAL]; * @return The iamPolicyData. */ @java.lang.Override public com.google.iam.v1.Policy getIamPolicyData() { - return iamPolicyData_ == null - ? com.google.iam.v1.Policy.getDefaultInstance() - : iamPolicyData_; + return iamPolicyData_ == null ? com.google.iam.v1.Policy.getDefaultInstance() : iamPolicyData_; } /** - * - * *
      * Optional. A representation of the IAM policy.
      * 
* - * .google.iam.v1.Policy iam_policy_data = 3 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.iam.v1.Policy iam_policy_data = 3 [(.google.api.field_behavior) = OPTIONAL]; */ @java.lang.Override public com.google.iam.v1.PolicyOrBuilder getIamPolicyDataOrBuilder() { - return iamPolicyData_ == null - ? com.google.iam.v1.Policy.getDefaultInstance() - : iamPolicyData_; + return iamPolicyData_ == null ? com.google.iam.v1.Policy.getDefaultInstance() : iamPolicyData_; } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -404,7 +309,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(resourceType_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, resourceType_); } @@ -427,10 +333,12 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, resourceType_); } if (resourceData_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getResourceData()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(2, getResourceData()); } if (iamPolicyData_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, getIamPolicyData()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(3, getIamPolicyData()); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -440,29 +348,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.securitycentermanagement.v1 - .SimulateSecurityHealthAnalyticsCustomModuleRequest.SimulatedResource)) { + if (!(obj instanceof com.google.cloud.securitycentermanagement.v1.SimulateSecurityHealthAnalyticsCustomModuleRequest.SimulatedResource)) { return super.equals(obj); } - com.google.cloud.securitycentermanagement.v1 - .SimulateSecurityHealthAnalyticsCustomModuleRequest.SimulatedResource - other = - (com.google.cloud.securitycentermanagement.v1 - .SimulateSecurityHealthAnalyticsCustomModuleRequest.SimulatedResource) - obj; + com.google.cloud.securitycentermanagement.v1.SimulateSecurityHealthAnalyticsCustomModuleRequest.SimulatedResource other = (com.google.cloud.securitycentermanagement.v1.SimulateSecurityHealthAnalyticsCustomModuleRequest.SimulatedResource) obj; - if (!getResourceType().equals(other.getResourceType())) return false; + if (!getResourceType() + .equals(other.getResourceType())) return false; if (hasResourceData() != other.hasResourceData()) return false; if (hasResourceData()) { - if (!getResourceData().equals(other.getResourceData())) return false; + if (!getResourceData() + .equals(other.getResourceData())) return false; } if (hasIamPolicyData() != other.hasIamPolicyData()) return false; if (hasIamPolicyData()) { - if (!getIamPolicyData().equals(other.getIamPolicyData())) return false; + if (!getIamPolicyData() + .equals(other.getIamPolicyData())) return false; } if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; @@ -490,115 +393,90 @@ public int hashCode() { return hash; } - public static com.google.cloud.securitycentermanagement.v1 - .SimulateSecurityHealthAnalyticsCustomModuleRequest.SimulatedResource - parseFrom(java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.securitycentermanagement.v1.SimulateSecurityHealthAnalyticsCustomModuleRequest.SimulatedResource parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - - public static com.google.cloud.securitycentermanagement.v1 - .SimulateSecurityHealthAnalyticsCustomModuleRequest.SimulatedResource - parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.securitycentermanagement.v1.SimulateSecurityHealthAnalyticsCustomModuleRequest.SimulatedResource 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.securitycentermanagement.v1 - .SimulateSecurityHealthAnalyticsCustomModuleRequest.SimulatedResource - parseFrom(com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.securitycentermanagement.v1.SimulateSecurityHealthAnalyticsCustomModuleRequest.SimulatedResource parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - - public static com.google.cloud.securitycentermanagement.v1 - .SimulateSecurityHealthAnalyticsCustomModuleRequest.SimulatedResource - parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.securitycentermanagement.v1.SimulateSecurityHealthAnalyticsCustomModuleRequest.SimulatedResource parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.securitycentermanagement.v1 - .SimulateSecurityHealthAnalyticsCustomModuleRequest.SimulatedResource - parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.securitycentermanagement.v1.SimulateSecurityHealthAnalyticsCustomModuleRequest.SimulatedResource parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - - public static com.google.cloud.securitycentermanagement.v1 - .SimulateSecurityHealthAnalyticsCustomModuleRequest.SimulatedResource - parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.securitycentermanagement.v1.SimulateSecurityHealthAnalyticsCustomModuleRequest.SimulatedResource parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.securitycentermanagement.v1 - .SimulateSecurityHealthAnalyticsCustomModuleRequest.SimulatedResource - parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.securitycentermanagement.v1.SimulateSecurityHealthAnalyticsCustomModuleRequest.SimulatedResource parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - - public static com.google.cloud.securitycentermanagement.v1 - .SimulateSecurityHealthAnalyticsCustomModuleRequest.SimulatedResource - 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.securitycentermanagement.v1.SimulateSecurityHealthAnalyticsCustomModuleRequest.SimulatedResource 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.securitycentermanagement.v1 - .SimulateSecurityHealthAnalyticsCustomModuleRequest.SimulatedResource - parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.securitycentermanagement.v1.SimulateSecurityHealthAnalyticsCustomModuleRequest.SimulatedResource parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.securitycentermanagement.v1 - .SimulateSecurityHealthAnalyticsCustomModuleRequest.SimulatedResource - parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + public static com.google.cloud.securitycentermanagement.v1.SimulateSecurityHealthAnalyticsCustomModuleRequest.SimulatedResource parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.securitycentermanagement.v1 - .SimulateSecurityHealthAnalyticsCustomModuleRequest.SimulatedResource - parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.securitycentermanagement.v1.SimulateSecurityHealthAnalyticsCustomModuleRequest.SimulatedResource parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - - public static com.google.cloud.securitycentermanagement.v1 - .SimulateSecurityHealthAnalyticsCustomModuleRequest.SimulatedResource - 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.securitycentermanagement.v1.SimulateSecurityHealthAnalyticsCustomModuleRequest.SimulatedResource 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.securitycentermanagement.v1 - .SimulateSecurityHealthAnalyticsCustomModuleRequest.SimulatedResource - prototype) { + public static Builder newBuilder(com.google.cloud.securitycentermanagement.v1.SimulateSecurityHealthAnalyticsCustomModuleRequest.SimulatedResource prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override @@ -608,49 +486,41 @@ protected Builder newBuilderForType( return builder; } /** - * - * *
      * Manually constructed resource name. If the custom module evaluates against
      * only the resource data, you can omit the `iam_policy_data` field. If it
      * evaluates only the `iam_policy_data` field, you can omit the resource data.
      * 
* - * Protobuf type {@code - * google.cloud.securitycentermanagement.v1.SimulateSecurityHealthAnalyticsCustomModuleRequest.SimulatedResource} + * Protobuf type {@code google.cloud.securitycentermanagement.v1.SimulateSecurityHealthAnalyticsCustomModuleRequest.SimulatedResource} */ - public static final class Builder - extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.securitycentermanagement.v1.SimulateSecurityHealthAnalyticsCustomModuleRequest.SimulatedResource) - com.google.cloud.securitycentermanagement.v1 - .SimulateSecurityHealthAnalyticsCustomModuleRequest.SimulatedResourceOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.securitycentermanagement.v1.SecurityCenterManagementProto - .internal_static_google_cloud_securitycentermanagement_v1_SimulateSecurityHealthAnalyticsCustomModuleRequest_SimulatedResource_descriptor; + com.google.cloud.securitycentermanagement.v1.SimulateSecurityHealthAnalyticsCustomModuleRequest.SimulatedResourceOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.securitycentermanagement.v1.SecurityCenterManagementProto.internal_static_google_cloud_securitycentermanagement_v1_SimulateSecurityHealthAnalyticsCustomModuleRequest_SimulatedResource_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.securitycentermanagement.v1.SecurityCenterManagementProto - .internal_static_google_cloud_securitycentermanagement_v1_SimulateSecurityHealthAnalyticsCustomModuleRequest_SimulatedResource_fieldAccessorTable + return com.google.cloud.securitycentermanagement.v1.SecurityCenterManagementProto.internal_static_google_cloud_securitycentermanagement_v1_SimulateSecurityHealthAnalyticsCustomModuleRequest_SimulatedResource_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.securitycentermanagement.v1 - .SimulateSecurityHealthAnalyticsCustomModuleRequest.SimulatedResource.class, - com.google.cloud.securitycentermanagement.v1 - .SimulateSecurityHealthAnalyticsCustomModuleRequest.SimulatedResource.Builder - .class); + com.google.cloud.securitycentermanagement.v1.SimulateSecurityHealthAnalyticsCustomModuleRequest.SimulatedResource.class, com.google.cloud.securitycentermanagement.v1.SimulateSecurityHealthAnalyticsCustomModuleRequest.SimulatedResource.Builder.class); } - // Construct using - // com.google.cloud.securitycentermanagement.v1.SimulateSecurityHealthAnalyticsCustomModuleRequest.SimulatedResource.newBuilder() - private Builder() {} + // Construct using com.google.cloud.securitycentermanagement.v1.SimulateSecurityHealthAnalyticsCustomModuleRequest.SimulatedResource.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(); @@ -670,27 +540,19 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.securitycentermanagement.v1.SecurityCenterManagementProto - .internal_static_google_cloud_securitycentermanagement_v1_SimulateSecurityHealthAnalyticsCustomModuleRequest_SimulatedResource_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.securitycentermanagement.v1.SecurityCenterManagementProto.internal_static_google_cloud_securitycentermanagement_v1_SimulateSecurityHealthAnalyticsCustomModuleRequest_SimulatedResource_descriptor; } @java.lang.Override - public com.google.cloud.securitycentermanagement.v1 - .SimulateSecurityHealthAnalyticsCustomModuleRequest.SimulatedResource - getDefaultInstanceForType() { - return com.google.cloud.securitycentermanagement.v1 - .SimulateSecurityHealthAnalyticsCustomModuleRequest.SimulatedResource - .getDefaultInstance(); + public com.google.cloud.securitycentermanagement.v1.SimulateSecurityHealthAnalyticsCustomModuleRequest.SimulatedResource getDefaultInstanceForType() { + return com.google.cloud.securitycentermanagement.v1.SimulateSecurityHealthAnalyticsCustomModuleRequest.SimulatedResource.getDefaultInstance(); } @java.lang.Override - public com.google.cloud.securitycentermanagement.v1 - .SimulateSecurityHealthAnalyticsCustomModuleRequest.SimulatedResource - build() { - com.google.cloud.securitycentermanagement.v1 - .SimulateSecurityHealthAnalyticsCustomModuleRequest.SimulatedResource - result = buildPartial(); + public com.google.cloud.securitycentermanagement.v1.SimulateSecurityHealthAnalyticsCustomModuleRequest.SimulatedResource build() { + com.google.cloud.securitycentermanagement.v1.SimulateSecurityHealthAnalyticsCustomModuleRequest.SimulatedResource result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } @@ -698,36 +560,27 @@ public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { } @java.lang.Override - public com.google.cloud.securitycentermanagement.v1 - .SimulateSecurityHealthAnalyticsCustomModuleRequest.SimulatedResource - buildPartial() { - com.google.cloud.securitycentermanagement.v1 - .SimulateSecurityHealthAnalyticsCustomModuleRequest.SimulatedResource - result = - new com.google.cloud.securitycentermanagement.v1 - .SimulateSecurityHealthAnalyticsCustomModuleRequest.SimulatedResource(this); - if (bitField0_ != 0) { - buildPartial0(result); - } + public com.google.cloud.securitycentermanagement.v1.SimulateSecurityHealthAnalyticsCustomModuleRequest.SimulatedResource buildPartial() { + com.google.cloud.securitycentermanagement.v1.SimulateSecurityHealthAnalyticsCustomModuleRequest.SimulatedResource result = new com.google.cloud.securitycentermanagement.v1.SimulateSecurityHealthAnalyticsCustomModuleRequest.SimulatedResource(this); + if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } - private void buildPartial0( - com.google.cloud.securitycentermanagement.v1 - .SimulateSecurityHealthAnalyticsCustomModuleRequest.SimulatedResource - result) { + private void buildPartial0(com.google.cloud.securitycentermanagement.v1.SimulateSecurityHealthAnalyticsCustomModuleRequest.SimulatedResource result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000001) != 0)) { result.resourceType_ = resourceType_; } if (((from_bitField0_ & 0x00000002) != 0)) { - result.resourceData_ = - resourceDataBuilder_ == null ? resourceData_ : resourceDataBuilder_.build(); + result.resourceData_ = resourceDataBuilder_ == null + ? resourceData_ + : resourceDataBuilder_.build(); } if (((from_bitField0_ & 0x00000004) != 0)) { - result.iamPolicyData_ = - iamPolicyDataBuilder_ == null ? iamPolicyData_ : iamPolicyDataBuilder_.build(); + result.iamPolicyData_ = iamPolicyDataBuilder_ == null + ? iamPolicyData_ + : iamPolicyDataBuilder_.build(); } } @@ -735,61 +588,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.securitycentermanagement.v1 - .SimulateSecurityHealthAnalyticsCustomModuleRequest.SimulatedResource) { - return mergeFrom( - (com.google.cloud.securitycentermanagement.v1 - .SimulateSecurityHealthAnalyticsCustomModuleRequest.SimulatedResource) - other); + if (other instanceof com.google.cloud.securitycentermanagement.v1.SimulateSecurityHealthAnalyticsCustomModuleRequest.SimulatedResource) { + return mergeFrom((com.google.cloud.securitycentermanagement.v1.SimulateSecurityHealthAnalyticsCustomModuleRequest.SimulatedResource)other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom( - com.google.cloud.securitycentermanagement.v1 - .SimulateSecurityHealthAnalyticsCustomModuleRequest.SimulatedResource - other) { - if (other - == com.google.cloud.securitycentermanagement.v1 - .SimulateSecurityHealthAnalyticsCustomModuleRequest.SimulatedResource - .getDefaultInstance()) return this; + public Builder mergeFrom(com.google.cloud.securitycentermanagement.v1.SimulateSecurityHealthAnalyticsCustomModuleRequest.SimulatedResource other) { + if (other == com.google.cloud.securitycentermanagement.v1.SimulateSecurityHealthAnalyticsCustomModuleRequest.SimulatedResource.getDefaultInstance()) return this; if (!other.getResourceType().isEmpty()) { resourceType_ = other.resourceType_; bitField0_ |= 0x00000001; @@ -827,31 +665,31 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: - { - resourceType_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 18: - { - input.readMessage(getResourceDataFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00000002; - break; - } // case 18 - case 26: - { - input.readMessage(getIamPolicyDataFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00000004; - break; - } // case 26 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: { + resourceType_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: { + input.readMessage( + getResourceDataFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 26: { + input.readMessage( + getIamPolicyDataFieldBuilder().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) { @@ -861,26 +699,23 @@ public Builder mergeFrom( } // finally return this; } - private int bitField0_; private java.lang.Object resourceType_ = ""; /** - * - * *
        * Required. The type of the resource, for example,
        * `compute.googleapis.com/Disk`.
        * 
* * string resource_type = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @return The resourceType. */ public java.lang.String getResourceType() { java.lang.Object ref = resourceType_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); resourceType_ = s; return s; @@ -889,22 +724,21 @@ public java.lang.String getResourceType() { } } /** - * - * *
        * Required. The type of the resource, for example,
        * `compute.googleapis.com/Disk`.
        * 
* * string resource_type = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @return The bytes for resourceType. */ - public com.google.protobuf.ByteString getResourceTypeBytes() { + public com.google.protobuf.ByteString + getResourceTypeBytes() { java.lang.Object ref = resourceType_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); resourceType_ = b; return b; } else { @@ -912,37 +746,30 @@ public com.google.protobuf.ByteString getResourceTypeBytes() { } } /** - * - * *
        * Required. The type of the resource, for example,
        * `compute.googleapis.com/Disk`.
        * 
* * string resource_type = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @param value The resourceType to set. * @return This builder for chaining. */ - public Builder setResourceType(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setResourceType( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } resourceType_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** - * - * *
        * Required. The type of the resource, for example,
        * `compute.googleapis.com/Disk`.
        * 
* * string resource_type = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @return This builder for chaining. */ public Builder clearResourceType() { @@ -952,22 +779,18 @@ public Builder clearResourceType() { return this; } /** - * - * *
        * Required. The type of the resource, for example,
        * `compute.googleapis.com/Disk`.
        * 
* * string resource_type = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @param value The bytes for resourceType to set. * @return This builder for chaining. */ - public Builder setResourceTypeBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setResourceTypeBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); resourceType_ = value; bitField0_ |= 0x00000001; @@ -977,58 +800,42 @@ public Builder setResourceTypeBytes(com.google.protobuf.ByteString value) { private com.google.protobuf.Struct resourceData_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Struct, - com.google.protobuf.Struct.Builder, - com.google.protobuf.StructOrBuilder> - resourceDataBuilder_; + com.google.protobuf.Struct, com.google.protobuf.Struct.Builder, com.google.protobuf.StructOrBuilder> resourceDataBuilder_; /** - * - * *
        * Optional. A representation of the Google Cloud resource. Should match the
        * Google Cloud resource JSON format.
        * 
* - * .google.protobuf.Struct resource_data = 2 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.protobuf.Struct resource_data = 2 [(.google.api.field_behavior) = OPTIONAL]; * @return Whether the resourceData field is set. */ public boolean hasResourceData() { return ((bitField0_ & 0x00000002) != 0); } /** - * - * *
        * Optional. A representation of the Google Cloud resource. Should match the
        * Google Cloud resource JSON format.
        * 
* - * .google.protobuf.Struct resource_data = 2 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.protobuf.Struct resource_data = 2 [(.google.api.field_behavior) = OPTIONAL]; * @return The resourceData. */ public com.google.protobuf.Struct getResourceData() { if (resourceDataBuilder_ == null) { - return resourceData_ == null - ? com.google.protobuf.Struct.getDefaultInstance() - : resourceData_; + return resourceData_ == null ? com.google.protobuf.Struct.getDefaultInstance() : resourceData_; } else { return resourceDataBuilder_.getMessage(); } } /** - * - * *
        * Optional. A representation of the Google Cloud resource. Should match the
        * Google Cloud resource JSON format.
        * 
* - * .google.protobuf.Struct resource_data = 2 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.protobuf.Struct resource_data = 2 [(.google.api.field_behavior) = OPTIONAL]; */ public Builder setResourceData(com.google.protobuf.Struct value) { if (resourceDataBuilder_ == null) { @@ -1044,17 +851,15 @@ public Builder setResourceData(com.google.protobuf.Struct value) { return this; } /** - * - * *
        * Optional. A representation of the Google Cloud resource. Should match the
        * Google Cloud resource JSON format.
        * 
* - * .google.protobuf.Struct resource_data = 2 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.protobuf.Struct resource_data = 2 [(.google.api.field_behavior) = OPTIONAL]; */ - public Builder setResourceData(com.google.protobuf.Struct.Builder builderForValue) { + public Builder setResourceData( + com.google.protobuf.Struct.Builder builderForValue) { if (resourceDataBuilder_ == null) { resourceData_ = builderForValue.build(); } else { @@ -1065,21 +870,18 @@ public Builder setResourceData(com.google.protobuf.Struct.Builder builderForValu return this; } /** - * - * *
        * Optional. A representation of the Google Cloud resource. Should match the
        * Google Cloud resource JSON format.
        * 
* - * .google.protobuf.Struct resource_data = 2 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.protobuf.Struct resource_data = 2 [(.google.api.field_behavior) = OPTIONAL]; */ public Builder mergeResourceData(com.google.protobuf.Struct value) { if (resourceDataBuilder_ == null) { - if (((bitField0_ & 0x00000002) != 0) - && resourceData_ != null - && resourceData_ != com.google.protobuf.Struct.getDefaultInstance()) { + if (((bitField0_ & 0x00000002) != 0) && + resourceData_ != null && + resourceData_ != com.google.protobuf.Struct.getDefaultInstance()) { getResourceDataBuilder().mergeFrom(value); } else { resourceData_ = value; @@ -1092,15 +894,12 @@ public Builder mergeResourceData(com.google.protobuf.Struct value) { return this; } /** - * - * *
        * Optional. A representation of the Google Cloud resource. Should match the
        * Google Cloud resource JSON format.
        * 
* - * .google.protobuf.Struct resource_data = 2 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.protobuf.Struct resource_data = 2 [(.google.api.field_behavior) = OPTIONAL]; */ public Builder clearResourceData() { bitField0_ = (bitField0_ & ~0x00000002); @@ -1113,15 +912,12 @@ public Builder clearResourceData() { return this; } /** - * - * *
        * Optional. A representation of the Google Cloud resource. Should match the
        * Google Cloud resource JSON format.
        * 
* - * .google.protobuf.Struct resource_data = 2 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.protobuf.Struct resource_data = 2 [(.google.api.field_behavior) = OPTIONAL]; */ public com.google.protobuf.Struct.Builder getResourceDataBuilder() { bitField0_ |= 0x00000002; @@ -1129,48 +925,38 @@ public com.google.protobuf.Struct.Builder getResourceDataBuilder() { return getResourceDataFieldBuilder().getBuilder(); } /** - * - * *
        * Optional. A representation of the Google Cloud resource. Should match the
        * Google Cloud resource JSON format.
        * 
* - * .google.protobuf.Struct resource_data = 2 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.protobuf.Struct resource_data = 2 [(.google.api.field_behavior) = OPTIONAL]; */ public com.google.protobuf.StructOrBuilder getResourceDataOrBuilder() { if (resourceDataBuilder_ != null) { return resourceDataBuilder_.getMessageOrBuilder(); } else { - return resourceData_ == null - ? com.google.protobuf.Struct.getDefaultInstance() - : resourceData_; + return resourceData_ == null ? + com.google.protobuf.Struct.getDefaultInstance() : resourceData_; } } /** - * - * *
        * Optional. A representation of the Google Cloud resource. Should match the
        * Google Cloud resource JSON format.
        * 
* - * .google.protobuf.Struct resource_data = 2 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.protobuf.Struct resource_data = 2 [(.google.api.field_behavior) = OPTIONAL]; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Struct, - com.google.protobuf.Struct.Builder, - com.google.protobuf.StructOrBuilder> + com.google.protobuf.Struct, com.google.protobuf.Struct.Builder, com.google.protobuf.StructOrBuilder> getResourceDataFieldBuilder() { if (resourceDataBuilder_ == null) { - resourceDataBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Struct, - com.google.protobuf.Struct.Builder, - com.google.protobuf.StructOrBuilder>( - getResourceData(), getParentForChildren(), isClean()); + resourceDataBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Struct, com.google.protobuf.Struct.Builder, com.google.protobuf.StructOrBuilder>( + getResourceData(), + getParentForChildren(), + isClean()); resourceData_ = null; } return resourceDataBuilder_; @@ -1178,55 +964,39 @@ public com.google.protobuf.StructOrBuilder getResourceDataOrBuilder() { private com.google.iam.v1.Policy iamPolicyData_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.iam.v1.Policy, - com.google.iam.v1.Policy.Builder, - com.google.iam.v1.PolicyOrBuilder> - iamPolicyDataBuilder_; + com.google.iam.v1.Policy, com.google.iam.v1.Policy.Builder, com.google.iam.v1.PolicyOrBuilder> iamPolicyDataBuilder_; /** - * - * *
        * Optional. A representation of the IAM policy.
        * 
* - * .google.iam.v1.Policy iam_policy_data = 3 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.iam.v1.Policy iam_policy_data = 3 [(.google.api.field_behavior) = OPTIONAL]; * @return Whether the iamPolicyData field is set. */ public boolean hasIamPolicyData() { return ((bitField0_ & 0x00000004) != 0); } /** - * - * *
        * Optional. A representation of the IAM policy.
        * 
* - * .google.iam.v1.Policy iam_policy_data = 3 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.iam.v1.Policy iam_policy_data = 3 [(.google.api.field_behavior) = OPTIONAL]; * @return The iamPolicyData. */ public com.google.iam.v1.Policy getIamPolicyData() { if (iamPolicyDataBuilder_ == null) { - return iamPolicyData_ == null - ? com.google.iam.v1.Policy.getDefaultInstance() - : iamPolicyData_; + return iamPolicyData_ == null ? com.google.iam.v1.Policy.getDefaultInstance() : iamPolicyData_; } else { return iamPolicyDataBuilder_.getMessage(); } } /** - * - * *
        * Optional. A representation of the IAM policy.
        * 
* - * .google.iam.v1.Policy iam_policy_data = 3 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.iam.v1.Policy iam_policy_data = 3 [(.google.api.field_behavior) = OPTIONAL]; */ public Builder setIamPolicyData(com.google.iam.v1.Policy value) { if (iamPolicyDataBuilder_ == null) { @@ -1242,16 +1012,14 @@ public Builder setIamPolicyData(com.google.iam.v1.Policy value) { return this; } /** - * - * *
        * Optional. A representation of the IAM policy.
        * 
* - * .google.iam.v1.Policy iam_policy_data = 3 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.iam.v1.Policy iam_policy_data = 3 [(.google.api.field_behavior) = OPTIONAL]; */ - public Builder setIamPolicyData(com.google.iam.v1.Policy.Builder builderForValue) { + public Builder setIamPolicyData( + com.google.iam.v1.Policy.Builder builderForValue) { if (iamPolicyDataBuilder_ == null) { iamPolicyData_ = builderForValue.build(); } else { @@ -1262,20 +1030,17 @@ public Builder setIamPolicyData(com.google.iam.v1.Policy.Builder builderForValue return this; } /** - * - * *
        * Optional. A representation of the IAM policy.
        * 
* - * .google.iam.v1.Policy iam_policy_data = 3 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.iam.v1.Policy iam_policy_data = 3 [(.google.api.field_behavior) = OPTIONAL]; */ public Builder mergeIamPolicyData(com.google.iam.v1.Policy value) { if (iamPolicyDataBuilder_ == null) { - if (((bitField0_ & 0x00000004) != 0) - && iamPolicyData_ != null - && iamPolicyData_ != com.google.iam.v1.Policy.getDefaultInstance()) { + if (((bitField0_ & 0x00000004) != 0) && + iamPolicyData_ != null && + iamPolicyData_ != com.google.iam.v1.Policy.getDefaultInstance()) { getIamPolicyDataBuilder().mergeFrom(value); } else { iamPolicyData_ = value; @@ -1288,14 +1053,11 @@ public Builder mergeIamPolicyData(com.google.iam.v1.Policy value) { return this; } /** - * - * *
        * Optional. A representation of the IAM policy.
        * 
* - * .google.iam.v1.Policy iam_policy_data = 3 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.iam.v1.Policy iam_policy_data = 3 [(.google.api.field_behavior) = OPTIONAL]; */ public Builder clearIamPolicyData() { bitField0_ = (bitField0_ & ~0x00000004); @@ -1308,14 +1070,11 @@ public Builder clearIamPolicyData() { return this; } /** - * - * *
        * Optional. A representation of the IAM policy.
        * 
* - * .google.iam.v1.Policy iam_policy_data = 3 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.iam.v1.Policy iam_policy_data = 3 [(.google.api.field_behavior) = OPTIONAL]; */ public com.google.iam.v1.Policy.Builder getIamPolicyDataBuilder() { bitField0_ |= 0x00000004; @@ -1323,51 +1082,40 @@ public com.google.iam.v1.Policy.Builder getIamPolicyDataBuilder() { return getIamPolicyDataFieldBuilder().getBuilder(); } /** - * - * *
        * Optional. A representation of the IAM policy.
        * 
* - * .google.iam.v1.Policy iam_policy_data = 3 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.iam.v1.Policy iam_policy_data = 3 [(.google.api.field_behavior) = OPTIONAL]; */ public com.google.iam.v1.PolicyOrBuilder getIamPolicyDataOrBuilder() { if (iamPolicyDataBuilder_ != null) { return iamPolicyDataBuilder_.getMessageOrBuilder(); } else { - return iamPolicyData_ == null - ? com.google.iam.v1.Policy.getDefaultInstance() - : iamPolicyData_; + return iamPolicyData_ == null ? + com.google.iam.v1.Policy.getDefaultInstance() : iamPolicyData_; } } /** - * - * *
        * Optional. A representation of the IAM policy.
        * 
* - * .google.iam.v1.Policy iam_policy_data = 3 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.iam.v1.Policy iam_policy_data = 3 [(.google.api.field_behavior) = OPTIONAL]; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.iam.v1.Policy, - com.google.iam.v1.Policy.Builder, - com.google.iam.v1.PolicyOrBuilder> + com.google.iam.v1.Policy, com.google.iam.v1.Policy.Builder, com.google.iam.v1.PolicyOrBuilder> getIamPolicyDataFieldBuilder() { if (iamPolicyDataBuilder_ == null) { - iamPolicyDataBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.iam.v1.Policy, - com.google.iam.v1.Policy.Builder, - com.google.iam.v1.PolicyOrBuilder>( - getIamPolicyData(), getParentForChildren(), isClean()); + iamPolicyDataBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.iam.v1.Policy, com.google.iam.v1.Policy.Builder, com.google.iam.v1.PolicyOrBuilder>( + getIamPolicyData(), + getParentForChildren(), + isClean()); iamPolicyData_ = null; } return iamPolicyDataBuilder_; } - @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { @@ -1380,48 +1128,41 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.securitycentermanagement.v1.SimulateSecurityHealthAnalyticsCustomModuleRequest.SimulatedResource) } // @@protoc_insertion_point(class_scope:google.cloud.securitycentermanagement.v1.SimulateSecurityHealthAnalyticsCustomModuleRequest.SimulatedResource) - private static final com.google.cloud.securitycentermanagement.v1 - .SimulateSecurityHealthAnalyticsCustomModuleRequest.SimulatedResource - DEFAULT_INSTANCE; - + private static final com.google.cloud.securitycentermanagement.v1.SimulateSecurityHealthAnalyticsCustomModuleRequest.SimulatedResource DEFAULT_INSTANCE; static { - DEFAULT_INSTANCE = - new com.google.cloud.securitycentermanagement.v1 - .SimulateSecurityHealthAnalyticsCustomModuleRequest.SimulatedResource(); + DEFAULT_INSTANCE = new com.google.cloud.securitycentermanagement.v1.SimulateSecurityHealthAnalyticsCustomModuleRequest.SimulatedResource(); } - public static com.google.cloud.securitycentermanagement.v1 - .SimulateSecurityHealthAnalyticsCustomModuleRequest.SimulatedResource - getDefaultInstance() { + public static com.google.cloud.securitycentermanagement.v1.SimulateSecurityHealthAnalyticsCustomModuleRequest.SimulatedResource getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public SimulatedResource parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException() - .setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public SimulatedResource parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1433,20 +1174,16 @@ public com.google.protobuf.Parser getParserForType() { } @java.lang.Override - public com.google.cloud.securitycentermanagement.v1 - .SimulateSecurityHealthAnalyticsCustomModuleRequest.SimulatedResource - getDefaultInstanceForType() { + public com.google.cloud.securitycentermanagement.v1.SimulateSecurityHealthAnalyticsCustomModuleRequest.SimulatedResource getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } public static final int PARENT_FIELD_NUMBER = 1; - @SuppressWarnings("serial") private volatile java.lang.Object parent_ = ""; /** - * - * *
    * Required. The relative resource name of the organization, project, or
    * folder. For more information about relative resource names, see [Relative
@@ -1456,7 +1193,6 @@ public com.google.protobuf.Parser getParserForType() {
    * 
* * string parent = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @return The parent. */ @java.lang.Override @@ -1465,15 +1201,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 relative resource name of the organization, project, or
    * folder. For more information about relative resource names, see [Relative
@@ -1483,15 +1218,16 @@ public java.lang.String getParent() {
    * 
* * string parent = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @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 { @@ -1502,16 +1238,11 @@ public com.google.protobuf.ByteString getParentBytes() { public static final int CUSTOM_CONFIG_FIELD_NUMBER = 2; private com.google.cloud.securitycentermanagement.v1.CustomConfig customConfig_; /** - * - * *
    * Required. The custom configuration that you need to test.
    * 
* - * - * .google.cloud.securitycentermanagement.v1.CustomConfig custom_config = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.securitycentermanagement.v1.CustomConfig custom_config = 2 [(.google.api.field_behavior) = REQUIRED]; * @return Whether the customConfig field is set. */ @java.lang.Override @@ -1519,58 +1250,37 @@ public boolean hasCustomConfig() { return customConfig_ != null; } /** - * - * *
    * Required. The custom configuration that you need to test.
    * 
* - * - * .google.cloud.securitycentermanagement.v1.CustomConfig custom_config = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.securitycentermanagement.v1.CustomConfig custom_config = 2 [(.google.api.field_behavior) = REQUIRED]; * @return The customConfig. */ @java.lang.Override public com.google.cloud.securitycentermanagement.v1.CustomConfig getCustomConfig() { - return customConfig_ == null - ? com.google.cloud.securitycentermanagement.v1.CustomConfig.getDefaultInstance() - : customConfig_; + return customConfig_ == null ? com.google.cloud.securitycentermanagement.v1.CustomConfig.getDefaultInstance() : customConfig_; } /** - * - * *
    * Required. The custom configuration that you need to test.
    * 
* - * - * .google.cloud.securitycentermanagement.v1.CustomConfig custom_config = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.securitycentermanagement.v1.CustomConfig custom_config = 2 [(.google.api.field_behavior) = REQUIRED]; */ @java.lang.Override - public com.google.cloud.securitycentermanagement.v1.CustomConfigOrBuilder - getCustomConfigOrBuilder() { - return customConfig_ == null - ? com.google.cloud.securitycentermanagement.v1.CustomConfig.getDefaultInstance() - : customConfig_; + public com.google.cloud.securitycentermanagement.v1.CustomConfigOrBuilder getCustomConfigOrBuilder() { + return customConfig_ == null ? com.google.cloud.securitycentermanagement.v1.CustomConfig.getDefaultInstance() : customConfig_; } public static final int RESOURCE_FIELD_NUMBER = 3; - private com.google.cloud.securitycentermanagement.v1 - .SimulateSecurityHealthAnalyticsCustomModuleRequest.SimulatedResource - resource_; + private com.google.cloud.securitycentermanagement.v1.SimulateSecurityHealthAnalyticsCustomModuleRequest.SimulatedResource resource_; /** - * - * *
    * Required. Resource data to simulate custom module against.
    * 
* - * - * .google.cloud.securitycentermanagement.v1.SimulateSecurityHealthAnalyticsCustomModuleRequest.SimulatedResource resource = 3 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.securitycentermanagement.v1.SimulateSecurityHealthAnalyticsCustomModuleRequest.SimulatedResource resource = 3 [(.google.api.field_behavior) = REQUIRED]; * @return Whether the resource field is set. */ @java.lang.Override @@ -1578,52 +1288,30 @@ public boolean hasResource() { return resource_ != null; } /** - * - * *
    * Required. Resource data to simulate custom module against.
    * 
* - * - * .google.cloud.securitycentermanagement.v1.SimulateSecurityHealthAnalyticsCustomModuleRequest.SimulatedResource resource = 3 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.securitycentermanagement.v1.SimulateSecurityHealthAnalyticsCustomModuleRequest.SimulatedResource resource = 3 [(.google.api.field_behavior) = REQUIRED]; * @return The resource. */ @java.lang.Override - public com.google.cloud.securitycentermanagement.v1 - .SimulateSecurityHealthAnalyticsCustomModuleRequest.SimulatedResource - getResource() { - return resource_ == null - ? com.google.cloud.securitycentermanagement.v1 - .SimulateSecurityHealthAnalyticsCustomModuleRequest.SimulatedResource - .getDefaultInstance() - : resource_; + public com.google.cloud.securitycentermanagement.v1.SimulateSecurityHealthAnalyticsCustomModuleRequest.SimulatedResource getResource() { + return resource_ == null ? com.google.cloud.securitycentermanagement.v1.SimulateSecurityHealthAnalyticsCustomModuleRequest.SimulatedResource.getDefaultInstance() : resource_; } /** - * - * *
    * Required. Resource data to simulate custom module against.
    * 
* - * - * .google.cloud.securitycentermanagement.v1.SimulateSecurityHealthAnalyticsCustomModuleRequest.SimulatedResource resource = 3 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.securitycentermanagement.v1.SimulateSecurityHealthAnalyticsCustomModuleRequest.SimulatedResource resource = 3 [(.google.api.field_behavior) = REQUIRED]; */ @java.lang.Override - public com.google.cloud.securitycentermanagement.v1 - .SimulateSecurityHealthAnalyticsCustomModuleRequest.SimulatedResourceOrBuilder - getResourceOrBuilder() { - return resource_ == null - ? com.google.cloud.securitycentermanagement.v1 - .SimulateSecurityHealthAnalyticsCustomModuleRequest.SimulatedResource - .getDefaultInstance() - : resource_; + public com.google.cloud.securitycentermanagement.v1.SimulateSecurityHealthAnalyticsCustomModuleRequest.SimulatedResourceOrBuilder getResourceOrBuilder() { + return resource_ == null ? com.google.cloud.securitycentermanagement.v1.SimulateSecurityHealthAnalyticsCustomModuleRequest.SimulatedResource.getDefaultInstance() : resource_; } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -1635,7 +1323,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.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_); } @@ -1658,10 +1347,12 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, parent_); } if (customConfig_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getCustomConfig()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(2, getCustomConfig()); } if (resource_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, getResource()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(3, getResource()); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -1671,28 +1362,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.securitycentermanagement.v1 - .SimulateSecurityHealthAnalyticsCustomModuleRequest)) { + if (!(obj instanceof com.google.cloud.securitycentermanagement.v1.SimulateSecurityHealthAnalyticsCustomModuleRequest)) { return super.equals(obj); } - com.google.cloud.securitycentermanagement.v1.SimulateSecurityHealthAnalyticsCustomModuleRequest - other = - (com.google.cloud.securitycentermanagement.v1 - .SimulateSecurityHealthAnalyticsCustomModuleRequest) - obj; + com.google.cloud.securitycentermanagement.v1.SimulateSecurityHealthAnalyticsCustomModuleRequest other = (com.google.cloud.securitycentermanagement.v1.SimulateSecurityHealthAnalyticsCustomModuleRequest) obj; - if (!getParent().equals(other.getParent())) return false; + if (!getParent() + .equals(other.getParent())) return false; if (hasCustomConfig() != other.hasCustomConfig()) return false; if (hasCustomConfig()) { - if (!getCustomConfig().equals(other.getCustomConfig())) return false; + if (!getCustomConfig() + .equals(other.getCustomConfig())) return false; } if (hasResource() != other.hasResource()) return false; if (hasResource()) { - if (!getResource().equals(other.getResource())) return false; + if (!getResource() + .equals(other.getResource())) return false; } if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; @@ -1720,163 +1407,133 @@ public int hashCode() { return hash; } - public static com.google.cloud.securitycentermanagement.v1 - .SimulateSecurityHealthAnalyticsCustomModuleRequest - parseFrom(java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.securitycentermanagement.v1.SimulateSecurityHealthAnalyticsCustomModuleRequest parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - - public static com.google.cloud.securitycentermanagement.v1 - .SimulateSecurityHealthAnalyticsCustomModuleRequest - parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.securitycentermanagement.v1.SimulateSecurityHealthAnalyticsCustomModuleRequest 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.securitycentermanagement.v1 - .SimulateSecurityHealthAnalyticsCustomModuleRequest - parseFrom(com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.securitycentermanagement.v1.SimulateSecurityHealthAnalyticsCustomModuleRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - - public static com.google.cloud.securitycentermanagement.v1 - .SimulateSecurityHealthAnalyticsCustomModuleRequest - parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.securitycentermanagement.v1.SimulateSecurityHealthAnalyticsCustomModuleRequest parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.securitycentermanagement.v1 - .SimulateSecurityHealthAnalyticsCustomModuleRequest - parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.securitycentermanagement.v1.SimulateSecurityHealthAnalyticsCustomModuleRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - - public static com.google.cloud.securitycentermanagement.v1 - .SimulateSecurityHealthAnalyticsCustomModuleRequest - parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.securitycentermanagement.v1.SimulateSecurityHealthAnalyticsCustomModuleRequest parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.securitycentermanagement.v1 - .SimulateSecurityHealthAnalyticsCustomModuleRequest - parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.securitycentermanagement.v1.SimulateSecurityHealthAnalyticsCustomModuleRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - - public static com.google.cloud.securitycentermanagement.v1 - .SimulateSecurityHealthAnalyticsCustomModuleRequest - 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.securitycentermanagement.v1.SimulateSecurityHealthAnalyticsCustomModuleRequest 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.securitycentermanagement.v1 - .SimulateSecurityHealthAnalyticsCustomModuleRequest - parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.securitycentermanagement.v1.SimulateSecurityHealthAnalyticsCustomModuleRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.securitycentermanagement.v1 - .SimulateSecurityHealthAnalyticsCustomModuleRequest - parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + public static com.google.cloud.securitycentermanagement.v1.SimulateSecurityHealthAnalyticsCustomModuleRequest parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.securitycentermanagement.v1 - .SimulateSecurityHealthAnalyticsCustomModuleRequest - parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.securitycentermanagement.v1.SimulateSecurityHealthAnalyticsCustomModuleRequest parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - - public static com.google.cloud.securitycentermanagement.v1 - .SimulateSecurityHealthAnalyticsCustomModuleRequest - 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.securitycentermanagement.v1.SimulateSecurityHealthAnalyticsCustomModuleRequest 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.securitycentermanagement.v1 - .SimulateSecurityHealthAnalyticsCustomModuleRequest - prototype) { + public static Builder newBuilder(com.google.cloud.securitycentermanagement.v1.SimulateSecurityHealthAnalyticsCustomModuleRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected 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 to simulate a CustomConfig against a given test resource.
    * Maximum size of the request is 4 MB by default.
    * 
* - * Protobuf type {@code - * google.cloud.securitycentermanagement.v1.SimulateSecurityHealthAnalyticsCustomModuleRequest} + * Protobuf type {@code google.cloud.securitycentermanagement.v1.SimulateSecurityHealthAnalyticsCustomModuleRequest} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.securitycentermanagement.v1.SimulateSecurityHealthAnalyticsCustomModuleRequest) - com.google.cloud.securitycentermanagement.v1 - .SimulateSecurityHealthAnalyticsCustomModuleRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.securitycentermanagement.v1.SecurityCenterManagementProto - .internal_static_google_cloud_securitycentermanagement_v1_SimulateSecurityHealthAnalyticsCustomModuleRequest_descriptor; + com.google.cloud.securitycentermanagement.v1.SimulateSecurityHealthAnalyticsCustomModuleRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.securitycentermanagement.v1.SecurityCenterManagementProto.internal_static_google_cloud_securitycentermanagement_v1_SimulateSecurityHealthAnalyticsCustomModuleRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.securitycentermanagement.v1.SecurityCenterManagementProto - .internal_static_google_cloud_securitycentermanagement_v1_SimulateSecurityHealthAnalyticsCustomModuleRequest_fieldAccessorTable + return com.google.cloud.securitycentermanagement.v1.SecurityCenterManagementProto.internal_static_google_cloud_securitycentermanagement_v1_SimulateSecurityHealthAnalyticsCustomModuleRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.securitycentermanagement.v1 - .SimulateSecurityHealthAnalyticsCustomModuleRequest.class, - com.google.cloud.securitycentermanagement.v1 - .SimulateSecurityHealthAnalyticsCustomModuleRequest.Builder.class); + com.google.cloud.securitycentermanagement.v1.SimulateSecurityHealthAnalyticsCustomModuleRequest.class, com.google.cloud.securitycentermanagement.v1.SimulateSecurityHealthAnalyticsCustomModuleRequest.Builder.class); } - // Construct using - // com.google.cloud.securitycentermanagement.v1.SimulateSecurityHealthAnalyticsCustomModuleRequest.newBuilder() - private Builder() {} + // Construct using com.google.cloud.securitycentermanagement.v1.SimulateSecurityHealthAnalyticsCustomModuleRequest.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(); @@ -1896,26 +1553,19 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.securitycentermanagement.v1.SecurityCenterManagementProto - .internal_static_google_cloud_securitycentermanagement_v1_SimulateSecurityHealthAnalyticsCustomModuleRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.securitycentermanagement.v1.SecurityCenterManagementProto.internal_static_google_cloud_securitycentermanagement_v1_SimulateSecurityHealthAnalyticsCustomModuleRequest_descriptor; } @java.lang.Override - public com.google.cloud.securitycentermanagement.v1 - .SimulateSecurityHealthAnalyticsCustomModuleRequest - getDefaultInstanceForType() { - return com.google.cloud.securitycentermanagement.v1 - .SimulateSecurityHealthAnalyticsCustomModuleRequest.getDefaultInstance(); + public com.google.cloud.securitycentermanagement.v1.SimulateSecurityHealthAnalyticsCustomModuleRequest getDefaultInstanceForType() { + return com.google.cloud.securitycentermanagement.v1.SimulateSecurityHealthAnalyticsCustomModuleRequest.getDefaultInstance(); } @java.lang.Override - public com.google.cloud.securitycentermanagement.v1 - .SimulateSecurityHealthAnalyticsCustomModuleRequest - build() { - com.google.cloud.securitycentermanagement.v1 - .SimulateSecurityHealthAnalyticsCustomModuleRequest - result = buildPartial(); + public com.google.cloud.securitycentermanagement.v1.SimulateSecurityHealthAnalyticsCustomModuleRequest build() { + com.google.cloud.securitycentermanagement.v1.SimulateSecurityHealthAnalyticsCustomModuleRequest result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } @@ -1923,35 +1573,27 @@ public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { } @java.lang.Override - public com.google.cloud.securitycentermanagement.v1 - .SimulateSecurityHealthAnalyticsCustomModuleRequest - buildPartial() { - com.google.cloud.securitycentermanagement.v1 - .SimulateSecurityHealthAnalyticsCustomModuleRequest - result = - new com.google.cloud.securitycentermanagement.v1 - .SimulateSecurityHealthAnalyticsCustomModuleRequest(this); - if (bitField0_ != 0) { - buildPartial0(result); - } + public com.google.cloud.securitycentermanagement.v1.SimulateSecurityHealthAnalyticsCustomModuleRequest buildPartial() { + com.google.cloud.securitycentermanagement.v1.SimulateSecurityHealthAnalyticsCustomModuleRequest result = new com.google.cloud.securitycentermanagement.v1.SimulateSecurityHealthAnalyticsCustomModuleRequest(this); + if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } - private void buildPartial0( - com.google.cloud.securitycentermanagement.v1 - .SimulateSecurityHealthAnalyticsCustomModuleRequest - result) { + private void buildPartial0(com.google.cloud.securitycentermanagement.v1.SimulateSecurityHealthAnalyticsCustomModuleRequest result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000001) != 0)) { result.parent_ = parent_; } if (((from_bitField0_ & 0x00000002) != 0)) { - result.customConfig_ = - customConfigBuilder_ == null ? customConfig_ : customConfigBuilder_.build(); + result.customConfig_ = customConfigBuilder_ == null + ? customConfig_ + : customConfigBuilder_.build(); } if (((from_bitField0_ & 0x00000004) != 0)) { - result.resource_ = resourceBuilder_ == null ? resource_ : resourceBuilder_.build(); + result.resource_ = resourceBuilder_ == null + ? resource_ + : resourceBuilder_.build(); } } @@ -1959,58 +1601,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.securitycentermanagement.v1 - .SimulateSecurityHealthAnalyticsCustomModuleRequest) { - return mergeFrom( - (com.google.cloud.securitycentermanagement.v1 - .SimulateSecurityHealthAnalyticsCustomModuleRequest) - other); + if (other instanceof com.google.cloud.securitycentermanagement.v1.SimulateSecurityHealthAnalyticsCustomModuleRequest) { + return mergeFrom((com.google.cloud.securitycentermanagement.v1.SimulateSecurityHealthAnalyticsCustomModuleRequest)other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom( - com.google.cloud.securitycentermanagement.v1 - .SimulateSecurityHealthAnalyticsCustomModuleRequest - other) { - if (other - == com.google.cloud.securitycentermanagement.v1 - .SimulateSecurityHealthAnalyticsCustomModuleRequest.getDefaultInstance()) return this; + public Builder mergeFrom(com.google.cloud.securitycentermanagement.v1.SimulateSecurityHealthAnalyticsCustomModuleRequest other) { + if (other == com.google.cloud.securitycentermanagement.v1.SimulateSecurityHealthAnalyticsCustomModuleRequest.getDefaultInstance()) return this; if (!other.getParent().isEmpty()) { parent_ = other.parent_; bitField0_ |= 0x00000001; @@ -2048,31 +1678,31 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: - { - parent_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 18: - { - input.readMessage(getCustomConfigFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00000002; - break; - } // case 18 - case 26: - { - input.readMessage(getResourceFieldBuilder().getBuilder(), extensionRegistry); - 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( + getCustomConfigFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 26: { + input.readMessage( + getResourceFieldBuilder().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) { @@ -2082,13 +1712,10 @@ public Builder mergeFrom( } // finally return this; } - private int bitField0_; private java.lang.Object parent_ = ""; /** - * - * *
      * Required. The relative resource name of the organization, project, or
      * folder. For more information about relative resource names, see [Relative
@@ -2098,13 +1725,13 @@ public Builder mergeFrom(
      * 
* * string parent = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @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; @@ -2113,8 +1740,6 @@ public java.lang.String getParent() { } } /** - * - * *
      * Required. The relative resource name of the organization, project, or
      * folder. For more information about relative resource names, see [Relative
@@ -2124,14 +1749,15 @@ public java.lang.String getParent() {
      * 
* * string parent = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @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 { @@ -2139,8 +1765,6 @@ public com.google.protobuf.ByteString getParentBytes() { } } /** - * - * *
      * Required. The relative resource name of the organization, project, or
      * folder. For more information about relative resource names, see [Relative
@@ -2150,22 +1774,18 @@ public com.google.protobuf.ByteString getParentBytes() {
      * 
* * string parent = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @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 relative resource name of the organization, project, or
      * folder. For more information about relative resource names, see [Relative
@@ -2175,7 +1795,6 @@ public Builder setParent(java.lang.String value) {
      * 
* * string parent = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @return This builder for chaining. */ public Builder clearParent() { @@ -2185,8 +1804,6 @@ public Builder clearParent() { return this; } /** - * - * *
      * Required. The relative resource name of the organization, project, or
      * folder. For more information about relative resource names, see [Relative
@@ -2196,14 +1813,12 @@ public Builder clearParent() {
      * 
* * string parent = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @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; @@ -2213,61 +1828,41 @@ public Builder setParentBytes(com.google.protobuf.ByteString value) { private com.google.cloud.securitycentermanagement.v1.CustomConfig customConfig_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.securitycentermanagement.v1.CustomConfig, - com.google.cloud.securitycentermanagement.v1.CustomConfig.Builder, - com.google.cloud.securitycentermanagement.v1.CustomConfigOrBuilder> - customConfigBuilder_; + com.google.cloud.securitycentermanagement.v1.CustomConfig, com.google.cloud.securitycentermanagement.v1.CustomConfig.Builder, com.google.cloud.securitycentermanagement.v1.CustomConfigOrBuilder> customConfigBuilder_; /** - * - * *
      * Required. The custom configuration that you need to test.
      * 
* - * - * .google.cloud.securitycentermanagement.v1.CustomConfig custom_config = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.securitycentermanagement.v1.CustomConfig custom_config = 2 [(.google.api.field_behavior) = REQUIRED]; * @return Whether the customConfig field is set. */ public boolean hasCustomConfig() { return ((bitField0_ & 0x00000002) != 0); } /** - * - * *
      * Required. The custom configuration that you need to test.
      * 
* - * - * .google.cloud.securitycentermanagement.v1.CustomConfig custom_config = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.securitycentermanagement.v1.CustomConfig custom_config = 2 [(.google.api.field_behavior) = REQUIRED]; * @return The customConfig. */ public com.google.cloud.securitycentermanagement.v1.CustomConfig getCustomConfig() { if (customConfigBuilder_ == null) { - return customConfig_ == null - ? com.google.cloud.securitycentermanagement.v1.CustomConfig.getDefaultInstance() - : customConfig_; + return customConfig_ == null ? com.google.cloud.securitycentermanagement.v1.CustomConfig.getDefaultInstance() : customConfig_; } else { return customConfigBuilder_.getMessage(); } } /** - * - * *
      * Required. The custom configuration that you need to test.
      * 
* - * - * .google.cloud.securitycentermanagement.v1.CustomConfig custom_config = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.securitycentermanagement.v1.CustomConfig custom_config = 2 [(.google.api.field_behavior) = REQUIRED]; */ - public Builder setCustomConfig( - com.google.cloud.securitycentermanagement.v1.CustomConfig value) { + public Builder setCustomConfig(com.google.cloud.securitycentermanagement.v1.CustomConfig value) { if (customConfigBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -2281,15 +1876,11 @@ public Builder setCustomConfig( return this; } /** - * - * *
      * Required. The custom configuration that you need to test.
      * 
* - * - * .google.cloud.securitycentermanagement.v1.CustomConfig custom_config = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.securitycentermanagement.v1.CustomConfig custom_config = 2 [(.google.api.field_behavior) = REQUIRED]; */ public Builder setCustomConfig( com.google.cloud.securitycentermanagement.v1.CustomConfig.Builder builderForValue) { @@ -2303,23 +1894,17 @@ public Builder setCustomConfig( return this; } /** - * - * *
      * Required. The custom configuration that you need to test.
      * 
* - * - * .google.cloud.securitycentermanagement.v1.CustomConfig custom_config = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.securitycentermanagement.v1.CustomConfig custom_config = 2 [(.google.api.field_behavior) = REQUIRED]; */ - public Builder mergeCustomConfig( - com.google.cloud.securitycentermanagement.v1.CustomConfig value) { + public Builder mergeCustomConfig(com.google.cloud.securitycentermanagement.v1.CustomConfig value) { if (customConfigBuilder_ == null) { - if (((bitField0_ & 0x00000002) != 0) - && customConfig_ != null - && customConfig_ - != com.google.cloud.securitycentermanagement.v1.CustomConfig.getDefaultInstance()) { + if (((bitField0_ & 0x00000002) != 0) && + customConfig_ != null && + customConfig_ != com.google.cloud.securitycentermanagement.v1.CustomConfig.getDefaultInstance()) { getCustomConfigBuilder().mergeFrom(value); } else { customConfig_ = value; @@ -2332,15 +1917,11 @@ public Builder mergeCustomConfig( return this; } /** - * - * *
      * Required. The custom configuration that you need to test.
      * 
* - * - * .google.cloud.securitycentermanagement.v1.CustomConfig custom_config = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.securitycentermanagement.v1.CustomConfig custom_config = 2 [(.google.api.field_behavior) = REQUIRED]; */ public Builder clearCustomConfig() { bitField0_ = (bitField0_ & ~0x00000002); @@ -2353,139 +1934,90 @@ public Builder clearCustomConfig() { return this; } /** - * - * *
      * Required. The custom configuration that you need to test.
      * 
* - * - * .google.cloud.securitycentermanagement.v1.CustomConfig custom_config = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.securitycentermanagement.v1.CustomConfig custom_config = 2 [(.google.api.field_behavior) = REQUIRED]; */ - public com.google.cloud.securitycentermanagement.v1.CustomConfig.Builder - getCustomConfigBuilder() { + public com.google.cloud.securitycentermanagement.v1.CustomConfig.Builder getCustomConfigBuilder() { bitField0_ |= 0x00000002; onChanged(); return getCustomConfigFieldBuilder().getBuilder(); } /** - * - * *
      * Required. The custom configuration that you need to test.
      * 
* - * - * .google.cloud.securitycentermanagement.v1.CustomConfig custom_config = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.securitycentermanagement.v1.CustomConfig custom_config = 2 [(.google.api.field_behavior) = REQUIRED]; */ - public com.google.cloud.securitycentermanagement.v1.CustomConfigOrBuilder - getCustomConfigOrBuilder() { + public com.google.cloud.securitycentermanagement.v1.CustomConfigOrBuilder getCustomConfigOrBuilder() { if (customConfigBuilder_ != null) { return customConfigBuilder_.getMessageOrBuilder(); } else { - return customConfig_ == null - ? com.google.cloud.securitycentermanagement.v1.CustomConfig.getDefaultInstance() - : customConfig_; + return customConfig_ == null ? + com.google.cloud.securitycentermanagement.v1.CustomConfig.getDefaultInstance() : customConfig_; } } /** - * - * *
      * Required. The custom configuration that you need to test.
      * 
* - * - * .google.cloud.securitycentermanagement.v1.CustomConfig custom_config = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.securitycentermanagement.v1.CustomConfig custom_config = 2 [(.google.api.field_behavior) = REQUIRED]; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.securitycentermanagement.v1.CustomConfig, - com.google.cloud.securitycentermanagement.v1.CustomConfig.Builder, - com.google.cloud.securitycentermanagement.v1.CustomConfigOrBuilder> + com.google.cloud.securitycentermanagement.v1.CustomConfig, com.google.cloud.securitycentermanagement.v1.CustomConfig.Builder, com.google.cloud.securitycentermanagement.v1.CustomConfigOrBuilder> getCustomConfigFieldBuilder() { if (customConfigBuilder_ == null) { - customConfigBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.securitycentermanagement.v1.CustomConfig, - com.google.cloud.securitycentermanagement.v1.CustomConfig.Builder, - com.google.cloud.securitycentermanagement.v1.CustomConfigOrBuilder>( - getCustomConfig(), getParentForChildren(), isClean()); + customConfigBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.securitycentermanagement.v1.CustomConfig, com.google.cloud.securitycentermanagement.v1.CustomConfig.Builder, com.google.cloud.securitycentermanagement.v1.CustomConfigOrBuilder>( + getCustomConfig(), + getParentForChildren(), + isClean()); customConfig_ = null; } return customConfigBuilder_; } - private com.google.cloud.securitycentermanagement.v1 - .SimulateSecurityHealthAnalyticsCustomModuleRequest.SimulatedResource - resource_; + private com.google.cloud.securitycentermanagement.v1.SimulateSecurityHealthAnalyticsCustomModuleRequest.SimulatedResource resource_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.securitycentermanagement.v1 - .SimulateSecurityHealthAnalyticsCustomModuleRequest.SimulatedResource, - com.google.cloud.securitycentermanagement.v1 - .SimulateSecurityHealthAnalyticsCustomModuleRequest.SimulatedResource.Builder, - com.google.cloud.securitycentermanagement.v1 - .SimulateSecurityHealthAnalyticsCustomModuleRequest.SimulatedResourceOrBuilder> - resourceBuilder_; + com.google.cloud.securitycentermanagement.v1.SimulateSecurityHealthAnalyticsCustomModuleRequest.SimulatedResource, com.google.cloud.securitycentermanagement.v1.SimulateSecurityHealthAnalyticsCustomModuleRequest.SimulatedResource.Builder, com.google.cloud.securitycentermanagement.v1.SimulateSecurityHealthAnalyticsCustomModuleRequest.SimulatedResourceOrBuilder> resourceBuilder_; /** - * - * *
      * Required. Resource data to simulate custom module against.
      * 
* - * - * .google.cloud.securitycentermanagement.v1.SimulateSecurityHealthAnalyticsCustomModuleRequest.SimulatedResource resource = 3 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.securitycentermanagement.v1.SimulateSecurityHealthAnalyticsCustomModuleRequest.SimulatedResource resource = 3 [(.google.api.field_behavior) = REQUIRED]; * @return Whether the resource field is set. */ public boolean hasResource() { return ((bitField0_ & 0x00000004) != 0); } /** - * - * *
      * Required. Resource data to simulate custom module against.
      * 
* - * - * .google.cloud.securitycentermanagement.v1.SimulateSecurityHealthAnalyticsCustomModuleRequest.SimulatedResource resource = 3 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.securitycentermanagement.v1.SimulateSecurityHealthAnalyticsCustomModuleRequest.SimulatedResource resource = 3 [(.google.api.field_behavior) = REQUIRED]; * @return The resource. */ - public com.google.cloud.securitycentermanagement.v1 - .SimulateSecurityHealthAnalyticsCustomModuleRequest.SimulatedResource - getResource() { + public com.google.cloud.securitycentermanagement.v1.SimulateSecurityHealthAnalyticsCustomModuleRequest.SimulatedResource getResource() { if (resourceBuilder_ == null) { - return resource_ == null - ? com.google.cloud.securitycentermanagement.v1 - .SimulateSecurityHealthAnalyticsCustomModuleRequest.SimulatedResource - .getDefaultInstance() - : resource_; + return resource_ == null ? com.google.cloud.securitycentermanagement.v1.SimulateSecurityHealthAnalyticsCustomModuleRequest.SimulatedResource.getDefaultInstance() : resource_; } else { return resourceBuilder_.getMessage(); } } /** - * - * *
      * Required. Resource data to simulate custom module against.
      * 
* - * - * .google.cloud.securitycentermanagement.v1.SimulateSecurityHealthAnalyticsCustomModuleRequest.SimulatedResource resource = 3 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.securitycentermanagement.v1.SimulateSecurityHealthAnalyticsCustomModuleRequest.SimulatedResource resource = 3 [(.google.api.field_behavior) = REQUIRED]; */ - public Builder setResource( - com.google.cloud.securitycentermanagement.v1 - .SimulateSecurityHealthAnalyticsCustomModuleRequest.SimulatedResource - value) { + public Builder setResource(com.google.cloud.securitycentermanagement.v1.SimulateSecurityHealthAnalyticsCustomModuleRequest.SimulatedResource value) { if (resourceBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -2499,20 +2031,14 @@ public Builder setResource( return this; } /** - * - * *
      * Required. Resource data to simulate custom module against.
      * 
* - * - * .google.cloud.securitycentermanagement.v1.SimulateSecurityHealthAnalyticsCustomModuleRequest.SimulatedResource resource = 3 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.securitycentermanagement.v1.SimulateSecurityHealthAnalyticsCustomModuleRequest.SimulatedResource resource = 3 [(.google.api.field_behavior) = REQUIRED]; */ public Builder setResource( - com.google.cloud.securitycentermanagement.v1 - .SimulateSecurityHealthAnalyticsCustomModuleRequest.SimulatedResource.Builder - builderForValue) { + com.google.cloud.securitycentermanagement.v1.SimulateSecurityHealthAnalyticsCustomModuleRequest.SimulatedResource.Builder builderForValue) { if (resourceBuilder_ == null) { resource_ = builderForValue.build(); } else { @@ -2523,27 +2049,17 @@ public Builder setResource( return this; } /** - * - * *
      * Required. Resource data to simulate custom module against.
      * 
* - * - * .google.cloud.securitycentermanagement.v1.SimulateSecurityHealthAnalyticsCustomModuleRequest.SimulatedResource resource = 3 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.securitycentermanagement.v1.SimulateSecurityHealthAnalyticsCustomModuleRequest.SimulatedResource resource = 3 [(.google.api.field_behavior) = REQUIRED]; */ - public Builder mergeResource( - com.google.cloud.securitycentermanagement.v1 - .SimulateSecurityHealthAnalyticsCustomModuleRequest.SimulatedResource - value) { + public Builder mergeResource(com.google.cloud.securitycentermanagement.v1.SimulateSecurityHealthAnalyticsCustomModuleRequest.SimulatedResource value) { if (resourceBuilder_ == null) { - if (((bitField0_ & 0x00000004) != 0) - && resource_ != null - && resource_ - != com.google.cloud.securitycentermanagement.v1 - .SimulateSecurityHealthAnalyticsCustomModuleRequest.SimulatedResource - .getDefaultInstance()) { + if (((bitField0_ & 0x00000004) != 0) && + resource_ != null && + resource_ != com.google.cloud.securitycentermanagement.v1.SimulateSecurityHealthAnalyticsCustomModuleRequest.SimulatedResource.getDefaultInstance()) { getResourceBuilder().mergeFrom(value); } else { resource_ = value; @@ -2556,15 +2072,11 @@ public Builder mergeResource( return this; } /** - * - * *
      * Required. Resource data to simulate custom module against.
      * 
* - * - * .google.cloud.securitycentermanagement.v1.SimulateSecurityHealthAnalyticsCustomModuleRequest.SimulatedResource resource = 3 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.securitycentermanagement.v1.SimulateSecurityHealthAnalyticsCustomModuleRequest.SimulatedResource resource = 3 [(.google.api.field_behavior) = REQUIRED]; */ public Builder clearResource() { bitField0_ = (bitField0_ & ~0x00000004); @@ -2577,83 +2089,55 @@ public Builder clearResource() { return this; } /** - * - * *
      * Required. Resource data to simulate custom module against.
      * 
* - * - * .google.cloud.securitycentermanagement.v1.SimulateSecurityHealthAnalyticsCustomModuleRequest.SimulatedResource resource = 3 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.securitycentermanagement.v1.SimulateSecurityHealthAnalyticsCustomModuleRequest.SimulatedResource resource = 3 [(.google.api.field_behavior) = REQUIRED]; */ - public com.google.cloud.securitycentermanagement.v1 - .SimulateSecurityHealthAnalyticsCustomModuleRequest.SimulatedResource.Builder - getResourceBuilder() { + public com.google.cloud.securitycentermanagement.v1.SimulateSecurityHealthAnalyticsCustomModuleRequest.SimulatedResource.Builder getResourceBuilder() { bitField0_ |= 0x00000004; onChanged(); return getResourceFieldBuilder().getBuilder(); } /** - * - * *
      * Required. Resource data to simulate custom module against.
      * 
* - * - * .google.cloud.securitycentermanagement.v1.SimulateSecurityHealthAnalyticsCustomModuleRequest.SimulatedResource resource = 3 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.securitycentermanagement.v1.SimulateSecurityHealthAnalyticsCustomModuleRequest.SimulatedResource resource = 3 [(.google.api.field_behavior) = REQUIRED]; */ - public com.google.cloud.securitycentermanagement.v1 - .SimulateSecurityHealthAnalyticsCustomModuleRequest.SimulatedResourceOrBuilder - getResourceOrBuilder() { + public com.google.cloud.securitycentermanagement.v1.SimulateSecurityHealthAnalyticsCustomModuleRequest.SimulatedResourceOrBuilder getResourceOrBuilder() { if (resourceBuilder_ != null) { return resourceBuilder_.getMessageOrBuilder(); } else { - return resource_ == null - ? com.google.cloud.securitycentermanagement.v1 - .SimulateSecurityHealthAnalyticsCustomModuleRequest.SimulatedResource - .getDefaultInstance() - : resource_; + return resource_ == null ? + com.google.cloud.securitycentermanagement.v1.SimulateSecurityHealthAnalyticsCustomModuleRequest.SimulatedResource.getDefaultInstance() : resource_; } } /** - * - * *
      * Required. Resource data to simulate custom module against.
      * 
* - * - * .google.cloud.securitycentermanagement.v1.SimulateSecurityHealthAnalyticsCustomModuleRequest.SimulatedResource resource = 3 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.securitycentermanagement.v1.SimulateSecurityHealthAnalyticsCustomModuleRequest.SimulatedResource resource = 3 [(.google.api.field_behavior) = REQUIRED]; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.securitycentermanagement.v1 - .SimulateSecurityHealthAnalyticsCustomModuleRequest.SimulatedResource, - com.google.cloud.securitycentermanagement.v1 - .SimulateSecurityHealthAnalyticsCustomModuleRequest.SimulatedResource.Builder, - com.google.cloud.securitycentermanagement.v1 - .SimulateSecurityHealthAnalyticsCustomModuleRequest.SimulatedResourceOrBuilder> + com.google.cloud.securitycentermanagement.v1.SimulateSecurityHealthAnalyticsCustomModuleRequest.SimulatedResource, com.google.cloud.securitycentermanagement.v1.SimulateSecurityHealthAnalyticsCustomModuleRequest.SimulatedResource.Builder, com.google.cloud.securitycentermanagement.v1.SimulateSecurityHealthAnalyticsCustomModuleRequest.SimulatedResourceOrBuilder> getResourceFieldBuilder() { if (resourceBuilder_ == null) { - resourceBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.securitycentermanagement.v1 - .SimulateSecurityHealthAnalyticsCustomModuleRequest.SimulatedResource, - com.google.cloud.securitycentermanagement.v1 - .SimulateSecurityHealthAnalyticsCustomModuleRequest.SimulatedResource.Builder, - com.google.cloud.securitycentermanagement.v1 - .SimulateSecurityHealthAnalyticsCustomModuleRequest.SimulatedResourceOrBuilder>( - getResource(), getParentForChildren(), isClean()); + resourceBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.securitycentermanagement.v1.SimulateSecurityHealthAnalyticsCustomModuleRequest.SimulatedResource, com.google.cloud.securitycentermanagement.v1.SimulateSecurityHealthAnalyticsCustomModuleRequest.SimulatedResource.Builder, com.google.cloud.securitycentermanagement.v1.SimulateSecurityHealthAnalyticsCustomModuleRequest.SimulatedResourceOrBuilder>( + getResource(), + getParentForChildren(), + isClean()); resource_ = null; } return resourceBuilder_; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -2663,67 +2147,55 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.securitycentermanagement.v1.SimulateSecurityHealthAnalyticsCustomModuleRequest) } // @@protoc_insertion_point(class_scope:google.cloud.securitycentermanagement.v1.SimulateSecurityHealthAnalyticsCustomModuleRequest) - private static final com.google.cloud.securitycentermanagement.v1 - .SimulateSecurityHealthAnalyticsCustomModuleRequest - DEFAULT_INSTANCE; - + private static final com.google.cloud.securitycentermanagement.v1.SimulateSecurityHealthAnalyticsCustomModuleRequest DEFAULT_INSTANCE; static { - DEFAULT_INSTANCE = - new com.google.cloud.securitycentermanagement.v1 - .SimulateSecurityHealthAnalyticsCustomModuleRequest(); + DEFAULT_INSTANCE = new com.google.cloud.securitycentermanagement.v1.SimulateSecurityHealthAnalyticsCustomModuleRequest(); } - public static com.google.cloud.securitycentermanagement.v1 - .SimulateSecurityHealthAnalyticsCustomModuleRequest - getDefaultInstance() { + public static com.google.cloud.securitycentermanagement.v1.SimulateSecurityHealthAnalyticsCustomModuleRequest getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser< - SimulateSecurityHealthAnalyticsCustomModuleRequest> - PARSER = - new com.google.protobuf.AbstractParser< - SimulateSecurityHealthAnalyticsCustomModuleRequest>() { - @java.lang.Override - public SimulateSecurityHealthAnalyticsCustomModuleRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException() - .setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public SimulateSecurityHealthAnalyticsCustomModuleRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; - public static com.google.protobuf.Parser - parser() { + public static com.google.protobuf.Parser parser() { return PARSER; } @java.lang.Override - public com.google.protobuf.Parser - getParserForType() { + public com.google.protobuf.Parser getParserForType() { return PARSER; } @java.lang.Override - public com.google.cloud.securitycentermanagement.v1 - .SimulateSecurityHealthAnalyticsCustomModuleRequest - getDefaultInstanceForType() { + public com.google.cloud.securitycentermanagement.v1.SimulateSecurityHealthAnalyticsCustomModuleRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/java-securitycentermanagement/proto-google-cloud-securitycentermanagement-v1/src/main/java/com/google/cloud/securitycentermanagement/v1/SimulateSecurityHealthAnalyticsCustomModuleRequestOrBuilder.java b/owl-bot-staging/java-securitycentermanagement/v1/proto-google-cloud-securitycentermanagement-v1/src/main/java/com/google/cloud/securitycentermanagement/v1/SimulateSecurityHealthAnalyticsCustomModuleRequestOrBuilder.java similarity index 55% rename from java-securitycentermanagement/proto-google-cloud-securitycentermanagement-v1/src/main/java/com/google/cloud/securitycentermanagement/v1/SimulateSecurityHealthAnalyticsCustomModuleRequestOrBuilder.java rename to owl-bot-staging/java-securitycentermanagement/v1/proto-google-cloud-securitycentermanagement-v1/src/main/java/com/google/cloud/securitycentermanagement/v1/SimulateSecurityHealthAnalyticsCustomModuleRequestOrBuilder.java index 1bb45790775b..0cb5fc524dca 100644 --- a/java-securitycentermanagement/proto-google-cloud-securitycentermanagement-v1/src/main/java/com/google/cloud/securitycentermanagement/v1/SimulateSecurityHealthAnalyticsCustomModuleRequestOrBuilder.java +++ b/owl-bot-staging/java-securitycentermanagement/v1/proto-google-cloud-securitycentermanagement-v1/src/main/java/com/google/cloud/securitycentermanagement/v1/SimulateSecurityHealthAnalyticsCustomModuleRequestOrBuilder.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/securitycentermanagement/v1/security_center_management.proto package com.google.cloud.securitycentermanagement.v1; -public interface SimulateSecurityHealthAnalyticsCustomModuleRequestOrBuilder - extends +public interface SimulateSecurityHealthAnalyticsCustomModuleRequestOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.securitycentermanagement.v1.SimulateSecurityHealthAnalyticsCustomModuleRequest) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * Required. The relative resource name of the organization, project, or
    * folder. For more information about relative resource names, see [Relative
@@ -35,13 +17,10 @@ public interface SimulateSecurityHealthAnalyticsCustomModuleRequestOrBuilder
    * 
* * string parent = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @return The parent. */ java.lang.String getParent(); /** - * - * *
    * Required. The relative resource name of the organization, project, or
    * folder. For more information about relative resource names, see [Relative
@@ -51,94 +30,62 @@ public interface SimulateSecurityHealthAnalyticsCustomModuleRequestOrBuilder
    * 
* * string parent = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @return The bytes for parent. */ - com.google.protobuf.ByteString getParentBytes(); + com.google.protobuf.ByteString + getParentBytes(); /** - * - * *
    * Required. The custom configuration that you need to test.
    * 
* - * - * .google.cloud.securitycentermanagement.v1.CustomConfig custom_config = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.securitycentermanagement.v1.CustomConfig custom_config = 2 [(.google.api.field_behavior) = REQUIRED]; * @return Whether the customConfig field is set. */ boolean hasCustomConfig(); /** - * - * *
    * Required. The custom configuration that you need to test.
    * 
* - * - * .google.cloud.securitycentermanagement.v1.CustomConfig custom_config = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.securitycentermanagement.v1.CustomConfig custom_config = 2 [(.google.api.field_behavior) = REQUIRED]; * @return The customConfig. */ com.google.cloud.securitycentermanagement.v1.CustomConfig getCustomConfig(); /** - * - * *
    * Required. The custom configuration that you need to test.
    * 
* - * - * .google.cloud.securitycentermanagement.v1.CustomConfig custom_config = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.securitycentermanagement.v1.CustomConfig custom_config = 2 [(.google.api.field_behavior) = REQUIRED]; */ com.google.cloud.securitycentermanagement.v1.CustomConfigOrBuilder getCustomConfigOrBuilder(); /** - * - * *
    * Required. Resource data to simulate custom module against.
    * 
* - * - * .google.cloud.securitycentermanagement.v1.SimulateSecurityHealthAnalyticsCustomModuleRequest.SimulatedResource resource = 3 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.securitycentermanagement.v1.SimulateSecurityHealthAnalyticsCustomModuleRequest.SimulatedResource resource = 3 [(.google.api.field_behavior) = REQUIRED]; * @return Whether the resource field is set. */ boolean hasResource(); /** - * - * *
    * Required. Resource data to simulate custom module against.
    * 
* - * - * .google.cloud.securitycentermanagement.v1.SimulateSecurityHealthAnalyticsCustomModuleRequest.SimulatedResource resource = 3 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.securitycentermanagement.v1.SimulateSecurityHealthAnalyticsCustomModuleRequest.SimulatedResource resource = 3 [(.google.api.field_behavior) = REQUIRED]; * @return The resource. */ - com.google.cloud.securitycentermanagement.v1.SimulateSecurityHealthAnalyticsCustomModuleRequest - .SimulatedResource - getResource(); + com.google.cloud.securitycentermanagement.v1.SimulateSecurityHealthAnalyticsCustomModuleRequest.SimulatedResource getResource(); /** - * - * *
    * Required. Resource data to simulate custom module against.
    * 
* - * - * .google.cloud.securitycentermanagement.v1.SimulateSecurityHealthAnalyticsCustomModuleRequest.SimulatedResource resource = 3 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.securitycentermanagement.v1.SimulateSecurityHealthAnalyticsCustomModuleRequest.SimulatedResource resource = 3 [(.google.api.field_behavior) = REQUIRED]; */ - com.google.cloud.securitycentermanagement.v1.SimulateSecurityHealthAnalyticsCustomModuleRequest - .SimulatedResourceOrBuilder - getResourceOrBuilder(); + com.google.cloud.securitycentermanagement.v1.SimulateSecurityHealthAnalyticsCustomModuleRequest.SimulatedResourceOrBuilder getResourceOrBuilder(); } diff --git a/java-securitycentermanagement/proto-google-cloud-securitycentermanagement-v1/src/main/java/com/google/cloud/securitycentermanagement/v1/SimulateSecurityHealthAnalyticsCustomModuleResponse.java b/owl-bot-staging/java-securitycentermanagement/v1/proto-google-cloud-securitycentermanagement-v1/src/main/java/com/google/cloud/securitycentermanagement/v1/SimulateSecurityHealthAnalyticsCustomModuleResponse.java similarity index 53% rename from java-securitycentermanagement/proto-google-cloud-securitycentermanagement-v1/src/main/java/com/google/cloud/securitycentermanagement/v1/SimulateSecurityHealthAnalyticsCustomModuleResponse.java rename to owl-bot-staging/java-securitycentermanagement/v1/proto-google-cloud-securitycentermanagement-v1/src/main/java/com/google/cloud/securitycentermanagement/v1/SimulateSecurityHealthAnalyticsCustomModuleResponse.java index c4ab8ff32d5c..574508be81aa 100644 --- a/java-securitycentermanagement/proto-google-cloud-securitycentermanagement-v1/src/main/java/com/google/cloud/securitycentermanagement/v1/SimulateSecurityHealthAnalyticsCustomModuleResponse.java +++ b/owl-bot-staging/java-securitycentermanagement/v1/proto-google-cloud-securitycentermanagement-v1/src/main/java/com/google/cloud/securitycentermanagement/v1/SimulateSecurityHealthAnalyticsCustomModuleResponse.java @@ -1,105 +1,73 @@ -/* - * Copyright 2023 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/securitycentermanagement/v1/security_center_management.proto package com.google.cloud.securitycentermanagement.v1; /** - * - * *
  * Response message for simulating a `SecurityHealthAnalyticsCustomModule`
  * against a given resource.
  * 
* - * Protobuf type {@code - * google.cloud.securitycentermanagement.v1.SimulateSecurityHealthAnalyticsCustomModuleResponse} + * Protobuf type {@code google.cloud.securitycentermanagement.v1.SimulateSecurityHealthAnalyticsCustomModuleResponse} */ -public final class SimulateSecurityHealthAnalyticsCustomModuleResponse - extends com.google.protobuf.GeneratedMessageV3 - implements +public final class SimulateSecurityHealthAnalyticsCustomModuleResponse extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.securitycentermanagement.v1.SimulateSecurityHealthAnalyticsCustomModuleResponse) SimulateSecurityHealthAnalyticsCustomModuleResponseOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use SimulateSecurityHealthAnalyticsCustomModuleResponse.newBuilder() to construct. - private SimulateSecurityHealthAnalyticsCustomModuleResponse( - com.google.protobuf.GeneratedMessageV3.Builder builder) { + private SimulateSecurityHealthAnalyticsCustomModuleResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - - private SimulateSecurityHealthAnalyticsCustomModuleResponse() {} + private SimulateSecurityHealthAnalyticsCustomModuleResponse() { + } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new SimulateSecurityHealthAnalyticsCustomModuleResponse(); } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.securitycentermanagement.v1.SecurityCenterManagementProto - .internal_static_google_cloud_securitycentermanagement_v1_SimulateSecurityHealthAnalyticsCustomModuleResponse_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.securitycentermanagement.v1.SecurityCenterManagementProto.internal_static_google_cloud_securitycentermanagement_v1_SimulateSecurityHealthAnalyticsCustomModuleResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.securitycentermanagement.v1.SecurityCenterManagementProto - .internal_static_google_cloud_securitycentermanagement_v1_SimulateSecurityHealthAnalyticsCustomModuleResponse_fieldAccessorTable + return com.google.cloud.securitycentermanagement.v1.SecurityCenterManagementProto.internal_static_google_cloud_securitycentermanagement_v1_SimulateSecurityHealthAnalyticsCustomModuleResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.securitycentermanagement.v1 - .SimulateSecurityHealthAnalyticsCustomModuleResponse.class, - com.google.cloud.securitycentermanagement.v1 - .SimulateSecurityHealthAnalyticsCustomModuleResponse.Builder.class); + com.google.cloud.securitycentermanagement.v1.SimulateSecurityHealthAnalyticsCustomModuleResponse.class, com.google.cloud.securitycentermanagement.v1.SimulateSecurityHealthAnalyticsCustomModuleResponse.Builder.class); } - public interface SimulatedResultOrBuilder - extends + public interface SimulatedResultOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.securitycentermanagement.v1.SimulateSecurityHealthAnalyticsCustomModuleResponse.SimulatedResult) com.google.protobuf.MessageOrBuilder { /** - * - * *
      * Finding that would be published for the test case,
      * if a violation is detected.
      * 
* * .google.cloud.securitycentermanagement.v1.SimulatedFinding finding = 1; - * * @return Whether the finding field is set. */ boolean hasFinding(); /** - * - * *
      * Finding that would be published for the test case,
      * if a violation is detected.
      * 
* * .google.cloud.securitycentermanagement.v1.SimulatedFinding finding = 1; - * * @return The finding. */ com.google.cloud.securitycentermanagement.v1.SimulatedFinding getFinding(); /** - * - * *
      * Finding that would be published for the test case,
      * if a violation is detected.
@@ -110,32 +78,24 @@ public interface SimulatedResultOrBuilder
     com.google.cloud.securitycentermanagement.v1.SimulatedFindingOrBuilder getFindingOrBuilder();
 
     /**
-     *
-     *
      * 
      * Indicates that the test case does not trigger any violation.
      * 
* * .google.protobuf.Empty no_violation = 2; - * * @return Whether the noViolation field is set. */ boolean hasNoViolation(); /** - * - * *
      * Indicates that the test case does not trigger any violation.
      * 
* * .google.protobuf.Empty no_violation = 2; - * * @return The noViolation. */ com.google.protobuf.Empty getNoViolation(); /** - * - * *
      * Indicates that the test case does not trigger any violation.
      * 
@@ -145,32 +105,24 @@ public interface SimulatedResultOrBuilder com.google.protobuf.EmptyOrBuilder getNoViolationOrBuilder(); /** - * - * *
      * Error encountered during the test.
      * 
* * .google.rpc.Status error = 3; - * * @return Whether the error field is set. */ boolean hasError(); /** - * - * *
      * Error encountered during the test.
      * 
* * .google.rpc.Status error = 3; - * * @return The error. */ com.google.rpc.Status getError(); /** - * - * *
      * Error encountered during the test.
      * 
@@ -179,71 +131,58 @@ public interface SimulatedResultOrBuilder */ com.google.rpc.StatusOrBuilder getErrorOrBuilder(); - com.google.cloud.securitycentermanagement.v1.SimulateSecurityHealthAnalyticsCustomModuleResponse - .SimulatedResult.ResultCase - getResultCase(); + com.google.cloud.securitycentermanagement.v1.SimulateSecurityHealthAnalyticsCustomModuleResponse.SimulatedResult.ResultCase getResultCase(); } /** - * - * *
    * Possible test result.
    * 
* - * Protobuf type {@code - * google.cloud.securitycentermanagement.v1.SimulateSecurityHealthAnalyticsCustomModuleResponse.SimulatedResult} + * Protobuf type {@code google.cloud.securitycentermanagement.v1.SimulateSecurityHealthAnalyticsCustomModuleResponse.SimulatedResult} */ - public static final class SimulatedResult extends com.google.protobuf.GeneratedMessageV3 - implements + public static final class SimulatedResult extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.securitycentermanagement.v1.SimulateSecurityHealthAnalyticsCustomModuleResponse.SimulatedResult) SimulatedResultOrBuilder { - private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use SimulatedResult.newBuilder() to construct. private SimulatedResult(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - - private SimulatedResult() {} + private SimulatedResult() { + } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new SimulatedResult(); } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.securitycentermanagement.v1.SecurityCenterManagementProto - .internal_static_google_cloud_securitycentermanagement_v1_SimulateSecurityHealthAnalyticsCustomModuleResponse_SimulatedResult_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.securitycentermanagement.v1.SecurityCenterManagementProto.internal_static_google_cloud_securitycentermanagement_v1_SimulateSecurityHealthAnalyticsCustomModuleResponse_SimulatedResult_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.securitycentermanagement.v1.SecurityCenterManagementProto - .internal_static_google_cloud_securitycentermanagement_v1_SimulateSecurityHealthAnalyticsCustomModuleResponse_SimulatedResult_fieldAccessorTable + return com.google.cloud.securitycentermanagement.v1.SecurityCenterManagementProto.internal_static_google_cloud_securitycentermanagement_v1_SimulateSecurityHealthAnalyticsCustomModuleResponse_SimulatedResult_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.securitycentermanagement.v1 - .SimulateSecurityHealthAnalyticsCustomModuleResponse.SimulatedResult.class, - com.google.cloud.securitycentermanagement.v1 - .SimulateSecurityHealthAnalyticsCustomModuleResponse.SimulatedResult.Builder - .class); + com.google.cloud.securitycentermanagement.v1.SimulateSecurityHealthAnalyticsCustomModuleResponse.SimulatedResult.class, com.google.cloud.securitycentermanagement.v1.SimulateSecurityHealthAnalyticsCustomModuleResponse.SimulatedResult.Builder.class); } private int resultCase_ = 0; - @SuppressWarnings("serial") private java.lang.Object result_; - public enum ResultCase - implements - com.google.protobuf.Internal.EnumLite, + implements com.google.protobuf.Internal.EnumLite, com.google.protobuf.AbstractMessage.InternalOneOfEnum { FINDING(1), NO_VIOLATION(2), ERROR(3), RESULT_NOT_SET(0); private final int value; - private ResultCase(int value) { this.value = value; } @@ -259,39 +198,32 @@ public static ResultCase valueOf(int value) { public static ResultCase forNumber(int value) { switch (value) { - case 1: - return FINDING; - case 2: - return NO_VIOLATION; - case 3: - return ERROR; - case 0: - return RESULT_NOT_SET; - default: - return null; + case 1: return FINDING; + case 2: return NO_VIOLATION; + case 3: return ERROR; + case 0: return RESULT_NOT_SET; + default: return null; } } - public int getNumber() { return this.value; } }; - public ResultCase getResultCase() { - return ResultCase.forNumber(resultCase_); + public ResultCase + getResultCase() { + return ResultCase.forNumber( + resultCase_); } public static final int FINDING_FIELD_NUMBER = 1; /** - * - * *
      * Finding that would be published for the test case,
      * if a violation is detected.
      * 
* * .google.cloud.securitycentermanagement.v1.SimulatedFinding finding = 1; - * * @return Whether the finding field is set. */ @java.lang.Override @@ -299,27 +231,22 @@ public boolean hasFinding() { return resultCase_ == 1; } /** - * - * *
      * Finding that would be published for the test case,
      * if a violation is detected.
      * 
* * .google.cloud.securitycentermanagement.v1.SimulatedFinding finding = 1; - * * @return The finding. */ @java.lang.Override public com.google.cloud.securitycentermanagement.v1.SimulatedFinding getFinding() { if (resultCase_ == 1) { - return (com.google.cloud.securitycentermanagement.v1.SimulatedFinding) result_; + return (com.google.cloud.securitycentermanagement.v1.SimulatedFinding) result_; } return com.google.cloud.securitycentermanagement.v1.SimulatedFinding.getDefaultInstance(); } /** - * - * *
      * Finding that would be published for the test case,
      * if a violation is detected.
@@ -328,24 +255,20 @@ public com.google.cloud.securitycentermanagement.v1.SimulatedFinding getFinding(
      * .google.cloud.securitycentermanagement.v1.SimulatedFinding finding = 1;
      */
     @java.lang.Override
-    public com.google.cloud.securitycentermanagement.v1.SimulatedFindingOrBuilder
-        getFindingOrBuilder() {
+    public com.google.cloud.securitycentermanagement.v1.SimulatedFindingOrBuilder getFindingOrBuilder() {
       if (resultCase_ == 1) {
-        return (com.google.cloud.securitycentermanagement.v1.SimulatedFinding) result_;
+         return (com.google.cloud.securitycentermanagement.v1.SimulatedFinding) result_;
       }
       return com.google.cloud.securitycentermanagement.v1.SimulatedFinding.getDefaultInstance();
     }
 
     public static final int NO_VIOLATION_FIELD_NUMBER = 2;
     /**
-     *
-     *
      * 
      * Indicates that the test case does not trigger any violation.
      * 
* * .google.protobuf.Empty no_violation = 2; - * * @return Whether the noViolation field is set. */ @java.lang.Override @@ -353,26 +276,21 @@ public boolean hasNoViolation() { return resultCase_ == 2; } /** - * - * *
      * Indicates that the test case does not trigger any violation.
      * 
* * .google.protobuf.Empty no_violation = 2; - * * @return The noViolation. */ @java.lang.Override public com.google.protobuf.Empty getNoViolation() { if (resultCase_ == 2) { - return (com.google.protobuf.Empty) result_; + return (com.google.protobuf.Empty) result_; } return com.google.protobuf.Empty.getDefaultInstance(); } /** - * - * *
      * Indicates that the test case does not trigger any violation.
      * 
@@ -382,21 +300,18 @@ public com.google.protobuf.Empty getNoViolation() { @java.lang.Override public com.google.protobuf.EmptyOrBuilder getNoViolationOrBuilder() { if (resultCase_ == 2) { - return (com.google.protobuf.Empty) result_; + return (com.google.protobuf.Empty) result_; } return com.google.protobuf.Empty.getDefaultInstance(); } public static final int ERROR_FIELD_NUMBER = 3; /** - * - * *
      * Error encountered during the test.
      * 
* * .google.rpc.Status error = 3; - * * @return Whether the error field is set. */ @java.lang.Override @@ -404,26 +319,21 @@ public boolean hasError() { return resultCase_ == 3; } /** - * - * *
      * Error encountered during the test.
      * 
* * .google.rpc.Status error = 3; - * * @return The error. */ @java.lang.Override public com.google.rpc.Status getError() { if (resultCase_ == 3) { - return (com.google.rpc.Status) result_; + return (com.google.rpc.Status) result_; } return com.google.rpc.Status.getDefaultInstance(); } /** - * - * *
      * Error encountered during the test.
      * 
@@ -433,13 +343,12 @@ public com.google.rpc.Status getError() { @java.lang.Override public com.google.rpc.StatusOrBuilder getErrorOrBuilder() { if (resultCase_ == 3) { - return (com.google.rpc.Status) result_; + return (com.google.rpc.Status) result_; } return com.google.rpc.Status.getDefaultInstance(); } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -451,10 +360,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 (resultCase_ == 1) { - output.writeMessage( - 1, (com.google.cloud.securitycentermanagement.v1.SimulatedFinding) result_); + output.writeMessage(1, (com.google.cloud.securitycentermanagement.v1.SimulatedFinding) result_); } if (resultCase_ == 2) { output.writeMessage(2, (com.google.protobuf.Empty) result_); @@ -472,19 +381,16 @@ public int getSerializedSize() { size = 0; if (resultCase_ == 1) { - size += - com.google.protobuf.CodedOutputStream.computeMessageSize( - 1, (com.google.cloud.securitycentermanagement.v1.SimulatedFinding) result_); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, (com.google.cloud.securitycentermanagement.v1.SimulatedFinding) result_); } if (resultCase_ == 2) { - size += - com.google.protobuf.CodedOutputStream.computeMessageSize( - 2, (com.google.protobuf.Empty) result_); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(2, (com.google.protobuf.Empty) result_); } if (resultCase_ == 3) { - size += - com.google.protobuf.CodedOutputStream.computeMessageSize( - 3, (com.google.rpc.Status) result_); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(3, (com.google.rpc.Status) result_); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -494,31 +400,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.securitycentermanagement.v1 - .SimulateSecurityHealthAnalyticsCustomModuleResponse.SimulatedResult)) { + if (!(obj instanceof com.google.cloud.securitycentermanagement.v1.SimulateSecurityHealthAnalyticsCustomModuleResponse.SimulatedResult)) { return super.equals(obj); } - com.google.cloud.securitycentermanagement.v1 - .SimulateSecurityHealthAnalyticsCustomModuleResponse.SimulatedResult - other = - (com.google.cloud.securitycentermanagement.v1 - .SimulateSecurityHealthAnalyticsCustomModuleResponse.SimulatedResult) - obj; + com.google.cloud.securitycentermanagement.v1.SimulateSecurityHealthAnalyticsCustomModuleResponse.SimulatedResult other = (com.google.cloud.securitycentermanagement.v1.SimulateSecurityHealthAnalyticsCustomModuleResponse.SimulatedResult) obj; if (!getResultCase().equals(other.getResultCase())) return false; switch (resultCase_) { case 1: - if (!getFinding().equals(other.getFinding())) return false; + if (!getFinding() + .equals(other.getFinding())) return false; break; case 2: - if (!getNoViolation().equals(other.getNoViolation())) return false; + if (!getNoViolation() + .equals(other.getNoViolation())) return false; break; case 3: - if (!getError().equals(other.getError())) return false; + if (!getError() + .equals(other.getError())) return false; break; case 0: default: @@ -555,115 +456,90 @@ public int hashCode() { return hash; } - public static com.google.cloud.securitycentermanagement.v1 - .SimulateSecurityHealthAnalyticsCustomModuleResponse.SimulatedResult - parseFrom(java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.securitycentermanagement.v1.SimulateSecurityHealthAnalyticsCustomModuleResponse.SimulatedResult parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - - public static com.google.cloud.securitycentermanagement.v1 - .SimulateSecurityHealthAnalyticsCustomModuleResponse.SimulatedResult - parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.securitycentermanagement.v1.SimulateSecurityHealthAnalyticsCustomModuleResponse.SimulatedResult 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.securitycentermanagement.v1 - .SimulateSecurityHealthAnalyticsCustomModuleResponse.SimulatedResult - parseFrom(com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.securitycentermanagement.v1.SimulateSecurityHealthAnalyticsCustomModuleResponse.SimulatedResult parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - - public static com.google.cloud.securitycentermanagement.v1 - .SimulateSecurityHealthAnalyticsCustomModuleResponse.SimulatedResult - parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.securitycentermanagement.v1.SimulateSecurityHealthAnalyticsCustomModuleResponse.SimulatedResult parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.securitycentermanagement.v1 - .SimulateSecurityHealthAnalyticsCustomModuleResponse.SimulatedResult - parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.securitycentermanagement.v1.SimulateSecurityHealthAnalyticsCustomModuleResponse.SimulatedResult parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - - public static com.google.cloud.securitycentermanagement.v1 - .SimulateSecurityHealthAnalyticsCustomModuleResponse.SimulatedResult - parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.securitycentermanagement.v1.SimulateSecurityHealthAnalyticsCustomModuleResponse.SimulatedResult parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.securitycentermanagement.v1 - .SimulateSecurityHealthAnalyticsCustomModuleResponse.SimulatedResult - parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.securitycentermanagement.v1.SimulateSecurityHealthAnalyticsCustomModuleResponse.SimulatedResult parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - - public static com.google.cloud.securitycentermanagement.v1 - .SimulateSecurityHealthAnalyticsCustomModuleResponse.SimulatedResult - 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.securitycentermanagement.v1.SimulateSecurityHealthAnalyticsCustomModuleResponse.SimulatedResult 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.securitycentermanagement.v1 - .SimulateSecurityHealthAnalyticsCustomModuleResponse.SimulatedResult - parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.securitycentermanagement.v1.SimulateSecurityHealthAnalyticsCustomModuleResponse.SimulatedResult parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.securitycentermanagement.v1 - .SimulateSecurityHealthAnalyticsCustomModuleResponse.SimulatedResult - parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + public static com.google.cloud.securitycentermanagement.v1.SimulateSecurityHealthAnalyticsCustomModuleResponse.SimulatedResult parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.securitycentermanagement.v1 - .SimulateSecurityHealthAnalyticsCustomModuleResponse.SimulatedResult - parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.securitycentermanagement.v1.SimulateSecurityHealthAnalyticsCustomModuleResponse.SimulatedResult parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - - public static com.google.cloud.securitycentermanagement.v1 - .SimulateSecurityHealthAnalyticsCustomModuleResponse.SimulatedResult - 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.securitycentermanagement.v1.SimulateSecurityHealthAnalyticsCustomModuleResponse.SimulatedResult 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.securitycentermanagement.v1 - .SimulateSecurityHealthAnalyticsCustomModuleResponse.SimulatedResult - prototype) { + public static Builder newBuilder(com.google.cloud.securitycentermanagement.v1.SimulateSecurityHealthAnalyticsCustomModuleResponse.SimulatedResult prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override @@ -673,47 +549,39 @@ protected Builder newBuilderForType( return builder; } /** - * - * *
      * Possible test result.
      * 
* - * Protobuf type {@code - * google.cloud.securitycentermanagement.v1.SimulateSecurityHealthAnalyticsCustomModuleResponse.SimulatedResult} + * Protobuf type {@code google.cloud.securitycentermanagement.v1.SimulateSecurityHealthAnalyticsCustomModuleResponse.SimulatedResult} */ - public static final class Builder - extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.securitycentermanagement.v1.SimulateSecurityHealthAnalyticsCustomModuleResponse.SimulatedResult) - com.google.cloud.securitycentermanagement.v1 - .SimulateSecurityHealthAnalyticsCustomModuleResponse.SimulatedResultOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.securitycentermanagement.v1.SecurityCenterManagementProto - .internal_static_google_cloud_securitycentermanagement_v1_SimulateSecurityHealthAnalyticsCustomModuleResponse_SimulatedResult_descriptor; + com.google.cloud.securitycentermanagement.v1.SimulateSecurityHealthAnalyticsCustomModuleResponse.SimulatedResultOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.securitycentermanagement.v1.SecurityCenterManagementProto.internal_static_google_cloud_securitycentermanagement_v1_SimulateSecurityHealthAnalyticsCustomModuleResponse_SimulatedResult_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.securitycentermanagement.v1.SecurityCenterManagementProto - .internal_static_google_cloud_securitycentermanagement_v1_SimulateSecurityHealthAnalyticsCustomModuleResponse_SimulatedResult_fieldAccessorTable + return com.google.cloud.securitycentermanagement.v1.SecurityCenterManagementProto.internal_static_google_cloud_securitycentermanagement_v1_SimulateSecurityHealthAnalyticsCustomModuleResponse_SimulatedResult_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.securitycentermanagement.v1 - .SimulateSecurityHealthAnalyticsCustomModuleResponse.SimulatedResult.class, - com.google.cloud.securitycentermanagement.v1 - .SimulateSecurityHealthAnalyticsCustomModuleResponse.SimulatedResult.Builder - .class); + com.google.cloud.securitycentermanagement.v1.SimulateSecurityHealthAnalyticsCustomModuleResponse.SimulatedResult.class, com.google.cloud.securitycentermanagement.v1.SimulateSecurityHealthAnalyticsCustomModuleResponse.SimulatedResult.Builder.class); } - // Construct using - // com.google.cloud.securitycentermanagement.v1.SimulateSecurityHealthAnalyticsCustomModuleResponse.SimulatedResult.newBuilder() - private Builder() {} + // Construct using com.google.cloud.securitycentermanagement.v1.SimulateSecurityHealthAnalyticsCustomModuleResponse.SimulatedResult.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(); @@ -733,27 +601,19 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.securitycentermanagement.v1.SecurityCenterManagementProto - .internal_static_google_cloud_securitycentermanagement_v1_SimulateSecurityHealthAnalyticsCustomModuleResponse_SimulatedResult_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.securitycentermanagement.v1.SecurityCenterManagementProto.internal_static_google_cloud_securitycentermanagement_v1_SimulateSecurityHealthAnalyticsCustomModuleResponse_SimulatedResult_descriptor; } @java.lang.Override - public com.google.cloud.securitycentermanagement.v1 - .SimulateSecurityHealthAnalyticsCustomModuleResponse.SimulatedResult - getDefaultInstanceForType() { - return com.google.cloud.securitycentermanagement.v1 - .SimulateSecurityHealthAnalyticsCustomModuleResponse.SimulatedResult - .getDefaultInstance(); + public com.google.cloud.securitycentermanagement.v1.SimulateSecurityHealthAnalyticsCustomModuleResponse.SimulatedResult getDefaultInstanceForType() { + return com.google.cloud.securitycentermanagement.v1.SimulateSecurityHealthAnalyticsCustomModuleResponse.SimulatedResult.getDefaultInstance(); } @java.lang.Override - public com.google.cloud.securitycentermanagement.v1 - .SimulateSecurityHealthAnalyticsCustomModuleResponse.SimulatedResult - build() { - com.google.cloud.securitycentermanagement.v1 - .SimulateSecurityHealthAnalyticsCustomModuleResponse.SimulatedResult - result = buildPartial(); + public com.google.cloud.securitycentermanagement.v1.SimulateSecurityHealthAnalyticsCustomModuleResponse.SimulatedResult build() { + com.google.cloud.securitycentermanagement.v1.SimulateSecurityHealthAnalyticsCustomModuleResponse.SimulatedResult result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } @@ -761,42 +621,31 @@ public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { } @java.lang.Override - public com.google.cloud.securitycentermanagement.v1 - .SimulateSecurityHealthAnalyticsCustomModuleResponse.SimulatedResult - buildPartial() { - com.google.cloud.securitycentermanagement.v1 - .SimulateSecurityHealthAnalyticsCustomModuleResponse.SimulatedResult - result = - new com.google.cloud.securitycentermanagement.v1 - .SimulateSecurityHealthAnalyticsCustomModuleResponse.SimulatedResult(this); - if (bitField0_ != 0) { - buildPartial0(result); - } + public com.google.cloud.securitycentermanagement.v1.SimulateSecurityHealthAnalyticsCustomModuleResponse.SimulatedResult buildPartial() { + com.google.cloud.securitycentermanagement.v1.SimulateSecurityHealthAnalyticsCustomModuleResponse.SimulatedResult result = new com.google.cloud.securitycentermanagement.v1.SimulateSecurityHealthAnalyticsCustomModuleResponse.SimulatedResult(this); + if (bitField0_ != 0) { buildPartial0(result); } buildPartialOneofs(result); onBuilt(); return result; } - private void buildPartial0( - com.google.cloud.securitycentermanagement.v1 - .SimulateSecurityHealthAnalyticsCustomModuleResponse.SimulatedResult - result) { + private void buildPartial0(com.google.cloud.securitycentermanagement.v1.SimulateSecurityHealthAnalyticsCustomModuleResponse.SimulatedResult result) { int from_bitField0_ = bitField0_; } - private void buildPartialOneofs( - com.google.cloud.securitycentermanagement.v1 - .SimulateSecurityHealthAnalyticsCustomModuleResponse.SimulatedResult - result) { + private void buildPartialOneofs(com.google.cloud.securitycentermanagement.v1.SimulateSecurityHealthAnalyticsCustomModuleResponse.SimulatedResult result) { result.resultCase_ = resultCase_; result.result_ = this.result_; - if (resultCase_ == 1 && findingBuilder_ != null) { + if (resultCase_ == 1 && + findingBuilder_ != null) { result.result_ = findingBuilder_.build(); } - if (resultCase_ == 2 && noViolationBuilder_ != null) { + if (resultCase_ == 2 && + noViolationBuilder_ != null) { result.result_ = noViolationBuilder_.build(); } - if (resultCase_ == 3 && errorBuilder_ != null) { + if (resultCase_ == 3 && + errorBuilder_ != null) { result.result_ = errorBuilder_.build(); } } @@ -805,81 +654,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.securitycentermanagement.v1 - .SimulateSecurityHealthAnalyticsCustomModuleResponse.SimulatedResult) { - return mergeFrom( - (com.google.cloud.securitycentermanagement.v1 - .SimulateSecurityHealthAnalyticsCustomModuleResponse.SimulatedResult) - other); + if (other instanceof com.google.cloud.securitycentermanagement.v1.SimulateSecurityHealthAnalyticsCustomModuleResponse.SimulatedResult) { + return mergeFrom((com.google.cloud.securitycentermanagement.v1.SimulateSecurityHealthAnalyticsCustomModuleResponse.SimulatedResult)other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom( - com.google.cloud.securitycentermanagement.v1 - .SimulateSecurityHealthAnalyticsCustomModuleResponse.SimulatedResult - other) { - if (other - == com.google.cloud.securitycentermanagement.v1 - .SimulateSecurityHealthAnalyticsCustomModuleResponse.SimulatedResult - .getDefaultInstance()) return this; + public Builder mergeFrom(com.google.cloud.securitycentermanagement.v1.SimulateSecurityHealthAnalyticsCustomModuleResponse.SimulatedResult other) { + if (other == com.google.cloud.securitycentermanagement.v1.SimulateSecurityHealthAnalyticsCustomModuleResponse.SimulatedResult.getDefaultInstance()) return this; switch (other.getResultCase()) { - case FINDING: - { - mergeFinding(other.getFinding()); - break; - } - case NO_VIOLATION: - { - mergeNoViolation(other.getNoViolation()); - break; - } - case ERROR: - { - mergeError(other.getError()); - break; - } - case RESULT_NOT_SET: - { - break; - } + case FINDING: { + mergeFinding(other.getFinding()); + break; + } + case NO_VIOLATION: { + mergeNoViolation(other.getNoViolation()); + break; + } + case ERROR: { + mergeError(other.getError()); + break; + } + case RESULT_NOT_SET: { + break; + } } this.mergeUnknownFields(other.getUnknownFields()); onChanged(); @@ -907,31 +737,33 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: - { - input.readMessage(getFindingFieldBuilder().getBuilder(), extensionRegistry); - resultCase_ = 1; - break; - } // case 10 - case 18: - { - input.readMessage(getNoViolationFieldBuilder().getBuilder(), extensionRegistry); - resultCase_ = 2; - break; - } // case 18 - case 26: - { - input.readMessage(getErrorFieldBuilder().getBuilder(), extensionRegistry); - resultCase_ = 3; - break; - } // case 26 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: { + input.readMessage( + getFindingFieldBuilder().getBuilder(), + extensionRegistry); + resultCase_ = 1; + break; + } // case 10 + case 18: { + input.readMessage( + getNoViolationFieldBuilder().getBuilder(), + extensionRegistry); + resultCase_ = 2; + break; + } // case 18 + case 26: { + input.readMessage( + getErrorFieldBuilder().getBuilder(), + extensionRegistry); + resultCase_ = 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) { @@ -941,12 +773,12 @@ public Builder mergeFrom( } // finally return this; } - private int resultCase_ = 0; private java.lang.Object result_; - - public ResultCase getResultCase() { - return ResultCase.forNumber(resultCase_); + public ResultCase + getResultCase() { + return ResultCase.forNumber( + resultCase_); } public Builder clearResult() { @@ -959,20 +791,14 @@ public Builder clearResult() { private int bitField0_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.securitycentermanagement.v1.SimulatedFinding, - com.google.cloud.securitycentermanagement.v1.SimulatedFinding.Builder, - com.google.cloud.securitycentermanagement.v1.SimulatedFindingOrBuilder> - findingBuilder_; + com.google.cloud.securitycentermanagement.v1.SimulatedFinding, com.google.cloud.securitycentermanagement.v1.SimulatedFinding.Builder, com.google.cloud.securitycentermanagement.v1.SimulatedFindingOrBuilder> findingBuilder_; /** - * - * *
        * Finding that would be published for the test case,
        * if a violation is detected.
        * 
* * .google.cloud.securitycentermanagement.v1.SimulatedFinding finding = 1; - * * @return Whether the finding field is set. */ @java.lang.Override @@ -980,15 +806,12 @@ public boolean hasFinding() { return resultCase_ == 1; } /** - * - * *
        * Finding that would be published for the test case,
        * if a violation is detected.
        * 
* * .google.cloud.securitycentermanagement.v1.SimulatedFinding finding = 1; - * * @return The finding. */ @java.lang.Override @@ -1006,8 +829,6 @@ public com.google.cloud.securitycentermanagement.v1.SimulatedFinding getFinding( } } /** - * - * *
        * Finding that would be published for the test case,
        * if a violation is detected.
@@ -1015,8 +836,7 @@ public com.google.cloud.securitycentermanagement.v1.SimulatedFinding getFinding(
        *
        * .google.cloud.securitycentermanagement.v1.SimulatedFinding finding = 1;
        */
-      public Builder setFinding(
-          com.google.cloud.securitycentermanagement.v1.SimulatedFinding value) {
+      public Builder setFinding(com.google.cloud.securitycentermanagement.v1.SimulatedFinding value) {
         if (findingBuilder_ == null) {
           if (value == null) {
             throw new NullPointerException();
@@ -1030,8 +850,6 @@ public Builder setFinding(
         return this;
       }
       /**
-       *
-       *
        * 
        * Finding that would be published for the test case,
        * if a violation is detected.
@@ -1051,8 +869,6 @@ public Builder setFinding(
         return this;
       }
       /**
-       *
-       *
        * 
        * Finding that would be published for the test case,
        * if a violation is detected.
@@ -1060,18 +876,12 @@ public Builder setFinding(
        *
        * .google.cloud.securitycentermanagement.v1.SimulatedFinding finding = 1;
        */
-      public Builder mergeFinding(
-          com.google.cloud.securitycentermanagement.v1.SimulatedFinding value) {
+      public Builder mergeFinding(com.google.cloud.securitycentermanagement.v1.SimulatedFinding value) {
         if (findingBuilder_ == null) {
-          if (resultCase_ == 1
-              && result_
-                  != com.google.cloud.securitycentermanagement.v1.SimulatedFinding
-                      .getDefaultInstance()) {
-            result_ =
-                com.google.cloud.securitycentermanagement.v1.SimulatedFinding.newBuilder(
-                        (com.google.cloud.securitycentermanagement.v1.SimulatedFinding) result_)
-                    .mergeFrom(value)
-                    .buildPartial();
+          if (resultCase_ == 1 &&
+              result_ != com.google.cloud.securitycentermanagement.v1.SimulatedFinding.getDefaultInstance()) {
+            result_ = com.google.cloud.securitycentermanagement.v1.SimulatedFinding.newBuilder((com.google.cloud.securitycentermanagement.v1.SimulatedFinding) result_)
+                .mergeFrom(value).buildPartial();
           } else {
             result_ = value;
           }
@@ -1087,8 +897,6 @@ public Builder mergeFinding(
         return this;
       }
       /**
-       *
-       *
        * 
        * Finding that would be published for the test case,
        * if a violation is detected.
@@ -1113,8 +921,6 @@ public Builder clearFinding() {
         return this;
       }
       /**
-       *
-       *
        * 
        * Finding that would be published for the test case,
        * if a violation is detected.
@@ -1122,13 +928,10 @@ public Builder clearFinding() {
        *
        * .google.cloud.securitycentermanagement.v1.SimulatedFinding finding = 1;
        */
-      public com.google.cloud.securitycentermanagement.v1.SimulatedFinding.Builder
-          getFindingBuilder() {
+      public com.google.cloud.securitycentermanagement.v1.SimulatedFinding.Builder getFindingBuilder() {
         return getFindingFieldBuilder().getBuilder();
       }
       /**
-       *
-       *
        * 
        * Finding that would be published for the test case,
        * if a violation is detected.
@@ -1137,8 +940,7 @@ public Builder clearFinding() {
        * .google.cloud.securitycentermanagement.v1.SimulatedFinding finding = 1;
        */
       @java.lang.Override
-      public com.google.cloud.securitycentermanagement.v1.SimulatedFindingOrBuilder
-          getFindingOrBuilder() {
+      public com.google.cloud.securitycentermanagement.v1.SimulatedFindingOrBuilder getFindingOrBuilder() {
         if ((resultCase_ == 1) && (findingBuilder_ != null)) {
           return findingBuilder_.getMessageOrBuilder();
         } else {
@@ -1149,8 +951,6 @@ public Builder clearFinding() {
         }
       }
       /**
-       *
-       *
        * 
        * Finding that would be published for the test case,
        * if a violation is detected.
@@ -1159,20 +959,14 @@ public Builder clearFinding() {
        * .google.cloud.securitycentermanagement.v1.SimulatedFinding finding = 1;
        */
       private com.google.protobuf.SingleFieldBuilderV3<
-              com.google.cloud.securitycentermanagement.v1.SimulatedFinding,
-              com.google.cloud.securitycentermanagement.v1.SimulatedFinding.Builder,
-              com.google.cloud.securitycentermanagement.v1.SimulatedFindingOrBuilder>
+          com.google.cloud.securitycentermanagement.v1.SimulatedFinding, com.google.cloud.securitycentermanagement.v1.SimulatedFinding.Builder, com.google.cloud.securitycentermanagement.v1.SimulatedFindingOrBuilder> 
           getFindingFieldBuilder() {
         if (findingBuilder_ == null) {
           if (!(resultCase_ == 1)) {
-            result_ =
-                com.google.cloud.securitycentermanagement.v1.SimulatedFinding.getDefaultInstance();
+            result_ = com.google.cloud.securitycentermanagement.v1.SimulatedFinding.getDefaultInstance();
           }
-          findingBuilder_ =
-              new com.google.protobuf.SingleFieldBuilderV3<
-                  com.google.cloud.securitycentermanagement.v1.SimulatedFinding,
-                  com.google.cloud.securitycentermanagement.v1.SimulatedFinding.Builder,
-                  com.google.cloud.securitycentermanagement.v1.SimulatedFindingOrBuilder>(
+          findingBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
+              com.google.cloud.securitycentermanagement.v1.SimulatedFinding, com.google.cloud.securitycentermanagement.v1.SimulatedFinding.Builder, com.google.cloud.securitycentermanagement.v1.SimulatedFindingOrBuilder>(
                   (com.google.cloud.securitycentermanagement.v1.SimulatedFinding) result_,
                   getParentForChildren(),
                   isClean());
@@ -1184,19 +978,13 @@ public Builder clearFinding() {
       }
 
       private com.google.protobuf.SingleFieldBuilderV3<
-              com.google.protobuf.Empty,
-              com.google.protobuf.Empty.Builder,
-              com.google.protobuf.EmptyOrBuilder>
-          noViolationBuilder_;
+          com.google.protobuf.Empty, com.google.protobuf.Empty.Builder, com.google.protobuf.EmptyOrBuilder> noViolationBuilder_;
       /**
-       *
-       *
        * 
        * Indicates that the test case does not trigger any violation.
        * 
* * .google.protobuf.Empty no_violation = 2; - * * @return Whether the noViolation field is set. */ @java.lang.Override @@ -1204,14 +992,11 @@ public boolean hasNoViolation() { return resultCase_ == 2; } /** - * - * *
        * Indicates that the test case does not trigger any violation.
        * 
* * .google.protobuf.Empty no_violation = 2; - * * @return The noViolation. */ @java.lang.Override @@ -1229,8 +1014,6 @@ public com.google.protobuf.Empty getNoViolation() { } } /** - * - * *
        * Indicates that the test case does not trigger any violation.
        * 
@@ -1251,15 +1034,14 @@ public Builder setNoViolation(com.google.protobuf.Empty value) { return this; } /** - * - * *
        * Indicates that the test case does not trigger any violation.
        * 
* * .google.protobuf.Empty no_violation = 2; */ - public Builder setNoViolation(com.google.protobuf.Empty.Builder builderForValue) { + public Builder setNoViolation( + com.google.protobuf.Empty.Builder builderForValue) { if (noViolationBuilder_ == null) { result_ = builderForValue.build(); onChanged(); @@ -1270,8 +1052,6 @@ public Builder setNoViolation(com.google.protobuf.Empty.Builder builderForValue) return this; } /** - * - * *
        * Indicates that the test case does not trigger any violation.
        * 
@@ -1280,11 +1060,10 @@ public Builder setNoViolation(com.google.protobuf.Empty.Builder builderForValue) */ public Builder mergeNoViolation(com.google.protobuf.Empty value) { if (noViolationBuilder_ == null) { - if (resultCase_ == 2 && result_ != com.google.protobuf.Empty.getDefaultInstance()) { - result_ = - com.google.protobuf.Empty.newBuilder((com.google.protobuf.Empty) result_) - .mergeFrom(value) - .buildPartial(); + if (resultCase_ == 2 && + result_ != com.google.protobuf.Empty.getDefaultInstance()) { + result_ = com.google.protobuf.Empty.newBuilder((com.google.protobuf.Empty) result_) + .mergeFrom(value).buildPartial(); } else { result_ = value; } @@ -1300,8 +1079,6 @@ public Builder mergeNoViolation(com.google.protobuf.Empty value) { return this; } /** - * - * *
        * Indicates that the test case does not trigger any violation.
        * 
@@ -1325,8 +1102,6 @@ public Builder clearNoViolation() { return this; } /** - * - * *
        * Indicates that the test case does not trigger any violation.
        * 
@@ -1337,8 +1112,6 @@ public com.google.protobuf.Empty.Builder getNoViolationBuilder() { return getNoViolationFieldBuilder().getBuilder(); } /** - * - * *
        * Indicates that the test case does not trigger any violation.
        * 
@@ -1357,8 +1130,6 @@ public com.google.protobuf.EmptyOrBuilder getNoViolationOrBuilder() { } } /** - * - * *
        * Indicates that the test case does not trigger any violation.
        * 
@@ -1366,20 +1137,17 @@ public com.google.protobuf.EmptyOrBuilder getNoViolationOrBuilder() { * .google.protobuf.Empty no_violation = 2; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Empty, - com.google.protobuf.Empty.Builder, - com.google.protobuf.EmptyOrBuilder> + com.google.protobuf.Empty, com.google.protobuf.Empty.Builder, com.google.protobuf.EmptyOrBuilder> getNoViolationFieldBuilder() { if (noViolationBuilder_ == null) { if (!(resultCase_ == 2)) { result_ = com.google.protobuf.Empty.getDefaultInstance(); } - noViolationBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Empty, - com.google.protobuf.Empty.Builder, - com.google.protobuf.EmptyOrBuilder>( - (com.google.protobuf.Empty) result_, getParentForChildren(), isClean()); + noViolationBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Empty, com.google.protobuf.Empty.Builder, com.google.protobuf.EmptyOrBuilder>( + (com.google.protobuf.Empty) result_, + getParentForChildren(), + isClean()); result_ = null; } resultCase_ = 2; @@ -1388,17 +1156,13 @@ public com.google.protobuf.EmptyOrBuilder getNoViolationOrBuilder() { } private com.google.protobuf.SingleFieldBuilderV3< - com.google.rpc.Status, com.google.rpc.Status.Builder, com.google.rpc.StatusOrBuilder> - errorBuilder_; + com.google.rpc.Status, com.google.rpc.Status.Builder, com.google.rpc.StatusOrBuilder> errorBuilder_; /** - * - * *
        * Error encountered during the test.
        * 
* * .google.rpc.Status error = 3; - * * @return Whether the error field is set. */ @java.lang.Override @@ -1406,14 +1170,11 @@ public boolean hasError() { return resultCase_ == 3; } /** - * - * *
        * Error encountered during the test.
        * 
* * .google.rpc.Status error = 3; - * * @return The error. */ @java.lang.Override @@ -1431,8 +1192,6 @@ public com.google.rpc.Status getError() { } } /** - * - * *
        * Error encountered during the test.
        * 
@@ -1453,15 +1212,14 @@ public Builder setError(com.google.rpc.Status value) { return this; } /** - * - * *
        * Error encountered during the test.
        * 
* * .google.rpc.Status error = 3; */ - public Builder setError(com.google.rpc.Status.Builder builderForValue) { + public Builder setError( + com.google.rpc.Status.Builder builderForValue) { if (errorBuilder_ == null) { result_ = builderForValue.build(); onChanged(); @@ -1472,8 +1230,6 @@ public Builder setError(com.google.rpc.Status.Builder builderForValue) { return this; } /** - * - * *
        * Error encountered during the test.
        * 
@@ -1482,11 +1238,10 @@ public Builder setError(com.google.rpc.Status.Builder builderForValue) { */ public Builder mergeError(com.google.rpc.Status value) { if (errorBuilder_ == null) { - if (resultCase_ == 3 && result_ != com.google.rpc.Status.getDefaultInstance()) { - result_ = - com.google.rpc.Status.newBuilder((com.google.rpc.Status) result_) - .mergeFrom(value) - .buildPartial(); + if (resultCase_ == 3 && + result_ != com.google.rpc.Status.getDefaultInstance()) { + result_ = com.google.rpc.Status.newBuilder((com.google.rpc.Status) result_) + .mergeFrom(value).buildPartial(); } else { result_ = value; } @@ -1502,8 +1257,6 @@ public Builder mergeError(com.google.rpc.Status value) { return this; } /** - * - * *
        * Error encountered during the test.
        * 
@@ -1527,8 +1280,6 @@ public Builder clearError() { return this; } /** - * - * *
        * Error encountered during the test.
        * 
@@ -1539,8 +1290,6 @@ public com.google.rpc.Status.Builder getErrorBuilder() { return getErrorFieldBuilder().getBuilder(); } /** - * - * *
        * Error encountered during the test.
        * 
@@ -1559,8 +1308,6 @@ public com.google.rpc.StatusOrBuilder getErrorOrBuilder() { } } /** - * - * *
        * Error encountered during the test.
        * 
@@ -1568,25 +1315,23 @@ public com.google.rpc.StatusOrBuilder getErrorOrBuilder() { * .google.rpc.Status error = 3; */ private com.google.protobuf.SingleFieldBuilderV3< - 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> getErrorFieldBuilder() { if (errorBuilder_ == null) { if (!(resultCase_ == 3)) { result_ = com.google.rpc.Status.getDefaultInstance(); } - errorBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.rpc.Status, - com.google.rpc.Status.Builder, - com.google.rpc.StatusOrBuilder>( - (com.google.rpc.Status) result_, getParentForChildren(), isClean()); + errorBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.rpc.Status, com.google.rpc.Status.Builder, com.google.rpc.StatusOrBuilder>( + (com.google.rpc.Status) result_, + getParentForChildren(), + isClean()); result_ = null; } resultCase_ = 3; onChanged(); return errorBuilder_; } - @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { @@ -1599,48 +1344,41 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.securitycentermanagement.v1.SimulateSecurityHealthAnalyticsCustomModuleResponse.SimulatedResult) } // @@protoc_insertion_point(class_scope:google.cloud.securitycentermanagement.v1.SimulateSecurityHealthAnalyticsCustomModuleResponse.SimulatedResult) - private static final com.google.cloud.securitycentermanagement.v1 - .SimulateSecurityHealthAnalyticsCustomModuleResponse.SimulatedResult - DEFAULT_INSTANCE; - + private static final com.google.cloud.securitycentermanagement.v1.SimulateSecurityHealthAnalyticsCustomModuleResponse.SimulatedResult DEFAULT_INSTANCE; static { - DEFAULT_INSTANCE = - new com.google.cloud.securitycentermanagement.v1 - .SimulateSecurityHealthAnalyticsCustomModuleResponse.SimulatedResult(); + DEFAULT_INSTANCE = new com.google.cloud.securitycentermanagement.v1.SimulateSecurityHealthAnalyticsCustomModuleResponse.SimulatedResult(); } - public static com.google.cloud.securitycentermanagement.v1 - .SimulateSecurityHealthAnalyticsCustomModuleResponse.SimulatedResult - getDefaultInstance() { + public static com.google.cloud.securitycentermanagement.v1.SimulateSecurityHealthAnalyticsCustomModuleResponse.SimulatedResult getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public SimulatedResult parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException() - .setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public SimulatedResult parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1652,28 +1390,20 @@ public com.google.protobuf.Parser getParserForType() { } @java.lang.Override - public com.google.cloud.securitycentermanagement.v1 - .SimulateSecurityHealthAnalyticsCustomModuleResponse.SimulatedResult - getDefaultInstanceForType() { + public com.google.cloud.securitycentermanagement.v1.SimulateSecurityHealthAnalyticsCustomModuleResponse.SimulatedResult getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } public static final int RESULT_FIELD_NUMBER = 1; - private com.google.cloud.securitycentermanagement.v1 - .SimulateSecurityHealthAnalyticsCustomModuleResponse.SimulatedResult - result_; + private com.google.cloud.securitycentermanagement.v1.SimulateSecurityHealthAnalyticsCustomModuleResponse.SimulatedResult result_; /** - * - * *
    * Result for test case in the corresponding request.
    * 
* - * - * .google.cloud.securitycentermanagement.v1.SimulateSecurityHealthAnalyticsCustomModuleResponse.SimulatedResult result = 1; - * - * + * .google.cloud.securitycentermanagement.v1.SimulateSecurityHealthAnalyticsCustomModuleResponse.SimulatedResult result = 1; * @return Whether the result field is set. */ @java.lang.Override @@ -1681,52 +1411,30 @@ public boolean hasResult() { return result_ != null; } /** - * - * *
    * Result for test case in the corresponding request.
    * 
* - * - * .google.cloud.securitycentermanagement.v1.SimulateSecurityHealthAnalyticsCustomModuleResponse.SimulatedResult result = 1; - * - * + * .google.cloud.securitycentermanagement.v1.SimulateSecurityHealthAnalyticsCustomModuleResponse.SimulatedResult result = 1; * @return The result. */ @java.lang.Override - public com.google.cloud.securitycentermanagement.v1 - .SimulateSecurityHealthAnalyticsCustomModuleResponse.SimulatedResult - getResult() { - return result_ == null - ? com.google.cloud.securitycentermanagement.v1 - .SimulateSecurityHealthAnalyticsCustomModuleResponse.SimulatedResult - .getDefaultInstance() - : result_; + public com.google.cloud.securitycentermanagement.v1.SimulateSecurityHealthAnalyticsCustomModuleResponse.SimulatedResult getResult() { + return result_ == null ? com.google.cloud.securitycentermanagement.v1.SimulateSecurityHealthAnalyticsCustomModuleResponse.SimulatedResult.getDefaultInstance() : result_; } /** - * - * *
    * Result for test case in the corresponding request.
    * 
* - * - * .google.cloud.securitycentermanagement.v1.SimulateSecurityHealthAnalyticsCustomModuleResponse.SimulatedResult result = 1; - * + * .google.cloud.securitycentermanagement.v1.SimulateSecurityHealthAnalyticsCustomModuleResponse.SimulatedResult result = 1; */ @java.lang.Override - public com.google.cloud.securitycentermanagement.v1 - .SimulateSecurityHealthAnalyticsCustomModuleResponse.SimulatedResultOrBuilder - getResultOrBuilder() { - return result_ == null - ? com.google.cloud.securitycentermanagement.v1 - .SimulateSecurityHealthAnalyticsCustomModuleResponse.SimulatedResult - .getDefaultInstance() - : result_; + public com.google.cloud.securitycentermanagement.v1.SimulateSecurityHealthAnalyticsCustomModuleResponse.SimulatedResultOrBuilder getResultOrBuilder() { + return result_ == null ? com.google.cloud.securitycentermanagement.v1.SimulateSecurityHealthAnalyticsCustomModuleResponse.SimulatedResult.getDefaultInstance() : result_; } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -1738,7 +1446,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (result_ != null) { output.writeMessage(1, getResult()); } @@ -1752,7 +1461,8 @@ public int getSerializedSize() { size = 0; if (result_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getResult()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, getResult()); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -1762,23 +1472,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.securitycentermanagement.v1 - .SimulateSecurityHealthAnalyticsCustomModuleResponse)) { + if (!(obj instanceof com.google.cloud.securitycentermanagement.v1.SimulateSecurityHealthAnalyticsCustomModuleResponse)) { return super.equals(obj); } - com.google.cloud.securitycentermanagement.v1.SimulateSecurityHealthAnalyticsCustomModuleResponse - other = - (com.google.cloud.securitycentermanagement.v1 - .SimulateSecurityHealthAnalyticsCustomModuleResponse) - obj; + com.google.cloud.securitycentermanagement.v1.SimulateSecurityHealthAnalyticsCustomModuleResponse other = (com.google.cloud.securitycentermanagement.v1.SimulateSecurityHealthAnalyticsCustomModuleResponse) obj; if (hasResult() != other.hasResult()) return false; if (hasResult()) { - if (!getResult().equals(other.getResult())) return false; + if (!getResult() + .equals(other.getResult())) return false; } if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; @@ -1800,163 +1504,133 @@ public int hashCode() { return hash; } - public static com.google.cloud.securitycentermanagement.v1 - .SimulateSecurityHealthAnalyticsCustomModuleResponse - parseFrom(java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.securitycentermanagement.v1.SimulateSecurityHealthAnalyticsCustomModuleResponse parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - - public static com.google.cloud.securitycentermanagement.v1 - .SimulateSecurityHealthAnalyticsCustomModuleResponse - parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.securitycentermanagement.v1.SimulateSecurityHealthAnalyticsCustomModuleResponse 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.securitycentermanagement.v1 - .SimulateSecurityHealthAnalyticsCustomModuleResponse - parseFrom(com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.securitycentermanagement.v1.SimulateSecurityHealthAnalyticsCustomModuleResponse parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - - public static com.google.cloud.securitycentermanagement.v1 - .SimulateSecurityHealthAnalyticsCustomModuleResponse - parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.securitycentermanagement.v1.SimulateSecurityHealthAnalyticsCustomModuleResponse parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.securitycentermanagement.v1 - .SimulateSecurityHealthAnalyticsCustomModuleResponse - parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.securitycentermanagement.v1.SimulateSecurityHealthAnalyticsCustomModuleResponse parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - - public static com.google.cloud.securitycentermanagement.v1 - .SimulateSecurityHealthAnalyticsCustomModuleResponse - parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.securitycentermanagement.v1.SimulateSecurityHealthAnalyticsCustomModuleResponse parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.securitycentermanagement.v1 - .SimulateSecurityHealthAnalyticsCustomModuleResponse - parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.securitycentermanagement.v1.SimulateSecurityHealthAnalyticsCustomModuleResponse parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - - public static com.google.cloud.securitycentermanagement.v1 - .SimulateSecurityHealthAnalyticsCustomModuleResponse - 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.securitycentermanagement.v1.SimulateSecurityHealthAnalyticsCustomModuleResponse 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.securitycentermanagement.v1 - .SimulateSecurityHealthAnalyticsCustomModuleResponse - parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.securitycentermanagement.v1.SimulateSecurityHealthAnalyticsCustomModuleResponse parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.securitycentermanagement.v1 - .SimulateSecurityHealthAnalyticsCustomModuleResponse - parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + public static com.google.cloud.securitycentermanagement.v1.SimulateSecurityHealthAnalyticsCustomModuleResponse parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.securitycentermanagement.v1 - .SimulateSecurityHealthAnalyticsCustomModuleResponse - parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.securitycentermanagement.v1.SimulateSecurityHealthAnalyticsCustomModuleResponse parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - - public static com.google.cloud.securitycentermanagement.v1 - .SimulateSecurityHealthAnalyticsCustomModuleResponse - 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.securitycentermanagement.v1.SimulateSecurityHealthAnalyticsCustomModuleResponse 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.securitycentermanagement.v1 - .SimulateSecurityHealthAnalyticsCustomModuleResponse - prototype) { + public static Builder newBuilder(com.google.cloud.securitycentermanagement.v1.SimulateSecurityHealthAnalyticsCustomModuleResponse prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected 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 simulating a `SecurityHealthAnalyticsCustomModule`
    * against a given resource.
    * 
* - * Protobuf type {@code - * google.cloud.securitycentermanagement.v1.SimulateSecurityHealthAnalyticsCustomModuleResponse} + * Protobuf type {@code google.cloud.securitycentermanagement.v1.SimulateSecurityHealthAnalyticsCustomModuleResponse} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.securitycentermanagement.v1.SimulateSecurityHealthAnalyticsCustomModuleResponse) - com.google.cloud.securitycentermanagement.v1 - .SimulateSecurityHealthAnalyticsCustomModuleResponseOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.securitycentermanagement.v1.SecurityCenterManagementProto - .internal_static_google_cloud_securitycentermanagement_v1_SimulateSecurityHealthAnalyticsCustomModuleResponse_descriptor; + com.google.cloud.securitycentermanagement.v1.SimulateSecurityHealthAnalyticsCustomModuleResponseOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.securitycentermanagement.v1.SecurityCenterManagementProto.internal_static_google_cloud_securitycentermanagement_v1_SimulateSecurityHealthAnalyticsCustomModuleResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.securitycentermanagement.v1.SecurityCenterManagementProto - .internal_static_google_cloud_securitycentermanagement_v1_SimulateSecurityHealthAnalyticsCustomModuleResponse_fieldAccessorTable + return com.google.cloud.securitycentermanagement.v1.SecurityCenterManagementProto.internal_static_google_cloud_securitycentermanagement_v1_SimulateSecurityHealthAnalyticsCustomModuleResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.securitycentermanagement.v1 - .SimulateSecurityHealthAnalyticsCustomModuleResponse.class, - com.google.cloud.securitycentermanagement.v1 - .SimulateSecurityHealthAnalyticsCustomModuleResponse.Builder.class); + com.google.cloud.securitycentermanagement.v1.SimulateSecurityHealthAnalyticsCustomModuleResponse.class, com.google.cloud.securitycentermanagement.v1.SimulateSecurityHealthAnalyticsCustomModuleResponse.Builder.class); } - // Construct using - // com.google.cloud.securitycentermanagement.v1.SimulateSecurityHealthAnalyticsCustomModuleResponse.newBuilder() - private Builder() {} + // Construct using com.google.cloud.securitycentermanagement.v1.SimulateSecurityHealthAnalyticsCustomModuleResponse.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(); @@ -1970,26 +1644,19 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.securitycentermanagement.v1.SecurityCenterManagementProto - .internal_static_google_cloud_securitycentermanagement_v1_SimulateSecurityHealthAnalyticsCustomModuleResponse_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.securitycentermanagement.v1.SecurityCenterManagementProto.internal_static_google_cloud_securitycentermanagement_v1_SimulateSecurityHealthAnalyticsCustomModuleResponse_descriptor; } @java.lang.Override - public com.google.cloud.securitycentermanagement.v1 - .SimulateSecurityHealthAnalyticsCustomModuleResponse - getDefaultInstanceForType() { - return com.google.cloud.securitycentermanagement.v1 - .SimulateSecurityHealthAnalyticsCustomModuleResponse.getDefaultInstance(); + public com.google.cloud.securitycentermanagement.v1.SimulateSecurityHealthAnalyticsCustomModuleResponse getDefaultInstanceForType() { + return com.google.cloud.securitycentermanagement.v1.SimulateSecurityHealthAnalyticsCustomModuleResponse.getDefaultInstance(); } @java.lang.Override - public com.google.cloud.securitycentermanagement.v1 - .SimulateSecurityHealthAnalyticsCustomModuleResponse - build() { - com.google.cloud.securitycentermanagement.v1 - .SimulateSecurityHealthAnalyticsCustomModuleResponse - result = buildPartial(); + public com.google.cloud.securitycentermanagement.v1.SimulateSecurityHealthAnalyticsCustomModuleResponse build() { + com.google.cloud.securitycentermanagement.v1.SimulateSecurityHealthAnalyticsCustomModuleResponse result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } @@ -1997,28 +1664,19 @@ public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { } @java.lang.Override - public com.google.cloud.securitycentermanagement.v1 - .SimulateSecurityHealthAnalyticsCustomModuleResponse - buildPartial() { - com.google.cloud.securitycentermanagement.v1 - .SimulateSecurityHealthAnalyticsCustomModuleResponse - result = - new com.google.cloud.securitycentermanagement.v1 - .SimulateSecurityHealthAnalyticsCustomModuleResponse(this); - if (bitField0_ != 0) { - buildPartial0(result); - } + public com.google.cloud.securitycentermanagement.v1.SimulateSecurityHealthAnalyticsCustomModuleResponse buildPartial() { + com.google.cloud.securitycentermanagement.v1.SimulateSecurityHealthAnalyticsCustomModuleResponse result = new com.google.cloud.securitycentermanagement.v1.SimulateSecurityHealthAnalyticsCustomModuleResponse(this); + if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } - private void buildPartial0( - com.google.cloud.securitycentermanagement.v1 - .SimulateSecurityHealthAnalyticsCustomModuleResponse - result) { + private void buildPartial0(com.google.cloud.securitycentermanagement.v1.SimulateSecurityHealthAnalyticsCustomModuleResponse result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000001) != 0)) { - result.result_ = resultBuilder_ == null ? result_ : resultBuilder_.build(); + result.result_ = resultBuilder_ == null + ? result_ + : resultBuilder_.build(); } } @@ -2026,59 +1684,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.securitycentermanagement.v1 - .SimulateSecurityHealthAnalyticsCustomModuleResponse) { - return mergeFrom( - (com.google.cloud.securitycentermanagement.v1 - .SimulateSecurityHealthAnalyticsCustomModuleResponse) - other); + if (other instanceof com.google.cloud.securitycentermanagement.v1.SimulateSecurityHealthAnalyticsCustomModuleResponse) { + return mergeFrom((com.google.cloud.securitycentermanagement.v1.SimulateSecurityHealthAnalyticsCustomModuleResponse)other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom( - com.google.cloud.securitycentermanagement.v1 - .SimulateSecurityHealthAnalyticsCustomModuleResponse - other) { - if (other - == com.google.cloud.securitycentermanagement.v1 - .SimulateSecurityHealthAnalyticsCustomModuleResponse.getDefaultInstance()) - return this; + public Builder mergeFrom(com.google.cloud.securitycentermanagement.v1.SimulateSecurityHealthAnalyticsCustomModuleResponse other) { + if (other == com.google.cloud.securitycentermanagement.v1.SimulateSecurityHealthAnalyticsCustomModuleResponse.getDefaultInstance()) return this; if (other.hasResult()) { mergeResult(other.getResult()); } @@ -2108,19 +1753,19 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: - { - input.readMessage(getResultFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00000001; - break; - } // case 10 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: { + input.readMessage( + getResultFieldBuilder().getBuilder(), + extensionRegistry); + 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) { @@ -2130,77 +1775,45 @@ public Builder mergeFrom( } // finally return this; } - private int bitField0_; - private com.google.cloud.securitycentermanagement.v1 - .SimulateSecurityHealthAnalyticsCustomModuleResponse.SimulatedResult - result_; + private com.google.cloud.securitycentermanagement.v1.SimulateSecurityHealthAnalyticsCustomModuleResponse.SimulatedResult result_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.securitycentermanagement.v1 - .SimulateSecurityHealthAnalyticsCustomModuleResponse.SimulatedResult, - com.google.cloud.securitycentermanagement.v1 - .SimulateSecurityHealthAnalyticsCustomModuleResponse.SimulatedResult.Builder, - com.google.cloud.securitycentermanagement.v1 - .SimulateSecurityHealthAnalyticsCustomModuleResponse.SimulatedResultOrBuilder> - resultBuilder_; + com.google.cloud.securitycentermanagement.v1.SimulateSecurityHealthAnalyticsCustomModuleResponse.SimulatedResult, com.google.cloud.securitycentermanagement.v1.SimulateSecurityHealthAnalyticsCustomModuleResponse.SimulatedResult.Builder, com.google.cloud.securitycentermanagement.v1.SimulateSecurityHealthAnalyticsCustomModuleResponse.SimulatedResultOrBuilder> resultBuilder_; /** - * - * *
      * Result for test case in the corresponding request.
      * 
* - * - * .google.cloud.securitycentermanagement.v1.SimulateSecurityHealthAnalyticsCustomModuleResponse.SimulatedResult result = 1; - * - * + * .google.cloud.securitycentermanagement.v1.SimulateSecurityHealthAnalyticsCustomModuleResponse.SimulatedResult result = 1; * @return Whether the result field is set. */ public boolean hasResult() { return ((bitField0_ & 0x00000001) != 0); } /** - * - * *
      * Result for test case in the corresponding request.
      * 
* - * - * .google.cloud.securitycentermanagement.v1.SimulateSecurityHealthAnalyticsCustomModuleResponse.SimulatedResult result = 1; - * - * + * .google.cloud.securitycentermanagement.v1.SimulateSecurityHealthAnalyticsCustomModuleResponse.SimulatedResult result = 1; * @return The result. */ - public com.google.cloud.securitycentermanagement.v1 - .SimulateSecurityHealthAnalyticsCustomModuleResponse.SimulatedResult - getResult() { + public com.google.cloud.securitycentermanagement.v1.SimulateSecurityHealthAnalyticsCustomModuleResponse.SimulatedResult getResult() { if (resultBuilder_ == null) { - return result_ == null - ? com.google.cloud.securitycentermanagement.v1 - .SimulateSecurityHealthAnalyticsCustomModuleResponse.SimulatedResult - .getDefaultInstance() - : result_; + return result_ == null ? com.google.cloud.securitycentermanagement.v1.SimulateSecurityHealthAnalyticsCustomModuleResponse.SimulatedResult.getDefaultInstance() : result_; } else { return resultBuilder_.getMessage(); } } /** - * - * *
      * Result for test case in the corresponding request.
      * 
* - * - * .google.cloud.securitycentermanagement.v1.SimulateSecurityHealthAnalyticsCustomModuleResponse.SimulatedResult result = 1; - * + * .google.cloud.securitycentermanagement.v1.SimulateSecurityHealthAnalyticsCustomModuleResponse.SimulatedResult result = 1; */ - public Builder setResult( - com.google.cloud.securitycentermanagement.v1 - .SimulateSecurityHealthAnalyticsCustomModuleResponse.SimulatedResult - value) { + public Builder setResult(com.google.cloud.securitycentermanagement.v1.SimulateSecurityHealthAnalyticsCustomModuleResponse.SimulatedResult value) { if (resultBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -2214,20 +1827,14 @@ public Builder setResult( return this; } /** - * - * *
      * Result for test case in the corresponding request.
      * 
* - * - * .google.cloud.securitycentermanagement.v1.SimulateSecurityHealthAnalyticsCustomModuleResponse.SimulatedResult result = 1; - * + * .google.cloud.securitycentermanagement.v1.SimulateSecurityHealthAnalyticsCustomModuleResponse.SimulatedResult result = 1; */ public Builder setResult( - com.google.cloud.securitycentermanagement.v1 - .SimulateSecurityHealthAnalyticsCustomModuleResponse.SimulatedResult.Builder - builderForValue) { + com.google.cloud.securitycentermanagement.v1.SimulateSecurityHealthAnalyticsCustomModuleResponse.SimulatedResult.Builder builderForValue) { if (resultBuilder_ == null) { result_ = builderForValue.build(); } else { @@ -2238,27 +1845,17 @@ public Builder setResult( return this; } /** - * - * *
      * Result for test case in the corresponding request.
      * 
* - * - * .google.cloud.securitycentermanagement.v1.SimulateSecurityHealthAnalyticsCustomModuleResponse.SimulatedResult result = 1; - * + * .google.cloud.securitycentermanagement.v1.SimulateSecurityHealthAnalyticsCustomModuleResponse.SimulatedResult result = 1; */ - public Builder mergeResult( - com.google.cloud.securitycentermanagement.v1 - .SimulateSecurityHealthAnalyticsCustomModuleResponse.SimulatedResult - value) { + public Builder mergeResult(com.google.cloud.securitycentermanagement.v1.SimulateSecurityHealthAnalyticsCustomModuleResponse.SimulatedResult value) { if (resultBuilder_ == null) { - if (((bitField0_ & 0x00000001) != 0) - && result_ != null - && result_ - != com.google.cloud.securitycentermanagement.v1 - .SimulateSecurityHealthAnalyticsCustomModuleResponse.SimulatedResult - .getDefaultInstance()) { + if (((bitField0_ & 0x00000001) != 0) && + result_ != null && + result_ != com.google.cloud.securitycentermanagement.v1.SimulateSecurityHealthAnalyticsCustomModuleResponse.SimulatedResult.getDefaultInstance()) { getResultBuilder().mergeFrom(value); } else { result_ = value; @@ -2271,15 +1868,11 @@ public Builder mergeResult( return this; } /** - * - * *
      * Result for test case in the corresponding request.
      * 
* - * - * .google.cloud.securitycentermanagement.v1.SimulateSecurityHealthAnalyticsCustomModuleResponse.SimulatedResult result = 1; - * + * .google.cloud.securitycentermanagement.v1.SimulateSecurityHealthAnalyticsCustomModuleResponse.SimulatedResult result = 1; */ public Builder clearResult() { bitField0_ = (bitField0_ & ~0x00000001); @@ -2292,83 +1885,55 @@ public Builder clearResult() { return this; } /** - * - * *
      * Result for test case in the corresponding request.
      * 
* - * - * .google.cloud.securitycentermanagement.v1.SimulateSecurityHealthAnalyticsCustomModuleResponse.SimulatedResult result = 1; - * + * .google.cloud.securitycentermanagement.v1.SimulateSecurityHealthAnalyticsCustomModuleResponse.SimulatedResult result = 1; */ - public com.google.cloud.securitycentermanagement.v1 - .SimulateSecurityHealthAnalyticsCustomModuleResponse.SimulatedResult.Builder - getResultBuilder() { + public com.google.cloud.securitycentermanagement.v1.SimulateSecurityHealthAnalyticsCustomModuleResponse.SimulatedResult.Builder getResultBuilder() { bitField0_ |= 0x00000001; onChanged(); return getResultFieldBuilder().getBuilder(); } /** - * - * *
      * Result for test case in the corresponding request.
      * 
* - * - * .google.cloud.securitycentermanagement.v1.SimulateSecurityHealthAnalyticsCustomModuleResponse.SimulatedResult result = 1; - * + * .google.cloud.securitycentermanagement.v1.SimulateSecurityHealthAnalyticsCustomModuleResponse.SimulatedResult result = 1; */ - public com.google.cloud.securitycentermanagement.v1 - .SimulateSecurityHealthAnalyticsCustomModuleResponse.SimulatedResultOrBuilder - getResultOrBuilder() { + public com.google.cloud.securitycentermanagement.v1.SimulateSecurityHealthAnalyticsCustomModuleResponse.SimulatedResultOrBuilder getResultOrBuilder() { if (resultBuilder_ != null) { return resultBuilder_.getMessageOrBuilder(); } else { - return result_ == null - ? com.google.cloud.securitycentermanagement.v1 - .SimulateSecurityHealthAnalyticsCustomModuleResponse.SimulatedResult - .getDefaultInstance() - : result_; + return result_ == null ? + com.google.cloud.securitycentermanagement.v1.SimulateSecurityHealthAnalyticsCustomModuleResponse.SimulatedResult.getDefaultInstance() : result_; } } /** - * - * *
      * Result for test case in the corresponding request.
      * 
* - * - * .google.cloud.securitycentermanagement.v1.SimulateSecurityHealthAnalyticsCustomModuleResponse.SimulatedResult result = 1; - * + * .google.cloud.securitycentermanagement.v1.SimulateSecurityHealthAnalyticsCustomModuleResponse.SimulatedResult result = 1; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.securitycentermanagement.v1 - .SimulateSecurityHealthAnalyticsCustomModuleResponse.SimulatedResult, - com.google.cloud.securitycentermanagement.v1 - .SimulateSecurityHealthAnalyticsCustomModuleResponse.SimulatedResult.Builder, - com.google.cloud.securitycentermanagement.v1 - .SimulateSecurityHealthAnalyticsCustomModuleResponse.SimulatedResultOrBuilder> + com.google.cloud.securitycentermanagement.v1.SimulateSecurityHealthAnalyticsCustomModuleResponse.SimulatedResult, com.google.cloud.securitycentermanagement.v1.SimulateSecurityHealthAnalyticsCustomModuleResponse.SimulatedResult.Builder, com.google.cloud.securitycentermanagement.v1.SimulateSecurityHealthAnalyticsCustomModuleResponse.SimulatedResultOrBuilder> getResultFieldBuilder() { if (resultBuilder_ == null) { - resultBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.securitycentermanagement.v1 - .SimulateSecurityHealthAnalyticsCustomModuleResponse.SimulatedResult, - com.google.cloud.securitycentermanagement.v1 - .SimulateSecurityHealthAnalyticsCustomModuleResponse.SimulatedResult.Builder, - com.google.cloud.securitycentermanagement.v1 - .SimulateSecurityHealthAnalyticsCustomModuleResponse.SimulatedResultOrBuilder>( - getResult(), getParentForChildren(), isClean()); + resultBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.securitycentermanagement.v1.SimulateSecurityHealthAnalyticsCustomModuleResponse.SimulatedResult, com.google.cloud.securitycentermanagement.v1.SimulateSecurityHealthAnalyticsCustomModuleResponse.SimulatedResult.Builder, com.google.cloud.securitycentermanagement.v1.SimulateSecurityHealthAnalyticsCustomModuleResponse.SimulatedResultOrBuilder>( + getResult(), + getParentForChildren(), + isClean()); result_ = null; } return resultBuilder_; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -2378,67 +1943,55 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.securitycentermanagement.v1.SimulateSecurityHealthAnalyticsCustomModuleResponse) } // @@protoc_insertion_point(class_scope:google.cloud.securitycentermanagement.v1.SimulateSecurityHealthAnalyticsCustomModuleResponse) - private static final com.google.cloud.securitycentermanagement.v1 - .SimulateSecurityHealthAnalyticsCustomModuleResponse - DEFAULT_INSTANCE; - + private static final com.google.cloud.securitycentermanagement.v1.SimulateSecurityHealthAnalyticsCustomModuleResponse DEFAULT_INSTANCE; static { - DEFAULT_INSTANCE = - new com.google.cloud.securitycentermanagement.v1 - .SimulateSecurityHealthAnalyticsCustomModuleResponse(); + DEFAULT_INSTANCE = new com.google.cloud.securitycentermanagement.v1.SimulateSecurityHealthAnalyticsCustomModuleResponse(); } - public static com.google.cloud.securitycentermanagement.v1 - .SimulateSecurityHealthAnalyticsCustomModuleResponse - getDefaultInstance() { + public static com.google.cloud.securitycentermanagement.v1.SimulateSecurityHealthAnalyticsCustomModuleResponse getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser< - SimulateSecurityHealthAnalyticsCustomModuleResponse> - PARSER = - new com.google.protobuf.AbstractParser< - SimulateSecurityHealthAnalyticsCustomModuleResponse>() { - @java.lang.Override - public SimulateSecurityHealthAnalyticsCustomModuleResponse parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException() - .setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public SimulateSecurityHealthAnalyticsCustomModuleResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; - public static com.google.protobuf.Parser - parser() { + public static com.google.protobuf.Parser parser() { return PARSER; } @java.lang.Override - public com.google.protobuf.Parser - getParserForType() { + public com.google.protobuf.Parser getParserForType() { return PARSER; } @java.lang.Override - public com.google.cloud.securitycentermanagement.v1 - .SimulateSecurityHealthAnalyticsCustomModuleResponse - getDefaultInstanceForType() { + public com.google.cloud.securitycentermanagement.v1.SimulateSecurityHealthAnalyticsCustomModuleResponse getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/owl-bot-staging/java-securitycentermanagement/v1/proto-google-cloud-securitycentermanagement-v1/src/main/java/com/google/cloud/securitycentermanagement/v1/SimulateSecurityHealthAnalyticsCustomModuleResponseOrBuilder.java b/owl-bot-staging/java-securitycentermanagement/v1/proto-google-cloud-securitycentermanagement-v1/src/main/java/com/google/cloud/securitycentermanagement/v1/SimulateSecurityHealthAnalyticsCustomModuleResponseOrBuilder.java new file mode 100644 index 000000000000..d238b93143e1 --- /dev/null +++ b/owl-bot-staging/java-securitycentermanagement/v1/proto-google-cloud-securitycentermanagement-v1/src/main/java/com/google/cloud/securitycentermanagement/v1/SimulateSecurityHealthAnalyticsCustomModuleResponseOrBuilder.java @@ -0,0 +1,36 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/securitycentermanagement/v1/security_center_management.proto + +package com.google.cloud.securitycentermanagement.v1; + +public interface SimulateSecurityHealthAnalyticsCustomModuleResponseOrBuilder extends + // @@protoc_insertion_point(interface_extends:google.cloud.securitycentermanagement.v1.SimulateSecurityHealthAnalyticsCustomModuleResponse) + com.google.protobuf.MessageOrBuilder { + + /** + *
+   * Result for test case in the corresponding request.
+   * 
+ * + * .google.cloud.securitycentermanagement.v1.SimulateSecurityHealthAnalyticsCustomModuleResponse.SimulatedResult result = 1; + * @return Whether the result field is set. + */ + boolean hasResult(); + /** + *
+   * Result for test case in the corresponding request.
+   * 
+ * + * .google.cloud.securitycentermanagement.v1.SimulateSecurityHealthAnalyticsCustomModuleResponse.SimulatedResult result = 1; + * @return The result. + */ + com.google.cloud.securitycentermanagement.v1.SimulateSecurityHealthAnalyticsCustomModuleResponse.SimulatedResult getResult(); + /** + *
+   * Result for test case in the corresponding request.
+   * 
+ * + * .google.cloud.securitycentermanagement.v1.SimulateSecurityHealthAnalyticsCustomModuleResponse.SimulatedResult result = 1; + */ + com.google.cloud.securitycentermanagement.v1.SimulateSecurityHealthAnalyticsCustomModuleResponse.SimulatedResultOrBuilder getResultOrBuilder(); +} diff --git a/java-securitycentermanagement/proto-google-cloud-securitycentermanagement-v1/src/main/java/com/google/cloud/securitycentermanagement/v1/SimulatedFinding.java b/owl-bot-staging/java-securitycentermanagement/v1/proto-google-cloud-securitycentermanagement-v1/src/main/java/com/google/cloud/securitycentermanagement/v1/SimulatedFinding.java similarity index 73% rename from java-securitycentermanagement/proto-google-cloud-securitycentermanagement-v1/src/main/java/com/google/cloud/securitycentermanagement/v1/SimulatedFinding.java rename to owl-bot-staging/java-securitycentermanagement/v1/proto-google-cloud-securitycentermanagement-v1/src/main/java/com/google/cloud/securitycentermanagement/v1/SimulatedFinding.java index 4ddd706272cc..183abe42cfff 100644 --- a/java-securitycentermanagement/proto-google-cloud-securitycentermanagement-v1/src/main/java/com/google/cloud/securitycentermanagement/v1/SimulatedFinding.java +++ b/owl-bot-staging/java-securitycentermanagement/v1/proto-google-cloud-securitycentermanagement-v1/src/main/java/com/google/cloud/securitycentermanagement/v1/SimulatedFinding.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/securitycentermanagement/v1/security_center_management.proto package com.google.cloud.securitycentermanagement.v1; /** - * - * *
  * A subset of the fields of the Security Center Finding proto. The minimum set
  * of fields needed to represent a simulated finding from a SHA custom module.
@@ -28,16 +11,15 @@
  *
  * Protobuf type {@code google.cloud.securitycentermanagement.v1.SimulatedFinding}
  */
-public final class SimulatedFinding extends com.google.protobuf.GeneratedMessageV3
-    implements
+public final class SimulatedFinding extends
+    com.google.protobuf.GeneratedMessageV3 implements
     // @@protoc_insertion_point(message_implements:google.cloud.securitycentermanagement.v1.SimulatedFinding)
     SimulatedFindingOrBuilder {
-  private static final long serialVersionUID = 0L;
+private static final long serialVersionUID = 0L;
   // Use SimulatedFinding.newBuilder() to construct.
   private SimulatedFinding(com.google.protobuf.GeneratedMessageV3.Builder builder) {
     super(builder);
   }
-
   private SimulatedFinding() {
     name_ = "";
     parent_ = "";
@@ -50,49 +32,46 @@ private SimulatedFinding() {
 
   @java.lang.Override
   @SuppressWarnings({"unused"})
-  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
+  protected java.lang.Object newInstance(
+      UnusedPrivateParameter unused) {
     return new SimulatedFinding();
   }
 
-  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-    return com.google.cloud.securitycentermanagement.v1.SecurityCenterManagementProto
-        .internal_static_google_cloud_securitycentermanagement_v1_SimulatedFinding_descriptor;
+  public static final com.google.protobuf.Descriptors.Descriptor
+      getDescriptor() {
+    return com.google.cloud.securitycentermanagement.v1.SecurityCenterManagementProto.internal_static_google_cloud_securitycentermanagement_v1_SimulatedFinding_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 6:
         return internalGetSourceProperties();
       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.securitycentermanagement.v1.SecurityCenterManagementProto
-        .internal_static_google_cloud_securitycentermanagement_v1_SimulatedFinding_fieldAccessorTable
+    return com.google.cloud.securitycentermanagement.v1.SecurityCenterManagementProto.internal_static_google_cloud_securitycentermanagement_v1_SimulatedFinding_fieldAccessorTable
         .ensureFieldAccessorsInitialized(
-            com.google.cloud.securitycentermanagement.v1.SimulatedFinding.class,
-            com.google.cloud.securitycentermanagement.v1.SimulatedFinding.Builder.class);
+            com.google.cloud.securitycentermanagement.v1.SimulatedFinding.class, com.google.cloud.securitycentermanagement.v1.SimulatedFinding.Builder.class);
   }
 
   /**
-   *
-   *
    * 
    * The state of the finding.
    * 
* * Protobuf enum {@code google.cloud.securitycentermanagement.v1.SimulatedFinding.State} */ - public enum State implements com.google.protobuf.ProtocolMessageEnum { + public enum State + implements com.google.protobuf.ProtocolMessageEnum { /** - * - * *
      * Unspecified state.
      * 
@@ -101,8 +80,6 @@ public enum State implements com.google.protobuf.ProtocolMessageEnum { */ STATE_UNSPECIFIED(0), /** - * - * *
      * The finding requires attention and has not been addressed yet.
      * 
@@ -111,8 +88,6 @@ public enum State implements com.google.protobuf.ProtocolMessageEnum { */ ACTIVE(1), /** - * - * *
      * The finding has been fixed, triaged as a non-issue or otherwise addressed
      * and is no longer active.
@@ -125,8 +100,6 @@ public enum State implements com.google.protobuf.ProtocolMessageEnum {
     ;
 
     /**
-     *
-     *
      * 
      * Unspecified state.
      * 
@@ -135,8 +108,6 @@ public enum State implements com.google.protobuf.ProtocolMessageEnum { */ public static final int STATE_UNSPECIFIED_VALUE = 0; /** - * - * *
      * The finding requires attention and has not been addressed yet.
      * 
@@ -145,8 +116,6 @@ public enum State implements com.google.protobuf.ProtocolMessageEnum { */ public static final int ACTIVE_VALUE = 1; /** - * - * *
      * The finding has been fixed, triaged as a non-issue or otherwise addressed
      * and is no longer active.
@@ -156,6 +125,7 @@ public enum State implements com.google.protobuf.ProtocolMessageEnum {
      */
     public static final int INACTIVE_VALUE = 2;
 
+
     public final int getNumber() {
       if (this == UNRECOGNIZED) {
         throw new java.lang.IllegalArgumentException(
@@ -180,51 +150,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 INACTIVE;
-        default:
-          return null;
+        case 0: return STATE_UNSPECIFIED;
+        case 1: return ACTIVE;
+        case 2: return INACTIVE;
+        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.securitycentermanagement.v1.SimulatedFinding.getDescriptor()
-          .getEnumTypes()
-          .get(0);
+    public static final com.google.protobuf.Descriptors.EnumDescriptor
+        getDescriptor() {
+      return com.google.cloud.securitycentermanagement.v1.SimulatedFinding.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;
@@ -242,18 +210,15 @@ private State(int value) {
   }
 
   /**
-   *
-   *
    * 
    * The severity of the finding.
    * 
* * Protobuf enum {@code google.cloud.securitycentermanagement.v1.SimulatedFinding.Severity} */ - public enum Severity implements com.google.protobuf.ProtocolMessageEnum { + public enum Severity + implements com.google.protobuf.ProtocolMessageEnum { /** - * - * *
      * This value is used for findings when a source doesn't write a severity
      * value.
@@ -263,8 +228,6 @@ public enum Severity implements com.google.protobuf.ProtocolMessageEnum {
      */
     SEVERITY_UNSPECIFIED(0),
     /**
-     *
-     *
      * 
      * Vulnerability:
      * A critical vulnerability is easily discoverable by an external actor,
@@ -283,8 +246,6 @@ public enum Severity implements com.google.protobuf.ProtocolMessageEnum {
      */
     CRITICAL(1),
     /**
-     *
-     *
      * 
      * Vulnerability:
      * A high risk vulnerability can be easily discovered and exploited in
@@ -305,8 +266,6 @@ public enum Severity implements com.google.protobuf.ProtocolMessageEnum {
      */
     HIGH(2),
     /**
-     *
-     *
      * 
      * Vulnerability:
      * A medium risk vulnerability could be used by an actor to gain access to
@@ -326,8 +285,6 @@ public enum Severity implements com.google.protobuf.ProtocolMessageEnum {
      */
     MEDIUM(3),
     /**
-     *
-     *
      * 
      * Vulnerability:
      * A low risk vulnerability hampers a security organization's ability to
@@ -347,8 +304,6 @@ public enum Severity implements com.google.protobuf.ProtocolMessageEnum {
     ;
 
     /**
-     *
-     *
      * 
      * This value is used for findings when a source doesn't write a severity
      * value.
@@ -358,8 +313,6 @@ public enum Severity implements com.google.protobuf.ProtocolMessageEnum {
      */
     public static final int SEVERITY_UNSPECIFIED_VALUE = 0;
     /**
-     *
-     *
      * 
      * Vulnerability:
      * A critical vulnerability is easily discoverable by an external actor,
@@ -378,8 +331,6 @@ public enum Severity implements com.google.protobuf.ProtocolMessageEnum {
      */
     public static final int CRITICAL_VALUE = 1;
     /**
-     *
-     *
      * 
      * Vulnerability:
      * A high risk vulnerability can be easily discovered and exploited in
@@ -400,8 +351,6 @@ public enum Severity implements com.google.protobuf.ProtocolMessageEnum {
      */
     public static final int HIGH_VALUE = 2;
     /**
-     *
-     *
      * 
      * Vulnerability:
      * A medium risk vulnerability could be used by an actor to gain access to
@@ -421,8 +370,6 @@ public enum Severity implements com.google.protobuf.ProtocolMessageEnum {
      */
     public static final int MEDIUM_VALUE = 3;
     /**
-     *
-     *
      * 
      * Vulnerability:
      * A low risk vulnerability hampers a security organization's ability to
@@ -439,6 +386,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(
@@ -463,55 +411,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() {
-      return com.google.cloud.securitycentermanagement.v1.SimulatedFinding.getDescriptor()
-          .getEnumTypes()
-          .get(1);
+    public static final com.google.protobuf.Descriptors.EnumDescriptor
+        getDescriptor() {
+      return com.google.cloud.securitycentermanagement.v1.SimulatedFinding.getDescriptor().getEnumTypes().get(1);
     }
 
     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;
@@ -529,18 +473,15 @@ private Severity(int value) {
   }
 
   /**
-   *
-   *
    * 
    * Represents what kind of Finding it is.
    * 
* * Protobuf enum {@code google.cloud.securitycentermanagement.v1.SimulatedFinding.FindingClass} */ - public enum FindingClass implements com.google.protobuf.ProtocolMessageEnum { + public enum FindingClass + implements com.google.protobuf.ProtocolMessageEnum { /** - * - * *
      * Unspecified finding class.
      * 
@@ -549,8 +490,6 @@ public enum FindingClass implements com.google.protobuf.ProtocolMessageEnum { */ FINDING_CLASS_UNSPECIFIED(0), /** - * - * *
      * Describes unwanted or malicious activity.
      * 
@@ -559,8 +498,6 @@ public enum FindingClass implements com.google.protobuf.ProtocolMessageEnum { */ THREAT(1), /** - * - * *
      * Describes a potential weakness in software that increases risk to
      * Confidentiality & Integrity & Availability.
@@ -570,8 +507,6 @@ public enum FindingClass implements com.google.protobuf.ProtocolMessageEnum {
      */
     VULNERABILITY(2),
     /**
-     *
-     *
      * 
      * Describes a potential weakness in cloud resource/asset configuration that
      * increases risk.
@@ -581,8 +516,6 @@ public enum FindingClass implements com.google.protobuf.ProtocolMessageEnum {
      */
     MISCONFIGURATION(3),
     /**
-     *
-     *
      * 
      * Describes a security observation that is for informational purposes.
      * 
@@ -591,8 +524,6 @@ public enum FindingClass implements com.google.protobuf.ProtocolMessageEnum { */ OBSERVATION(4), /** - * - * *
      * Describes an error that prevents some SCC functionality.
      * 
@@ -601,8 +532,6 @@ public enum FindingClass implements com.google.protobuf.ProtocolMessageEnum { */ SCC_ERROR(5), /** - * - * *
      * Describes a potential security risk due to a change in the security
      * posture.
@@ -615,8 +544,6 @@ public enum FindingClass implements com.google.protobuf.ProtocolMessageEnum {
     ;
 
     /**
-     *
-     *
      * 
      * Unspecified finding class.
      * 
@@ -625,8 +552,6 @@ public enum FindingClass implements com.google.protobuf.ProtocolMessageEnum { */ public static final int FINDING_CLASS_UNSPECIFIED_VALUE = 0; /** - * - * *
      * Describes unwanted or malicious activity.
      * 
@@ -635,8 +560,6 @@ public enum FindingClass implements com.google.protobuf.ProtocolMessageEnum { */ public static final int THREAT_VALUE = 1; /** - * - * *
      * Describes a potential weakness in software that increases risk to
      * Confidentiality & Integrity & Availability.
@@ -646,8 +569,6 @@ public enum FindingClass implements com.google.protobuf.ProtocolMessageEnum {
      */
     public static final int VULNERABILITY_VALUE = 2;
     /**
-     *
-     *
      * 
      * Describes a potential weakness in cloud resource/asset configuration that
      * increases risk.
@@ -657,8 +578,6 @@ public enum FindingClass implements com.google.protobuf.ProtocolMessageEnum {
      */
     public static final int MISCONFIGURATION_VALUE = 3;
     /**
-     *
-     *
      * 
      * Describes a security observation that is for informational purposes.
      * 
@@ -667,8 +586,6 @@ public enum FindingClass implements com.google.protobuf.ProtocolMessageEnum { */ public static final int OBSERVATION_VALUE = 4; /** - * - * *
      * Describes an error that prevents some SCC functionality.
      * 
@@ -677,8 +594,6 @@ public enum FindingClass implements com.google.protobuf.ProtocolMessageEnum { */ public static final int SCC_ERROR_VALUE = 5; /** - * - * *
      * Describes a potential security risk due to a change in the security
      * posture.
@@ -688,6 +603,7 @@ public enum FindingClass implements com.google.protobuf.ProtocolMessageEnum {
      */
     public static final int POSTURE_VIOLATION_VALUE = 6;
 
+
     public final int getNumber() {
       if (this == UNRECOGNIZED) {
         throw new java.lang.IllegalArgumentException(
@@ -712,59 +628,53 @@ public static FindingClass valueOf(int value) {
      */
     public static FindingClass forNumber(int value) {
       switch (value) {
-        case 0:
-          return FINDING_CLASS_UNSPECIFIED;
-        case 1:
-          return THREAT;
-        case 2:
-          return VULNERABILITY;
-        case 3:
-          return MISCONFIGURATION;
-        case 4:
-          return OBSERVATION;
-        case 5:
-          return SCC_ERROR;
-        case 6:
-          return POSTURE_VIOLATION;
-        default:
-          return null;
+        case 0: return FINDING_CLASS_UNSPECIFIED;
+        case 1: return THREAT;
+        case 2: return VULNERABILITY;
+        case 3: return MISCONFIGURATION;
+        case 4: return OBSERVATION;
+        case 5: return SCC_ERROR;
+        case 6: return POSTURE_VIOLATION;
+        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<
+        FindingClass> internalValueMap =
+          new com.google.protobuf.Internal.EnumLiteMap() {
+            public FindingClass findValueByNumber(int number) {
+              return FindingClass.forNumber(number);
+            }
+          };
 
-    private static final com.google.protobuf.Internal.EnumLiteMap internalValueMap =
-        new com.google.protobuf.Internal.EnumLiteMap() {
-          public FindingClass findValueByNumber(int number) {
-            return FindingClass.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.securitycentermanagement.v1.SimulatedFinding.getDescriptor()
-          .getEnumTypes()
-          .get(2);
+    public static final com.google.protobuf.Descriptors.EnumDescriptor
+        getDescriptor() {
+      return com.google.cloud.securitycentermanagement.v1.SimulatedFinding.getDescriptor().getEnumTypes().get(2);
     }
 
     private static final FindingClass[] VALUES = values();
 
-    public static FindingClass valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) {
+    public static FindingClass 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;
@@ -782,12 +692,9 @@ private FindingClass(int value) {
   }
 
   public static final int NAME_FIELD_NUMBER = 1;
-
   @SuppressWarnings("serial")
   private volatile java.lang.Object name_ = "";
   /**
-   *
-   *
    * 
    * Identifier. The [relative resource
    * name](https://cloud.google.com/apis/design/resource_names#relative_resource_name)
@@ -798,7 +705,6 @@ private FindingClass(int value) {
    * 
* * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; - * * @return The name. */ @java.lang.Override @@ -807,15 +713,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; } } /** - * - * *
    * Identifier. The [relative resource
    * name](https://cloud.google.com/apis/design/resource_names#relative_resource_name)
@@ -826,15 +731,16 @@ public java.lang.String getName() {
    * 
* * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; - * * @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 { @@ -843,12 +749,9 @@ public com.google.protobuf.ByteString getNameBytes() { } public static final int PARENT_FIELD_NUMBER = 2; - @SuppressWarnings("serial") private volatile java.lang.Object parent_ = ""; /** - * - * *
    * The relative resource name of the source the finding belongs to. See:
    * https://cloud.google.com/apis/design/resource_names#relative_resource_name
@@ -858,7 +761,6 @@ public com.google.protobuf.ByteString getNameBytes() {
    * 
* * string parent = 2; - * * @return The parent. */ @java.lang.Override @@ -867,15 +769,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; } } /** - * - * *
    * The relative resource name of the source the finding belongs to. See:
    * https://cloud.google.com/apis/design/resource_names#relative_resource_name
@@ -885,15 +786,16 @@ public java.lang.String getParent() {
    * 
* * string parent = 2; - * * @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 { @@ -902,12 +804,9 @@ public com.google.protobuf.ByteString getParentBytes() { } public static final int RESOURCE_NAME_FIELD_NUMBER = 3; - @SuppressWarnings("serial") private volatile java.lang.Object resourceName_ = ""; /** - * - * *
    * For findings on Google Cloud resources, the full resource
    * name of the Google Cloud resource this finding is for. See:
@@ -918,7 +817,6 @@ public com.google.protobuf.ByteString getParentBytes() {
    * 
* * string resource_name = 3; - * * @return The resourceName. */ @java.lang.Override @@ -927,15 +825,14 @@ public java.lang.String getResourceName() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); resourceName_ = s; return s; } } /** - * - * *
    * For findings on Google Cloud resources, the full resource
    * name of the Google Cloud resource this finding is for. See:
@@ -946,15 +843,16 @@ public java.lang.String getResourceName() {
    * 
* * string resource_name = 3; - * * @return The bytes for resourceName. */ @java.lang.Override - public com.google.protobuf.ByteString getResourceNameBytes() { + public com.google.protobuf.ByteString + getResourceNameBytes() { java.lang.Object ref = resourceName_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); resourceName_ = b; return b; } else { @@ -963,12 +861,9 @@ public com.google.protobuf.ByteString getResourceNameBytes() { } public static final int CATEGORY_FIELD_NUMBER = 4; - @SuppressWarnings("serial") private volatile java.lang.Object category_ = ""; /** - * - * *
    * The additional taxonomy group within findings from a given source.
    * This field is immutable after creation time.
@@ -976,7 +871,6 @@ public com.google.protobuf.ByteString getResourceNameBytes() {
    * 
* * string category = 4; - * * @return The category. */ @java.lang.Override @@ -985,15 +879,14 @@ public java.lang.String getCategory() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); category_ = s; return s; } } /** - * - * *
    * The additional taxonomy group within findings from a given source.
    * This field is immutable after creation time.
@@ -1001,15 +894,16 @@ public java.lang.String getCategory() {
    * 
* * string category = 4; - * * @return The bytes for category. */ @java.lang.Override - public com.google.protobuf.ByteString getCategoryBytes() { + public com.google.protobuf.ByteString + getCategoryBytes() { java.lang.Object ref = category_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); category_ = b; return b; } else { @@ -1020,78 +914,56 @@ public com.google.protobuf.ByteString getCategoryBytes() { public static final int STATE_FIELD_NUMBER = 5; private int state_ = 0; /** - * - * *
    * Output only. The state of the finding.
    * 
* - * - * .google.cloud.securitycentermanagement.v1.SimulatedFinding.State state = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.cloud.securitycentermanagement.v1.SimulatedFinding.State state = 5 [(.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. The state of the finding.
    * 
* - * - * .google.cloud.securitycentermanagement.v1.SimulatedFinding.State state = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.cloud.securitycentermanagement.v1.SimulatedFinding.State state = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The state. */ - @java.lang.Override - public com.google.cloud.securitycentermanagement.v1.SimulatedFinding.State getState() { - com.google.cloud.securitycentermanagement.v1.SimulatedFinding.State result = - com.google.cloud.securitycentermanagement.v1.SimulatedFinding.State.forNumber(state_); - return result == null - ? com.google.cloud.securitycentermanagement.v1.SimulatedFinding.State.UNRECOGNIZED - : result; + @java.lang.Override public com.google.cloud.securitycentermanagement.v1.SimulatedFinding.State getState() { + com.google.cloud.securitycentermanagement.v1.SimulatedFinding.State result = com.google.cloud.securitycentermanagement.v1.SimulatedFinding.State.forNumber(state_); + return result == null ? com.google.cloud.securitycentermanagement.v1.SimulatedFinding.State.UNRECOGNIZED : result; } public static final int SOURCE_PROPERTIES_FIELD_NUMBER = 6; - private static final class SourcePropertiesDefaultEntryHolder { - static final com.google.protobuf.MapEntry - defaultEntry = + static final com.google.protobuf.MapEntry< + java.lang.String, com.google.protobuf.Value> defaultEntry = com.google.protobuf.MapEntry - .newDefaultInstance( - com.google.cloud.securitycentermanagement.v1.SecurityCenterManagementProto - .internal_static_google_cloud_securitycentermanagement_v1_SimulatedFinding_SourcePropertiesEntry_descriptor, - com.google.protobuf.WireFormat.FieldType.STRING, - "", - com.google.protobuf.WireFormat.FieldType.MESSAGE, - com.google.protobuf.Value.getDefaultInstance()); + .newDefaultInstance( + com.google.cloud.securitycentermanagement.v1.SecurityCenterManagementProto.internal_static_google_cloud_securitycentermanagement_v1_SimulatedFinding_SourcePropertiesEntry_descriptor, + com.google.protobuf.WireFormat.FieldType.STRING, + "", + com.google.protobuf.WireFormat.FieldType.MESSAGE, + com.google.protobuf.Value.getDefaultInstance()); } - @SuppressWarnings("serial") + private com.google.protobuf.MapField< + java.lang.String, com.google.protobuf.Value> sourceProperties_; private com.google.protobuf.MapField - sourceProperties_; - - private com.google.protobuf.MapField - internalGetSourceProperties() { + internalGetSourceProperties() { if (sourceProperties_ == null) { return com.google.protobuf.MapField.emptyMapField( SourcePropertiesDefaultEntryHolder.defaultEntry); } return sourceProperties_; } - public int getSourcePropertiesCount() { return internalGetSourceProperties().getMap().size(); } /** - * - * *
    * Source specific properties. These properties are managed by the source
    * that writes the finding. The key names in the source_properties map must be
@@ -1102,21 +974,20 @@ public int getSourcePropertiesCount() {
    * map<string, .google.protobuf.Value> source_properties = 6;
    */
   @java.lang.Override
-  public boolean containsSourceProperties(java.lang.String key) {
-    if (key == null) {
-      throw new NullPointerException("map key");
-    }
+  public boolean containsSourceProperties(
+      java.lang.String key) {
+    if (key == null) { throw new NullPointerException("map key"); }
     return internalGetSourceProperties().getMap().containsKey(key);
   }
-  /** Use {@link #getSourcePropertiesMap()} instead. */
+  /**
+   * Use {@link #getSourcePropertiesMap()} instead.
+   */
   @java.lang.Override
   @java.lang.Deprecated
   public java.util.Map getSourceProperties() {
     return getSourcePropertiesMap();
   }
   /**
-   *
-   *
    * 
    * Source specific properties. These properties are managed by the source
    * that writes the finding. The key names in the source_properties map must be
@@ -1131,8 +1002,6 @@ public java.util.Map getSourcePrope
     return internalGetSourceProperties().getMap();
   }
   /**
-   *
-   *
    * 
    * Source specific properties. These properties are managed by the source
    * that writes the finding. The key names in the source_properties map must be
@@ -1143,20 +1012,17 @@ public java.util.Map getSourcePrope
    * map<string, .google.protobuf.Value> source_properties = 6;
    */
   @java.lang.Override
-  public /* nullable */ com.google.protobuf.Value getSourcePropertiesOrDefault(
+  public /* nullable */
+com.google.protobuf.Value getSourcePropertiesOrDefault(
       java.lang.String key,
       /* nullable */
-      com.google.protobuf.Value defaultValue) {
-    if (key == null) {
-      throw new NullPointerException("map key");
-    }
+com.google.protobuf.Value defaultValue) {
+    if (key == null) { throw new NullPointerException("map key"); }
     java.util.Map map =
         internalGetSourceProperties().getMap();
     return map.containsKey(key) ? map.get(key) : defaultValue;
   }
   /**
-   *
-   *
    * 
    * Source specific properties. These properties are managed by the source
    * that writes the finding. The key names in the source_properties map must be
@@ -1167,10 +1033,9 @@ public java.util.Map getSourcePrope
    * map<string, .google.protobuf.Value> source_properties = 6;
    */
   @java.lang.Override
-  public com.google.protobuf.Value getSourcePropertiesOrThrow(java.lang.String key) {
-    if (key == null) {
-      throw new NullPointerException("map key");
-    }
+  public com.google.protobuf.Value getSourcePropertiesOrThrow(
+      java.lang.String key) {
+    if (key == null) { throw new NullPointerException("map key"); }
     java.util.Map map =
         internalGetSourceProperties().getMap();
     if (!map.containsKey(key)) {
@@ -1182,8 +1047,6 @@ public com.google.protobuf.Value getSourcePropertiesOrThrow(java.lang.String key
   public static final int EVENT_TIME_FIELD_NUMBER = 7;
   private com.google.protobuf.Timestamp eventTime_;
   /**
-   *
-   *
    * 
    * The time the finding was first detected. If an existing finding is updated,
    * then this is the time the update occurred.
@@ -1195,7 +1058,6 @@ public com.google.protobuf.Value getSourcePropertiesOrThrow(java.lang.String key
    * 
* * .google.protobuf.Timestamp event_time = 7; - * * @return Whether the eventTime field is set. */ @java.lang.Override @@ -1203,8 +1065,6 @@ public boolean hasEventTime() { return eventTime_ != null; } /** - * - * *
    * The time the finding was first detected. If an existing finding is updated,
    * then this is the time the update occurred.
@@ -1216,7 +1076,6 @@ public boolean hasEventTime() {
    * 
* * .google.protobuf.Timestamp event_time = 7; - * * @return The eventTime. */ @java.lang.Override @@ -1224,8 +1083,6 @@ public com.google.protobuf.Timestamp getEventTime() { return eventTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : eventTime_; } /** - * - * *
    * The time the finding was first detected. If an existing finding is updated,
    * then this is the time the update occurred.
@@ -1246,87 +1103,58 @@ public com.google.protobuf.TimestampOrBuilder getEventTimeOrBuilder() {
   public static final int SEVERITY_FIELD_NUMBER = 8;
   private int severity_ = 0;
   /**
-   *
-   *
    * 
    * The severity of the finding. This field is managed by the source that
    * writes the finding.
    * 
* * .google.cloud.securitycentermanagement.v1.SimulatedFinding.Severity severity = 8; - * * @return The enum numeric value on the wire for severity. */ - @java.lang.Override - public int getSeverityValue() { + @java.lang.Override public int getSeverityValue() { return severity_; } /** - * - * *
    * The severity of the finding. This field is managed by the source that
    * writes the finding.
    * 
* * .google.cloud.securitycentermanagement.v1.SimulatedFinding.Severity severity = 8; - * * @return The severity. */ - @java.lang.Override - public com.google.cloud.securitycentermanagement.v1.SimulatedFinding.Severity getSeverity() { - com.google.cloud.securitycentermanagement.v1.SimulatedFinding.Severity result = - com.google.cloud.securitycentermanagement.v1.SimulatedFinding.Severity.forNumber(severity_); - return result == null - ? com.google.cloud.securitycentermanagement.v1.SimulatedFinding.Severity.UNRECOGNIZED - : result; + @java.lang.Override public com.google.cloud.securitycentermanagement.v1.SimulatedFinding.Severity getSeverity() { + com.google.cloud.securitycentermanagement.v1.SimulatedFinding.Severity result = com.google.cloud.securitycentermanagement.v1.SimulatedFinding.Severity.forNumber(severity_); + return result == null ? com.google.cloud.securitycentermanagement.v1.SimulatedFinding.Severity.UNRECOGNIZED : result; } public static final int FINDING_CLASS_FIELD_NUMBER = 9; private int findingClass_ = 0; /** - * - * *
    * The class of the finding.
    * 
* - * - * .google.cloud.securitycentermanagement.v1.SimulatedFinding.FindingClass finding_class = 9; - * - * + * .google.cloud.securitycentermanagement.v1.SimulatedFinding.FindingClass finding_class = 9; * @return The enum numeric value on the wire for findingClass. */ - @java.lang.Override - public int getFindingClassValue() { + @java.lang.Override public int getFindingClassValue() { return findingClass_; } /** - * - * *
    * The class of the finding.
    * 
* - * - * .google.cloud.securitycentermanagement.v1.SimulatedFinding.FindingClass finding_class = 9; - * - * + * .google.cloud.securitycentermanagement.v1.SimulatedFinding.FindingClass finding_class = 9; * @return The findingClass. */ - @java.lang.Override - public com.google.cloud.securitycentermanagement.v1.SimulatedFinding.FindingClass - getFindingClass() { - com.google.cloud.securitycentermanagement.v1.SimulatedFinding.FindingClass result = - com.google.cloud.securitycentermanagement.v1.SimulatedFinding.FindingClass.forNumber( - findingClass_); - return result == null - ? com.google.cloud.securitycentermanagement.v1.SimulatedFinding.FindingClass.UNRECOGNIZED - : result; + @java.lang.Override public com.google.cloud.securitycentermanagement.v1.SimulatedFinding.FindingClass getFindingClass() { + com.google.cloud.securitycentermanagement.v1.SimulatedFinding.FindingClass result = com.google.cloud.securitycentermanagement.v1.SimulatedFinding.FindingClass.forNumber(findingClass_); + return result == null ? com.google.cloud.securitycentermanagement.v1.SimulatedFinding.FindingClass.UNRECOGNIZED : result; } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -1338,7 +1166,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.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_); } @@ -1351,26 +1180,22 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(category_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 4, category_); } - if (state_ - != com.google.cloud.securitycentermanagement.v1.SimulatedFinding.State.STATE_UNSPECIFIED - .getNumber()) { + if (state_ != com.google.cloud.securitycentermanagement.v1.SimulatedFinding.State.STATE_UNSPECIFIED.getNumber()) { output.writeEnum(5, state_); } - com.google.protobuf.GeneratedMessageV3.serializeStringMapTo( - output, internalGetSourceProperties(), SourcePropertiesDefaultEntryHolder.defaultEntry, 6); + com.google.protobuf.GeneratedMessageV3 + .serializeStringMapTo( + output, + internalGetSourceProperties(), + SourcePropertiesDefaultEntryHolder.defaultEntry, + 6); if (eventTime_ != null) { output.writeMessage(7, getEventTime()); } - if (severity_ - != com.google.cloud.securitycentermanagement.v1.SimulatedFinding.Severity - .SEVERITY_UNSPECIFIED - .getNumber()) { + if (severity_ != com.google.cloud.securitycentermanagement.v1.SimulatedFinding.Severity.SEVERITY_UNSPECIFIED.getNumber()) { output.writeEnum(8, severity_); } - if (findingClass_ - != com.google.cloud.securitycentermanagement.v1.SimulatedFinding.FindingClass - .FINDING_CLASS_UNSPECIFIED - .getNumber()) { + if (findingClass_ != com.google.cloud.securitycentermanagement.v1.SimulatedFinding.FindingClass.FINDING_CLASS_UNSPECIFIED.getNumber()) { output.writeEnum(9, findingClass_); } getUnknownFields().writeTo(output); @@ -1394,35 +1219,31 @@ public int getSerializedSize() { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(category_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, category_); } - if (state_ - != com.google.cloud.securitycentermanagement.v1.SimulatedFinding.State.STATE_UNSPECIFIED - .getNumber()) { - size += com.google.protobuf.CodedOutputStream.computeEnumSize(5, state_); - } - for (java.util.Map.Entry entry : - internalGetSourceProperties().getMap().entrySet()) { - com.google.protobuf.MapEntry sourceProperties__ = - SourcePropertiesDefaultEntryHolder.defaultEntry - .newBuilderForType() - .setKey(entry.getKey()) - .setValue(entry.getValue()) - .build(); - size += com.google.protobuf.CodedOutputStream.computeMessageSize(6, sourceProperties__); + if (state_ != com.google.cloud.securitycentermanagement.v1.SimulatedFinding.State.STATE_UNSPECIFIED.getNumber()) { + size += com.google.protobuf.CodedOutputStream + .computeEnumSize(5, state_); + } + for (java.util.Map.Entry entry + : internalGetSourceProperties().getMap().entrySet()) { + com.google.protobuf.MapEntry + sourceProperties__ = SourcePropertiesDefaultEntryHolder.defaultEntry.newBuilderForType() + .setKey(entry.getKey()) + .setValue(entry.getValue()) + .build(); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(6, sourceProperties__); } if (eventTime_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(7, getEventTime()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(7, getEventTime()); } - if (severity_ - != com.google.cloud.securitycentermanagement.v1.SimulatedFinding.Severity - .SEVERITY_UNSPECIFIED - .getNumber()) { - size += com.google.protobuf.CodedOutputStream.computeEnumSize(8, severity_); + if (severity_ != com.google.cloud.securitycentermanagement.v1.SimulatedFinding.Severity.SEVERITY_UNSPECIFIED.getNumber()) { + size += com.google.protobuf.CodedOutputStream + .computeEnumSize(8, severity_); } - if (findingClass_ - != com.google.cloud.securitycentermanagement.v1.SimulatedFinding.FindingClass - .FINDING_CLASS_UNSPECIFIED - .getNumber()) { - size += com.google.protobuf.CodedOutputStream.computeEnumSize(9, findingClass_); + if (findingClass_ != com.google.cloud.securitycentermanagement.v1.SimulatedFinding.FindingClass.FINDING_CLASS_UNSPECIFIED.getNumber()) { + size += com.google.protobuf.CodedOutputStream + .computeEnumSize(9, findingClass_); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -1432,23 +1253,28 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.securitycentermanagement.v1.SimulatedFinding)) { return super.equals(obj); } - com.google.cloud.securitycentermanagement.v1.SimulatedFinding other = - (com.google.cloud.securitycentermanagement.v1.SimulatedFinding) obj; + com.google.cloud.securitycentermanagement.v1.SimulatedFinding other = (com.google.cloud.securitycentermanagement.v1.SimulatedFinding) obj; - if (!getName().equals(other.getName())) return false; - if (!getParent().equals(other.getParent())) return false; - if (!getResourceName().equals(other.getResourceName())) return false; - if (!getCategory().equals(other.getCategory())) return false; + if (!getName() + .equals(other.getName())) return false; + if (!getParent() + .equals(other.getParent())) return false; + if (!getResourceName() + .equals(other.getResourceName())) return false; + if (!getCategory() + .equals(other.getCategory())) return false; if (state_ != other.state_) return false; - if (!internalGetSourceProperties().equals(other.internalGetSourceProperties())) return false; + if (!internalGetSourceProperties().equals( + other.internalGetSourceProperties())) return false; if (hasEventTime() != other.hasEventTime()) return false; if (hasEventTime()) { - if (!getEventTime().equals(other.getEventTime())) return false; + if (!getEventTime() + .equals(other.getEventTime())) return false; } if (severity_ != other.severity_) return false; if (findingClass_ != other.findingClass_) return false; @@ -1491,104 +1317,98 @@ public int hashCode() { } public static com.google.cloud.securitycentermanagement.v1.SimulatedFinding parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.securitycentermanagement.v1.SimulatedFinding parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.securitycentermanagement.v1.SimulatedFinding parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.securitycentermanagement.v1.SimulatedFinding parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.securitycentermanagement.v1.SimulatedFinding parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.securitycentermanagement.v1.SimulatedFinding parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.securitycentermanagement.v1.SimulatedFinding parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.securitycentermanagement.v1.SimulatedFinding parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.securitycentermanagement.v1.SimulatedFinding parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.securitycentermanagement.v1.SimulatedFinding parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.securitycentermanagement.v1.SimulatedFinding parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } public static com.google.cloud.securitycentermanagement.v1.SimulatedFinding parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.securitycentermanagement.v1.SimulatedFinding parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.securitycentermanagement.v1.SimulatedFinding parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.cloud.securitycentermanagement.v1.SimulatedFinding prototype) { + public static Builder newBuilder(com.google.cloud.securitycentermanagement.v1.SimulatedFinding prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected 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 subset of the fields of the Security Center Finding proto. The minimum set
    * of fields needed to represent a simulated finding from a SHA custom module.
@@ -1596,52 +1416,55 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build
    *
    * Protobuf type {@code google.cloud.securitycentermanagement.v1.SimulatedFinding}
    */
-  public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
-      implements
+  public static final class Builder extends
+      com.google.protobuf.GeneratedMessageV3.Builder implements
       // @@protoc_insertion_point(builder_implements:google.cloud.securitycentermanagement.v1.SimulatedFinding)
       com.google.cloud.securitycentermanagement.v1.SimulatedFindingOrBuilder {
-    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-      return com.google.cloud.securitycentermanagement.v1.SecurityCenterManagementProto
-          .internal_static_google_cloud_securitycentermanagement_v1_SimulatedFinding_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor
+        getDescriptor() {
+      return com.google.cloud.securitycentermanagement.v1.SecurityCenterManagementProto.internal_static_google_cloud_securitycentermanagement_v1_SimulatedFinding_descriptor;
     }
 
     @SuppressWarnings({"rawtypes"})
-    protected com.google.protobuf.MapField internalGetMapField(int number) {
+    protected com.google.protobuf.MapField internalGetMapField(
+        int number) {
       switch (number) {
         case 6:
           return internalGetSourceProperties();
         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 6:
           return internalGetMutableSourceProperties();
         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.securitycentermanagement.v1.SecurityCenterManagementProto
-          .internal_static_google_cloud_securitycentermanagement_v1_SimulatedFinding_fieldAccessorTable
+      return com.google.cloud.securitycentermanagement.v1.SecurityCenterManagementProto.internal_static_google_cloud_securitycentermanagement_v1_SimulatedFinding_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.cloud.securitycentermanagement.v1.SimulatedFinding.class,
-              com.google.cloud.securitycentermanagement.v1.SimulatedFinding.Builder.class);
+              com.google.cloud.securitycentermanagement.v1.SimulatedFinding.class, com.google.cloud.securitycentermanagement.v1.SimulatedFinding.Builder.class);
     }
 
     // Construct using com.google.cloud.securitycentermanagement.v1.SimulatedFinding.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();
@@ -1663,14 +1486,13 @@ public Builder clear() {
     }
 
     @java.lang.Override
-    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
-      return com.google.cloud.securitycentermanagement.v1.SecurityCenterManagementProto
-          .internal_static_google_cloud_securitycentermanagement_v1_SimulatedFinding_descriptor;
+    public com.google.protobuf.Descriptors.Descriptor
+        getDescriptorForType() {
+      return com.google.cloud.securitycentermanagement.v1.SecurityCenterManagementProto.internal_static_google_cloud_securitycentermanagement_v1_SimulatedFinding_descriptor;
     }
 
     @java.lang.Override
-    public com.google.cloud.securitycentermanagement.v1.SimulatedFinding
-        getDefaultInstanceForType() {
+    public com.google.cloud.securitycentermanagement.v1.SimulatedFinding getDefaultInstanceForType() {
       return com.google.cloud.securitycentermanagement.v1.SimulatedFinding.getDefaultInstance();
     }
 
@@ -1685,17 +1507,13 @@ public com.google.cloud.securitycentermanagement.v1.SimulatedFinding build() {
 
     @java.lang.Override
     public com.google.cloud.securitycentermanagement.v1.SimulatedFinding buildPartial() {
-      com.google.cloud.securitycentermanagement.v1.SimulatedFinding result =
-          new com.google.cloud.securitycentermanagement.v1.SimulatedFinding(this);
-      if (bitField0_ != 0) {
-        buildPartial0(result);
-      }
+      com.google.cloud.securitycentermanagement.v1.SimulatedFinding result = new com.google.cloud.securitycentermanagement.v1.SimulatedFinding(this);
+      if (bitField0_ != 0) { buildPartial0(result); }
       onBuilt();
       return result;
     }
 
-    private void buildPartial0(
-        com.google.cloud.securitycentermanagement.v1.SimulatedFinding result) {
+    private void buildPartial0(com.google.cloud.securitycentermanagement.v1.SimulatedFinding result) {
       int from_bitField0_ = bitField0_;
       if (((from_bitField0_ & 0x00000001) != 0)) {
         result.name_ = name_;
@@ -1717,7 +1535,9 @@ private void buildPartial0(
         result.sourceProperties_.makeImmutable();
       }
       if (((from_bitField0_ & 0x00000040) != 0)) {
-        result.eventTime_ = eventTimeBuilder_ == null ? eventTime_ : eventTimeBuilder_.build();
+        result.eventTime_ = eventTimeBuilder_ == null
+            ? eventTime_
+            : eventTimeBuilder_.build();
       }
       if (((from_bitField0_ & 0x00000080) != 0)) {
         result.severity_ = severity_;
@@ -1731,39 +1551,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.securitycentermanagement.v1.SimulatedFinding) {
-        return mergeFrom((com.google.cloud.securitycentermanagement.v1.SimulatedFinding) other);
+        return mergeFrom((com.google.cloud.securitycentermanagement.v1.SimulatedFinding)other);
       } else {
         super.mergeFrom(other);
         return this;
@@ -1771,9 +1590,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) {
     }
 
     public Builder mergeFrom(com.google.cloud.securitycentermanagement.v1.SimulatedFinding other) {
-      if (other
-          == com.google.cloud.securitycentermanagement.v1.SimulatedFinding.getDefaultInstance())
-        return this;
+      if (other == com.google.cloud.securitycentermanagement.v1.SimulatedFinding.getDefaultInstance()) return this;
       if (!other.getName().isEmpty()) {
         name_ = other.name_;
         bitField0_ |= 0x00000001;
@@ -1797,7 +1614,8 @@ public Builder mergeFrom(com.google.cloud.securitycentermanagement.v1.SimulatedF
       if (other.state_ != 0) {
         setStateValue(other.getStateValue());
       }
-      internalGetMutableSourceProperties().mergeFrom(other.internalGetSourceProperties());
+      internalGetMutableSourceProperties().mergeFrom(
+          other.internalGetSourceProperties());
       bitField0_ |= 0x00000020;
       if (other.hasEventTime()) {
         mergeEventTime(other.getEventTime());
@@ -1834,74 +1652,63 @@ public Builder mergeFrom(
             case 0:
               done = true;
               break;
-            case 10:
-              {
-                name_ = input.readStringRequireUtf8();
-                bitField0_ |= 0x00000001;
-                break;
-              } // case 10
-            case 18:
-              {
-                parent_ = input.readStringRequireUtf8();
-                bitField0_ |= 0x00000002;
-                break;
-              } // case 18
-            case 26:
-              {
-                resourceName_ = input.readStringRequireUtf8();
-                bitField0_ |= 0x00000004;
-                break;
-              } // case 26
-            case 34:
-              {
-                category_ = input.readStringRequireUtf8();
-                bitField0_ |= 0x00000008;
-                break;
-              } // case 34
-            case 40:
-              {
-                state_ = input.readEnum();
-                bitField0_ |= 0x00000010;
-                break;
-              } // case 40
-            case 50:
-              {
-                com.google.protobuf.MapEntry
-                    sourceProperties__ =
-                        input.readMessage(
-                            SourcePropertiesDefaultEntryHolder.defaultEntry.getParserForType(),
-                            extensionRegistry);
-                internalGetMutableSourceProperties()
-                    .getMutableMap()
-                    .put(sourceProperties__.getKey(), sourceProperties__.getValue());
-                bitField0_ |= 0x00000020;
-                break;
-              } // case 50
-            case 58:
-              {
-                input.readMessage(getEventTimeFieldBuilder().getBuilder(), extensionRegistry);
-                bitField0_ |= 0x00000040;
-                break;
-              } // case 58
-            case 64:
-              {
-                severity_ = input.readEnum();
-                bitField0_ |= 0x00000080;
-                break;
-              } // case 64
-            case 72:
-              {
-                findingClass_ = input.readEnum();
-                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 18: {
+              parent_ = input.readStringRequireUtf8();
+              bitField0_ |= 0x00000002;
+              break;
+            } // case 18
+            case 26: {
+              resourceName_ = input.readStringRequireUtf8();
+              bitField0_ |= 0x00000004;
+              break;
+            } // case 26
+            case 34: {
+              category_ = input.readStringRequireUtf8();
+              bitField0_ |= 0x00000008;
+              break;
+            } // case 34
+            case 40: {
+              state_ = input.readEnum();
+              bitField0_ |= 0x00000010;
+              break;
+            } // case 40
+            case 50: {
+              com.google.protobuf.MapEntry
+              sourceProperties__ = input.readMessage(
+                  SourcePropertiesDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry);
+              internalGetMutableSourceProperties().getMutableMap().put(
+                  sourceProperties__.getKey(), sourceProperties__.getValue());
+              bitField0_ |= 0x00000020;
+              break;
+            } // case 50
+            case 58: {
+              input.readMessage(
+                  getEventTimeFieldBuilder().getBuilder(),
+                  extensionRegistry);
+              bitField0_ |= 0x00000040;
+              break;
+            } // case 58
+            case 64: {
+              severity_ = input.readEnum();
+              bitField0_ |= 0x00000080;
+              break;
+            } // case 64
+            case 72: {
+              findingClass_ = input.readEnum();
+              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) {
@@ -1911,13 +1718,10 @@ public Builder mergeFrom(
       } // finally
       return this;
     }
-
     private int bitField0_;
 
     private java.lang.Object name_ = "";
     /**
-     *
-     *
      * 
      * Identifier. The [relative resource
      * name](https://cloud.google.com/apis/design/resource_names#relative_resource_name)
@@ -1928,13 +1732,13 @@ public Builder mergeFrom(
      * 
* * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; - * * @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; @@ -1943,8 +1747,6 @@ public java.lang.String getName() { } } /** - * - * *
      * Identifier. The [relative resource
      * name](https://cloud.google.com/apis/design/resource_names#relative_resource_name)
@@ -1955,14 +1757,15 @@ public java.lang.String getName() {
      * 
* * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; - * * @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 { @@ -1970,8 +1773,6 @@ public com.google.protobuf.ByteString getNameBytes() { } } /** - * - * *
      * Identifier. The [relative resource
      * name](https://cloud.google.com/apis/design/resource_names#relative_resource_name)
@@ -1982,22 +1783,18 @@ public com.google.protobuf.ByteString getNameBytes() {
      * 
* * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; - * * @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; } /** - * - * *
      * Identifier. The [relative resource
      * name](https://cloud.google.com/apis/design/resource_names#relative_resource_name)
@@ -2008,7 +1805,6 @@ public Builder setName(java.lang.String value) {
      * 
* * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; - * * @return This builder for chaining. */ public Builder clearName() { @@ -2018,8 +1814,6 @@ public Builder clearName() { return this; } /** - * - * *
      * Identifier. The [relative resource
      * name](https://cloud.google.com/apis/design/resource_names#relative_resource_name)
@@ -2030,14 +1824,12 @@ public Builder clearName() {
      * 
* * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; - * * @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; @@ -2047,8 +1839,6 @@ public Builder setNameBytes(com.google.protobuf.ByteString value) { private java.lang.Object parent_ = ""; /** - * - * *
      * The relative resource name of the source the finding belongs to. See:
      * https://cloud.google.com/apis/design/resource_names#relative_resource_name
@@ -2058,13 +1848,13 @@ public Builder setNameBytes(com.google.protobuf.ByteString value) {
      * 
* * string parent = 2; - * * @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; @@ -2073,8 +1863,6 @@ public java.lang.String getParent() { } } /** - * - * *
      * The relative resource name of the source the finding belongs to. See:
      * https://cloud.google.com/apis/design/resource_names#relative_resource_name
@@ -2084,14 +1872,15 @@ public java.lang.String getParent() {
      * 
* * string parent = 2; - * * @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 { @@ -2099,8 +1888,6 @@ public com.google.protobuf.ByteString getParentBytes() { } } /** - * - * *
      * The relative resource name of the source the finding belongs to. See:
      * https://cloud.google.com/apis/design/resource_names#relative_resource_name
@@ -2110,22 +1897,18 @@ public com.google.protobuf.ByteString getParentBytes() {
      * 
* * string parent = 2; - * * @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_ |= 0x00000002; onChanged(); return this; } /** - * - * *
      * The relative resource name of the source the finding belongs to. See:
      * https://cloud.google.com/apis/design/resource_names#relative_resource_name
@@ -2135,7 +1918,6 @@ public Builder setParent(java.lang.String value) {
      * 
* * string parent = 2; - * * @return This builder for chaining. */ public Builder clearParent() { @@ -2145,8 +1927,6 @@ public Builder clearParent() { return this; } /** - * - * *
      * The relative resource name of the source the finding belongs to. See:
      * https://cloud.google.com/apis/design/resource_names#relative_resource_name
@@ -2156,14 +1936,12 @@ public Builder clearParent() {
      * 
* * string parent = 2; - * * @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_ |= 0x00000002; @@ -2173,8 +1951,6 @@ public Builder setParentBytes(com.google.protobuf.ByteString value) { private java.lang.Object resourceName_ = ""; /** - * - * *
      * For findings on Google Cloud resources, the full resource
      * name of the Google Cloud resource this finding is for. See:
@@ -2185,13 +1961,13 @@ public Builder setParentBytes(com.google.protobuf.ByteString value) {
      * 
* * string resource_name = 3; - * * @return The resourceName. */ public java.lang.String getResourceName() { java.lang.Object ref = resourceName_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); resourceName_ = s; return s; @@ -2200,8 +1976,6 @@ public java.lang.String getResourceName() { } } /** - * - * *
      * For findings on Google Cloud resources, the full resource
      * name of the Google Cloud resource this finding is for. See:
@@ -2212,14 +1986,15 @@ public java.lang.String getResourceName() {
      * 
* * string resource_name = 3; - * * @return The bytes for resourceName. */ - public com.google.protobuf.ByteString getResourceNameBytes() { + public com.google.protobuf.ByteString + getResourceNameBytes() { java.lang.Object ref = resourceName_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); resourceName_ = b; return b; } else { @@ -2227,8 +2002,6 @@ public com.google.protobuf.ByteString getResourceNameBytes() { } } /** - * - * *
      * For findings on Google Cloud resources, the full resource
      * name of the Google Cloud resource this finding is for. See:
@@ -2239,22 +2012,18 @@ public com.google.protobuf.ByteString getResourceNameBytes() {
      * 
* * string resource_name = 3; - * * @param value The resourceName to set. * @return This builder for chaining. */ - public Builder setResourceName(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setResourceName( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } resourceName_ = value; bitField0_ |= 0x00000004; onChanged(); return this; } /** - * - * *
      * For findings on Google Cloud resources, the full resource
      * name of the Google Cloud resource this finding is for. See:
@@ -2265,7 +2034,6 @@ public Builder setResourceName(java.lang.String value) {
      * 
* * string resource_name = 3; - * * @return This builder for chaining. */ public Builder clearResourceName() { @@ -2275,8 +2043,6 @@ public Builder clearResourceName() { return this; } /** - * - * *
      * For findings on Google Cloud resources, the full resource
      * name of the Google Cloud resource this finding is for. See:
@@ -2287,14 +2053,12 @@ public Builder clearResourceName() {
      * 
* * string resource_name = 3; - * * @param value The bytes for resourceName to set. * @return This builder for chaining. */ - public Builder setResourceNameBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setResourceNameBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); resourceName_ = value; bitField0_ |= 0x00000004; @@ -2304,8 +2068,6 @@ public Builder setResourceNameBytes(com.google.protobuf.ByteString value) { private java.lang.Object category_ = ""; /** - * - * *
      * The additional taxonomy group within findings from a given source.
      * This field is immutable after creation time.
@@ -2313,13 +2075,13 @@ public Builder setResourceNameBytes(com.google.protobuf.ByteString value) {
      * 
* * string category = 4; - * * @return The category. */ public java.lang.String getCategory() { java.lang.Object ref = category_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); category_ = s; return s; @@ -2328,8 +2090,6 @@ public java.lang.String getCategory() { } } /** - * - * *
      * The additional taxonomy group within findings from a given source.
      * This field is immutable after creation time.
@@ -2337,14 +2097,15 @@ public java.lang.String getCategory() {
      * 
* * string category = 4; - * * @return The bytes for category. */ - public com.google.protobuf.ByteString getCategoryBytes() { + public com.google.protobuf.ByteString + getCategoryBytes() { java.lang.Object ref = category_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); category_ = b; return b; } else { @@ -2352,8 +2113,6 @@ public com.google.protobuf.ByteString getCategoryBytes() { } } /** - * - * *
      * The additional taxonomy group within findings from a given source.
      * This field is immutable after creation time.
@@ -2361,22 +2120,18 @@ public com.google.protobuf.ByteString getCategoryBytes() {
      * 
* * string category = 4; - * * @param value The category to set. * @return This builder for chaining. */ - public Builder setCategory(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setCategory( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } category_ = value; bitField0_ |= 0x00000008; onChanged(); return this; } /** - * - * *
      * The additional taxonomy group within findings from a given source.
      * This field is immutable after creation time.
@@ -2384,7 +2139,6 @@ public Builder setCategory(java.lang.String value) {
      * 
* * string category = 4; - * * @return This builder for chaining. */ public Builder clearCategory() { @@ -2394,8 +2148,6 @@ public Builder clearCategory() { return this; } /** - * - * *
      * The additional taxonomy group within findings from a given source.
      * This field is immutable after creation time.
@@ -2403,14 +2155,12 @@ public Builder clearCategory() {
      * 
* * string category = 4; - * * @param value The bytes for category to set. * @return This builder for chaining. */ - public Builder setCategoryBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setCategoryBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); category_ = value; bitField0_ |= 0x00000008; @@ -2420,33 +2170,22 @@ public Builder setCategoryBytes(com.google.protobuf.ByteString value) { private int state_ = 0; /** - * - * *
      * Output only. The state of the finding.
      * 
* - * - * .google.cloud.securitycentermanagement.v1.SimulatedFinding.State state = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.cloud.securitycentermanagement.v1.SimulatedFinding.State state = 5 [(.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. The state of the finding.
      * 
* - * - * .google.cloud.securitycentermanagement.v1.SimulatedFinding.State state = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.cloud.securitycentermanagement.v1.SimulatedFinding.State state = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @param value The enum numeric value on the wire for state to set. * @return This builder for chaining. */ @@ -2457,42 +2196,28 @@ public Builder setStateValue(int value) { return this; } /** - * - * *
      * Output only. The state of the finding.
      * 
* - * - * .google.cloud.securitycentermanagement.v1.SimulatedFinding.State state = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.cloud.securitycentermanagement.v1.SimulatedFinding.State state = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The state. */ @java.lang.Override public com.google.cloud.securitycentermanagement.v1.SimulatedFinding.State getState() { - com.google.cloud.securitycentermanagement.v1.SimulatedFinding.State result = - com.google.cloud.securitycentermanagement.v1.SimulatedFinding.State.forNumber(state_); - return result == null - ? com.google.cloud.securitycentermanagement.v1.SimulatedFinding.State.UNRECOGNIZED - : result; + com.google.cloud.securitycentermanagement.v1.SimulatedFinding.State result = com.google.cloud.securitycentermanagement.v1.SimulatedFinding.State.forNumber(state_); + return result == null ? com.google.cloud.securitycentermanagement.v1.SimulatedFinding.State.UNRECOGNIZED : result; } /** - * - * *
      * Output only. The state of the finding.
      * 
* - * - * .google.cloud.securitycentermanagement.v1.SimulatedFinding.State state = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.cloud.securitycentermanagement.v1.SimulatedFinding.State state = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @param value The state to set. * @return This builder for chaining. */ - public Builder setState( - com.google.cloud.securitycentermanagement.v1.SimulatedFinding.State value) { + public Builder setState(com.google.cloud.securitycentermanagement.v1.SimulatedFinding.State value) { if (value == null) { throw new NullPointerException(); } @@ -2502,16 +2227,11 @@ public Builder setState( return this; } /** - * - * *
      * Output only. The state of the finding.
      * 
* - * - * .google.cloud.securitycentermanagement.v1.SimulatedFinding.State state = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.cloud.securitycentermanagement.v1.SimulatedFinding.State state = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return This builder for chaining. */ public Builder clearState() { @@ -2521,9 +2241,8 @@ public Builder clearState() { return this; } - private com.google.protobuf.MapField - sourceProperties_; - + private com.google.protobuf.MapField< + java.lang.String, com.google.protobuf.Value> sourceProperties_; private com.google.protobuf.MapField internalGetSourceProperties() { if (sourceProperties_ == null) { @@ -2532,13 +2251,11 @@ public Builder clearState() { } return sourceProperties_; } - private com.google.protobuf.MapField internalGetMutableSourceProperties() { if (sourceProperties_ == null) { - sourceProperties_ = - com.google.protobuf.MapField.newMapField( - SourcePropertiesDefaultEntryHolder.defaultEntry); + sourceProperties_ = com.google.protobuf.MapField.newMapField( + SourcePropertiesDefaultEntryHolder.defaultEntry); } if (!sourceProperties_.isMutable()) { sourceProperties_ = sourceProperties_.copy(); @@ -2547,13 +2264,10 @@ public Builder clearState() { onChanged(); return sourceProperties_; } - public int getSourcePropertiesCount() { return internalGetSourceProperties().getMap().size(); } /** - * - * *
      * Source specific properties. These properties are managed by the source
      * that writes the finding. The key names in the source_properties map must be
@@ -2564,21 +2278,20 @@ public int getSourcePropertiesCount() {
      * map<string, .google.protobuf.Value> source_properties = 6;
      */
     @java.lang.Override
-    public boolean containsSourceProperties(java.lang.String key) {
-      if (key == null) {
-        throw new NullPointerException("map key");
-      }
+    public boolean containsSourceProperties(
+        java.lang.String key) {
+      if (key == null) { throw new NullPointerException("map key"); }
       return internalGetSourceProperties().getMap().containsKey(key);
     }
-    /** Use {@link #getSourcePropertiesMap()} instead. */
+    /**
+     * Use {@link #getSourcePropertiesMap()} instead.
+     */
     @java.lang.Override
     @java.lang.Deprecated
     public java.util.Map getSourceProperties() {
       return getSourcePropertiesMap();
     }
     /**
-     *
-     *
      * 
      * Source specific properties. These properties are managed by the source
      * that writes the finding. The key names in the source_properties map must be
@@ -2593,8 +2306,6 @@ public java.util.Map getSourcePrope
       return internalGetSourceProperties().getMap();
     }
     /**
-     *
-     *
      * 
      * Source specific properties. These properties are managed by the source
      * that writes the finding. The key names in the source_properties map must be
@@ -2605,20 +2316,17 @@ public java.util.Map getSourcePrope
      * map<string, .google.protobuf.Value> source_properties = 6;
      */
     @java.lang.Override
-    public /* nullable */ com.google.protobuf.Value getSourcePropertiesOrDefault(
+    public /* nullable */
+com.google.protobuf.Value getSourcePropertiesOrDefault(
         java.lang.String key,
         /* nullable */
-        com.google.protobuf.Value defaultValue) {
-      if (key == null) {
-        throw new NullPointerException("map key");
-      }
+com.google.protobuf.Value defaultValue) {
+      if (key == null) { throw new NullPointerException("map key"); }
       java.util.Map map =
           internalGetSourceProperties().getMap();
       return map.containsKey(key) ? map.get(key) : defaultValue;
     }
     /**
-     *
-     *
      * 
      * Source specific properties. These properties are managed by the source
      * that writes the finding. The key names in the source_properties map must be
@@ -2629,10 +2337,9 @@ public java.util.Map getSourcePrope
      * map<string, .google.protobuf.Value> source_properties = 6;
      */
     @java.lang.Override
-    public com.google.protobuf.Value getSourcePropertiesOrThrow(java.lang.String key) {
-      if (key == null) {
-        throw new NullPointerException("map key");
-      }
+    public com.google.protobuf.Value getSourcePropertiesOrThrow(
+        java.lang.String key) {
+      if (key == null) { throw new NullPointerException("map key"); }
       java.util.Map map =
           internalGetSourceProperties().getMap();
       if (!map.containsKey(key)) {
@@ -2640,15 +2347,13 @@ public com.google.protobuf.Value getSourcePropertiesOrThrow(java.lang.String key
       }
       return map.get(key);
     }
-
     public Builder clearSourceProperties() {
       bitField0_ = (bitField0_ & ~0x00000020);
-      internalGetMutableSourceProperties().getMutableMap().clear();
+      internalGetMutableSourceProperties().getMutableMap()
+          .clear();
       return this;
     }
     /**
-     *
-     *
      * 
      * Source specific properties. These properties are managed by the source
      * that writes the finding. The key names in the source_properties map must be
@@ -2658,22 +2363,23 @@ public Builder clearSourceProperties() {
      *
      * map<string, .google.protobuf.Value> source_properties = 6;
      */
-    public Builder removeSourceProperties(java.lang.String key) {
-      if (key == null) {
-        throw new NullPointerException("map key");
-      }
-      internalGetMutableSourceProperties().getMutableMap().remove(key);
+    public Builder removeSourceProperties(
+        java.lang.String key) {
+      if (key == null) { throw new NullPointerException("map key"); }
+      internalGetMutableSourceProperties().getMutableMap()
+          .remove(key);
       return this;
     }
-    /** Use alternate mutation accessors instead. */
+    /**
+     * Use alternate mutation accessors instead.
+     */
     @java.lang.Deprecated
-    public java.util.Map getMutableSourceProperties() {
+    public java.util.Map
+        getMutableSourceProperties() {
       bitField0_ |= 0x00000020;
       return internalGetMutableSourceProperties().getMutableMap();
     }
     /**
-     *
-     *
      * 
      * Source specific properties. These properties are managed by the source
      * that writes the finding. The key names in the source_properties map must be
@@ -2683,20 +2389,17 @@ public java.util.Map getMutableSour
      *
      * map<string, .google.protobuf.Value> source_properties = 6;
      */
-    public Builder putSourceProperties(java.lang.String key, com.google.protobuf.Value value) {
-      if (key == null) {
-        throw new NullPointerException("map key");
-      }
-      if (value == null) {
-        throw new NullPointerException("map value");
-      }
-      internalGetMutableSourceProperties().getMutableMap().put(key, value);
+    public Builder putSourceProperties(
+        java.lang.String key,
+        com.google.protobuf.Value value) {
+      if (key == null) { throw new NullPointerException("map key"); }
+      if (value == null) { throw new NullPointerException("map value"); }
+      internalGetMutableSourceProperties().getMutableMap()
+          .put(key, value);
       bitField0_ |= 0x00000020;
       return this;
     }
     /**
-     *
-     *
      * 
      * Source specific properties. These properties are managed by the source
      * that writes the finding. The key names in the source_properties map must be
@@ -2708,20 +2411,16 @@ public Builder putSourceProperties(java.lang.String key, com.google.protobuf.Val
      */
     public Builder putAllSourceProperties(
         java.util.Map values) {
-      internalGetMutableSourceProperties().getMutableMap().putAll(values);
+      internalGetMutableSourceProperties().getMutableMap()
+          .putAll(values);
       bitField0_ |= 0x00000020;
       return this;
     }
 
     private com.google.protobuf.Timestamp eventTime_;
     private com.google.protobuf.SingleFieldBuilderV3<
-            com.google.protobuf.Timestamp,
-            com.google.protobuf.Timestamp.Builder,
-            com.google.protobuf.TimestampOrBuilder>
-        eventTimeBuilder_;
+        com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> eventTimeBuilder_;
     /**
-     *
-     *
      * 
      * The time the finding was first detected. If an existing finding is updated,
      * then this is the time the update occurred.
@@ -2733,15 +2432,12 @@ public Builder putAllSourceProperties(
      * 
* * .google.protobuf.Timestamp event_time = 7; - * * @return Whether the eventTime field is set. */ public boolean hasEventTime() { return ((bitField0_ & 0x00000040) != 0); } /** - * - * *
      * The time the finding was first detected. If an existing finding is updated,
      * then this is the time the update occurred.
@@ -2753,7 +2449,6 @@ public boolean hasEventTime() {
      * 
* * .google.protobuf.Timestamp event_time = 7; - * * @return The eventTime. */ public com.google.protobuf.Timestamp getEventTime() { @@ -2764,8 +2459,6 @@ public com.google.protobuf.Timestamp getEventTime() { } } /** - * - * *
      * The time the finding was first detected. If an existing finding is updated,
      * then this is the time the update occurred.
@@ -2792,8 +2485,6 @@ public Builder setEventTime(com.google.protobuf.Timestamp value) {
       return this;
     }
     /**
-     *
-     *
      * 
      * The time the finding was first detected. If an existing finding is updated,
      * then this is the time the update occurred.
@@ -2806,7 +2497,8 @@ public Builder setEventTime(com.google.protobuf.Timestamp value) {
      *
      * .google.protobuf.Timestamp event_time = 7;
      */
-    public Builder setEventTime(com.google.protobuf.Timestamp.Builder builderForValue) {
+    public Builder setEventTime(
+        com.google.protobuf.Timestamp.Builder builderForValue) {
       if (eventTimeBuilder_ == null) {
         eventTime_ = builderForValue.build();
       } else {
@@ -2817,8 +2509,6 @@ public Builder setEventTime(com.google.protobuf.Timestamp.Builder builderForValu
       return this;
     }
     /**
-     *
-     *
      * 
      * The time the finding was first detected. If an existing finding is updated,
      * then this is the time the update occurred.
@@ -2833,9 +2523,9 @@ public Builder setEventTime(com.google.protobuf.Timestamp.Builder builderForValu
      */
     public Builder mergeEventTime(com.google.protobuf.Timestamp value) {
       if (eventTimeBuilder_ == null) {
-        if (((bitField0_ & 0x00000040) != 0)
-            && eventTime_ != null
-            && eventTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) {
+        if (((bitField0_ & 0x00000040) != 0) &&
+          eventTime_ != null &&
+          eventTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) {
           getEventTimeBuilder().mergeFrom(value);
         } else {
           eventTime_ = value;
@@ -2848,8 +2538,6 @@ public Builder mergeEventTime(com.google.protobuf.Timestamp value) {
       return this;
     }
     /**
-     *
-     *
      * 
      * The time the finding was first detected. If an existing finding is updated,
      * then this is the time the update occurred.
@@ -2873,8 +2561,6 @@ public Builder clearEventTime() {
       return this;
     }
     /**
-     *
-     *
      * 
      * The time the finding was first detected. If an existing finding is updated,
      * then this is the time the update occurred.
@@ -2893,8 +2579,6 @@ public com.google.protobuf.Timestamp.Builder getEventTimeBuilder() {
       return getEventTimeFieldBuilder().getBuilder();
     }
     /**
-     *
-     *
      * 
      * The time the finding was first detected. If an existing finding is updated,
      * then this is the time the update occurred.
@@ -2911,12 +2595,11 @@ public com.google.protobuf.TimestampOrBuilder getEventTimeOrBuilder() {
       if (eventTimeBuilder_ != null) {
         return eventTimeBuilder_.getMessageOrBuilder();
       } else {
-        return eventTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : eventTime_;
+        return eventTime_ == null ?
+            com.google.protobuf.Timestamp.getDefaultInstance() : eventTime_;
       }
     }
     /**
-     *
-     *
      * 
      * The time the finding was first detected. If an existing finding is updated,
      * then this is the time the update occurred.
@@ -2930,17 +2613,14 @@ public com.google.protobuf.TimestampOrBuilder getEventTimeOrBuilder() {
      * .google.protobuf.Timestamp event_time = 7;
      */
     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> 
         getEventTimeFieldBuilder() {
       if (eventTimeBuilder_ == null) {
-        eventTimeBuilder_ =
-            new com.google.protobuf.SingleFieldBuilderV3<
-                com.google.protobuf.Timestamp,
-                com.google.protobuf.Timestamp.Builder,
-                com.google.protobuf.TimestampOrBuilder>(
-                getEventTime(), getParentForChildren(), isClean());
+        eventTimeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
+            com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>(
+                getEventTime(),
+                getParentForChildren(),
+                isClean());
         eventTime_ = null;
       }
       return eventTimeBuilder_;
@@ -2948,33 +2628,24 @@ public com.google.protobuf.TimestampOrBuilder getEventTimeOrBuilder() {
 
     private int severity_ = 0;
     /**
-     *
-     *
      * 
      * The severity of the finding. This field is managed by the source that
      * writes the finding.
      * 
* - * .google.cloud.securitycentermanagement.v1.SimulatedFinding.Severity severity = 8; - * - * + * .google.cloud.securitycentermanagement.v1.SimulatedFinding.Severity severity = 8; * @return The enum numeric value on the wire for severity. */ - @java.lang.Override - public int getSeverityValue() { + @java.lang.Override public int getSeverityValue() { return severity_; } /** - * - * *
      * The severity of the finding. This field is managed by the source that
      * writes the finding.
      * 
* - * .google.cloud.securitycentermanagement.v1.SimulatedFinding.Severity severity = 8; - * - * + * .google.cloud.securitycentermanagement.v1.SimulatedFinding.Severity severity = 8; * @param value The enum numeric value on the wire for severity to set. * @return This builder for chaining. */ @@ -2985,43 +2656,30 @@ public Builder setSeverityValue(int value) { return this; } /** - * - * *
      * The severity of the finding. This field is managed by the source that
      * writes the finding.
      * 
* - * .google.cloud.securitycentermanagement.v1.SimulatedFinding.Severity severity = 8; - * - * + * .google.cloud.securitycentermanagement.v1.SimulatedFinding.Severity severity = 8; * @return The severity. */ @java.lang.Override public com.google.cloud.securitycentermanagement.v1.SimulatedFinding.Severity getSeverity() { - com.google.cloud.securitycentermanagement.v1.SimulatedFinding.Severity result = - com.google.cloud.securitycentermanagement.v1.SimulatedFinding.Severity.forNumber( - severity_); - return result == null - ? com.google.cloud.securitycentermanagement.v1.SimulatedFinding.Severity.UNRECOGNIZED - : result; + com.google.cloud.securitycentermanagement.v1.SimulatedFinding.Severity result = com.google.cloud.securitycentermanagement.v1.SimulatedFinding.Severity.forNumber(severity_); + return result == null ? com.google.cloud.securitycentermanagement.v1.SimulatedFinding.Severity.UNRECOGNIZED : result; } /** - * - * *
      * The severity of the finding. This field is managed by the source that
      * writes the finding.
      * 
* - * .google.cloud.securitycentermanagement.v1.SimulatedFinding.Severity severity = 8; - * - * + * .google.cloud.securitycentermanagement.v1.SimulatedFinding.Severity severity = 8; * @param value The severity to set. * @return This builder for chaining. */ - public Builder setSeverity( - com.google.cloud.securitycentermanagement.v1.SimulatedFinding.Severity value) { + public Builder setSeverity(com.google.cloud.securitycentermanagement.v1.SimulatedFinding.Severity value) { if (value == null) { throw new NullPointerException(); } @@ -3031,16 +2689,12 @@ public Builder setSeverity( return this; } /** - * - * *
      * The severity of the finding. This field is managed by the source that
      * writes the finding.
      * 
* - * .google.cloud.securitycentermanagement.v1.SimulatedFinding.Severity severity = 8; - * - * + * .google.cloud.securitycentermanagement.v1.SimulatedFinding.Severity severity = 8; * @return This builder for chaining. */ public Builder clearSeverity() { @@ -3052,33 +2706,22 @@ public Builder clearSeverity() { private int findingClass_ = 0; /** - * - * *
      * The class of the finding.
      * 
* - * - * .google.cloud.securitycentermanagement.v1.SimulatedFinding.FindingClass finding_class = 9; - * - * + * .google.cloud.securitycentermanagement.v1.SimulatedFinding.FindingClass finding_class = 9; * @return The enum numeric value on the wire for findingClass. */ - @java.lang.Override - public int getFindingClassValue() { + @java.lang.Override public int getFindingClassValue() { return findingClass_; } /** - * - * *
      * The class of the finding.
      * 
* - * - * .google.cloud.securitycentermanagement.v1.SimulatedFinding.FindingClass finding_class = 9; - * - * + * .google.cloud.securitycentermanagement.v1.SimulatedFinding.FindingClass finding_class = 9; * @param value The enum numeric value on the wire for findingClass to set. * @return This builder for chaining. */ @@ -3089,44 +2732,28 @@ public Builder setFindingClassValue(int value) { return this; } /** - * - * *
      * The class of the finding.
      * 
* - * - * .google.cloud.securitycentermanagement.v1.SimulatedFinding.FindingClass finding_class = 9; - * - * + * .google.cloud.securitycentermanagement.v1.SimulatedFinding.FindingClass finding_class = 9; * @return The findingClass. */ @java.lang.Override - public com.google.cloud.securitycentermanagement.v1.SimulatedFinding.FindingClass - getFindingClass() { - com.google.cloud.securitycentermanagement.v1.SimulatedFinding.FindingClass result = - com.google.cloud.securitycentermanagement.v1.SimulatedFinding.FindingClass.forNumber( - findingClass_); - return result == null - ? com.google.cloud.securitycentermanagement.v1.SimulatedFinding.FindingClass.UNRECOGNIZED - : result; + public com.google.cloud.securitycentermanagement.v1.SimulatedFinding.FindingClass getFindingClass() { + com.google.cloud.securitycentermanagement.v1.SimulatedFinding.FindingClass result = com.google.cloud.securitycentermanagement.v1.SimulatedFinding.FindingClass.forNumber(findingClass_); + return result == null ? com.google.cloud.securitycentermanagement.v1.SimulatedFinding.FindingClass.UNRECOGNIZED : result; } /** - * - * *
      * The class of the finding.
      * 
* - * - * .google.cloud.securitycentermanagement.v1.SimulatedFinding.FindingClass finding_class = 9; - * - * + * .google.cloud.securitycentermanagement.v1.SimulatedFinding.FindingClass finding_class = 9; * @param value The findingClass to set. * @return This builder for chaining. */ - public Builder setFindingClass( - com.google.cloud.securitycentermanagement.v1.SimulatedFinding.FindingClass value) { + public Builder setFindingClass(com.google.cloud.securitycentermanagement.v1.SimulatedFinding.FindingClass value) { if (value == null) { throw new NullPointerException(); } @@ -3136,16 +2763,11 @@ public Builder setFindingClass( return this; } /** - * - * *
      * The class of the finding.
      * 
* - * - * .google.cloud.securitycentermanagement.v1.SimulatedFinding.FindingClass finding_class = 9; - * - * + * .google.cloud.securitycentermanagement.v1.SimulatedFinding.FindingClass finding_class = 9; * @return This builder for chaining. */ public Builder clearFindingClass() { @@ -3154,9 +2776,9 @@ public Builder clearFindingClass() { onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -3166,13 +2788,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.securitycentermanagement.v1.SimulatedFinding) } // @@protoc_insertion_point(class_scope:google.cloud.securitycentermanagement.v1.SimulatedFinding) - private static final com.google.cloud.securitycentermanagement.v1.SimulatedFinding - DEFAULT_INSTANCE; - + private static final com.google.cloud.securitycentermanagement.v1.SimulatedFinding DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.google.cloud.securitycentermanagement.v1.SimulatedFinding(); } @@ -3181,27 +2802,27 @@ public static com.google.cloud.securitycentermanagement.v1.SimulatedFinding getD return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public SimulatedFinding parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public SimulatedFinding parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -3216,4 +2837,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.securitycentermanagement.v1.SimulatedFinding getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/java-securitycentermanagement/proto-google-cloud-securitycentermanagement-v1/src/main/java/com/google/cloud/securitycentermanagement/v1/SimulatedFindingOrBuilder.java b/owl-bot-staging/java-securitycentermanagement/v1/proto-google-cloud-securitycentermanagement-v1/src/main/java/com/google/cloud/securitycentermanagement/v1/SimulatedFindingOrBuilder.java similarity index 81% rename from java-securitycentermanagement/proto-google-cloud-securitycentermanagement-v1/src/main/java/com/google/cloud/securitycentermanagement/v1/SimulatedFindingOrBuilder.java rename to owl-bot-staging/java-securitycentermanagement/v1/proto-google-cloud-securitycentermanagement-v1/src/main/java/com/google/cloud/securitycentermanagement/v1/SimulatedFindingOrBuilder.java index 33a61cd7ce1a..b05d500e5ccc 100644 --- a/java-securitycentermanagement/proto-google-cloud-securitycentermanagement-v1/src/main/java/com/google/cloud/securitycentermanagement/v1/SimulatedFindingOrBuilder.java +++ b/owl-bot-staging/java-securitycentermanagement/v1/proto-google-cloud-securitycentermanagement-v1/src/main/java/com/google/cloud/securitycentermanagement/v1/SimulatedFindingOrBuilder.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/securitycentermanagement/v1/security_center_management.proto package com.google.cloud.securitycentermanagement.v1; -public interface SimulatedFindingOrBuilder - extends +public interface SimulatedFindingOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.securitycentermanagement.v1.SimulatedFinding) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * Identifier. The [relative resource
    * name](https://cloud.google.com/apis/design/resource_names#relative_resource_name)
@@ -36,13 +18,10 @@ public interface SimulatedFindingOrBuilder
    * 
* * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; - * * @return The name. */ java.lang.String getName(); /** - * - * *
    * Identifier. The [relative resource
    * name](https://cloud.google.com/apis/design/resource_names#relative_resource_name)
@@ -53,14 +32,12 @@ public interface SimulatedFindingOrBuilder
    * 
* * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; - * * @return The bytes for name. */ - com.google.protobuf.ByteString getNameBytes(); + com.google.protobuf.ByteString + getNameBytes(); /** - * - * *
    * The relative resource name of the source the finding belongs to. See:
    * https://cloud.google.com/apis/design/resource_names#relative_resource_name
@@ -70,13 +47,10 @@ public interface SimulatedFindingOrBuilder
    * 
* * string parent = 2; - * * @return The parent. */ java.lang.String getParent(); /** - * - * *
    * The relative resource name of the source the finding belongs to. See:
    * https://cloud.google.com/apis/design/resource_names#relative_resource_name
@@ -86,14 +60,12 @@ public interface SimulatedFindingOrBuilder
    * 
* * string parent = 2; - * * @return The bytes for parent. */ - com.google.protobuf.ByteString getParentBytes(); + com.google.protobuf.ByteString + getParentBytes(); /** - * - * *
    * For findings on Google Cloud resources, the full resource
    * name of the Google Cloud resource this finding is for. See:
@@ -104,13 +76,10 @@ public interface SimulatedFindingOrBuilder
    * 
* * string resource_name = 3; - * * @return The resourceName. */ java.lang.String getResourceName(); /** - * - * *
    * For findings on Google Cloud resources, the full resource
    * name of the Google Cloud resource this finding is for. See:
@@ -121,14 +90,12 @@ public interface SimulatedFindingOrBuilder
    * 
* * string resource_name = 3; - * * @return The bytes for resourceName. */ - com.google.protobuf.ByteString getResourceNameBytes(); + com.google.protobuf.ByteString + getResourceNameBytes(); /** - * - * *
    * The additional taxonomy group within findings from a given source.
    * This field is immutable after creation time.
@@ -136,13 +103,10 @@ public interface SimulatedFindingOrBuilder
    * 
* * string category = 4; - * * @return The category. */ java.lang.String getCategory(); /** - * - * *
    * The additional taxonomy group within findings from a given source.
    * This field is immutable after creation time.
@@ -150,43 +114,31 @@ public interface SimulatedFindingOrBuilder
    * 
* * string category = 4; - * * @return The bytes for category. */ - com.google.protobuf.ByteString getCategoryBytes(); + com.google.protobuf.ByteString + getCategoryBytes(); /** - * - * *
    * Output only. The state of the finding.
    * 
* - * - * .google.cloud.securitycentermanagement.v1.SimulatedFinding.State state = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.cloud.securitycentermanagement.v1.SimulatedFinding.State state = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The enum numeric value on the wire for state. */ int getStateValue(); /** - * - * *
    * Output only. The state of the finding.
    * 
* - * - * .google.cloud.securitycentermanagement.v1.SimulatedFinding.State state = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.cloud.securitycentermanagement.v1.SimulatedFinding.State state = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The state. */ com.google.cloud.securitycentermanagement.v1.SimulatedFinding.State getState(); /** - * - * *
    * Source specific properties. These properties are managed by the source
    * that writes the finding. The key names in the source_properties map must be
@@ -198,8 +150,6 @@ public interface SimulatedFindingOrBuilder
    */
   int getSourcePropertiesCount();
   /**
-   *
-   *
    * 
    * Source specific properties. These properties are managed by the source
    * that writes the finding. The key names in the source_properties map must be
@@ -209,13 +159,15 @@ public interface SimulatedFindingOrBuilder
    *
    * map<string, .google.protobuf.Value> source_properties = 6;
    */
-  boolean containsSourceProperties(java.lang.String key);
-  /** Use {@link #getSourcePropertiesMap()} instead. */
+  boolean containsSourceProperties(
+      java.lang.String key);
+  /**
+   * Use {@link #getSourcePropertiesMap()} instead.
+   */
   @java.lang.Deprecated
-  java.util.Map getSourceProperties();
+  java.util.Map
+  getSourceProperties();
   /**
-   *
-   *
    * 
    * Source specific properties. These properties are managed by the source
    * that writes the finding. The key names in the source_properties map must be
@@ -225,10 +177,9 @@ public interface SimulatedFindingOrBuilder
    *
    * map<string, .google.protobuf.Value> source_properties = 6;
    */
-  java.util.Map getSourcePropertiesMap();
+  java.util.Map
+  getSourcePropertiesMap();
   /**
-   *
-   *
    * 
    * Source specific properties. These properties are managed by the source
    * that writes the finding. The key names in the source_properties map must be
@@ -239,13 +190,11 @@ public interface SimulatedFindingOrBuilder
    * map<string, .google.protobuf.Value> source_properties = 6;
    */
   /* nullable */
-  com.google.protobuf.Value getSourcePropertiesOrDefault(
+com.google.protobuf.Value getSourcePropertiesOrDefault(
       java.lang.String key,
       /* nullable */
-      com.google.protobuf.Value defaultValue);
+com.google.protobuf.Value defaultValue);
   /**
-   *
-   *
    * 
    * Source specific properties. These properties are managed by the source
    * that writes the finding. The key names in the source_properties map must be
@@ -255,11 +204,10 @@ com.google.protobuf.Value getSourcePropertiesOrDefault(
    *
    * map<string, .google.protobuf.Value> source_properties = 6;
    */
-  com.google.protobuf.Value getSourcePropertiesOrThrow(java.lang.String key);
+  com.google.protobuf.Value getSourcePropertiesOrThrow(
+      java.lang.String key);
 
   /**
-   *
-   *
    * 
    * The time the finding was first detected. If an existing finding is updated,
    * then this is the time the update occurred.
@@ -271,13 +219,10 @@ com.google.protobuf.Value getSourcePropertiesOrDefault(
    * 
* * .google.protobuf.Timestamp event_time = 7; - * * @return Whether the eventTime field is set. */ boolean hasEventTime(); /** - * - * *
    * The time the finding was first detected. If an existing finding is updated,
    * then this is the time the update occurred.
@@ -289,13 +234,10 @@ com.google.protobuf.Value getSourcePropertiesOrDefault(
    * 
* * .google.protobuf.Timestamp event_time = 7; - * * @return The eventTime. */ com.google.protobuf.Timestamp getEventTime(); /** - * - * *
    * The time the finding was first detected. If an existing finding is updated,
    * then this is the time the update occurred.
@@ -311,57 +253,41 @@ com.google.protobuf.Value getSourcePropertiesOrDefault(
   com.google.protobuf.TimestampOrBuilder getEventTimeOrBuilder();
 
   /**
-   *
-   *
    * 
    * The severity of the finding. This field is managed by the source that
    * writes the finding.
    * 
* * .google.cloud.securitycentermanagement.v1.SimulatedFinding.Severity severity = 8; - * * @return The enum numeric value on the wire for severity. */ int getSeverityValue(); /** - * - * *
    * The severity of the finding. This field is managed by the source that
    * writes the finding.
    * 
* * .google.cloud.securitycentermanagement.v1.SimulatedFinding.Severity severity = 8; - * * @return The severity. */ com.google.cloud.securitycentermanagement.v1.SimulatedFinding.Severity getSeverity(); /** - * - * *
    * The class of the finding.
    * 
* - * - * .google.cloud.securitycentermanagement.v1.SimulatedFinding.FindingClass finding_class = 9; - * - * + * .google.cloud.securitycentermanagement.v1.SimulatedFinding.FindingClass finding_class = 9; * @return The enum numeric value on the wire for findingClass. */ int getFindingClassValue(); /** - * - * *
    * The class of the finding.
    * 
* - * - * .google.cloud.securitycentermanagement.v1.SimulatedFinding.FindingClass finding_class = 9; - * - * + * .google.cloud.securitycentermanagement.v1.SimulatedFinding.FindingClass finding_class = 9; * @return The findingClass. */ com.google.cloud.securitycentermanagement.v1.SimulatedFinding.FindingClass getFindingClass(); diff --git a/java-securitycentermanagement/proto-google-cloud-securitycentermanagement-v1/src/main/java/com/google/cloud/securitycentermanagement/v1/UpdateEventThreatDetectionCustomModuleRequest.java b/owl-bot-staging/java-securitycentermanagement/v1/proto-google-cloud-securitycentermanagement-v1/src/main/java/com/google/cloud/securitycentermanagement/v1/UpdateEventThreatDetectionCustomModuleRequest.java similarity index 56% rename from java-securitycentermanagement/proto-google-cloud-securitycentermanagement-v1/src/main/java/com/google/cloud/securitycentermanagement/v1/UpdateEventThreatDetectionCustomModuleRequest.java rename to owl-bot-staging/java-securitycentermanagement/v1/proto-google-cloud-securitycentermanagement-v1/src/main/java/com/google/cloud/securitycentermanagement/v1/UpdateEventThreatDetectionCustomModuleRequest.java index 51d21b2b703d..d9d06266ded9 100644 --- a/java-securitycentermanagement/proto-google-cloud-securitycentermanagement-v1/src/main/java/com/google/cloud/securitycentermanagement/v1/UpdateEventThreatDetectionCustomModuleRequest.java +++ b/owl-bot-staging/java-securitycentermanagement/v1/proto-google-cloud-securitycentermanagement-v1/src/main/java/com/google/cloud/securitycentermanagement/v1/UpdateEventThreatDetectionCustomModuleRequest.java @@ -1,75 +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/securitycentermanagement/v1/security_center_management.proto package com.google.cloud.securitycentermanagement.v1; /** - * - * *
  * Message for updating a EventThreatDetectionCustomModule
  * 
* - * Protobuf type {@code - * google.cloud.securitycentermanagement.v1.UpdateEventThreatDetectionCustomModuleRequest} + * Protobuf type {@code google.cloud.securitycentermanagement.v1.UpdateEventThreatDetectionCustomModuleRequest} */ -public final class UpdateEventThreatDetectionCustomModuleRequest - extends com.google.protobuf.GeneratedMessageV3 - implements +public final class UpdateEventThreatDetectionCustomModuleRequest extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.securitycentermanagement.v1.UpdateEventThreatDetectionCustomModuleRequest) UpdateEventThreatDetectionCustomModuleRequestOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use UpdateEventThreatDetectionCustomModuleRequest.newBuilder() to construct. - private UpdateEventThreatDetectionCustomModuleRequest( - com.google.protobuf.GeneratedMessageV3.Builder builder) { + private UpdateEventThreatDetectionCustomModuleRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - - private UpdateEventThreatDetectionCustomModuleRequest() {} + private UpdateEventThreatDetectionCustomModuleRequest() { + } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new UpdateEventThreatDetectionCustomModuleRequest(); } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.securitycentermanagement.v1.SecurityCenterManagementProto - .internal_static_google_cloud_securitycentermanagement_v1_UpdateEventThreatDetectionCustomModuleRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.securitycentermanagement.v1.SecurityCenterManagementProto.internal_static_google_cloud_securitycentermanagement_v1_UpdateEventThreatDetectionCustomModuleRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.securitycentermanagement.v1.SecurityCenterManagementProto - .internal_static_google_cloud_securitycentermanagement_v1_UpdateEventThreatDetectionCustomModuleRequest_fieldAccessorTable + return com.google.cloud.securitycentermanagement.v1.SecurityCenterManagementProto.internal_static_google_cloud_securitycentermanagement_v1_UpdateEventThreatDetectionCustomModuleRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.securitycentermanagement.v1 - .UpdateEventThreatDetectionCustomModuleRequest.class, - com.google.cloud.securitycentermanagement.v1 - .UpdateEventThreatDetectionCustomModuleRequest.Builder.class); + com.google.cloud.securitycentermanagement.v1.UpdateEventThreatDetectionCustomModuleRequest.class, com.google.cloud.securitycentermanagement.v1.UpdateEventThreatDetectionCustomModuleRequest.Builder.class); } public static final int UPDATE_MASK_FIELD_NUMBER = 1; private com.google.protobuf.FieldMask updateMask_; /** - * - * *
    * Required. Field mask is used to specify the fields to be overwritten in the
    * EventThreatDetectionCustomModule resource by the update.
@@ -78,9 +53,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
    * user does not provide a mask then all fields will be overwritten.
    * 
* - * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = REQUIRED]; * @return Whether the updateMask field is set. */ @java.lang.Override @@ -88,8 +61,6 @@ public boolean hasUpdateMask() { return updateMask_ != null; } /** - * - * *
    * Required. Field mask is used to specify the fields to be overwritten in the
    * EventThreatDetectionCustomModule resource by the update.
@@ -98,9 +69,7 @@ public boolean hasUpdateMask() {
    * user does not provide a mask then all fields will be overwritten.
    * 
* - * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = REQUIRED]; * @return The updateMask. */ @java.lang.Override @@ -108,8 +77,6 @@ public com.google.protobuf.FieldMask getUpdateMask() { return updateMask_ == null ? com.google.protobuf.FieldMask.getDefaultInstance() : updateMask_; } /** - * - * *
    * Required. Field mask is used to specify the fields to be overwritten in the
    * EventThreatDetectionCustomModule resource by the update.
@@ -118,8 +85,7 @@ public com.google.protobuf.FieldMask getUpdateMask() {
    * user does not provide a mask then all fields will be overwritten.
    * 
* - * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = REQUIRED]; */ @java.lang.Override public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() { @@ -127,19 +93,13 @@ public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() { } public static final int EVENT_THREAT_DETECTION_CUSTOM_MODULE_FIELD_NUMBER = 2; - private com.google.cloud.securitycentermanagement.v1.EventThreatDetectionCustomModule - eventThreatDetectionCustomModule_; + private com.google.cloud.securitycentermanagement.v1.EventThreatDetectionCustomModule eventThreatDetectionCustomModule_; /** - * - * *
    * Required. The module being updated
    * 
* - * - * .google.cloud.securitycentermanagement.v1.EventThreatDetectionCustomModule event_threat_detection_custom_module = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.securitycentermanagement.v1.EventThreatDetectionCustomModule event_threat_detection_custom_module = 2 [(.google.api.field_behavior) = REQUIRED]; * @return Whether the eventThreatDetectionCustomModule field is set. */ @java.lang.Override @@ -147,51 +107,32 @@ public boolean hasEventThreatDetectionCustomModule() { return eventThreatDetectionCustomModule_ != null; } /** - * - * *
    * Required. The module being updated
    * 
* - * - * .google.cloud.securitycentermanagement.v1.EventThreatDetectionCustomModule event_threat_detection_custom_module = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.securitycentermanagement.v1.EventThreatDetectionCustomModule event_threat_detection_custom_module = 2 [(.google.api.field_behavior) = REQUIRED]; * @return The eventThreatDetectionCustomModule. */ @java.lang.Override - public com.google.cloud.securitycentermanagement.v1.EventThreatDetectionCustomModule - getEventThreatDetectionCustomModule() { - return eventThreatDetectionCustomModule_ == null - ? com.google.cloud.securitycentermanagement.v1.EventThreatDetectionCustomModule - .getDefaultInstance() - : eventThreatDetectionCustomModule_; + public com.google.cloud.securitycentermanagement.v1.EventThreatDetectionCustomModule getEventThreatDetectionCustomModule() { + return eventThreatDetectionCustomModule_ == null ? com.google.cloud.securitycentermanagement.v1.EventThreatDetectionCustomModule.getDefaultInstance() : eventThreatDetectionCustomModule_; } /** - * - * *
    * Required. The module being updated
    * 
* - * - * .google.cloud.securitycentermanagement.v1.EventThreatDetectionCustomModule event_threat_detection_custom_module = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.securitycentermanagement.v1.EventThreatDetectionCustomModule event_threat_detection_custom_module = 2 [(.google.api.field_behavior) = REQUIRED]; */ @java.lang.Override - public com.google.cloud.securitycentermanagement.v1.EventThreatDetectionCustomModuleOrBuilder - getEventThreatDetectionCustomModuleOrBuilder() { - return eventThreatDetectionCustomModule_ == null - ? com.google.cloud.securitycentermanagement.v1.EventThreatDetectionCustomModule - .getDefaultInstance() - : eventThreatDetectionCustomModule_; + public com.google.cloud.securitycentermanagement.v1.EventThreatDetectionCustomModuleOrBuilder getEventThreatDetectionCustomModuleOrBuilder() { + return eventThreatDetectionCustomModule_ == null ? com.google.cloud.securitycentermanagement.v1.EventThreatDetectionCustomModule.getDefaultInstance() : eventThreatDetectionCustomModule_; } public static final int VALIDATE_ONLY_FIELD_NUMBER = 3; private boolean validateOnly_ = false; /** - * - * *
    * Optional. When set to true, only validations (including IAM checks) will
    * done for the request (module will not be updated). An OK response indicates
@@ -203,7 +144,6 @@ public boolean hasEventThreatDetectionCustomModule() {
    * 
* * bool validate_only = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The validateOnly. */ @java.lang.Override @@ -212,7 +152,6 @@ public boolean getValidateOnly() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -224,7 +163,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (updateMask_ != null) { output.writeMessage(1, getUpdateMask()); } @@ -244,15 +184,16 @@ public int getSerializedSize() { size = 0; if (updateMask_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getUpdateMask()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, getUpdateMask()); } if (eventThreatDetectionCustomModule_ != null) { - size += - com.google.protobuf.CodedOutputStream.computeMessageSize( - 2, getEventThreatDetectionCustomModule()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(2, getEventThreatDetectionCustomModule()); } if (validateOnly_ != false) { - size += com.google.protobuf.CodedOutputStream.computeBoolSize(3, validateOnly_); + size += com.google.protobuf.CodedOutputStream + .computeBoolSize(3, validateOnly_); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -262,31 +203,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.securitycentermanagement.v1 - .UpdateEventThreatDetectionCustomModuleRequest)) { + if (!(obj instanceof com.google.cloud.securitycentermanagement.v1.UpdateEventThreatDetectionCustomModuleRequest)) { return super.equals(obj); } - com.google.cloud.securitycentermanagement.v1.UpdateEventThreatDetectionCustomModuleRequest - other = - (com.google.cloud.securitycentermanagement.v1 - .UpdateEventThreatDetectionCustomModuleRequest) - obj; + com.google.cloud.securitycentermanagement.v1.UpdateEventThreatDetectionCustomModuleRequest other = (com.google.cloud.securitycentermanagement.v1.UpdateEventThreatDetectionCustomModuleRequest) obj; if (hasUpdateMask() != other.hasUpdateMask()) return false; if (hasUpdateMask()) { - if (!getUpdateMask().equals(other.getUpdateMask())) return false; + if (!getUpdateMask() + .equals(other.getUpdateMask())) return false; } - if (hasEventThreatDetectionCustomModule() != other.hasEventThreatDetectionCustomModule()) - return false; + if (hasEventThreatDetectionCustomModule() != other.hasEventThreatDetectionCustomModule()) return false; if (hasEventThreatDetectionCustomModule()) { if (!getEventThreatDetectionCustomModule() .equals(other.getEventThreatDetectionCustomModule())) return false; } - if (getValidateOnly() != other.getValidateOnly()) return false; + if (getValidateOnly() + != other.getValidateOnly()) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -307,167 +242,139 @@ public int hashCode() { hash = (53 * hash) + getEventThreatDetectionCustomModule().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.securitycentermanagement.v1 - .UpdateEventThreatDetectionCustomModuleRequest - parseFrom(java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.securitycentermanagement.v1.UpdateEventThreatDetectionCustomModuleRequest parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - - public static com.google.cloud.securitycentermanagement.v1 - .UpdateEventThreatDetectionCustomModuleRequest - parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.securitycentermanagement.v1.UpdateEventThreatDetectionCustomModuleRequest 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.securitycentermanagement.v1 - .UpdateEventThreatDetectionCustomModuleRequest - parseFrom(com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.securitycentermanagement.v1.UpdateEventThreatDetectionCustomModuleRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - - public static com.google.cloud.securitycentermanagement.v1 - .UpdateEventThreatDetectionCustomModuleRequest - parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.securitycentermanagement.v1.UpdateEventThreatDetectionCustomModuleRequest parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.securitycentermanagement.v1 - .UpdateEventThreatDetectionCustomModuleRequest - parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.securitycentermanagement.v1.UpdateEventThreatDetectionCustomModuleRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - - public static com.google.cloud.securitycentermanagement.v1 - .UpdateEventThreatDetectionCustomModuleRequest - parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.securitycentermanagement.v1.UpdateEventThreatDetectionCustomModuleRequest parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.securitycentermanagement.v1 - .UpdateEventThreatDetectionCustomModuleRequest - parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.securitycentermanagement.v1.UpdateEventThreatDetectionCustomModuleRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - - public static com.google.cloud.securitycentermanagement.v1 - .UpdateEventThreatDetectionCustomModuleRequest - 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.securitycentermanagement.v1.UpdateEventThreatDetectionCustomModuleRequest 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.securitycentermanagement.v1 - .UpdateEventThreatDetectionCustomModuleRequest - parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.securitycentermanagement.v1.UpdateEventThreatDetectionCustomModuleRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.securitycentermanagement.v1 - .UpdateEventThreatDetectionCustomModuleRequest - parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + public static com.google.cloud.securitycentermanagement.v1.UpdateEventThreatDetectionCustomModuleRequest parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.securitycentermanagement.v1 - .UpdateEventThreatDetectionCustomModuleRequest - parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.securitycentermanagement.v1.UpdateEventThreatDetectionCustomModuleRequest parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - - public static com.google.cloud.securitycentermanagement.v1 - .UpdateEventThreatDetectionCustomModuleRequest - 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.securitycentermanagement.v1.UpdateEventThreatDetectionCustomModuleRequest 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.securitycentermanagement.v1.UpdateEventThreatDetectionCustomModuleRequest - prototype) { + public static Builder newBuilder(com.google.cloud.securitycentermanagement.v1.UpdateEventThreatDetectionCustomModuleRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected 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 updating a EventThreatDetectionCustomModule
    * 
* - * Protobuf type {@code - * google.cloud.securitycentermanagement.v1.UpdateEventThreatDetectionCustomModuleRequest} + * Protobuf type {@code google.cloud.securitycentermanagement.v1.UpdateEventThreatDetectionCustomModuleRequest} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.securitycentermanagement.v1.UpdateEventThreatDetectionCustomModuleRequest) - com.google.cloud.securitycentermanagement.v1 - .UpdateEventThreatDetectionCustomModuleRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.securitycentermanagement.v1.SecurityCenterManagementProto - .internal_static_google_cloud_securitycentermanagement_v1_UpdateEventThreatDetectionCustomModuleRequest_descriptor; + com.google.cloud.securitycentermanagement.v1.UpdateEventThreatDetectionCustomModuleRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.securitycentermanagement.v1.SecurityCenterManagementProto.internal_static_google_cloud_securitycentermanagement_v1_UpdateEventThreatDetectionCustomModuleRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.securitycentermanagement.v1.SecurityCenterManagementProto - .internal_static_google_cloud_securitycentermanagement_v1_UpdateEventThreatDetectionCustomModuleRequest_fieldAccessorTable + return com.google.cloud.securitycentermanagement.v1.SecurityCenterManagementProto.internal_static_google_cloud_securitycentermanagement_v1_UpdateEventThreatDetectionCustomModuleRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.securitycentermanagement.v1 - .UpdateEventThreatDetectionCustomModuleRequest.class, - com.google.cloud.securitycentermanagement.v1 - .UpdateEventThreatDetectionCustomModuleRequest.Builder.class); + com.google.cloud.securitycentermanagement.v1.UpdateEventThreatDetectionCustomModuleRequest.class, com.google.cloud.securitycentermanagement.v1.UpdateEventThreatDetectionCustomModuleRequest.Builder.class); } - // Construct using - // com.google.cloud.securitycentermanagement.v1.UpdateEventThreatDetectionCustomModuleRequest.newBuilder() - private Builder() {} + // Construct using com.google.cloud.securitycentermanagement.v1.UpdateEventThreatDetectionCustomModuleRequest.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(); @@ -487,25 +394,19 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.securitycentermanagement.v1.SecurityCenterManagementProto - .internal_static_google_cloud_securitycentermanagement_v1_UpdateEventThreatDetectionCustomModuleRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.securitycentermanagement.v1.SecurityCenterManagementProto.internal_static_google_cloud_securitycentermanagement_v1_UpdateEventThreatDetectionCustomModuleRequest_descriptor; } @java.lang.Override - public com.google.cloud.securitycentermanagement.v1 - .UpdateEventThreatDetectionCustomModuleRequest - getDefaultInstanceForType() { - return com.google.cloud.securitycentermanagement.v1 - .UpdateEventThreatDetectionCustomModuleRequest.getDefaultInstance(); + public com.google.cloud.securitycentermanagement.v1.UpdateEventThreatDetectionCustomModuleRequest getDefaultInstanceForType() { + return com.google.cloud.securitycentermanagement.v1.UpdateEventThreatDetectionCustomModuleRequest.getDefaultInstance(); } @java.lang.Override - public com.google.cloud.securitycentermanagement.v1 - .UpdateEventThreatDetectionCustomModuleRequest - build() { - com.google.cloud.securitycentermanagement.v1.UpdateEventThreatDetectionCustomModuleRequest - result = buildPartial(); + public com.google.cloud.securitycentermanagement.v1.UpdateEventThreatDetectionCustomModuleRequest build() { + com.google.cloud.securitycentermanagement.v1.UpdateEventThreatDetectionCustomModuleRequest result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } @@ -513,32 +414,24 @@ public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { } @java.lang.Override - public com.google.cloud.securitycentermanagement.v1 - .UpdateEventThreatDetectionCustomModuleRequest - buildPartial() { - com.google.cloud.securitycentermanagement.v1.UpdateEventThreatDetectionCustomModuleRequest - result = - new com.google.cloud.securitycentermanagement.v1 - .UpdateEventThreatDetectionCustomModuleRequest(this); - if (bitField0_ != 0) { - buildPartial0(result); - } + public com.google.cloud.securitycentermanagement.v1.UpdateEventThreatDetectionCustomModuleRequest buildPartial() { + com.google.cloud.securitycentermanagement.v1.UpdateEventThreatDetectionCustomModuleRequest result = new com.google.cloud.securitycentermanagement.v1.UpdateEventThreatDetectionCustomModuleRequest(this); + if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } - private void buildPartial0( - com.google.cloud.securitycentermanagement.v1.UpdateEventThreatDetectionCustomModuleRequest - result) { + private void buildPartial0(com.google.cloud.securitycentermanagement.v1.UpdateEventThreatDetectionCustomModuleRequest result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000001) != 0)) { - result.updateMask_ = updateMaskBuilder_ == null ? updateMask_ : updateMaskBuilder_.build(); + result.updateMask_ = updateMaskBuilder_ == null + ? updateMask_ + : updateMaskBuilder_.build(); } if (((from_bitField0_ & 0x00000002) != 0)) { - result.eventThreatDetectionCustomModule_ = - eventThreatDetectionCustomModuleBuilder_ == null - ? eventThreatDetectionCustomModule_ - : eventThreatDetectionCustomModuleBuilder_.build(); + result.eventThreatDetectionCustomModule_ = eventThreatDetectionCustomModuleBuilder_ == null + ? eventThreatDetectionCustomModule_ + : eventThreatDetectionCustomModuleBuilder_.build(); } if (((from_bitField0_ & 0x00000004) != 0)) { result.validateOnly_ = validateOnly_; @@ -549,57 +442,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.securitycentermanagement.v1 - .UpdateEventThreatDetectionCustomModuleRequest) { - return mergeFrom( - (com.google.cloud.securitycentermanagement.v1 - .UpdateEventThreatDetectionCustomModuleRequest) - other); + if (other instanceof com.google.cloud.securitycentermanagement.v1.UpdateEventThreatDetectionCustomModuleRequest) { + return mergeFrom((com.google.cloud.securitycentermanagement.v1.UpdateEventThreatDetectionCustomModuleRequest)other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom( - com.google.cloud.securitycentermanagement.v1.UpdateEventThreatDetectionCustomModuleRequest - other) { - if (other - == com.google.cloud.securitycentermanagement.v1 - .UpdateEventThreatDetectionCustomModuleRequest.getDefaultInstance()) return this; + public Builder mergeFrom(com.google.cloud.securitycentermanagement.v1.UpdateEventThreatDetectionCustomModuleRequest other) { + if (other == com.google.cloud.securitycentermanagement.v1.UpdateEventThreatDetectionCustomModuleRequest.getDefaultInstance()) return this; if (other.hasUpdateMask()) { mergeUpdateMask(other.getUpdateMask()); } @@ -635,33 +517,31 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: - { - input.readMessage(getUpdateMaskFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 18: - { - input.readMessage( - getEventThreatDetectionCustomModuleFieldBuilder().getBuilder(), - extensionRegistry); - bitField0_ |= 0x00000002; - break; - } // case 18 - case 24: - { - validateOnly_ = input.readBool(); - bitField0_ |= 0x00000004; - break; - } // case 24 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: { + input.readMessage( + getUpdateMaskFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: { + input.readMessage( + getEventThreatDetectionCustomModuleFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 24: { + validateOnly_ = 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) { @@ -671,18 +551,12 @@ public Builder mergeFrom( } // finally return this; } - private int bitField0_; 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. Field mask is used to specify the fields to be overwritten in the
      * EventThreatDetectionCustomModule resource by the update.
@@ -691,17 +565,13 @@ public Builder mergeFrom(
      * user does not provide a mask then all fields will be overwritten.
      * 
* - * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = REQUIRED]; * @return Whether the updateMask field is set. */ public boolean hasUpdateMask() { return ((bitField0_ & 0x00000001) != 0); } /** - * - * *
      * Required. Field mask is used to specify the fields to be overwritten in the
      * EventThreatDetectionCustomModule resource by the update.
@@ -710,23 +580,17 @@ public boolean hasUpdateMask() {
      * user does not provide a mask then all fields will be overwritten.
      * 
* - * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.protobuf.FieldMask update_mask = 1 [(.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. Field mask is used to specify the fields to be overwritten in the
      * EventThreatDetectionCustomModule resource by the update.
@@ -735,8 +599,7 @@ public com.google.protobuf.FieldMask getUpdateMask() {
      * user does not provide a mask then all fields will be overwritten.
      * 
* - * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = REQUIRED]; */ public Builder setUpdateMask(com.google.protobuf.FieldMask value) { if (updateMaskBuilder_ == null) { @@ -752,8 +615,6 @@ public Builder setUpdateMask(com.google.protobuf.FieldMask value) { return this; } /** - * - * *
      * Required. Field mask is used to specify the fields to be overwritten in the
      * EventThreatDetectionCustomModule resource by the update.
@@ -762,10 +623,10 @@ public Builder setUpdateMask(com.google.protobuf.FieldMask value) {
      * user does not provide a mask then all fields will be overwritten.
      * 
* - * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.protobuf.FieldMask update_mask = 1 [(.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 { @@ -776,8 +637,6 @@ public Builder setUpdateMask(com.google.protobuf.FieldMask.Builder builderForVal return this; } /** - * - * *
      * Required. Field mask is used to specify the fields to be overwritten in the
      * EventThreatDetectionCustomModule resource by the update.
@@ -786,14 +645,13 @@ public Builder setUpdateMask(com.google.protobuf.FieldMask.Builder builderForVal
      * user does not provide a mask then all fields will be overwritten.
      * 
* - * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = REQUIRED]; */ public Builder mergeUpdateMask(com.google.protobuf.FieldMask value) { if (updateMaskBuilder_ == null) { - if (((bitField0_ & 0x00000001) != 0) - && updateMask_ != null - && updateMask_ != com.google.protobuf.FieldMask.getDefaultInstance()) { + if (((bitField0_ & 0x00000001) != 0) && + updateMask_ != null && + updateMask_ != com.google.protobuf.FieldMask.getDefaultInstance()) { getUpdateMaskBuilder().mergeFrom(value); } else { updateMask_ = value; @@ -806,8 +664,6 @@ public Builder mergeUpdateMask(com.google.protobuf.FieldMask value) { return this; } /** - * - * *
      * Required. Field mask is used to specify the fields to be overwritten in the
      * EventThreatDetectionCustomModule resource by the update.
@@ -816,8 +672,7 @@ public Builder mergeUpdateMask(com.google.protobuf.FieldMask value) {
      * user does not provide a mask then all fields will be overwritten.
      * 
* - * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = REQUIRED]; */ public Builder clearUpdateMask() { bitField0_ = (bitField0_ & ~0x00000001); @@ -830,8 +685,6 @@ public Builder clearUpdateMask() { return this; } /** - * - * *
      * Required. Field mask is used to specify the fields to be overwritten in the
      * EventThreatDetectionCustomModule resource by the update.
@@ -840,8 +693,7 @@ public Builder clearUpdateMask() {
      * user does not provide a mask then all fields will be overwritten.
      * 
* - * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = REQUIRED]; */ public com.google.protobuf.FieldMask.Builder getUpdateMaskBuilder() { bitField0_ |= 0x00000001; @@ -849,8 +701,6 @@ public com.google.protobuf.FieldMask.Builder getUpdateMaskBuilder() { return getUpdateMaskFieldBuilder().getBuilder(); } /** - * - * *
      * Required. Field mask is used to specify the fields to be overwritten in the
      * EventThreatDetectionCustomModule resource by the update.
@@ -859,21 +709,17 @@ public com.google.protobuf.FieldMask.Builder getUpdateMaskBuilder() {
      * user does not provide a mask then all fields will be overwritten.
      * 
* - * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.protobuf.FieldMask update_mask = 1 [(.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. Field mask is used to specify the fields to be overwritten in the
      * EventThreatDetectionCustomModule resource by the update.
@@ -882,86 +728,59 @@ public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() {
      * user does not provide a mask then all fields will be overwritten.
      * 
* - * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.protobuf.FieldMask update_mask = 1 [(.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 com.google.cloud.securitycentermanagement.v1.EventThreatDetectionCustomModule - eventThreatDetectionCustomModule_; + private com.google.cloud.securitycentermanagement.v1.EventThreatDetectionCustomModule eventThreatDetectionCustomModule_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.securitycentermanagement.v1.EventThreatDetectionCustomModule, - com.google.cloud.securitycentermanagement.v1.EventThreatDetectionCustomModule.Builder, - com.google.cloud.securitycentermanagement.v1.EventThreatDetectionCustomModuleOrBuilder> - eventThreatDetectionCustomModuleBuilder_; + com.google.cloud.securitycentermanagement.v1.EventThreatDetectionCustomModule, com.google.cloud.securitycentermanagement.v1.EventThreatDetectionCustomModule.Builder, com.google.cloud.securitycentermanagement.v1.EventThreatDetectionCustomModuleOrBuilder> eventThreatDetectionCustomModuleBuilder_; /** - * - * *
      * Required. The module being updated
      * 
* - * - * .google.cloud.securitycentermanagement.v1.EventThreatDetectionCustomModule event_threat_detection_custom_module = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.securitycentermanagement.v1.EventThreatDetectionCustomModule event_threat_detection_custom_module = 2 [(.google.api.field_behavior) = REQUIRED]; * @return Whether the eventThreatDetectionCustomModule field is set. */ public boolean hasEventThreatDetectionCustomModule() { return ((bitField0_ & 0x00000002) != 0); } /** - * - * *
      * Required. The module being updated
      * 
* - * - * .google.cloud.securitycentermanagement.v1.EventThreatDetectionCustomModule event_threat_detection_custom_module = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.securitycentermanagement.v1.EventThreatDetectionCustomModule event_threat_detection_custom_module = 2 [(.google.api.field_behavior) = REQUIRED]; * @return The eventThreatDetectionCustomModule. */ - public com.google.cloud.securitycentermanagement.v1.EventThreatDetectionCustomModule - getEventThreatDetectionCustomModule() { + public com.google.cloud.securitycentermanagement.v1.EventThreatDetectionCustomModule getEventThreatDetectionCustomModule() { if (eventThreatDetectionCustomModuleBuilder_ == null) { - return eventThreatDetectionCustomModule_ == null - ? com.google.cloud.securitycentermanagement.v1.EventThreatDetectionCustomModule - .getDefaultInstance() - : eventThreatDetectionCustomModule_; + return eventThreatDetectionCustomModule_ == null ? com.google.cloud.securitycentermanagement.v1.EventThreatDetectionCustomModule.getDefaultInstance() : eventThreatDetectionCustomModule_; } else { return eventThreatDetectionCustomModuleBuilder_.getMessage(); } } /** - * - * *
      * Required. The module being updated
      * 
* - * - * .google.cloud.securitycentermanagement.v1.EventThreatDetectionCustomModule event_threat_detection_custom_module = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.securitycentermanagement.v1.EventThreatDetectionCustomModule event_threat_detection_custom_module = 2 [(.google.api.field_behavior) = REQUIRED]; */ - public Builder setEventThreatDetectionCustomModule( - com.google.cloud.securitycentermanagement.v1.EventThreatDetectionCustomModule value) { + public Builder setEventThreatDetectionCustomModule(com.google.cloud.securitycentermanagement.v1.EventThreatDetectionCustomModule value) { if (eventThreatDetectionCustomModuleBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -975,19 +794,14 @@ public Builder setEventThreatDetectionCustomModule( return this; } /** - * - * *
      * Required. The module being updated
      * 
* - * - * .google.cloud.securitycentermanagement.v1.EventThreatDetectionCustomModule event_threat_detection_custom_module = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.securitycentermanagement.v1.EventThreatDetectionCustomModule event_threat_detection_custom_module = 2 [(.google.api.field_behavior) = REQUIRED]; */ public Builder setEventThreatDetectionCustomModule( - com.google.cloud.securitycentermanagement.v1.EventThreatDetectionCustomModule.Builder - builderForValue) { + com.google.cloud.securitycentermanagement.v1.EventThreatDetectionCustomModule.Builder builderForValue) { if (eventThreatDetectionCustomModuleBuilder_ == null) { eventThreatDetectionCustomModule_ = builderForValue.build(); } else { @@ -998,24 +812,17 @@ public Builder setEventThreatDetectionCustomModule( return this; } /** - * - * *
      * Required. The module being updated
      * 
* - * - * .google.cloud.securitycentermanagement.v1.EventThreatDetectionCustomModule event_threat_detection_custom_module = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.securitycentermanagement.v1.EventThreatDetectionCustomModule event_threat_detection_custom_module = 2 [(.google.api.field_behavior) = REQUIRED]; */ - public Builder mergeEventThreatDetectionCustomModule( - com.google.cloud.securitycentermanagement.v1.EventThreatDetectionCustomModule value) { + public Builder mergeEventThreatDetectionCustomModule(com.google.cloud.securitycentermanagement.v1.EventThreatDetectionCustomModule value) { if (eventThreatDetectionCustomModuleBuilder_ == null) { - if (((bitField0_ & 0x00000002) != 0) - && eventThreatDetectionCustomModule_ != null - && eventThreatDetectionCustomModule_ - != com.google.cloud.securitycentermanagement.v1.EventThreatDetectionCustomModule - .getDefaultInstance()) { + if (((bitField0_ & 0x00000002) != 0) && + eventThreatDetectionCustomModule_ != null && + eventThreatDetectionCustomModule_ != com.google.cloud.securitycentermanagement.v1.EventThreatDetectionCustomModule.getDefaultInstance()) { getEventThreatDetectionCustomModuleBuilder().mergeFrom(value); } else { eventThreatDetectionCustomModule_ = value; @@ -1028,15 +835,11 @@ public Builder mergeEventThreatDetectionCustomModule( return this; } /** - * - * *
      * Required. The module being updated
      * 
* - * - * .google.cloud.securitycentermanagement.v1.EventThreatDetectionCustomModule event_threat_detection_custom_module = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.securitycentermanagement.v1.EventThreatDetectionCustomModule event_threat_detection_custom_module = 2 [(.google.api.field_behavior) = REQUIRED]; */ public Builder clearEventThreatDetectionCustomModule() { bitField0_ = (bitField0_ & ~0x00000002); @@ -1049,78 +852,55 @@ public Builder clearEventThreatDetectionCustomModule() { return this; } /** - * - * *
      * Required. The module being updated
      * 
* - * - * .google.cloud.securitycentermanagement.v1.EventThreatDetectionCustomModule event_threat_detection_custom_module = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.securitycentermanagement.v1.EventThreatDetectionCustomModule event_threat_detection_custom_module = 2 [(.google.api.field_behavior) = REQUIRED]; */ - public com.google.cloud.securitycentermanagement.v1.EventThreatDetectionCustomModule.Builder - getEventThreatDetectionCustomModuleBuilder() { + public com.google.cloud.securitycentermanagement.v1.EventThreatDetectionCustomModule.Builder getEventThreatDetectionCustomModuleBuilder() { bitField0_ |= 0x00000002; onChanged(); return getEventThreatDetectionCustomModuleFieldBuilder().getBuilder(); } /** - * - * *
      * Required. The module being updated
      * 
* - * - * .google.cloud.securitycentermanagement.v1.EventThreatDetectionCustomModule event_threat_detection_custom_module = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.securitycentermanagement.v1.EventThreatDetectionCustomModule event_threat_detection_custom_module = 2 [(.google.api.field_behavior) = REQUIRED]; */ - public com.google.cloud.securitycentermanagement.v1.EventThreatDetectionCustomModuleOrBuilder - getEventThreatDetectionCustomModuleOrBuilder() { + public com.google.cloud.securitycentermanagement.v1.EventThreatDetectionCustomModuleOrBuilder getEventThreatDetectionCustomModuleOrBuilder() { if (eventThreatDetectionCustomModuleBuilder_ != null) { return eventThreatDetectionCustomModuleBuilder_.getMessageOrBuilder(); } else { - return eventThreatDetectionCustomModule_ == null - ? com.google.cloud.securitycentermanagement.v1.EventThreatDetectionCustomModule - .getDefaultInstance() - : eventThreatDetectionCustomModule_; + return eventThreatDetectionCustomModule_ == null ? + com.google.cloud.securitycentermanagement.v1.EventThreatDetectionCustomModule.getDefaultInstance() : eventThreatDetectionCustomModule_; } } /** - * - * *
      * Required. The module being updated
      * 
* - * - * .google.cloud.securitycentermanagement.v1.EventThreatDetectionCustomModule event_threat_detection_custom_module = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.securitycentermanagement.v1.EventThreatDetectionCustomModule event_threat_detection_custom_module = 2 [(.google.api.field_behavior) = REQUIRED]; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.securitycentermanagement.v1.EventThreatDetectionCustomModule, - com.google.cloud.securitycentermanagement.v1.EventThreatDetectionCustomModule.Builder, - com.google.cloud.securitycentermanagement.v1.EventThreatDetectionCustomModuleOrBuilder> + com.google.cloud.securitycentermanagement.v1.EventThreatDetectionCustomModule, com.google.cloud.securitycentermanagement.v1.EventThreatDetectionCustomModule.Builder, com.google.cloud.securitycentermanagement.v1.EventThreatDetectionCustomModuleOrBuilder> getEventThreatDetectionCustomModuleFieldBuilder() { if (eventThreatDetectionCustomModuleBuilder_ == null) { - eventThreatDetectionCustomModuleBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.securitycentermanagement.v1.EventThreatDetectionCustomModule, - com.google.cloud.securitycentermanagement.v1.EventThreatDetectionCustomModule - .Builder, - com.google.cloud.securitycentermanagement.v1 - .EventThreatDetectionCustomModuleOrBuilder>( - getEventThreatDetectionCustomModule(), getParentForChildren(), isClean()); + eventThreatDetectionCustomModuleBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.securitycentermanagement.v1.EventThreatDetectionCustomModule, com.google.cloud.securitycentermanagement.v1.EventThreatDetectionCustomModule.Builder, com.google.cloud.securitycentermanagement.v1.EventThreatDetectionCustomModuleOrBuilder>( + getEventThreatDetectionCustomModule(), + getParentForChildren(), + isClean()); eventThreatDetectionCustomModule_ = null; } return eventThreatDetectionCustomModuleBuilder_; } - private boolean validateOnly_; + private boolean validateOnly_ ; /** - * - * *
      * Optional. When set to true, only validations (including IAM checks) will
      * done for the request (module will not be updated). An OK response indicates
@@ -1132,7 +912,6 @@ public Builder clearEventThreatDetectionCustomModule() {
      * 
* * bool validate_only = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The validateOnly. */ @java.lang.Override @@ -1140,8 +919,6 @@ public boolean getValidateOnly() { return validateOnly_; } /** - * - * *
      * Optional. When set to true, only validations (including IAM checks) will
      * done for the request (module will not be updated). An OK response indicates
@@ -1153,7 +930,6 @@ public boolean getValidateOnly() {
      * 
* * bool validate_only = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @param value The validateOnly to set. * @return This builder for chaining. */ @@ -1165,8 +941,6 @@ public Builder setValidateOnly(boolean value) { return this; } /** - * - * *
      * Optional. When set to true, only validations (including IAM checks) will
      * done for the request (module will not be updated). An OK response indicates
@@ -1178,7 +952,6 @@ public Builder setValidateOnly(boolean value) {
      * 
* * bool validate_only = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @return This builder for chaining. */ public Builder clearValidateOnly() { @@ -1187,9 +960,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); } @@ -1199,63 +972,55 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.securitycentermanagement.v1.UpdateEventThreatDetectionCustomModuleRequest) } // @@protoc_insertion_point(class_scope:google.cloud.securitycentermanagement.v1.UpdateEventThreatDetectionCustomModuleRequest) - private static final com.google.cloud.securitycentermanagement.v1 - .UpdateEventThreatDetectionCustomModuleRequest - DEFAULT_INSTANCE; - + private static final com.google.cloud.securitycentermanagement.v1.UpdateEventThreatDetectionCustomModuleRequest DEFAULT_INSTANCE; static { - DEFAULT_INSTANCE = - new com.google.cloud.securitycentermanagement.v1 - .UpdateEventThreatDetectionCustomModuleRequest(); + DEFAULT_INSTANCE = new com.google.cloud.securitycentermanagement.v1.UpdateEventThreatDetectionCustomModuleRequest(); } - public static com.google.cloud.securitycentermanagement.v1 - .UpdateEventThreatDetectionCustomModuleRequest - getDefaultInstance() { + public static com.google.cloud.securitycentermanagement.v1.UpdateEventThreatDetectionCustomModuleRequest getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser - PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public UpdateEventThreatDetectionCustomModuleRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException() - .setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public UpdateEventThreatDetectionCustomModuleRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; } @java.lang.Override - public com.google.protobuf.Parser - getParserForType() { + public com.google.protobuf.Parser getParserForType() { return PARSER; } @java.lang.Override - public com.google.cloud.securitycentermanagement.v1.UpdateEventThreatDetectionCustomModuleRequest - getDefaultInstanceForType() { + public com.google.cloud.securitycentermanagement.v1.UpdateEventThreatDetectionCustomModuleRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/java-securitycentermanagement/proto-google-cloud-securitycentermanagement-v1/src/main/java/com/google/cloud/securitycentermanagement/v1/UpdateEventThreatDetectionCustomModuleRequestOrBuilder.java b/owl-bot-staging/java-securitycentermanagement/v1/proto-google-cloud-securitycentermanagement-v1/src/main/java/com/google/cloud/securitycentermanagement/v1/UpdateEventThreatDetectionCustomModuleRequestOrBuilder.java similarity index 67% rename from java-securitycentermanagement/proto-google-cloud-securitycentermanagement-v1/src/main/java/com/google/cloud/securitycentermanagement/v1/UpdateEventThreatDetectionCustomModuleRequestOrBuilder.java rename to owl-bot-staging/java-securitycentermanagement/v1/proto-google-cloud-securitycentermanagement-v1/src/main/java/com/google/cloud/securitycentermanagement/v1/UpdateEventThreatDetectionCustomModuleRequestOrBuilder.java index 4e8c7b8072eb..00ff1b4f9277 100644 --- a/java-securitycentermanagement/proto-google-cloud-securitycentermanagement-v1/src/main/java/com/google/cloud/securitycentermanagement/v1/UpdateEventThreatDetectionCustomModuleRequestOrBuilder.java +++ b/owl-bot-staging/java-securitycentermanagement/v1/proto-google-cloud-securitycentermanagement-v1/src/main/java/com/google/cloud/securitycentermanagement/v1/UpdateEventThreatDetectionCustomModuleRequestOrBuilder.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/securitycentermanagement/v1/security_center_management.proto package com.google.cloud.securitycentermanagement.v1; -public interface UpdateEventThreatDetectionCustomModuleRequestOrBuilder - extends +public interface UpdateEventThreatDetectionCustomModuleRequestOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.securitycentermanagement.v1.UpdateEventThreatDetectionCustomModuleRequest) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * Required. Field mask is used to specify the fields to be overwritten in the
    * EventThreatDetectionCustomModule resource by the update.
@@ -34,15 +16,11 @@ public interface UpdateEventThreatDetectionCustomModuleRequestOrBuilder
    * user does not provide a mask then all fields will be overwritten.
    * 
* - * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = REQUIRED]; * @return Whether the updateMask field is set. */ boolean hasUpdateMask(); /** - * - * *
    * Required. Field mask is used to specify the fields to be overwritten in the
    * EventThreatDetectionCustomModule resource by the update.
@@ -51,15 +29,11 @@ public interface UpdateEventThreatDetectionCustomModuleRequestOrBuilder
    * user does not provide a mask then all fields will be overwritten.
    * 
* - * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = REQUIRED]; * @return The updateMask. */ com.google.protobuf.FieldMask getUpdateMask(); /** - * - * *
    * Required. Field mask is used to specify the fields to be overwritten in the
    * EventThreatDetectionCustomModule resource by the update.
@@ -68,57 +42,38 @@ public interface UpdateEventThreatDetectionCustomModuleRequestOrBuilder
    * user does not provide a mask then all fields will be overwritten.
    * 
* - * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = REQUIRED]; */ com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder(); /** - * - * *
    * Required. The module being updated
    * 
* - * - * .google.cloud.securitycentermanagement.v1.EventThreatDetectionCustomModule event_threat_detection_custom_module = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.securitycentermanagement.v1.EventThreatDetectionCustomModule event_threat_detection_custom_module = 2 [(.google.api.field_behavior) = REQUIRED]; * @return Whether the eventThreatDetectionCustomModule field is set. */ boolean hasEventThreatDetectionCustomModule(); /** - * - * *
    * Required. The module being updated
    * 
* - * - * .google.cloud.securitycentermanagement.v1.EventThreatDetectionCustomModule event_threat_detection_custom_module = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.securitycentermanagement.v1.EventThreatDetectionCustomModule event_threat_detection_custom_module = 2 [(.google.api.field_behavior) = REQUIRED]; * @return The eventThreatDetectionCustomModule. */ - com.google.cloud.securitycentermanagement.v1.EventThreatDetectionCustomModule - getEventThreatDetectionCustomModule(); + com.google.cloud.securitycentermanagement.v1.EventThreatDetectionCustomModule getEventThreatDetectionCustomModule(); /** - * - * *
    * Required. The module being updated
    * 
* - * - * .google.cloud.securitycentermanagement.v1.EventThreatDetectionCustomModule event_threat_detection_custom_module = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.securitycentermanagement.v1.EventThreatDetectionCustomModule event_threat_detection_custom_module = 2 [(.google.api.field_behavior) = REQUIRED]; */ - com.google.cloud.securitycentermanagement.v1.EventThreatDetectionCustomModuleOrBuilder - getEventThreatDetectionCustomModuleOrBuilder(); + com.google.cloud.securitycentermanagement.v1.EventThreatDetectionCustomModuleOrBuilder getEventThreatDetectionCustomModuleOrBuilder(); /** - * - * *
    * Optional. When set to true, only validations (including IAM checks) will
    * done for the request (module will not be updated). An OK response indicates
@@ -130,7 +85,6 @@ public interface UpdateEventThreatDetectionCustomModuleRequestOrBuilder
    * 
* * bool validate_only = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The validateOnly. */ boolean getValidateOnly(); diff --git a/owl-bot-staging/java-securitycentermanagement/v1/proto-google-cloud-securitycentermanagement-v1/src/main/java/com/google/cloud/securitycentermanagement/v1/UpdateSecurityHealthAnalyticsCustomModuleRequest.java b/owl-bot-staging/java-securitycentermanagement/v1/proto-google-cloud-securitycentermanagement-v1/src/main/java/com/google/cloud/securitycentermanagement/v1/UpdateSecurityHealthAnalyticsCustomModuleRequest.java new file mode 100644 index 000000000000..822df9258d14 --- /dev/null +++ b/owl-bot-staging/java-securitycentermanagement/v1/proto-google-cloud-securitycentermanagement-v1/src/main/java/com/google/cloud/securitycentermanagement/v1/UpdateSecurityHealthAnalyticsCustomModuleRequest.java @@ -0,0 +1,1014 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/securitycentermanagement/v1/security_center_management.proto + +package com.google.cloud.securitycentermanagement.v1; + +/** + *
+ * Message for updating a SecurityHealthAnalyticsCustomModule
+ * 
+ * + * Protobuf type {@code google.cloud.securitycentermanagement.v1.UpdateSecurityHealthAnalyticsCustomModuleRequest} + */ +public final class UpdateSecurityHealthAnalyticsCustomModuleRequest extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:google.cloud.securitycentermanagement.v1.UpdateSecurityHealthAnalyticsCustomModuleRequest) + UpdateSecurityHealthAnalyticsCustomModuleRequestOrBuilder { +private static final long serialVersionUID = 0L; + // Use UpdateSecurityHealthAnalyticsCustomModuleRequest.newBuilder() to construct. + private UpdateSecurityHealthAnalyticsCustomModuleRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private UpdateSecurityHealthAnalyticsCustomModuleRequest() { + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new UpdateSecurityHealthAnalyticsCustomModuleRequest(); + } + + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.securitycentermanagement.v1.SecurityCenterManagementProto.internal_static_google_cloud_securitycentermanagement_v1_UpdateSecurityHealthAnalyticsCustomModuleRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.securitycentermanagement.v1.SecurityCenterManagementProto.internal_static_google_cloud_securitycentermanagement_v1_UpdateSecurityHealthAnalyticsCustomModuleRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.securitycentermanagement.v1.UpdateSecurityHealthAnalyticsCustomModuleRequest.class, com.google.cloud.securitycentermanagement.v1.UpdateSecurityHealthAnalyticsCustomModuleRequest.Builder.class); + } + + public static final int UPDATE_MASK_FIELD_NUMBER = 1; + private com.google.protobuf.FieldMask updateMask_; + /** + *
+   * Required. The list of fields to be updated. The only fields that can be
+   * updated are `enablement_state` and `custom_config`. If empty or set to the
+   * wildcard value `*`, both `enablement_state` and `custom_config` are
+   * updated.
+   * 
+ * + * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = REQUIRED]; + * @return Whether the updateMask field is set. + */ + @java.lang.Override + public boolean hasUpdateMask() { + return updateMask_ != null; + } + /** + *
+   * Required. The list of fields to be updated. The only fields that can be
+   * updated are `enablement_state` and `custom_config`. If empty or set to the
+   * wildcard value `*`, both `enablement_state` and `custom_config` are
+   * updated.
+   * 
+ * + * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = REQUIRED]; + * @return The updateMask. + */ + @java.lang.Override + public com.google.protobuf.FieldMask getUpdateMask() { + return updateMask_ == null ? com.google.protobuf.FieldMask.getDefaultInstance() : updateMask_; + } + /** + *
+   * Required. The list of fields to be updated. The only fields that can be
+   * updated are `enablement_state` and `custom_config`. If empty or set to the
+   * wildcard value `*`, both `enablement_state` and `custom_config` are
+   * updated.
+   * 
+ * + * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = REQUIRED]; + */ + @java.lang.Override + public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() { + return updateMask_ == null ? com.google.protobuf.FieldMask.getDefaultInstance() : updateMask_; + } + + public static final int SECURITY_HEALTH_ANALYTICS_CUSTOM_MODULE_FIELD_NUMBER = 2; + private com.google.cloud.securitycentermanagement.v1.SecurityHealthAnalyticsCustomModule securityHealthAnalyticsCustomModule_; + /** + *
+   * Required. The resource being updated
+   * 
+ * + * .google.cloud.securitycentermanagement.v1.SecurityHealthAnalyticsCustomModule security_health_analytics_custom_module = 2 [(.google.api.field_behavior) = REQUIRED]; + * @return Whether the securityHealthAnalyticsCustomModule field is set. + */ + @java.lang.Override + public boolean hasSecurityHealthAnalyticsCustomModule() { + return securityHealthAnalyticsCustomModule_ != null; + } + /** + *
+   * Required. The resource being updated
+   * 
+ * + * .google.cloud.securitycentermanagement.v1.SecurityHealthAnalyticsCustomModule security_health_analytics_custom_module = 2 [(.google.api.field_behavior) = REQUIRED]; + * @return The securityHealthAnalyticsCustomModule. + */ + @java.lang.Override + public com.google.cloud.securitycentermanagement.v1.SecurityHealthAnalyticsCustomModule getSecurityHealthAnalyticsCustomModule() { + return securityHealthAnalyticsCustomModule_ == null ? com.google.cloud.securitycentermanagement.v1.SecurityHealthAnalyticsCustomModule.getDefaultInstance() : securityHealthAnalyticsCustomModule_; + } + /** + *
+   * Required. The resource being updated
+   * 
+ * + * .google.cloud.securitycentermanagement.v1.SecurityHealthAnalyticsCustomModule security_health_analytics_custom_module = 2 [(.google.api.field_behavior) = REQUIRED]; + */ + @java.lang.Override + public com.google.cloud.securitycentermanagement.v1.SecurityHealthAnalyticsCustomModuleOrBuilder getSecurityHealthAnalyticsCustomModuleOrBuilder() { + return securityHealthAnalyticsCustomModule_ == null ? com.google.cloud.securitycentermanagement.v1.SecurityHealthAnalyticsCustomModule.getDefaultInstance() : securityHealthAnalyticsCustomModule_; + } + + public static final int VALIDATE_ONLY_FIELD_NUMBER = 3; + private boolean validateOnly_ = false; + /** + *
+   * Optional. When set to true, only validations (including IAM checks) will
+   * done for the request (module will not be updated). An OK response indicates
+   * the request is valid while an error response indicates the request is
+   * invalid. Note that a subsequent request to actually update the module could
+   * still fail because 1. the state could have changed (e.g. IAM permission
+   * lost) or
+   * 2. A failure occurred while trying to update the module.
+   * 
+ * + * bool validate_only = 3 [(.google.api.field_behavior) = OPTIONAL]; + * @return The validateOnly. + */ + @java.lang.Override + public boolean getValidateOnly() { + return validateOnly_; + } + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (updateMask_ != null) { + output.writeMessage(1, getUpdateMask()); + } + if (securityHealthAnalyticsCustomModule_ != null) { + output.writeMessage(2, getSecurityHealthAnalyticsCustomModule()); + } + if (validateOnly_ != false) { + output.writeBool(3, validateOnly_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (updateMask_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, getUpdateMask()); + } + if (securityHealthAnalyticsCustomModule_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(2, getSecurityHealthAnalyticsCustomModule()); + } + if (validateOnly_ != false) { + size += com.google.protobuf.CodedOutputStream + .computeBoolSize(3, validateOnly_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.securitycentermanagement.v1.UpdateSecurityHealthAnalyticsCustomModuleRequest)) { + return super.equals(obj); + } + com.google.cloud.securitycentermanagement.v1.UpdateSecurityHealthAnalyticsCustomModuleRequest other = (com.google.cloud.securitycentermanagement.v1.UpdateSecurityHealthAnalyticsCustomModuleRequest) obj; + + if (hasUpdateMask() != other.hasUpdateMask()) return false; + if (hasUpdateMask()) { + if (!getUpdateMask() + .equals(other.getUpdateMask())) return false; + } + if (hasSecurityHealthAnalyticsCustomModule() != other.hasSecurityHealthAnalyticsCustomModule()) return false; + if (hasSecurityHealthAnalyticsCustomModule()) { + if (!getSecurityHealthAnalyticsCustomModule() + .equals(other.getSecurityHealthAnalyticsCustomModule())) return false; + } + if (getValidateOnly() + != other.getValidateOnly()) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (hasUpdateMask()) { + hash = (37 * hash) + UPDATE_MASK_FIELD_NUMBER; + hash = (53 * hash) + getUpdateMask().hashCode(); + } + if (hasSecurityHealthAnalyticsCustomModule()) { + hash = (37 * hash) + SECURITY_HEALTH_ANALYTICS_CUSTOM_MODULE_FIELD_NUMBER; + hash = (53 * hash) + getSecurityHealthAnalyticsCustomModule().hashCode(); + } + hash = (37 * hash) + VALIDATE_ONLY_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( + getValidateOnly()); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.securitycentermanagement.v1.UpdateSecurityHealthAnalyticsCustomModuleRequest parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.cloud.securitycentermanagement.v1.UpdateSecurityHealthAnalyticsCustomModuleRequest 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.securitycentermanagement.v1.UpdateSecurityHealthAnalyticsCustomModuleRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.cloud.securitycentermanagement.v1.UpdateSecurityHealthAnalyticsCustomModuleRequest parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.cloud.securitycentermanagement.v1.UpdateSecurityHealthAnalyticsCustomModuleRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.cloud.securitycentermanagement.v1.UpdateSecurityHealthAnalyticsCustomModuleRequest parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.cloud.securitycentermanagement.v1.UpdateSecurityHealthAnalyticsCustomModuleRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.google.cloud.securitycentermanagement.v1.UpdateSecurityHealthAnalyticsCustomModuleRequest 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.securitycentermanagement.v1.UpdateSecurityHealthAnalyticsCustomModuleRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.securitycentermanagement.v1.UpdateSecurityHealthAnalyticsCustomModuleRequest parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static com.google.cloud.securitycentermanagement.v1.UpdateSecurityHealthAnalyticsCustomModuleRequest parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.google.cloud.securitycentermanagement.v1.UpdateSecurityHealthAnalyticsCustomModuleRequest 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.securitycentermanagement.v1.UpdateSecurityHealthAnalyticsCustomModuleRequest prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + *
+   * Message for updating a SecurityHealthAnalyticsCustomModule
+   * 
+ * + * Protobuf type {@code google.cloud.securitycentermanagement.v1.UpdateSecurityHealthAnalyticsCustomModuleRequest} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:google.cloud.securitycentermanagement.v1.UpdateSecurityHealthAnalyticsCustomModuleRequest) + com.google.cloud.securitycentermanagement.v1.UpdateSecurityHealthAnalyticsCustomModuleRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.securitycentermanagement.v1.SecurityCenterManagementProto.internal_static_google_cloud_securitycentermanagement_v1_UpdateSecurityHealthAnalyticsCustomModuleRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.securitycentermanagement.v1.SecurityCenterManagementProto.internal_static_google_cloud_securitycentermanagement_v1_UpdateSecurityHealthAnalyticsCustomModuleRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.securitycentermanagement.v1.UpdateSecurityHealthAnalyticsCustomModuleRequest.class, com.google.cloud.securitycentermanagement.v1.UpdateSecurityHealthAnalyticsCustomModuleRequest.Builder.class); + } + + // Construct using com.google.cloud.securitycentermanagement.v1.UpdateSecurityHealthAnalyticsCustomModuleRequest.newBuilder() + private Builder() { + + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + updateMask_ = null; + if (updateMaskBuilder_ != null) { + updateMaskBuilder_.dispose(); + updateMaskBuilder_ = null; + } + securityHealthAnalyticsCustomModule_ = null; + if (securityHealthAnalyticsCustomModuleBuilder_ != null) { + securityHealthAnalyticsCustomModuleBuilder_.dispose(); + securityHealthAnalyticsCustomModuleBuilder_ = null; + } + validateOnly_ = false; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.securitycentermanagement.v1.SecurityCenterManagementProto.internal_static_google_cloud_securitycentermanagement_v1_UpdateSecurityHealthAnalyticsCustomModuleRequest_descriptor; + } + + @java.lang.Override + public com.google.cloud.securitycentermanagement.v1.UpdateSecurityHealthAnalyticsCustomModuleRequest getDefaultInstanceForType() { + return com.google.cloud.securitycentermanagement.v1.UpdateSecurityHealthAnalyticsCustomModuleRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.securitycentermanagement.v1.UpdateSecurityHealthAnalyticsCustomModuleRequest build() { + com.google.cloud.securitycentermanagement.v1.UpdateSecurityHealthAnalyticsCustomModuleRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.securitycentermanagement.v1.UpdateSecurityHealthAnalyticsCustomModuleRequest buildPartial() { + com.google.cloud.securitycentermanagement.v1.UpdateSecurityHealthAnalyticsCustomModuleRequest result = new com.google.cloud.securitycentermanagement.v1.UpdateSecurityHealthAnalyticsCustomModuleRequest(this); + if (bitField0_ != 0) { buildPartial0(result); } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.cloud.securitycentermanagement.v1.UpdateSecurityHealthAnalyticsCustomModuleRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.updateMask_ = updateMaskBuilder_ == null + ? updateMask_ + : updateMaskBuilder_.build(); + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.securityHealthAnalyticsCustomModule_ = securityHealthAnalyticsCustomModuleBuilder_ == null + ? securityHealthAnalyticsCustomModule_ + : securityHealthAnalyticsCustomModuleBuilder_.build(); + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.validateOnly_ = validateOnly_; + } + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.securitycentermanagement.v1.UpdateSecurityHealthAnalyticsCustomModuleRequest) { + return mergeFrom((com.google.cloud.securitycentermanagement.v1.UpdateSecurityHealthAnalyticsCustomModuleRequest)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.securitycentermanagement.v1.UpdateSecurityHealthAnalyticsCustomModuleRequest other) { + if (other == com.google.cloud.securitycentermanagement.v1.UpdateSecurityHealthAnalyticsCustomModuleRequest.getDefaultInstance()) return this; + if (other.hasUpdateMask()) { + mergeUpdateMask(other.getUpdateMask()); + } + if (other.hasSecurityHealthAnalyticsCustomModule()) { + mergeSecurityHealthAnalyticsCustomModule(other.getSecurityHealthAnalyticsCustomModule()); + } + if (other.getValidateOnly() != false) { + setValidateOnly(other.getValidateOnly()); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + input.readMessage( + getUpdateMaskFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: { + input.readMessage( + getSecurityHealthAnalyticsCustomModuleFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 24: { + validateOnly_ = 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) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + private int bitField0_; + + 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_; + /** + *
+     * Required. The list of fields to be updated. The only fields that can be
+     * updated are `enablement_state` and `custom_config`. If empty or set to the
+     * wildcard value `*`, both `enablement_state` and `custom_config` are
+     * updated.
+     * 
+ * + * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = REQUIRED]; + * @return Whether the updateMask field is set. + */ + public boolean hasUpdateMask() { + return ((bitField0_ & 0x00000001) != 0); + } + /** + *
+     * Required. The list of fields to be updated. The only fields that can be
+     * updated are `enablement_state` and `custom_config`. If empty or set to the
+     * wildcard value `*`, both `enablement_state` and `custom_config` are
+     * updated.
+     * 
+ * + * .google.protobuf.FieldMask update_mask = 1 [(.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_; + } else { + return updateMaskBuilder_.getMessage(); + } + } + /** + *
+     * Required. The list of fields to be updated. The only fields that can be
+     * updated are `enablement_state` and `custom_config`. If empty or set to the
+     * wildcard value `*`, both `enablement_state` and `custom_config` are
+     * updated.
+     * 
+ * + * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = REQUIRED]; + */ + public Builder setUpdateMask(com.google.protobuf.FieldMask value) { + if (updateMaskBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + updateMask_ = value; + } else { + updateMaskBuilder_.setMessage(value); + } + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + *
+     * Required. The list of fields to be updated. The only fields that can be
+     * updated are `enablement_state` and `custom_config`. If empty or set to the
+     * wildcard value `*`, both `enablement_state` and `custom_config` are
+     * updated.
+     * 
+ * + * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = REQUIRED]; + */ + public Builder setUpdateMask( + com.google.protobuf.FieldMask.Builder builderForValue) { + if (updateMaskBuilder_ == null) { + updateMask_ = builderForValue.build(); + } else { + updateMaskBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + *
+     * Required. The list of fields to be updated. The only fields that can be
+     * updated are `enablement_state` and `custom_config`. If empty or set to the
+     * wildcard value `*`, both `enablement_state` and `custom_config` are
+     * updated.
+     * 
+ * + * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = REQUIRED]; + */ + public Builder mergeUpdateMask(com.google.protobuf.FieldMask value) { + if (updateMaskBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0) && + updateMask_ != null && + updateMask_ != com.google.protobuf.FieldMask.getDefaultInstance()) { + getUpdateMaskBuilder().mergeFrom(value); + } else { + updateMask_ = value; + } + } else { + updateMaskBuilder_.mergeFrom(value); + } + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + *
+     * Required. The list of fields to be updated. The only fields that can be
+     * updated are `enablement_state` and `custom_config`. If empty or set to the
+     * wildcard value `*`, both `enablement_state` and `custom_config` are
+     * updated.
+     * 
+ * + * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = REQUIRED]; + */ + public Builder clearUpdateMask() { + bitField0_ = (bitField0_ & ~0x00000001); + updateMask_ = null; + if (updateMaskBuilder_ != null) { + updateMaskBuilder_.dispose(); + updateMaskBuilder_ = null; + } + onChanged(); + return this; + } + /** + *
+     * Required. The list of fields to be updated. The only fields that can be
+     * updated are `enablement_state` and `custom_config`. If empty or set to the
+     * wildcard value `*`, both `enablement_state` and `custom_config` are
+     * updated.
+     * 
+ * + * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = REQUIRED]; + */ + public com.google.protobuf.FieldMask.Builder getUpdateMaskBuilder() { + bitField0_ |= 0x00000001; + onChanged(); + return getUpdateMaskFieldBuilder().getBuilder(); + } + /** + *
+     * Required. The list of fields to be updated. The only fields that can be
+     * updated are `enablement_state` and `custom_config`. If empty or set to the
+     * wildcard value `*`, both `enablement_state` and `custom_config` are
+     * updated.
+     * 
+ * + * .google.protobuf.FieldMask update_mask = 1 [(.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_; + } + } + /** + *
+     * Required. The list of fields to be updated. The only fields that can be
+     * updated are `enablement_state` and `custom_config`. If empty or set to the
+     * wildcard value `*`, both `enablement_state` and `custom_config` are
+     * updated.
+     * 
+ * + * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = REQUIRED]; + */ + private com.google.protobuf.SingleFieldBuilderV3< + 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()); + updateMask_ = null; + } + return updateMaskBuilder_; + } + + private com.google.cloud.securitycentermanagement.v1.SecurityHealthAnalyticsCustomModule securityHealthAnalyticsCustomModule_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.securitycentermanagement.v1.SecurityHealthAnalyticsCustomModule, com.google.cloud.securitycentermanagement.v1.SecurityHealthAnalyticsCustomModule.Builder, com.google.cloud.securitycentermanagement.v1.SecurityHealthAnalyticsCustomModuleOrBuilder> securityHealthAnalyticsCustomModuleBuilder_; + /** + *
+     * Required. The resource being updated
+     * 
+ * + * .google.cloud.securitycentermanagement.v1.SecurityHealthAnalyticsCustomModule security_health_analytics_custom_module = 2 [(.google.api.field_behavior) = REQUIRED]; + * @return Whether the securityHealthAnalyticsCustomModule field is set. + */ + public boolean hasSecurityHealthAnalyticsCustomModule() { + return ((bitField0_ & 0x00000002) != 0); + } + /** + *
+     * Required. The resource being updated
+     * 
+ * + * .google.cloud.securitycentermanagement.v1.SecurityHealthAnalyticsCustomModule security_health_analytics_custom_module = 2 [(.google.api.field_behavior) = REQUIRED]; + * @return The securityHealthAnalyticsCustomModule. + */ + public com.google.cloud.securitycentermanagement.v1.SecurityHealthAnalyticsCustomModule getSecurityHealthAnalyticsCustomModule() { + if (securityHealthAnalyticsCustomModuleBuilder_ == null) { + return securityHealthAnalyticsCustomModule_ == null ? com.google.cloud.securitycentermanagement.v1.SecurityHealthAnalyticsCustomModule.getDefaultInstance() : securityHealthAnalyticsCustomModule_; + } else { + return securityHealthAnalyticsCustomModuleBuilder_.getMessage(); + } + } + /** + *
+     * Required. The resource being updated
+     * 
+ * + * .google.cloud.securitycentermanagement.v1.SecurityHealthAnalyticsCustomModule security_health_analytics_custom_module = 2 [(.google.api.field_behavior) = REQUIRED]; + */ + public Builder setSecurityHealthAnalyticsCustomModule(com.google.cloud.securitycentermanagement.v1.SecurityHealthAnalyticsCustomModule value) { + if (securityHealthAnalyticsCustomModuleBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + securityHealthAnalyticsCustomModule_ = value; + } else { + securityHealthAnalyticsCustomModuleBuilder_.setMessage(value); + } + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + *
+     * Required. The resource being updated
+     * 
+ * + * .google.cloud.securitycentermanagement.v1.SecurityHealthAnalyticsCustomModule security_health_analytics_custom_module = 2 [(.google.api.field_behavior) = REQUIRED]; + */ + public Builder setSecurityHealthAnalyticsCustomModule( + com.google.cloud.securitycentermanagement.v1.SecurityHealthAnalyticsCustomModule.Builder builderForValue) { + if (securityHealthAnalyticsCustomModuleBuilder_ == null) { + securityHealthAnalyticsCustomModule_ = builderForValue.build(); + } else { + securityHealthAnalyticsCustomModuleBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + *
+     * Required. The resource being updated
+     * 
+ * + * .google.cloud.securitycentermanagement.v1.SecurityHealthAnalyticsCustomModule security_health_analytics_custom_module = 2 [(.google.api.field_behavior) = REQUIRED]; + */ + public Builder mergeSecurityHealthAnalyticsCustomModule(com.google.cloud.securitycentermanagement.v1.SecurityHealthAnalyticsCustomModule value) { + if (securityHealthAnalyticsCustomModuleBuilder_ == null) { + if (((bitField0_ & 0x00000002) != 0) && + securityHealthAnalyticsCustomModule_ != null && + securityHealthAnalyticsCustomModule_ != com.google.cloud.securitycentermanagement.v1.SecurityHealthAnalyticsCustomModule.getDefaultInstance()) { + getSecurityHealthAnalyticsCustomModuleBuilder().mergeFrom(value); + } else { + securityHealthAnalyticsCustomModule_ = value; + } + } else { + securityHealthAnalyticsCustomModuleBuilder_.mergeFrom(value); + } + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + *
+     * Required. The resource being updated
+     * 
+ * + * .google.cloud.securitycentermanagement.v1.SecurityHealthAnalyticsCustomModule security_health_analytics_custom_module = 2 [(.google.api.field_behavior) = REQUIRED]; + */ + public Builder clearSecurityHealthAnalyticsCustomModule() { + bitField0_ = (bitField0_ & ~0x00000002); + securityHealthAnalyticsCustomModule_ = null; + if (securityHealthAnalyticsCustomModuleBuilder_ != null) { + securityHealthAnalyticsCustomModuleBuilder_.dispose(); + securityHealthAnalyticsCustomModuleBuilder_ = null; + } + onChanged(); + return this; + } + /** + *
+     * Required. The resource being updated
+     * 
+ * + * .google.cloud.securitycentermanagement.v1.SecurityHealthAnalyticsCustomModule security_health_analytics_custom_module = 2 [(.google.api.field_behavior) = REQUIRED]; + */ + public com.google.cloud.securitycentermanagement.v1.SecurityHealthAnalyticsCustomModule.Builder getSecurityHealthAnalyticsCustomModuleBuilder() { + bitField0_ |= 0x00000002; + onChanged(); + return getSecurityHealthAnalyticsCustomModuleFieldBuilder().getBuilder(); + } + /** + *
+     * Required. The resource being updated
+     * 
+ * + * .google.cloud.securitycentermanagement.v1.SecurityHealthAnalyticsCustomModule security_health_analytics_custom_module = 2 [(.google.api.field_behavior) = REQUIRED]; + */ + public com.google.cloud.securitycentermanagement.v1.SecurityHealthAnalyticsCustomModuleOrBuilder getSecurityHealthAnalyticsCustomModuleOrBuilder() { + if (securityHealthAnalyticsCustomModuleBuilder_ != null) { + return securityHealthAnalyticsCustomModuleBuilder_.getMessageOrBuilder(); + } else { + return securityHealthAnalyticsCustomModule_ == null ? + com.google.cloud.securitycentermanagement.v1.SecurityHealthAnalyticsCustomModule.getDefaultInstance() : securityHealthAnalyticsCustomModule_; + } + } + /** + *
+     * Required. The resource being updated
+     * 
+ * + * .google.cloud.securitycentermanagement.v1.SecurityHealthAnalyticsCustomModule security_health_analytics_custom_module = 2 [(.google.api.field_behavior) = REQUIRED]; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.securitycentermanagement.v1.SecurityHealthAnalyticsCustomModule, com.google.cloud.securitycentermanagement.v1.SecurityHealthAnalyticsCustomModule.Builder, com.google.cloud.securitycentermanagement.v1.SecurityHealthAnalyticsCustomModuleOrBuilder> + getSecurityHealthAnalyticsCustomModuleFieldBuilder() { + if (securityHealthAnalyticsCustomModuleBuilder_ == null) { + securityHealthAnalyticsCustomModuleBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.securitycentermanagement.v1.SecurityHealthAnalyticsCustomModule, com.google.cloud.securitycentermanagement.v1.SecurityHealthAnalyticsCustomModule.Builder, com.google.cloud.securitycentermanagement.v1.SecurityHealthAnalyticsCustomModuleOrBuilder>( + getSecurityHealthAnalyticsCustomModule(), + getParentForChildren(), + isClean()); + securityHealthAnalyticsCustomModule_ = null; + } + return securityHealthAnalyticsCustomModuleBuilder_; + } + + private boolean validateOnly_ ; + /** + *
+     * Optional. When set to true, only validations (including IAM checks) will
+     * done for the request (module will not be updated). An OK response indicates
+     * the request is valid while an error response indicates the request is
+     * invalid. Note that a subsequent request to actually update the module could
+     * still fail because 1. the state could have changed (e.g. IAM permission
+     * lost) or
+     * 2. A failure occurred while trying to update the module.
+     * 
+ * + * bool validate_only = 3 [(.google.api.field_behavior) = OPTIONAL]; + * @return The validateOnly. + */ + @java.lang.Override + public boolean getValidateOnly() { + return validateOnly_; + } + /** + *
+     * Optional. When set to true, only validations (including IAM checks) will
+     * done for the request (module will not be updated). An OK response indicates
+     * the request is valid while an error response indicates the request is
+     * invalid. Note that a subsequent request to actually update the module could
+     * still fail because 1. the state could have changed (e.g. IAM permission
+     * lost) or
+     * 2. A failure occurred while trying to update the module.
+     * 
+ * + * bool validate_only = 3 [(.google.api.field_behavior) = OPTIONAL]; + * @param value The validateOnly to set. + * @return This builder for chaining. + */ + public Builder setValidateOnly(boolean value) { + + validateOnly_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + /** + *
+     * Optional. When set to true, only validations (including IAM checks) will
+     * done for the request (module will not be updated). An OK response indicates
+     * the request is valid while an error response indicates the request is
+     * invalid. Note that a subsequent request to actually update the module could
+     * still fail because 1. the state could have changed (e.g. IAM permission
+     * lost) or
+     * 2. A failure occurred while trying to update the module.
+     * 
+ * + * bool validate_only = 3 [(.google.api.field_behavior) = OPTIONAL]; + * @return This builder for chaining. + */ + public Builder clearValidateOnly() { + bitField0_ = (bitField0_ & ~0x00000004); + validateOnly_ = false; + onChanged(); + return this; + } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:google.cloud.securitycentermanagement.v1.UpdateSecurityHealthAnalyticsCustomModuleRequest) + } + + // @@protoc_insertion_point(class_scope:google.cloud.securitycentermanagement.v1.UpdateSecurityHealthAnalyticsCustomModuleRequest) + private static final com.google.cloud.securitycentermanagement.v1.UpdateSecurityHealthAnalyticsCustomModuleRequest DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new com.google.cloud.securitycentermanagement.v1.UpdateSecurityHealthAnalyticsCustomModuleRequest(); + } + + public static com.google.cloud.securitycentermanagement.v1.UpdateSecurityHealthAnalyticsCustomModuleRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public UpdateSecurityHealthAnalyticsCustomModuleRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.securitycentermanagement.v1.UpdateSecurityHealthAnalyticsCustomModuleRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + +} + diff --git a/owl-bot-staging/java-securitycentermanagement/v1/proto-google-cloud-securitycentermanagement-v1/src/main/java/com/google/cloud/securitycentermanagement/v1/UpdateSecurityHealthAnalyticsCustomModuleRequestOrBuilder.java b/owl-bot-staging/java-securitycentermanagement/v1/proto-google-cloud-securitycentermanagement-v1/src/main/java/com/google/cloud/securitycentermanagement/v1/UpdateSecurityHealthAnalyticsCustomModuleRequestOrBuilder.java new file mode 100644 index 000000000000..545682c2038f --- /dev/null +++ b/owl-bot-staging/java-securitycentermanagement/v1/proto-google-cloud-securitycentermanagement-v1/src/main/java/com/google/cloud/securitycentermanagement/v1/UpdateSecurityHealthAnalyticsCustomModuleRequestOrBuilder.java @@ -0,0 +1,88 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/securitycentermanagement/v1/security_center_management.proto + +package com.google.cloud.securitycentermanagement.v1; + +public interface UpdateSecurityHealthAnalyticsCustomModuleRequestOrBuilder extends + // @@protoc_insertion_point(interface_extends:google.cloud.securitycentermanagement.v1.UpdateSecurityHealthAnalyticsCustomModuleRequest) + com.google.protobuf.MessageOrBuilder { + + /** + *
+   * Required. The list of fields to be updated. The only fields that can be
+   * updated are `enablement_state` and `custom_config`. If empty or set to the
+   * wildcard value `*`, both `enablement_state` and `custom_config` are
+   * updated.
+   * 
+ * + * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = REQUIRED]; + * @return Whether the updateMask field is set. + */ + boolean hasUpdateMask(); + /** + *
+   * Required. The list of fields to be updated. The only fields that can be
+   * updated are `enablement_state` and `custom_config`. If empty or set to the
+   * wildcard value `*`, both `enablement_state` and `custom_config` are
+   * updated.
+   * 
+ * + * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = REQUIRED]; + * @return The updateMask. + */ + com.google.protobuf.FieldMask getUpdateMask(); + /** + *
+   * Required. The list of fields to be updated. The only fields that can be
+   * updated are `enablement_state` and `custom_config`. If empty or set to the
+   * wildcard value `*`, both `enablement_state` and `custom_config` are
+   * updated.
+   * 
+ * + * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = REQUIRED]; + */ + com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder(); + + /** + *
+   * Required. The resource being updated
+   * 
+ * + * .google.cloud.securitycentermanagement.v1.SecurityHealthAnalyticsCustomModule security_health_analytics_custom_module = 2 [(.google.api.field_behavior) = REQUIRED]; + * @return Whether the securityHealthAnalyticsCustomModule field is set. + */ + boolean hasSecurityHealthAnalyticsCustomModule(); + /** + *
+   * Required. The resource being updated
+   * 
+ * + * .google.cloud.securitycentermanagement.v1.SecurityHealthAnalyticsCustomModule security_health_analytics_custom_module = 2 [(.google.api.field_behavior) = REQUIRED]; + * @return The securityHealthAnalyticsCustomModule. + */ + com.google.cloud.securitycentermanagement.v1.SecurityHealthAnalyticsCustomModule getSecurityHealthAnalyticsCustomModule(); + /** + *
+   * Required. The resource being updated
+   * 
+ * + * .google.cloud.securitycentermanagement.v1.SecurityHealthAnalyticsCustomModule security_health_analytics_custom_module = 2 [(.google.api.field_behavior) = REQUIRED]; + */ + com.google.cloud.securitycentermanagement.v1.SecurityHealthAnalyticsCustomModuleOrBuilder getSecurityHealthAnalyticsCustomModuleOrBuilder(); + + /** + *
+   * Optional. When set to true, only validations (including IAM checks) will
+   * done for the request (module will not be updated). An OK response indicates
+   * the request is valid while an error response indicates the request is
+   * invalid. Note that a subsequent request to actually update the module could
+   * still fail because 1. the state could have changed (e.g. IAM permission
+   * lost) or
+   * 2. A failure occurred while trying to update the module.
+   * 
+ * + * bool validate_only = 3 [(.google.api.field_behavior) = OPTIONAL]; + * @return The validateOnly. + */ + boolean getValidateOnly(); +} diff --git a/java-securitycentermanagement/proto-google-cloud-securitycentermanagement-v1/src/main/java/com/google/cloud/securitycentermanagement/v1/ValidateEventThreatDetectionCustomModuleRequest.java b/owl-bot-staging/java-securitycentermanagement/v1/proto-google-cloud-securitycentermanagement-v1/src/main/java/com/google/cloud/securitycentermanagement/v1/ValidateEventThreatDetectionCustomModuleRequest.java similarity index 54% rename from java-securitycentermanagement/proto-google-cloud-securitycentermanagement-v1/src/main/java/com/google/cloud/securitycentermanagement/v1/ValidateEventThreatDetectionCustomModuleRequest.java rename to owl-bot-staging/java-securitycentermanagement/v1/proto-google-cloud-securitycentermanagement-v1/src/main/java/com/google/cloud/securitycentermanagement/v1/ValidateEventThreatDetectionCustomModuleRequest.java index 36cb1198e23b..701de1597755 100644 --- a/java-securitycentermanagement/proto-google-cloud-securitycentermanagement-v1/src/main/java/com/google/cloud/securitycentermanagement/v1/ValidateEventThreatDetectionCustomModuleRequest.java +++ b/owl-bot-staging/java-securitycentermanagement/v1/proto-google-cloud-securitycentermanagement-v1/src/main/java/com/google/cloud/securitycentermanagement/v1/ValidateEventThreatDetectionCustomModuleRequest.java @@ -1,45 +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/securitycentermanagement/v1/security_center_management.proto package com.google.cloud.securitycentermanagement.v1; /** - * - * *
  * Request to validate an Event Threat Detection custom module.
  * 
* - * Protobuf type {@code - * google.cloud.securitycentermanagement.v1.ValidateEventThreatDetectionCustomModuleRequest} + * Protobuf type {@code google.cloud.securitycentermanagement.v1.ValidateEventThreatDetectionCustomModuleRequest} */ -public final class ValidateEventThreatDetectionCustomModuleRequest - extends com.google.protobuf.GeneratedMessageV3 - implements +public final class ValidateEventThreatDetectionCustomModuleRequest extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.securitycentermanagement.v1.ValidateEventThreatDetectionCustomModuleRequest) ValidateEventThreatDetectionCustomModuleRequestOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use ValidateEventThreatDetectionCustomModuleRequest.newBuilder() to construct. - private ValidateEventThreatDetectionCustomModuleRequest( - com.google.protobuf.GeneratedMessageV3.Builder builder) { + private ValidateEventThreatDetectionCustomModuleRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private ValidateEventThreatDetectionCustomModuleRequest() { parent_ = ""; rawText_ = ""; @@ -48,34 +27,28 @@ private ValidateEventThreatDetectionCustomModuleRequest() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new ValidateEventThreatDetectionCustomModuleRequest(); } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.securitycentermanagement.v1.SecurityCenterManagementProto - .internal_static_google_cloud_securitycentermanagement_v1_ValidateEventThreatDetectionCustomModuleRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.securitycentermanagement.v1.SecurityCenterManagementProto.internal_static_google_cloud_securitycentermanagement_v1_ValidateEventThreatDetectionCustomModuleRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.securitycentermanagement.v1.SecurityCenterManagementProto - .internal_static_google_cloud_securitycentermanagement_v1_ValidateEventThreatDetectionCustomModuleRequest_fieldAccessorTable + return com.google.cloud.securitycentermanagement.v1.SecurityCenterManagementProto.internal_static_google_cloud_securitycentermanagement_v1_ValidateEventThreatDetectionCustomModuleRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.securitycentermanagement.v1 - .ValidateEventThreatDetectionCustomModuleRequest.class, - com.google.cloud.securitycentermanagement.v1 - .ValidateEventThreatDetectionCustomModuleRequest.Builder.class); + com.google.cloud.securitycentermanagement.v1.ValidateEventThreatDetectionCustomModuleRequest.class, com.google.cloud.securitycentermanagement.v1.ValidateEventThreatDetectionCustomModuleRequest.Builder.class); } public static final int PARENT_FIELD_NUMBER = 1; - @SuppressWarnings("serial") private volatile java.lang.Object parent_ = ""; /** - * - * *
    * Required. Resource name of the parent to validate the Custom Module under.
    *
@@ -84,10 +57,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
    *   * "organizations/{organization}/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 @@ -96,15 +66,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. Resource name of the parent to validate the Custom Module under.
    *
@@ -113,18 +82,17 @@ public java.lang.String getParent() {
    *   * "organizations/{organization}/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 { @@ -133,19 +101,15 @@ public com.google.protobuf.ByteString getParentBytes() { } public static final int RAW_TEXT_FIELD_NUMBER = 2; - @SuppressWarnings("serial") private volatile java.lang.Object rawText_ = ""; /** - * - * *
    * Required. The raw text of the module's contents. Used to generate error
    * messages.
    * 
* * string raw_text = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @return The rawText. */ @java.lang.Override @@ -154,30 +118,30 @@ public java.lang.String getRawText() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); rawText_ = s; return s; } } /** - * - * *
    * Required. The raw text of the module's contents. Used to generate error
    * messages.
    * 
* * string raw_text = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @return The bytes for rawText. */ @java.lang.Override - public com.google.protobuf.ByteString getRawTextBytes() { + public com.google.protobuf.ByteString + getRawTextBytes() { java.lang.Object ref = rawText_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); rawText_ = b; return b; } else { @@ -186,18 +150,14 @@ public com.google.protobuf.ByteString getRawTextBytes() { } public static final int TYPE_FIELD_NUMBER = 3; - @SuppressWarnings("serial") private volatile java.lang.Object type_ = ""; /** - * - * *
    * Required. The type of the module (e.g. CONFIGURABLE_BAD_IP).
    * 
* * string type = 3 [(.google.api.field_behavior) = REQUIRED]; - * * @return The type. */ @java.lang.Override @@ -206,29 +166,29 @@ 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; } } /** - * - * *
    * Required. The type of the module (e.g. CONFIGURABLE_BAD_IP).
    * 
* * string type = 3 [(.google.api.field_behavior) = REQUIRED]; - * * @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 { @@ -237,7 +197,6 @@ public com.google.protobuf.ByteString getTypeBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -249,7 +208,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.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_); } @@ -285,23 +245,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.securitycentermanagement.v1 - .ValidateEventThreatDetectionCustomModuleRequest)) { + if (!(obj instanceof com.google.cloud.securitycentermanagement.v1.ValidateEventThreatDetectionCustomModuleRequest)) { return super.equals(obj); } - com.google.cloud.securitycentermanagement.v1.ValidateEventThreatDetectionCustomModuleRequest - other = - (com.google.cloud.securitycentermanagement.v1 - .ValidateEventThreatDetectionCustomModuleRequest) - obj; + com.google.cloud.securitycentermanagement.v1.ValidateEventThreatDetectionCustomModuleRequest other = (com.google.cloud.securitycentermanagement.v1.ValidateEventThreatDetectionCustomModuleRequest) obj; - if (!getParent().equals(other.getParent())) return false; - if (!getRawText().equals(other.getRawText())) return false; - if (!getType().equals(other.getType())) return false; + if (!getParent() + .equals(other.getParent())) return false; + if (!getRawText() + .equals(other.getRawText())) return false; + if (!getType() + .equals(other.getType())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -324,161 +280,132 @@ public int hashCode() { return hash; } - public static com.google.cloud.securitycentermanagement.v1 - .ValidateEventThreatDetectionCustomModuleRequest - parseFrom(java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.securitycentermanagement.v1.ValidateEventThreatDetectionCustomModuleRequest parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - - public static com.google.cloud.securitycentermanagement.v1 - .ValidateEventThreatDetectionCustomModuleRequest - parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.securitycentermanagement.v1.ValidateEventThreatDetectionCustomModuleRequest 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.securitycentermanagement.v1 - .ValidateEventThreatDetectionCustomModuleRequest - parseFrom(com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.securitycentermanagement.v1.ValidateEventThreatDetectionCustomModuleRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - - public static com.google.cloud.securitycentermanagement.v1 - .ValidateEventThreatDetectionCustomModuleRequest - parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.securitycentermanagement.v1.ValidateEventThreatDetectionCustomModuleRequest parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.securitycentermanagement.v1 - .ValidateEventThreatDetectionCustomModuleRequest - parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.securitycentermanagement.v1.ValidateEventThreatDetectionCustomModuleRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - - public static com.google.cloud.securitycentermanagement.v1 - .ValidateEventThreatDetectionCustomModuleRequest - parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.securitycentermanagement.v1.ValidateEventThreatDetectionCustomModuleRequest parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.securitycentermanagement.v1 - .ValidateEventThreatDetectionCustomModuleRequest - parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.securitycentermanagement.v1.ValidateEventThreatDetectionCustomModuleRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - - public static com.google.cloud.securitycentermanagement.v1 - .ValidateEventThreatDetectionCustomModuleRequest - 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.securitycentermanagement.v1.ValidateEventThreatDetectionCustomModuleRequest 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.securitycentermanagement.v1 - .ValidateEventThreatDetectionCustomModuleRequest - parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.securitycentermanagement.v1.ValidateEventThreatDetectionCustomModuleRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.securitycentermanagement.v1 - .ValidateEventThreatDetectionCustomModuleRequest - parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + public static com.google.cloud.securitycentermanagement.v1.ValidateEventThreatDetectionCustomModuleRequest parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.securitycentermanagement.v1 - .ValidateEventThreatDetectionCustomModuleRequest - parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.securitycentermanagement.v1.ValidateEventThreatDetectionCustomModuleRequest parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - - public static com.google.cloud.securitycentermanagement.v1 - .ValidateEventThreatDetectionCustomModuleRequest - 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.securitycentermanagement.v1.ValidateEventThreatDetectionCustomModuleRequest 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.securitycentermanagement.v1.ValidateEventThreatDetectionCustomModuleRequest - prototype) { + public static Builder newBuilder(com.google.cloud.securitycentermanagement.v1.ValidateEventThreatDetectionCustomModuleRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected 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 to validate an Event Threat Detection custom module.
    * 
* - * Protobuf type {@code - * google.cloud.securitycentermanagement.v1.ValidateEventThreatDetectionCustomModuleRequest} + * Protobuf type {@code google.cloud.securitycentermanagement.v1.ValidateEventThreatDetectionCustomModuleRequest} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.securitycentermanagement.v1.ValidateEventThreatDetectionCustomModuleRequest) - com.google.cloud.securitycentermanagement.v1 - .ValidateEventThreatDetectionCustomModuleRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.securitycentermanagement.v1.SecurityCenterManagementProto - .internal_static_google_cloud_securitycentermanagement_v1_ValidateEventThreatDetectionCustomModuleRequest_descriptor; + com.google.cloud.securitycentermanagement.v1.ValidateEventThreatDetectionCustomModuleRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.securitycentermanagement.v1.SecurityCenterManagementProto.internal_static_google_cloud_securitycentermanagement_v1_ValidateEventThreatDetectionCustomModuleRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.securitycentermanagement.v1.SecurityCenterManagementProto - .internal_static_google_cloud_securitycentermanagement_v1_ValidateEventThreatDetectionCustomModuleRequest_fieldAccessorTable + return com.google.cloud.securitycentermanagement.v1.SecurityCenterManagementProto.internal_static_google_cloud_securitycentermanagement_v1_ValidateEventThreatDetectionCustomModuleRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.securitycentermanagement.v1 - .ValidateEventThreatDetectionCustomModuleRequest.class, - com.google.cloud.securitycentermanagement.v1 - .ValidateEventThreatDetectionCustomModuleRequest.Builder.class); + com.google.cloud.securitycentermanagement.v1.ValidateEventThreatDetectionCustomModuleRequest.class, com.google.cloud.securitycentermanagement.v1.ValidateEventThreatDetectionCustomModuleRequest.Builder.class); } - // Construct using - // com.google.cloud.securitycentermanagement.v1.ValidateEventThreatDetectionCustomModuleRequest.newBuilder() - private Builder() {} + // Construct using com.google.cloud.securitycentermanagement.v1.ValidateEventThreatDetectionCustomModuleRequest.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,25 +417,19 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.securitycentermanagement.v1.SecurityCenterManagementProto - .internal_static_google_cloud_securitycentermanagement_v1_ValidateEventThreatDetectionCustomModuleRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.securitycentermanagement.v1.SecurityCenterManagementProto.internal_static_google_cloud_securitycentermanagement_v1_ValidateEventThreatDetectionCustomModuleRequest_descriptor; } @java.lang.Override - public com.google.cloud.securitycentermanagement.v1 - .ValidateEventThreatDetectionCustomModuleRequest - getDefaultInstanceForType() { - return com.google.cloud.securitycentermanagement.v1 - .ValidateEventThreatDetectionCustomModuleRequest.getDefaultInstance(); + public com.google.cloud.securitycentermanagement.v1.ValidateEventThreatDetectionCustomModuleRequest getDefaultInstanceForType() { + return com.google.cloud.securitycentermanagement.v1.ValidateEventThreatDetectionCustomModuleRequest.getDefaultInstance(); } @java.lang.Override - public com.google.cloud.securitycentermanagement.v1 - .ValidateEventThreatDetectionCustomModuleRequest - build() { - com.google.cloud.securitycentermanagement.v1.ValidateEventThreatDetectionCustomModuleRequest - result = buildPartial(); + public com.google.cloud.securitycentermanagement.v1.ValidateEventThreatDetectionCustomModuleRequest build() { + com.google.cloud.securitycentermanagement.v1.ValidateEventThreatDetectionCustomModuleRequest result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } @@ -516,23 +437,14 @@ public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { } @java.lang.Override - public com.google.cloud.securitycentermanagement.v1 - .ValidateEventThreatDetectionCustomModuleRequest - buildPartial() { - com.google.cloud.securitycentermanagement.v1.ValidateEventThreatDetectionCustomModuleRequest - result = - new com.google.cloud.securitycentermanagement.v1 - .ValidateEventThreatDetectionCustomModuleRequest(this); - if (bitField0_ != 0) { - buildPartial0(result); - } + public com.google.cloud.securitycentermanagement.v1.ValidateEventThreatDetectionCustomModuleRequest buildPartial() { + com.google.cloud.securitycentermanagement.v1.ValidateEventThreatDetectionCustomModuleRequest result = new com.google.cloud.securitycentermanagement.v1.ValidateEventThreatDetectionCustomModuleRequest(this); + if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } - private void buildPartial0( - com.google.cloud.securitycentermanagement.v1.ValidateEventThreatDetectionCustomModuleRequest - result) { + private void buildPartial0(com.google.cloud.securitycentermanagement.v1.ValidateEventThreatDetectionCustomModuleRequest result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000001) != 0)) { result.parent_ = parent_; @@ -549,57 +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.securitycentermanagement.v1 - .ValidateEventThreatDetectionCustomModuleRequest) { - return mergeFrom( - (com.google.cloud.securitycentermanagement.v1 - .ValidateEventThreatDetectionCustomModuleRequest) - other); + if (other instanceof com.google.cloud.securitycentermanagement.v1.ValidateEventThreatDetectionCustomModuleRequest) { + return mergeFrom((com.google.cloud.securitycentermanagement.v1.ValidateEventThreatDetectionCustomModuleRequest)other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom( - com.google.cloud.securitycentermanagement.v1.ValidateEventThreatDetectionCustomModuleRequest - other) { - if (other - == com.google.cloud.securitycentermanagement.v1 - .ValidateEventThreatDetectionCustomModuleRequest.getDefaultInstance()) return this; + public Builder mergeFrom(com.google.cloud.securitycentermanagement.v1.ValidateEventThreatDetectionCustomModuleRequest other) { + if (other == com.google.cloud.securitycentermanagement.v1.ValidateEventThreatDetectionCustomModuleRequest.getDefaultInstance()) return this; if (!other.getParent().isEmpty()) { parent_ = other.parent_; bitField0_ |= 0x00000001; @@ -641,31 +542,27 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: - { - parent_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 18: - { - rawText_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000002; - break; - } // case 18 - case 26: - { - type_ = 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: { + rawText_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 26: { + type_ = 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) { @@ -675,13 +572,10 @@ public Builder mergeFrom( } // finally return this; } - private int bitField0_; private java.lang.Object parent_ = ""; /** - * - * *
      * Required. Resource name of the parent to validate the Custom Module under.
      *
@@ -690,16 +584,14 @@ public Builder mergeFrom(
      *   * "organizations/{organization}/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; @@ -708,8 +600,6 @@ public java.lang.String getParent() { } } /** - * - * *
      * Required. Resource name of the parent to validate the Custom Module under.
      *
@@ -718,17 +608,16 @@ public java.lang.String getParent() {
      *   * "organizations/{organization}/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 { @@ -736,8 +625,6 @@ public com.google.protobuf.ByteString getParentBytes() { } } /** - * - * *
      * Required. Resource name of the parent to validate the Custom Module under.
      *
@@ -746,25 +633,19 @@ public com.google.protobuf.ByteString getParentBytes() {
      *   * "organizations/{organization}/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. Resource name of the parent to validate the Custom Module under.
      *
@@ -773,10 +654,7 @@ public Builder setParent(java.lang.String value) {
      *   * "organizations/{organization}/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() { @@ -786,8 +664,6 @@ public Builder clearParent() { return this; } /** - * - * *
      * Required. Resource name of the parent to validate the Custom Module under.
      *
@@ -796,17 +672,13 @@ public Builder clearParent() {
      *   * "organizations/{organization}/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; @@ -816,21 +688,19 @@ public Builder setParentBytes(com.google.protobuf.ByteString value) { private java.lang.Object rawText_ = ""; /** - * - * *
      * Required. The raw text of the module's contents. Used to generate error
      * messages.
      * 
* * string raw_text = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @return The rawText. */ public java.lang.String getRawText() { java.lang.Object ref = rawText_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); rawText_ = s; return s; @@ -839,22 +709,21 @@ public java.lang.String getRawText() { } } /** - * - * *
      * Required. The raw text of the module's contents. Used to generate error
      * messages.
      * 
* * string raw_text = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @return The bytes for rawText. */ - public com.google.protobuf.ByteString getRawTextBytes() { + public com.google.protobuf.ByteString + getRawTextBytes() { java.lang.Object ref = rawText_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); rawText_ = b; return b; } else { @@ -862,37 +731,30 @@ public com.google.protobuf.ByteString getRawTextBytes() { } } /** - * - * *
      * Required. The raw text of the module's contents. Used to generate error
      * messages.
      * 
* * string raw_text = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @param value The rawText to set. * @return This builder for chaining. */ - public Builder setRawText(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setRawText( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } rawText_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } /** - * - * *
      * Required. The raw text of the module's contents. Used to generate error
      * messages.
      * 
* * string raw_text = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @return This builder for chaining. */ public Builder clearRawText() { @@ -902,22 +764,18 @@ public Builder clearRawText() { return this; } /** - * - * *
      * Required. The raw text of the module's contents. Used to generate error
      * messages.
      * 
* * string raw_text = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @param value The bytes for rawText to set. * @return This builder for chaining. */ - public Builder setRawTextBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setRawTextBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); rawText_ = value; bitField0_ |= 0x00000002; @@ -927,20 +785,18 @@ public Builder setRawTextBytes(com.google.protobuf.ByteString value) { private java.lang.Object type_ = ""; /** - * - * *
      * Required. The type of the module (e.g. CONFIGURABLE_BAD_IP).
      * 
* * string type = 3 [(.google.api.field_behavior) = REQUIRED]; - * * @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; @@ -949,21 +805,20 @@ public java.lang.String getType() { } } /** - * - * *
      * Required. The type of the module (e.g. CONFIGURABLE_BAD_IP).
      * 
* * string type = 3 [(.google.api.field_behavior) = REQUIRED]; - * * @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 { @@ -971,35 +826,28 @@ public com.google.protobuf.ByteString getTypeBytes() { } } /** - * - * *
      * Required. The type of the module (e.g. CONFIGURABLE_BAD_IP).
      * 
* * string type = 3 [(.google.api.field_behavior) = REQUIRED]; - * * @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_ |= 0x00000004; onChanged(); return this; } /** - * - * *
      * Required. The type of the module (e.g. CONFIGURABLE_BAD_IP).
      * 
* * string type = 3 [(.google.api.field_behavior) = REQUIRED]; - * * @return This builder for chaining. */ public Builder clearType() { @@ -1009,30 +857,26 @@ public Builder clearType() { return this; } /** - * - * *
      * Required. The type of the module (e.g. CONFIGURABLE_BAD_IP).
      * 
* * string type = 3 [(.google.api.field_behavior) = REQUIRED]; - * * @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_ |= 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); } @@ -1042,66 +886,55 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.securitycentermanagement.v1.ValidateEventThreatDetectionCustomModuleRequest) } // @@protoc_insertion_point(class_scope:google.cloud.securitycentermanagement.v1.ValidateEventThreatDetectionCustomModuleRequest) - private static final com.google.cloud.securitycentermanagement.v1 - .ValidateEventThreatDetectionCustomModuleRequest - DEFAULT_INSTANCE; - + private static final com.google.cloud.securitycentermanagement.v1.ValidateEventThreatDetectionCustomModuleRequest DEFAULT_INSTANCE; static { - DEFAULT_INSTANCE = - new com.google.cloud.securitycentermanagement.v1 - .ValidateEventThreatDetectionCustomModuleRequest(); + DEFAULT_INSTANCE = new com.google.cloud.securitycentermanagement.v1.ValidateEventThreatDetectionCustomModuleRequest(); } - public static com.google.cloud.securitycentermanagement.v1 - .ValidateEventThreatDetectionCustomModuleRequest - getDefaultInstance() { + public static com.google.cloud.securitycentermanagement.v1.ValidateEventThreatDetectionCustomModuleRequest getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser - PARSER = - new com.google.protobuf.AbstractParser< - ValidateEventThreatDetectionCustomModuleRequest>() { - @java.lang.Override - public ValidateEventThreatDetectionCustomModuleRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException() - .setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ValidateEventThreatDetectionCustomModuleRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; - public static com.google.protobuf.Parser - parser() { + public static com.google.protobuf.Parser parser() { return PARSER; } @java.lang.Override - public com.google.protobuf.Parser - getParserForType() { + public com.google.protobuf.Parser getParserForType() { return PARSER; } @java.lang.Override - public com.google.cloud.securitycentermanagement.v1 - .ValidateEventThreatDetectionCustomModuleRequest - getDefaultInstanceForType() { + public com.google.cloud.securitycentermanagement.v1.ValidateEventThreatDetectionCustomModuleRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/java-securitycentermanagement/proto-google-cloud-securitycentermanagement-v1/src/main/java/com/google/cloud/securitycentermanagement/v1/ValidateEventThreatDetectionCustomModuleRequestOrBuilder.java b/owl-bot-staging/java-securitycentermanagement/v1/proto-google-cloud-securitycentermanagement-v1/src/main/java/com/google/cloud/securitycentermanagement/v1/ValidateEventThreatDetectionCustomModuleRequestOrBuilder.java similarity index 63% rename from java-securitycentermanagement/proto-google-cloud-securitycentermanagement-v1/src/main/java/com/google/cloud/securitycentermanagement/v1/ValidateEventThreatDetectionCustomModuleRequestOrBuilder.java rename to owl-bot-staging/java-securitycentermanagement/v1/proto-google-cloud-securitycentermanagement-v1/src/main/java/com/google/cloud/securitycentermanagement/v1/ValidateEventThreatDetectionCustomModuleRequestOrBuilder.java index 1ffcc414a76f..b4488801b397 100644 --- a/java-securitycentermanagement/proto-google-cloud-securitycentermanagement-v1/src/main/java/com/google/cloud/securitycentermanagement/v1/ValidateEventThreatDetectionCustomModuleRequestOrBuilder.java +++ b/owl-bot-staging/java-securitycentermanagement/v1/proto-google-cloud-securitycentermanagement-v1/src/main/java/com/google/cloud/securitycentermanagement/v1/ValidateEventThreatDetectionCustomModuleRequestOrBuilder.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/securitycentermanagement/v1/security_center_management.proto package com.google.cloud.securitycentermanagement.v1; -public interface ValidateEventThreatDetectionCustomModuleRequestOrBuilder - extends +public interface ValidateEventThreatDetectionCustomModuleRequestOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.securitycentermanagement.v1.ValidateEventThreatDetectionCustomModuleRequest) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * Required. Resource name of the parent to validate the Custom Module under.
    *
@@ -34,16 +16,11 @@ public interface ValidateEventThreatDetectionCustomModuleRequestOrBuilder
    *   * "organizations/{organization}/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. Resource name of the parent to validate the Custom Module under.
    *
@@ -52,63 +29,51 @@ public interface ValidateEventThreatDetectionCustomModuleRequestOrBuilder
    *   * "organizations/{organization}/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. The raw text of the module's contents. Used to generate error
    * messages.
    * 
* * string raw_text = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @return The rawText. */ java.lang.String getRawText(); /** - * - * *
    * Required. The raw text of the module's contents. Used to generate error
    * messages.
    * 
* * string raw_text = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @return The bytes for rawText. */ - com.google.protobuf.ByteString getRawTextBytes(); + com.google.protobuf.ByteString + getRawTextBytes(); /** - * - * *
    * Required. The type of the module (e.g. CONFIGURABLE_BAD_IP).
    * 
* * string type = 3 [(.google.api.field_behavior) = REQUIRED]; - * * @return The type. */ java.lang.String getType(); /** - * - * *
    * Required. The type of the module (e.g. CONFIGURABLE_BAD_IP).
    * 
* * string type = 3 [(.google.api.field_behavior) = REQUIRED]; - * * @return The bytes for type. */ - com.google.protobuf.ByteString getTypeBytes(); + com.google.protobuf.ByteString + getTypeBytes(); } diff --git a/owl-bot-staging/java-securitycentermanagement/v1/proto-google-cloud-securitycentermanagement-v1/src/main/java/com/google/cloud/securitycentermanagement/v1/ValidateEventThreatDetectionCustomModuleResponse.java b/owl-bot-staging/java-securitycentermanagement/v1/proto-google-cloud-securitycentermanagement-v1/src/main/java/com/google/cloud/securitycentermanagement/v1/ValidateEventThreatDetectionCustomModuleResponse.java new file mode 100644 index 000000000000..8cc46d23e3e1 --- /dev/null +++ b/owl-bot-staging/java-securitycentermanagement/v1/proto-google-cloud-securitycentermanagement-v1/src/main/java/com/google/cloud/securitycentermanagement/v1/ValidateEventThreatDetectionCustomModuleResponse.java @@ -0,0 +1,2853 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/securitycentermanagement/v1/security_center_management.proto + +package com.google.cloud.securitycentermanagement.v1; + +/** + *
+ * Response to validating an Event Threat Detection custom module.
+ * 
+ * + * Protobuf type {@code google.cloud.securitycentermanagement.v1.ValidateEventThreatDetectionCustomModuleResponse} + */ +public final class ValidateEventThreatDetectionCustomModuleResponse extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:google.cloud.securitycentermanagement.v1.ValidateEventThreatDetectionCustomModuleResponse) + ValidateEventThreatDetectionCustomModuleResponseOrBuilder { +private static final long serialVersionUID = 0L; + // Use ValidateEventThreatDetectionCustomModuleResponse.newBuilder() to construct. + private ValidateEventThreatDetectionCustomModuleResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private ValidateEventThreatDetectionCustomModuleResponse() { + errors_ = java.util.Collections.emptyList(); + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new ValidateEventThreatDetectionCustomModuleResponse(); + } + + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.securitycentermanagement.v1.SecurityCenterManagementProto.internal_static_google_cloud_securitycentermanagement_v1_ValidateEventThreatDetectionCustomModuleResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.securitycentermanagement.v1.SecurityCenterManagementProto.internal_static_google_cloud_securitycentermanagement_v1_ValidateEventThreatDetectionCustomModuleResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.securitycentermanagement.v1.ValidateEventThreatDetectionCustomModuleResponse.class, com.google.cloud.securitycentermanagement.v1.ValidateEventThreatDetectionCustomModuleResponse.Builder.class); + } + + public interface CustomModuleValidationErrorOrBuilder extends + // @@protoc_insertion_point(interface_extends:google.cloud.securitycentermanagement.v1.ValidateEventThreatDetectionCustomModuleResponse.CustomModuleValidationError) + com.google.protobuf.MessageOrBuilder { + + /** + *
+     * A description of the error, suitable for human consumption. Required.
+     * 
+ * + * string description = 1; + * @return The description. + */ + java.lang.String getDescription(); + /** + *
+     * A description of the error, suitable for human consumption. Required.
+     * 
+ * + * string description = 1; + * @return The bytes for description. + */ + com.google.protobuf.ByteString + getDescriptionBytes(); + + /** + *
+     * The path, in RFC 8901 JSON Pointer format, to the field that failed
+     * validation. This may be left empty if no specific field is affected.
+     * 
+ * + * string field_path = 2; + * @return The fieldPath. + */ + java.lang.String getFieldPath(); + /** + *
+     * The path, in RFC 8901 JSON Pointer format, to the field that failed
+     * validation. This may be left empty if no specific field is affected.
+     * 
+ * + * string field_path = 2; + * @return The bytes for fieldPath. + */ + com.google.protobuf.ByteString + getFieldPathBytes(); + + /** + *
+     * The initial position of the error in the uploaded text version of the
+     * module. This field may be omitted if no specific position applies, or if
+     * one could not be computed.
+     * 
+ * + * optional .google.cloud.securitycentermanagement.v1.ValidateEventThreatDetectionCustomModuleResponse.Position start = 3; + * @return Whether the start field is set. + */ + boolean hasStart(); + /** + *
+     * The initial position of the error in the uploaded text version of the
+     * module. This field may be omitted if no specific position applies, or if
+     * one could not be computed.
+     * 
+ * + * optional .google.cloud.securitycentermanagement.v1.ValidateEventThreatDetectionCustomModuleResponse.Position start = 3; + * @return The start. + */ + com.google.cloud.securitycentermanagement.v1.ValidateEventThreatDetectionCustomModuleResponse.Position getStart(); + /** + *
+     * The initial position of the error in the uploaded text version of the
+     * module. This field may be omitted if no specific position applies, or if
+     * one could not be computed.
+     * 
+ * + * optional .google.cloud.securitycentermanagement.v1.ValidateEventThreatDetectionCustomModuleResponse.Position start = 3; + */ + com.google.cloud.securitycentermanagement.v1.ValidateEventThreatDetectionCustomModuleResponse.PositionOrBuilder getStartOrBuilder(); + + /** + *
+     * The end position of the error in the uploaded text version of the
+     * module. This field may be omitted if no specific position applies, or if
+     * one could not be computed..
+     * 
+ * + * optional .google.cloud.securitycentermanagement.v1.ValidateEventThreatDetectionCustomModuleResponse.Position end = 4; + * @return Whether the end field is set. + */ + boolean hasEnd(); + /** + *
+     * The end position of the error in the uploaded text version of the
+     * module. This field may be omitted if no specific position applies, or if
+     * one could not be computed..
+     * 
+ * + * optional .google.cloud.securitycentermanagement.v1.ValidateEventThreatDetectionCustomModuleResponse.Position end = 4; + * @return The end. + */ + com.google.cloud.securitycentermanagement.v1.ValidateEventThreatDetectionCustomModuleResponse.Position getEnd(); + /** + *
+     * The end position of the error in the uploaded text version of the
+     * module. This field may be omitted if no specific position applies, or if
+     * one could not be computed..
+     * 
+ * + * optional .google.cloud.securitycentermanagement.v1.ValidateEventThreatDetectionCustomModuleResponse.Position end = 4; + */ + com.google.cloud.securitycentermanagement.v1.ValidateEventThreatDetectionCustomModuleResponse.PositionOrBuilder getEndOrBuilder(); + } + /** + *
+   * An error encountered while validating the uploaded configuration of an
+   * Event Threat Detection Custom Module.
+   * 
+ * + * Protobuf type {@code google.cloud.securitycentermanagement.v1.ValidateEventThreatDetectionCustomModuleResponse.CustomModuleValidationError} + */ + public static final class CustomModuleValidationError extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:google.cloud.securitycentermanagement.v1.ValidateEventThreatDetectionCustomModuleResponse.CustomModuleValidationError) + CustomModuleValidationErrorOrBuilder { + private static final long serialVersionUID = 0L; + // Use CustomModuleValidationError.newBuilder() to construct. + private CustomModuleValidationError(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private CustomModuleValidationError() { + description_ = ""; + fieldPath_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new CustomModuleValidationError(); + } + + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.securitycentermanagement.v1.SecurityCenterManagementProto.internal_static_google_cloud_securitycentermanagement_v1_ValidateEventThreatDetectionCustomModuleResponse_CustomModuleValidationError_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.securitycentermanagement.v1.SecurityCenterManagementProto.internal_static_google_cloud_securitycentermanagement_v1_ValidateEventThreatDetectionCustomModuleResponse_CustomModuleValidationError_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.securitycentermanagement.v1.ValidateEventThreatDetectionCustomModuleResponse.CustomModuleValidationError.class, com.google.cloud.securitycentermanagement.v1.ValidateEventThreatDetectionCustomModuleResponse.CustomModuleValidationError.Builder.class); + } + + private int bitField0_; + public static final int DESCRIPTION_FIELD_NUMBER = 1; + @SuppressWarnings("serial") + private volatile java.lang.Object description_ = ""; + /** + *
+     * A description of the error, suitable for human consumption. Required.
+     * 
+ * + * string description = 1; + * @return The description. + */ + @java.lang.Override + public java.lang.String getDescription() { + java.lang.Object ref = description_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + description_ = s; + return s; + } + } + /** + *
+     * A description of the error, suitable for human consumption. Required.
+     * 
+ * + * string description = 1; + * @return The bytes for description. + */ + @java.lang.Override + 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); + description_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int FIELD_PATH_FIELD_NUMBER = 2; + @SuppressWarnings("serial") + private volatile java.lang.Object fieldPath_ = ""; + /** + *
+     * The path, in RFC 8901 JSON Pointer format, to the field that failed
+     * validation. This may be left empty if no specific field is affected.
+     * 
+ * + * string field_path = 2; + * @return The fieldPath. + */ + @java.lang.Override + public java.lang.String getFieldPath() { + java.lang.Object ref = fieldPath_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + fieldPath_ = s; + return s; + } + } + /** + *
+     * The path, in RFC 8901 JSON Pointer format, to the field that failed
+     * validation. This may be left empty if no specific field is affected.
+     * 
+ * + * string field_path = 2; + * @return The bytes for fieldPath. + */ + @java.lang.Override + public com.google.protobuf.ByteString + getFieldPathBytes() { + java.lang.Object ref = fieldPath_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + fieldPath_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int START_FIELD_NUMBER = 3; + private com.google.cloud.securitycentermanagement.v1.ValidateEventThreatDetectionCustomModuleResponse.Position start_; + /** + *
+     * The initial position of the error in the uploaded text version of the
+     * module. This field may be omitted if no specific position applies, or if
+     * one could not be computed.
+     * 
+ * + * optional .google.cloud.securitycentermanagement.v1.ValidateEventThreatDetectionCustomModuleResponse.Position start = 3; + * @return Whether the start field is set. + */ + @java.lang.Override + public boolean hasStart() { + return ((bitField0_ & 0x00000001) != 0); + } + /** + *
+     * The initial position of the error in the uploaded text version of the
+     * module. This field may be omitted if no specific position applies, or if
+     * one could not be computed.
+     * 
+ * + * optional .google.cloud.securitycentermanagement.v1.ValidateEventThreatDetectionCustomModuleResponse.Position start = 3; + * @return The start. + */ + @java.lang.Override + public com.google.cloud.securitycentermanagement.v1.ValidateEventThreatDetectionCustomModuleResponse.Position getStart() { + return start_ == null ? com.google.cloud.securitycentermanagement.v1.ValidateEventThreatDetectionCustomModuleResponse.Position.getDefaultInstance() : start_; + } + /** + *
+     * The initial position of the error in the uploaded text version of the
+     * module. This field may be omitted if no specific position applies, or if
+     * one could not be computed.
+     * 
+ * + * optional .google.cloud.securitycentermanagement.v1.ValidateEventThreatDetectionCustomModuleResponse.Position start = 3; + */ + @java.lang.Override + public com.google.cloud.securitycentermanagement.v1.ValidateEventThreatDetectionCustomModuleResponse.PositionOrBuilder getStartOrBuilder() { + return start_ == null ? com.google.cloud.securitycentermanagement.v1.ValidateEventThreatDetectionCustomModuleResponse.Position.getDefaultInstance() : start_; + } + + public static final int END_FIELD_NUMBER = 4; + private com.google.cloud.securitycentermanagement.v1.ValidateEventThreatDetectionCustomModuleResponse.Position end_; + /** + *
+     * The end position of the error in the uploaded text version of the
+     * module. This field may be omitted if no specific position applies, or if
+     * one could not be computed..
+     * 
+ * + * optional .google.cloud.securitycentermanagement.v1.ValidateEventThreatDetectionCustomModuleResponse.Position end = 4; + * @return Whether the end field is set. + */ + @java.lang.Override + public boolean hasEnd() { + return ((bitField0_ & 0x00000002) != 0); + } + /** + *
+     * The end position of the error in the uploaded text version of the
+     * module. This field may be omitted if no specific position applies, or if
+     * one could not be computed..
+     * 
+ * + * optional .google.cloud.securitycentermanagement.v1.ValidateEventThreatDetectionCustomModuleResponse.Position end = 4; + * @return The end. + */ + @java.lang.Override + public com.google.cloud.securitycentermanagement.v1.ValidateEventThreatDetectionCustomModuleResponse.Position getEnd() { + return end_ == null ? com.google.cloud.securitycentermanagement.v1.ValidateEventThreatDetectionCustomModuleResponse.Position.getDefaultInstance() : end_; + } + /** + *
+     * The end position of the error in the uploaded text version of the
+     * module. This field may be omitted if no specific position applies, or if
+     * one could not be computed..
+     * 
+ * + * optional .google.cloud.securitycentermanagement.v1.ValidateEventThreatDetectionCustomModuleResponse.Position end = 4; + */ + @java.lang.Override + public com.google.cloud.securitycentermanagement.v1.ValidateEventThreatDetectionCustomModuleResponse.PositionOrBuilder getEndOrBuilder() { + return end_ == null ? com.google.cloud.securitycentermanagement.v1.ValidateEventThreatDetectionCustomModuleResponse.Position.getDefaultInstance() : end_; + } + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(description_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, description_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(fieldPath_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, fieldPath_); + } + if (((bitField0_ & 0x00000001) != 0)) { + output.writeMessage(3, getStart()); + } + if (((bitField0_ & 0x00000002) != 0)) { + output.writeMessage(4, getEnd()); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(description_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, description_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(fieldPath_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, fieldPath_); + } + if (((bitField0_ & 0x00000001) != 0)) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(3, getStart()); + } + if (((bitField0_ & 0x00000002) != 0)) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(4, getEnd()); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.securitycentermanagement.v1.ValidateEventThreatDetectionCustomModuleResponse.CustomModuleValidationError)) { + return super.equals(obj); + } + com.google.cloud.securitycentermanagement.v1.ValidateEventThreatDetectionCustomModuleResponse.CustomModuleValidationError other = (com.google.cloud.securitycentermanagement.v1.ValidateEventThreatDetectionCustomModuleResponse.CustomModuleValidationError) obj; + + if (!getDescription() + .equals(other.getDescription())) return false; + if (!getFieldPath() + .equals(other.getFieldPath())) return false; + if (hasStart() != other.hasStart()) return false; + if (hasStart()) { + if (!getStart() + .equals(other.getStart())) return false; + } + if (hasEnd() != other.hasEnd()) return false; + if (hasEnd()) { + if (!getEnd() + .equals(other.getEnd())) return false; + } + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + DESCRIPTION_FIELD_NUMBER; + hash = (53 * hash) + getDescription().hashCode(); + hash = (37 * hash) + FIELD_PATH_FIELD_NUMBER; + hash = (53 * hash) + getFieldPath().hashCode(); + if (hasStart()) { + hash = (37 * hash) + START_FIELD_NUMBER; + hash = (53 * hash) + getStart().hashCode(); + } + if (hasEnd()) { + hash = (37 * hash) + END_FIELD_NUMBER; + hash = (53 * hash) + getEnd().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.securitycentermanagement.v1.ValidateEventThreatDetectionCustomModuleResponse.CustomModuleValidationError parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.cloud.securitycentermanagement.v1.ValidateEventThreatDetectionCustomModuleResponse.CustomModuleValidationError 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.securitycentermanagement.v1.ValidateEventThreatDetectionCustomModuleResponse.CustomModuleValidationError parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.cloud.securitycentermanagement.v1.ValidateEventThreatDetectionCustomModuleResponse.CustomModuleValidationError parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.cloud.securitycentermanagement.v1.ValidateEventThreatDetectionCustomModuleResponse.CustomModuleValidationError parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.cloud.securitycentermanagement.v1.ValidateEventThreatDetectionCustomModuleResponse.CustomModuleValidationError parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.cloud.securitycentermanagement.v1.ValidateEventThreatDetectionCustomModuleResponse.CustomModuleValidationError parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.google.cloud.securitycentermanagement.v1.ValidateEventThreatDetectionCustomModuleResponse.CustomModuleValidationError 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.securitycentermanagement.v1.ValidateEventThreatDetectionCustomModuleResponse.CustomModuleValidationError parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.securitycentermanagement.v1.ValidateEventThreatDetectionCustomModuleResponse.CustomModuleValidationError parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static com.google.cloud.securitycentermanagement.v1.ValidateEventThreatDetectionCustomModuleResponse.CustomModuleValidationError parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.google.cloud.securitycentermanagement.v1.ValidateEventThreatDetectionCustomModuleResponse.CustomModuleValidationError 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.securitycentermanagement.v1.ValidateEventThreatDetectionCustomModuleResponse.CustomModuleValidationError prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + *
+     * An error encountered while validating the uploaded configuration of an
+     * Event Threat Detection Custom Module.
+     * 
+ * + * Protobuf type {@code google.cloud.securitycentermanagement.v1.ValidateEventThreatDetectionCustomModuleResponse.CustomModuleValidationError} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:google.cloud.securitycentermanagement.v1.ValidateEventThreatDetectionCustomModuleResponse.CustomModuleValidationError) + com.google.cloud.securitycentermanagement.v1.ValidateEventThreatDetectionCustomModuleResponse.CustomModuleValidationErrorOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.securitycentermanagement.v1.SecurityCenterManagementProto.internal_static_google_cloud_securitycentermanagement_v1_ValidateEventThreatDetectionCustomModuleResponse_CustomModuleValidationError_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.securitycentermanagement.v1.SecurityCenterManagementProto.internal_static_google_cloud_securitycentermanagement_v1_ValidateEventThreatDetectionCustomModuleResponse_CustomModuleValidationError_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.securitycentermanagement.v1.ValidateEventThreatDetectionCustomModuleResponse.CustomModuleValidationError.class, com.google.cloud.securitycentermanagement.v1.ValidateEventThreatDetectionCustomModuleResponse.CustomModuleValidationError.Builder.class); + } + + // Construct using com.google.cloud.securitycentermanagement.v1.ValidateEventThreatDetectionCustomModuleResponse.CustomModuleValidationError.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + getStartFieldBuilder(); + getEndFieldBuilder(); + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + description_ = ""; + fieldPath_ = ""; + start_ = null; + if (startBuilder_ != null) { + startBuilder_.dispose(); + startBuilder_ = null; + } + end_ = null; + if (endBuilder_ != null) { + endBuilder_.dispose(); + endBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.securitycentermanagement.v1.SecurityCenterManagementProto.internal_static_google_cloud_securitycentermanagement_v1_ValidateEventThreatDetectionCustomModuleResponse_CustomModuleValidationError_descriptor; + } + + @java.lang.Override + public com.google.cloud.securitycentermanagement.v1.ValidateEventThreatDetectionCustomModuleResponse.CustomModuleValidationError getDefaultInstanceForType() { + return com.google.cloud.securitycentermanagement.v1.ValidateEventThreatDetectionCustomModuleResponse.CustomModuleValidationError.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.securitycentermanagement.v1.ValidateEventThreatDetectionCustomModuleResponse.CustomModuleValidationError build() { + com.google.cloud.securitycentermanagement.v1.ValidateEventThreatDetectionCustomModuleResponse.CustomModuleValidationError result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.securitycentermanagement.v1.ValidateEventThreatDetectionCustomModuleResponse.CustomModuleValidationError buildPartial() { + com.google.cloud.securitycentermanagement.v1.ValidateEventThreatDetectionCustomModuleResponse.CustomModuleValidationError result = new com.google.cloud.securitycentermanagement.v1.ValidateEventThreatDetectionCustomModuleResponse.CustomModuleValidationError(this); + if (bitField0_ != 0) { buildPartial0(result); } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.cloud.securitycentermanagement.v1.ValidateEventThreatDetectionCustomModuleResponse.CustomModuleValidationError result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.description_ = description_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.fieldPath_ = fieldPath_; + } + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000004) != 0)) { + result.start_ = startBuilder_ == null + ? start_ + : startBuilder_.build(); + to_bitField0_ |= 0x00000001; + } + if (((from_bitField0_ & 0x00000008) != 0)) { + result.end_ = endBuilder_ == null + ? end_ + : endBuilder_.build(); + to_bitField0_ |= 0x00000002; + } + result.bitField0_ |= to_bitField0_; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.securitycentermanagement.v1.ValidateEventThreatDetectionCustomModuleResponse.CustomModuleValidationError) { + return mergeFrom((com.google.cloud.securitycentermanagement.v1.ValidateEventThreatDetectionCustomModuleResponse.CustomModuleValidationError)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.securitycentermanagement.v1.ValidateEventThreatDetectionCustomModuleResponse.CustomModuleValidationError other) { + if (other == com.google.cloud.securitycentermanagement.v1.ValidateEventThreatDetectionCustomModuleResponse.CustomModuleValidationError.getDefaultInstance()) return this; + if (!other.getDescription().isEmpty()) { + description_ = other.description_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (!other.getFieldPath().isEmpty()) { + fieldPath_ = other.fieldPath_; + bitField0_ |= 0x00000002; + onChanged(); + } + if (other.hasStart()) { + mergeStart(other.getStart()); + } + if (other.hasEnd()) { + mergeEnd(other.getEnd()); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + description_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: { + fieldPath_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 26: { + input.readMessage( + getStartFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000004; + break; + } // case 26 + case 34: { + input.readMessage( + getEndFieldBuilder().getBuilder(), + extensionRegistry); + 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) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + private int bitField0_; + + private java.lang.Object description_ = ""; + /** + *
+       * A description of the error, suitable for human consumption. Required.
+       * 
+ * + * string description = 1; + * @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; + java.lang.String s = bs.toStringUtf8(); + description_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+       * A description of the error, suitable for human consumption. Required.
+       * 
+ * + * string description = 1; + * @return The bytes for description. + */ + 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); + description_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+       * A description of the error, suitable for human consumption. Required.
+       * 
+ * + * string description = 1; + * @param value The description to set. + * @return This builder for chaining. + */ + public Builder setDescription( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } + description_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + *
+       * A description of the error, suitable for human consumption. Required.
+       * 
+ * + * string description = 1; + * @return This builder for chaining. + */ + public Builder clearDescription() { + description_ = getDefaultInstance().getDescription(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + /** + *
+       * A description of the error, suitable for human consumption. Required.
+       * 
+ * + * string description = 1; + * @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(); } + checkByteStringIsUtf8(value); + description_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private java.lang.Object fieldPath_ = ""; + /** + *
+       * The path, in RFC 8901 JSON Pointer format, to the field that failed
+       * validation. This may be left empty if no specific field is affected.
+       * 
+ * + * string field_path = 2; + * @return The fieldPath. + */ + public java.lang.String getFieldPath() { + java.lang.Object ref = fieldPath_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + fieldPath_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+       * The path, in RFC 8901 JSON Pointer format, to the field that failed
+       * validation. This may be left empty if no specific field is affected.
+       * 
+ * + * string field_path = 2; + * @return The bytes for fieldPath. + */ + public com.google.protobuf.ByteString + getFieldPathBytes() { + java.lang.Object ref = fieldPath_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + fieldPath_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+       * The path, in RFC 8901 JSON Pointer format, to the field that failed
+       * validation. This may be left empty if no specific field is affected.
+       * 
+ * + * string field_path = 2; + * @param value The fieldPath to set. + * @return This builder for chaining. + */ + public Builder setFieldPath( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } + fieldPath_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + *
+       * The path, in RFC 8901 JSON Pointer format, to the field that failed
+       * validation. This may be left empty if no specific field is affected.
+       * 
+ * + * string field_path = 2; + * @return This builder for chaining. + */ + public Builder clearFieldPath() { + fieldPath_ = getDefaultInstance().getFieldPath(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + /** + *
+       * The path, in RFC 8901 JSON Pointer format, to the field that failed
+       * validation. This may be left empty if no specific field is affected.
+       * 
+ * + * string field_path = 2; + * @param value The bytes for fieldPath to set. + * @return This builder for chaining. + */ + public Builder setFieldPathBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } + checkByteStringIsUtf8(value); + fieldPath_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + private com.google.cloud.securitycentermanagement.v1.ValidateEventThreatDetectionCustomModuleResponse.Position start_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.securitycentermanagement.v1.ValidateEventThreatDetectionCustomModuleResponse.Position, com.google.cloud.securitycentermanagement.v1.ValidateEventThreatDetectionCustomModuleResponse.Position.Builder, com.google.cloud.securitycentermanagement.v1.ValidateEventThreatDetectionCustomModuleResponse.PositionOrBuilder> startBuilder_; + /** + *
+       * The initial position of the error in the uploaded text version of the
+       * module. This field may be omitted if no specific position applies, or if
+       * one could not be computed.
+       * 
+ * + * optional .google.cloud.securitycentermanagement.v1.ValidateEventThreatDetectionCustomModuleResponse.Position start = 3; + * @return Whether the start field is set. + */ + public boolean hasStart() { + return ((bitField0_ & 0x00000004) != 0); + } + /** + *
+       * The initial position of the error in the uploaded text version of the
+       * module. This field may be omitted if no specific position applies, or if
+       * one could not be computed.
+       * 
+ * + * optional .google.cloud.securitycentermanagement.v1.ValidateEventThreatDetectionCustomModuleResponse.Position start = 3; + * @return The start. + */ + public com.google.cloud.securitycentermanagement.v1.ValidateEventThreatDetectionCustomModuleResponse.Position getStart() { + if (startBuilder_ == null) { + return start_ == null ? com.google.cloud.securitycentermanagement.v1.ValidateEventThreatDetectionCustomModuleResponse.Position.getDefaultInstance() : start_; + } else { + return startBuilder_.getMessage(); + } + } + /** + *
+       * The initial position of the error in the uploaded text version of the
+       * module. This field may be omitted if no specific position applies, or if
+       * one could not be computed.
+       * 
+ * + * optional .google.cloud.securitycentermanagement.v1.ValidateEventThreatDetectionCustomModuleResponse.Position start = 3; + */ + public Builder setStart(com.google.cloud.securitycentermanagement.v1.ValidateEventThreatDetectionCustomModuleResponse.Position value) { + if (startBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + start_ = value; + } else { + startBuilder_.setMessage(value); + } + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + /** + *
+       * The initial position of the error in the uploaded text version of the
+       * module. This field may be omitted if no specific position applies, or if
+       * one could not be computed.
+       * 
+ * + * optional .google.cloud.securitycentermanagement.v1.ValidateEventThreatDetectionCustomModuleResponse.Position start = 3; + */ + public Builder setStart( + com.google.cloud.securitycentermanagement.v1.ValidateEventThreatDetectionCustomModuleResponse.Position.Builder builderForValue) { + if (startBuilder_ == null) { + start_ = builderForValue.build(); + } else { + startBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + /** + *
+       * The initial position of the error in the uploaded text version of the
+       * module. This field may be omitted if no specific position applies, or if
+       * one could not be computed.
+       * 
+ * + * optional .google.cloud.securitycentermanagement.v1.ValidateEventThreatDetectionCustomModuleResponse.Position start = 3; + */ + public Builder mergeStart(com.google.cloud.securitycentermanagement.v1.ValidateEventThreatDetectionCustomModuleResponse.Position value) { + if (startBuilder_ == null) { + if (((bitField0_ & 0x00000004) != 0) && + start_ != null && + start_ != com.google.cloud.securitycentermanagement.v1.ValidateEventThreatDetectionCustomModuleResponse.Position.getDefaultInstance()) { + getStartBuilder().mergeFrom(value); + } else { + start_ = value; + } + } else { + startBuilder_.mergeFrom(value); + } + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + /** + *
+       * The initial position of the error in the uploaded text version of the
+       * module. This field may be omitted if no specific position applies, or if
+       * one could not be computed.
+       * 
+ * + * optional .google.cloud.securitycentermanagement.v1.ValidateEventThreatDetectionCustomModuleResponse.Position start = 3; + */ + public Builder clearStart() { + bitField0_ = (bitField0_ & ~0x00000004); + start_ = null; + if (startBuilder_ != null) { + startBuilder_.dispose(); + startBuilder_ = null; + } + onChanged(); + return this; + } + /** + *
+       * The initial position of the error in the uploaded text version of the
+       * module. This field may be omitted if no specific position applies, or if
+       * one could not be computed.
+       * 
+ * + * optional .google.cloud.securitycentermanagement.v1.ValidateEventThreatDetectionCustomModuleResponse.Position start = 3; + */ + public com.google.cloud.securitycentermanagement.v1.ValidateEventThreatDetectionCustomModuleResponse.Position.Builder getStartBuilder() { + bitField0_ |= 0x00000004; + onChanged(); + return getStartFieldBuilder().getBuilder(); + } + /** + *
+       * The initial position of the error in the uploaded text version of the
+       * module. This field may be omitted if no specific position applies, or if
+       * one could not be computed.
+       * 
+ * + * optional .google.cloud.securitycentermanagement.v1.ValidateEventThreatDetectionCustomModuleResponse.Position start = 3; + */ + public com.google.cloud.securitycentermanagement.v1.ValidateEventThreatDetectionCustomModuleResponse.PositionOrBuilder getStartOrBuilder() { + if (startBuilder_ != null) { + return startBuilder_.getMessageOrBuilder(); + } else { + return start_ == null ? + com.google.cloud.securitycentermanagement.v1.ValidateEventThreatDetectionCustomModuleResponse.Position.getDefaultInstance() : start_; + } + } + /** + *
+       * The initial position of the error in the uploaded text version of the
+       * module. This field may be omitted if no specific position applies, or if
+       * one could not be computed.
+       * 
+ * + * optional .google.cloud.securitycentermanagement.v1.ValidateEventThreatDetectionCustomModuleResponse.Position start = 3; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.securitycentermanagement.v1.ValidateEventThreatDetectionCustomModuleResponse.Position, com.google.cloud.securitycentermanagement.v1.ValidateEventThreatDetectionCustomModuleResponse.Position.Builder, com.google.cloud.securitycentermanagement.v1.ValidateEventThreatDetectionCustomModuleResponse.PositionOrBuilder> + getStartFieldBuilder() { + if (startBuilder_ == null) { + startBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.securitycentermanagement.v1.ValidateEventThreatDetectionCustomModuleResponse.Position, com.google.cloud.securitycentermanagement.v1.ValidateEventThreatDetectionCustomModuleResponse.Position.Builder, com.google.cloud.securitycentermanagement.v1.ValidateEventThreatDetectionCustomModuleResponse.PositionOrBuilder>( + getStart(), + getParentForChildren(), + isClean()); + start_ = null; + } + return startBuilder_; + } + + private com.google.cloud.securitycentermanagement.v1.ValidateEventThreatDetectionCustomModuleResponse.Position end_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.securitycentermanagement.v1.ValidateEventThreatDetectionCustomModuleResponse.Position, com.google.cloud.securitycentermanagement.v1.ValidateEventThreatDetectionCustomModuleResponse.Position.Builder, com.google.cloud.securitycentermanagement.v1.ValidateEventThreatDetectionCustomModuleResponse.PositionOrBuilder> endBuilder_; + /** + *
+       * The end position of the error in the uploaded text version of the
+       * module. This field may be omitted if no specific position applies, or if
+       * one could not be computed..
+       * 
+ * + * optional .google.cloud.securitycentermanagement.v1.ValidateEventThreatDetectionCustomModuleResponse.Position end = 4; + * @return Whether the end field is set. + */ + public boolean hasEnd() { + return ((bitField0_ & 0x00000008) != 0); + } + /** + *
+       * The end position of the error in the uploaded text version of the
+       * module. This field may be omitted if no specific position applies, or if
+       * one could not be computed..
+       * 
+ * + * optional .google.cloud.securitycentermanagement.v1.ValidateEventThreatDetectionCustomModuleResponse.Position end = 4; + * @return The end. + */ + public com.google.cloud.securitycentermanagement.v1.ValidateEventThreatDetectionCustomModuleResponse.Position getEnd() { + if (endBuilder_ == null) { + return end_ == null ? com.google.cloud.securitycentermanagement.v1.ValidateEventThreatDetectionCustomModuleResponse.Position.getDefaultInstance() : end_; + } else { + return endBuilder_.getMessage(); + } + } + /** + *
+       * The end position of the error in the uploaded text version of the
+       * module. This field may be omitted if no specific position applies, or if
+       * one could not be computed..
+       * 
+ * + * optional .google.cloud.securitycentermanagement.v1.ValidateEventThreatDetectionCustomModuleResponse.Position end = 4; + */ + public Builder setEnd(com.google.cloud.securitycentermanagement.v1.ValidateEventThreatDetectionCustomModuleResponse.Position value) { + if (endBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + end_ = value; + } else { + endBuilder_.setMessage(value); + } + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + /** + *
+       * The end position of the error in the uploaded text version of the
+       * module. This field may be omitted if no specific position applies, or if
+       * one could not be computed..
+       * 
+ * + * optional .google.cloud.securitycentermanagement.v1.ValidateEventThreatDetectionCustomModuleResponse.Position end = 4; + */ + public Builder setEnd( + com.google.cloud.securitycentermanagement.v1.ValidateEventThreatDetectionCustomModuleResponse.Position.Builder builderForValue) { + if (endBuilder_ == null) { + end_ = builderForValue.build(); + } else { + endBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + /** + *
+       * The end position of the error in the uploaded text version of the
+       * module. This field may be omitted if no specific position applies, or if
+       * one could not be computed..
+       * 
+ * + * optional .google.cloud.securitycentermanagement.v1.ValidateEventThreatDetectionCustomModuleResponse.Position end = 4; + */ + public Builder mergeEnd(com.google.cloud.securitycentermanagement.v1.ValidateEventThreatDetectionCustomModuleResponse.Position value) { + if (endBuilder_ == null) { + if (((bitField0_ & 0x00000008) != 0) && + end_ != null && + end_ != com.google.cloud.securitycentermanagement.v1.ValidateEventThreatDetectionCustomModuleResponse.Position.getDefaultInstance()) { + getEndBuilder().mergeFrom(value); + } else { + end_ = value; + } + } else { + endBuilder_.mergeFrom(value); + } + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + /** + *
+       * The end position of the error in the uploaded text version of the
+       * module. This field may be omitted if no specific position applies, or if
+       * one could not be computed..
+       * 
+ * + * optional .google.cloud.securitycentermanagement.v1.ValidateEventThreatDetectionCustomModuleResponse.Position end = 4; + */ + public Builder clearEnd() { + bitField0_ = (bitField0_ & ~0x00000008); + end_ = null; + if (endBuilder_ != null) { + endBuilder_.dispose(); + endBuilder_ = null; + } + onChanged(); + return this; + } + /** + *
+       * The end position of the error in the uploaded text version of the
+       * module. This field may be omitted if no specific position applies, or if
+       * one could not be computed..
+       * 
+ * + * optional .google.cloud.securitycentermanagement.v1.ValidateEventThreatDetectionCustomModuleResponse.Position end = 4; + */ + public com.google.cloud.securitycentermanagement.v1.ValidateEventThreatDetectionCustomModuleResponse.Position.Builder getEndBuilder() { + bitField0_ |= 0x00000008; + onChanged(); + return getEndFieldBuilder().getBuilder(); + } + /** + *
+       * The end position of the error in the uploaded text version of the
+       * module. This field may be omitted if no specific position applies, or if
+       * one could not be computed..
+       * 
+ * + * optional .google.cloud.securitycentermanagement.v1.ValidateEventThreatDetectionCustomModuleResponse.Position end = 4; + */ + public com.google.cloud.securitycentermanagement.v1.ValidateEventThreatDetectionCustomModuleResponse.PositionOrBuilder getEndOrBuilder() { + if (endBuilder_ != null) { + return endBuilder_.getMessageOrBuilder(); + } else { + return end_ == null ? + com.google.cloud.securitycentermanagement.v1.ValidateEventThreatDetectionCustomModuleResponse.Position.getDefaultInstance() : end_; + } + } + /** + *
+       * The end position of the error in the uploaded text version of the
+       * module. This field may be omitted if no specific position applies, or if
+       * one could not be computed..
+       * 
+ * + * optional .google.cloud.securitycentermanagement.v1.ValidateEventThreatDetectionCustomModuleResponse.Position end = 4; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.securitycentermanagement.v1.ValidateEventThreatDetectionCustomModuleResponse.Position, com.google.cloud.securitycentermanagement.v1.ValidateEventThreatDetectionCustomModuleResponse.Position.Builder, com.google.cloud.securitycentermanagement.v1.ValidateEventThreatDetectionCustomModuleResponse.PositionOrBuilder> + getEndFieldBuilder() { + if (endBuilder_ == null) { + endBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.securitycentermanagement.v1.ValidateEventThreatDetectionCustomModuleResponse.Position, com.google.cloud.securitycentermanagement.v1.ValidateEventThreatDetectionCustomModuleResponse.Position.Builder, com.google.cloud.securitycentermanagement.v1.ValidateEventThreatDetectionCustomModuleResponse.PositionOrBuilder>( + getEnd(), + getParentForChildren(), + isClean()); + end_ = null; + } + return endBuilder_; + } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:google.cloud.securitycentermanagement.v1.ValidateEventThreatDetectionCustomModuleResponse.CustomModuleValidationError) + } + + // @@protoc_insertion_point(class_scope:google.cloud.securitycentermanagement.v1.ValidateEventThreatDetectionCustomModuleResponse.CustomModuleValidationError) + private static final com.google.cloud.securitycentermanagement.v1.ValidateEventThreatDetectionCustomModuleResponse.CustomModuleValidationError DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new com.google.cloud.securitycentermanagement.v1.ValidateEventThreatDetectionCustomModuleResponse.CustomModuleValidationError(); + } + + public static com.google.cloud.securitycentermanagement.v1.ValidateEventThreatDetectionCustomModuleResponse.CustomModuleValidationError getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public CustomModuleValidationError parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.securitycentermanagement.v1.ValidateEventThreatDetectionCustomModuleResponse.CustomModuleValidationError getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface PositionOrBuilder extends + // @@protoc_insertion_point(interface_extends:google.cloud.securitycentermanagement.v1.ValidateEventThreatDetectionCustomModuleResponse.Position) + com.google.protobuf.MessageOrBuilder { + + /** + *
+     * The line position in the text
+     * 
+ * + * int32 line_number = 1; + * @return The lineNumber. + */ + int getLineNumber(); + + /** + *
+     * The column position in the line
+     * 
+ * + * int32 column_number = 2; + * @return The columnNumber. + */ + int getColumnNumber(); + } + /** + *
+   * A position in the uploaded text version of a module.
+   * 
+ * + * Protobuf type {@code google.cloud.securitycentermanagement.v1.ValidateEventThreatDetectionCustomModuleResponse.Position} + */ + public static final class Position extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:google.cloud.securitycentermanagement.v1.ValidateEventThreatDetectionCustomModuleResponse.Position) + PositionOrBuilder { + private static final long serialVersionUID = 0L; + // Use Position.newBuilder() to construct. + private Position(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private Position() { + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new Position(); + } + + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.securitycentermanagement.v1.SecurityCenterManagementProto.internal_static_google_cloud_securitycentermanagement_v1_ValidateEventThreatDetectionCustomModuleResponse_Position_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.securitycentermanagement.v1.SecurityCenterManagementProto.internal_static_google_cloud_securitycentermanagement_v1_ValidateEventThreatDetectionCustomModuleResponse_Position_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.securitycentermanagement.v1.ValidateEventThreatDetectionCustomModuleResponse.Position.class, com.google.cloud.securitycentermanagement.v1.ValidateEventThreatDetectionCustomModuleResponse.Position.Builder.class); + } + + public static final int LINE_NUMBER_FIELD_NUMBER = 1; + private int lineNumber_ = 0; + /** + *
+     * The line position in the text
+     * 
+ * + * int32 line_number = 1; + * @return The lineNumber. + */ + @java.lang.Override + public int getLineNumber() { + return lineNumber_; + } + + public static final int COLUMN_NUMBER_FIELD_NUMBER = 2; + private int columnNumber_ = 0; + /** + *
+     * The column position in the line
+     * 
+ * + * int32 column_number = 2; + * @return The columnNumber. + */ + @java.lang.Override + public int getColumnNumber() { + return columnNumber_; + } + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (lineNumber_ != 0) { + output.writeInt32(1, lineNumber_); + } + if (columnNumber_ != 0) { + output.writeInt32(2, columnNumber_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (lineNumber_ != 0) { + size += com.google.protobuf.CodedOutputStream + .computeInt32Size(1, lineNumber_); + } + if (columnNumber_ != 0) { + size += com.google.protobuf.CodedOutputStream + .computeInt32Size(2, columnNumber_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.securitycentermanagement.v1.ValidateEventThreatDetectionCustomModuleResponse.Position)) { + return super.equals(obj); + } + com.google.cloud.securitycentermanagement.v1.ValidateEventThreatDetectionCustomModuleResponse.Position other = (com.google.cloud.securitycentermanagement.v1.ValidateEventThreatDetectionCustomModuleResponse.Position) obj; + + if (getLineNumber() + != other.getLineNumber()) return false; + if (getColumnNumber() + != other.getColumnNumber()) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + LINE_NUMBER_FIELD_NUMBER; + hash = (53 * hash) + getLineNumber(); + hash = (37 * hash) + COLUMN_NUMBER_FIELD_NUMBER; + hash = (53 * hash) + getColumnNumber(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.securitycentermanagement.v1.ValidateEventThreatDetectionCustomModuleResponse.Position parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.cloud.securitycentermanagement.v1.ValidateEventThreatDetectionCustomModuleResponse.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.securitycentermanagement.v1.ValidateEventThreatDetectionCustomModuleResponse.Position parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.cloud.securitycentermanagement.v1.ValidateEventThreatDetectionCustomModuleResponse.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.securitycentermanagement.v1.ValidateEventThreatDetectionCustomModuleResponse.Position parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.cloud.securitycentermanagement.v1.ValidateEventThreatDetectionCustomModuleResponse.Position parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.cloud.securitycentermanagement.v1.ValidateEventThreatDetectionCustomModuleResponse.Position parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.google.cloud.securitycentermanagement.v1.ValidateEventThreatDetectionCustomModuleResponse.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.securitycentermanagement.v1.ValidateEventThreatDetectionCustomModuleResponse.Position parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.securitycentermanagement.v1.ValidateEventThreatDetectionCustomModuleResponse.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.securitycentermanagement.v1.ValidateEventThreatDetectionCustomModuleResponse.Position parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.google.cloud.securitycentermanagement.v1.ValidateEventThreatDetectionCustomModuleResponse.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 static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(com.google.cloud.securitycentermanagement.v1.ValidateEventThreatDetectionCustomModuleResponse.Position prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + *
+     * A position in the uploaded text version of a module.
+     * 
+ * + * Protobuf type {@code google.cloud.securitycentermanagement.v1.ValidateEventThreatDetectionCustomModuleResponse.Position} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:google.cloud.securitycentermanagement.v1.ValidateEventThreatDetectionCustomModuleResponse.Position) + com.google.cloud.securitycentermanagement.v1.ValidateEventThreatDetectionCustomModuleResponse.PositionOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.securitycentermanagement.v1.SecurityCenterManagementProto.internal_static_google_cloud_securitycentermanagement_v1_ValidateEventThreatDetectionCustomModuleResponse_Position_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.securitycentermanagement.v1.SecurityCenterManagementProto.internal_static_google_cloud_securitycentermanagement_v1_ValidateEventThreatDetectionCustomModuleResponse_Position_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.securitycentermanagement.v1.ValidateEventThreatDetectionCustomModuleResponse.Position.class, com.google.cloud.securitycentermanagement.v1.ValidateEventThreatDetectionCustomModuleResponse.Position.Builder.class); + } + + // Construct using com.google.cloud.securitycentermanagement.v1.ValidateEventThreatDetectionCustomModuleResponse.Position.newBuilder() + private Builder() { + + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + lineNumber_ = 0; + columnNumber_ = 0; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.securitycentermanagement.v1.SecurityCenterManagementProto.internal_static_google_cloud_securitycentermanagement_v1_ValidateEventThreatDetectionCustomModuleResponse_Position_descriptor; + } + + @java.lang.Override + public com.google.cloud.securitycentermanagement.v1.ValidateEventThreatDetectionCustomModuleResponse.Position getDefaultInstanceForType() { + return com.google.cloud.securitycentermanagement.v1.ValidateEventThreatDetectionCustomModuleResponse.Position.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.securitycentermanagement.v1.ValidateEventThreatDetectionCustomModuleResponse.Position build() { + com.google.cloud.securitycentermanagement.v1.ValidateEventThreatDetectionCustomModuleResponse.Position result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.securitycentermanagement.v1.ValidateEventThreatDetectionCustomModuleResponse.Position buildPartial() { + com.google.cloud.securitycentermanagement.v1.ValidateEventThreatDetectionCustomModuleResponse.Position result = new com.google.cloud.securitycentermanagement.v1.ValidateEventThreatDetectionCustomModuleResponse.Position(this); + if (bitField0_ != 0) { buildPartial0(result); } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.cloud.securitycentermanagement.v1.ValidateEventThreatDetectionCustomModuleResponse.Position result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.lineNumber_ = lineNumber_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.columnNumber_ = columnNumber_; + } + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.securitycentermanagement.v1.ValidateEventThreatDetectionCustomModuleResponse.Position) { + return mergeFrom((com.google.cloud.securitycentermanagement.v1.ValidateEventThreatDetectionCustomModuleResponse.Position)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.securitycentermanagement.v1.ValidateEventThreatDetectionCustomModuleResponse.Position other) { + if (other == com.google.cloud.securitycentermanagement.v1.ValidateEventThreatDetectionCustomModuleResponse.Position.getDefaultInstance()) return this; + if (other.getLineNumber() != 0) { + setLineNumber(other.getLineNumber()); + } + if (other.getColumnNumber() != 0) { + setColumnNumber(other.getColumnNumber()); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 8: { + lineNumber_ = input.readInt32(); + bitField0_ |= 0x00000001; + break; + } // case 8 + case 16: { + columnNumber_ = 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) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + private int bitField0_; + + private int lineNumber_ ; + /** + *
+       * The line position in the text
+       * 
+ * + * int32 line_number = 1; + * @return The lineNumber. + */ + @java.lang.Override + public int getLineNumber() { + return lineNumber_; + } + /** + *
+       * The line position in the text
+       * 
+ * + * int32 line_number = 1; + * @param value The lineNumber to set. + * @return This builder for chaining. + */ + public Builder setLineNumber(int value) { + + lineNumber_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + *
+       * The line position in the text
+       * 
+ * + * int32 line_number = 1; + * @return This builder for chaining. + */ + public Builder clearLineNumber() { + bitField0_ = (bitField0_ & ~0x00000001); + lineNumber_ = 0; + onChanged(); + return this; + } + + private int columnNumber_ ; + /** + *
+       * The column position in the line
+       * 
+ * + * int32 column_number = 2; + * @return The columnNumber. + */ + @java.lang.Override + public int getColumnNumber() { + return columnNumber_; + } + /** + *
+       * The column position in the line
+       * 
+ * + * int32 column_number = 2; + * @param value The columnNumber to set. + * @return This builder for chaining. + */ + public Builder setColumnNumber(int value) { + + columnNumber_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + *
+       * The column position in the line
+       * 
+ * + * int32 column_number = 2; + * @return This builder for chaining. + */ + public Builder clearColumnNumber() { + bitField0_ = (bitField0_ & ~0x00000002); + columnNumber_ = 0; + onChanged(); + return this; + } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:google.cloud.securitycentermanagement.v1.ValidateEventThreatDetectionCustomModuleResponse.Position) + } + + // @@protoc_insertion_point(class_scope:google.cloud.securitycentermanagement.v1.ValidateEventThreatDetectionCustomModuleResponse.Position) + private static final com.google.cloud.securitycentermanagement.v1.ValidateEventThreatDetectionCustomModuleResponse.Position DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new com.google.cloud.securitycentermanagement.v1.ValidateEventThreatDetectionCustomModuleResponse.Position(); + } + + public static com.google.cloud.securitycentermanagement.v1.ValidateEventThreatDetectionCustomModuleResponse.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(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.securitycentermanagement.v1.ValidateEventThreatDetectionCustomModuleResponse.Position getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public static final int ERRORS_FIELD_NUMBER = 2; + @SuppressWarnings("serial") + private java.util.List errors_; + /** + *
+   * A list of errors returned by the validator. If the list is empty, there
+   * were no errors.
+   * 
+ * + * repeated .google.cloud.securitycentermanagement.v1.ValidateEventThreatDetectionCustomModuleResponse.CustomModuleValidationError errors = 2; + */ + @java.lang.Override + public java.util.List getErrorsList() { + return errors_; + } + /** + *
+   * A list of errors returned by the validator. If the list is empty, there
+   * were no errors.
+   * 
+ * + * repeated .google.cloud.securitycentermanagement.v1.ValidateEventThreatDetectionCustomModuleResponse.CustomModuleValidationError errors = 2; + */ + @java.lang.Override + public java.util.List + getErrorsOrBuilderList() { + return errors_; + } + /** + *
+   * A list of errors returned by the validator. If the list is empty, there
+   * were no errors.
+   * 
+ * + * repeated .google.cloud.securitycentermanagement.v1.ValidateEventThreatDetectionCustomModuleResponse.CustomModuleValidationError errors = 2; + */ + @java.lang.Override + public int getErrorsCount() { + return errors_.size(); + } + /** + *
+   * A list of errors returned by the validator. If the list is empty, there
+   * were no errors.
+   * 
+ * + * repeated .google.cloud.securitycentermanagement.v1.ValidateEventThreatDetectionCustomModuleResponse.CustomModuleValidationError errors = 2; + */ + @java.lang.Override + public com.google.cloud.securitycentermanagement.v1.ValidateEventThreatDetectionCustomModuleResponse.CustomModuleValidationError getErrors(int index) { + return errors_.get(index); + } + /** + *
+   * A list of errors returned by the validator. If the list is empty, there
+   * were no errors.
+   * 
+ * + * repeated .google.cloud.securitycentermanagement.v1.ValidateEventThreatDetectionCustomModuleResponse.CustomModuleValidationError errors = 2; + */ + @java.lang.Override + public com.google.cloud.securitycentermanagement.v1.ValidateEventThreatDetectionCustomModuleResponse.CustomModuleValidationErrorOrBuilder getErrorsOrBuilder( + int index) { + return errors_.get(index); + } + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + for (int i = 0; i < errors_.size(); i++) { + output.writeMessage(2, errors_.get(i)); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + for (int i = 0; i < errors_.size(); i++) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(2, errors_.get(i)); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.securitycentermanagement.v1.ValidateEventThreatDetectionCustomModuleResponse)) { + return super.equals(obj); + } + com.google.cloud.securitycentermanagement.v1.ValidateEventThreatDetectionCustomModuleResponse other = (com.google.cloud.securitycentermanagement.v1.ValidateEventThreatDetectionCustomModuleResponse) obj; + + if (!getErrorsList() + .equals(other.getErrorsList())) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (getErrorsCount() > 0) { + hash = (37 * hash) + ERRORS_FIELD_NUMBER; + hash = (53 * hash) + getErrorsList().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.securitycentermanagement.v1.ValidateEventThreatDetectionCustomModuleResponse parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.cloud.securitycentermanagement.v1.ValidateEventThreatDetectionCustomModuleResponse 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.securitycentermanagement.v1.ValidateEventThreatDetectionCustomModuleResponse parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.cloud.securitycentermanagement.v1.ValidateEventThreatDetectionCustomModuleResponse parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.cloud.securitycentermanagement.v1.ValidateEventThreatDetectionCustomModuleResponse parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.cloud.securitycentermanagement.v1.ValidateEventThreatDetectionCustomModuleResponse parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.cloud.securitycentermanagement.v1.ValidateEventThreatDetectionCustomModuleResponse parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.google.cloud.securitycentermanagement.v1.ValidateEventThreatDetectionCustomModuleResponse 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.securitycentermanagement.v1.ValidateEventThreatDetectionCustomModuleResponse parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.securitycentermanagement.v1.ValidateEventThreatDetectionCustomModuleResponse parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static com.google.cloud.securitycentermanagement.v1.ValidateEventThreatDetectionCustomModuleResponse parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.google.cloud.securitycentermanagement.v1.ValidateEventThreatDetectionCustomModuleResponse 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.securitycentermanagement.v1.ValidateEventThreatDetectionCustomModuleResponse prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + *
+   * Response to validating an Event Threat Detection custom module.
+   * 
+ * + * Protobuf type {@code google.cloud.securitycentermanagement.v1.ValidateEventThreatDetectionCustomModuleResponse} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:google.cloud.securitycentermanagement.v1.ValidateEventThreatDetectionCustomModuleResponse) + com.google.cloud.securitycentermanagement.v1.ValidateEventThreatDetectionCustomModuleResponseOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.securitycentermanagement.v1.SecurityCenterManagementProto.internal_static_google_cloud_securitycentermanagement_v1_ValidateEventThreatDetectionCustomModuleResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.securitycentermanagement.v1.SecurityCenterManagementProto.internal_static_google_cloud_securitycentermanagement_v1_ValidateEventThreatDetectionCustomModuleResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.securitycentermanagement.v1.ValidateEventThreatDetectionCustomModuleResponse.class, com.google.cloud.securitycentermanagement.v1.ValidateEventThreatDetectionCustomModuleResponse.Builder.class); + } + + // Construct using com.google.cloud.securitycentermanagement.v1.ValidateEventThreatDetectionCustomModuleResponse.newBuilder() + private Builder() { + + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + if (errorsBuilder_ == null) { + errors_ = java.util.Collections.emptyList(); + } else { + errors_ = null; + errorsBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000001); + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.securitycentermanagement.v1.SecurityCenterManagementProto.internal_static_google_cloud_securitycentermanagement_v1_ValidateEventThreatDetectionCustomModuleResponse_descriptor; + } + + @java.lang.Override + public com.google.cloud.securitycentermanagement.v1.ValidateEventThreatDetectionCustomModuleResponse getDefaultInstanceForType() { + return com.google.cloud.securitycentermanagement.v1.ValidateEventThreatDetectionCustomModuleResponse.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.securitycentermanagement.v1.ValidateEventThreatDetectionCustomModuleResponse build() { + com.google.cloud.securitycentermanagement.v1.ValidateEventThreatDetectionCustomModuleResponse result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.securitycentermanagement.v1.ValidateEventThreatDetectionCustomModuleResponse buildPartial() { + com.google.cloud.securitycentermanagement.v1.ValidateEventThreatDetectionCustomModuleResponse result = new com.google.cloud.securitycentermanagement.v1.ValidateEventThreatDetectionCustomModuleResponse(this); + buildPartialRepeatedFields(result); + if (bitField0_ != 0) { buildPartial0(result); } + onBuilt(); + return result; + } + + private void buildPartialRepeatedFields(com.google.cloud.securitycentermanagement.v1.ValidateEventThreatDetectionCustomModuleResponse result) { + if (errorsBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0)) { + errors_ = java.util.Collections.unmodifiableList(errors_); + bitField0_ = (bitField0_ & ~0x00000001); + } + result.errors_ = errors_; + } else { + result.errors_ = errorsBuilder_.build(); + } + } + + private void buildPartial0(com.google.cloud.securitycentermanagement.v1.ValidateEventThreatDetectionCustomModuleResponse result) { + int from_bitField0_ = bitField0_; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.securitycentermanagement.v1.ValidateEventThreatDetectionCustomModuleResponse) { + return mergeFrom((com.google.cloud.securitycentermanagement.v1.ValidateEventThreatDetectionCustomModuleResponse)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.securitycentermanagement.v1.ValidateEventThreatDetectionCustomModuleResponse other) { + if (other == com.google.cloud.securitycentermanagement.v1.ValidateEventThreatDetectionCustomModuleResponse.getDefaultInstance()) return this; + if (errorsBuilder_ == null) { + if (!other.errors_.isEmpty()) { + if (errors_.isEmpty()) { + errors_ = other.errors_; + bitField0_ = (bitField0_ & ~0x00000001); + } else { + ensureErrorsIsMutable(); + errors_.addAll(other.errors_); + } + onChanged(); + } + } else { + if (!other.errors_.isEmpty()) { + if (errorsBuilder_.isEmpty()) { + errorsBuilder_.dispose(); + errorsBuilder_ = null; + errors_ = other.errors_; + bitField0_ = (bitField0_ & ~0x00000001); + errorsBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? + getErrorsFieldBuilder() : null; + } else { + errorsBuilder_.addAllMessages(other.errors_); + } + } + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 18: { + com.google.cloud.securitycentermanagement.v1.ValidateEventThreatDetectionCustomModuleResponse.CustomModuleValidationError m = + input.readMessage( + com.google.cloud.securitycentermanagement.v1.ValidateEventThreatDetectionCustomModuleResponse.CustomModuleValidationError.parser(), + extensionRegistry); + if (errorsBuilder_ == null) { + ensureErrorsIsMutable(); + errors_.add(m); + } else { + errorsBuilder_.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) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + private int bitField0_; + + private java.util.List errors_ = + java.util.Collections.emptyList(); + private void ensureErrorsIsMutable() { + if (!((bitField0_ & 0x00000001) != 0)) { + errors_ = new java.util.ArrayList(errors_); + bitField0_ |= 0x00000001; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.securitycentermanagement.v1.ValidateEventThreatDetectionCustomModuleResponse.CustomModuleValidationError, com.google.cloud.securitycentermanagement.v1.ValidateEventThreatDetectionCustomModuleResponse.CustomModuleValidationError.Builder, com.google.cloud.securitycentermanagement.v1.ValidateEventThreatDetectionCustomModuleResponse.CustomModuleValidationErrorOrBuilder> errorsBuilder_; + + /** + *
+     * A list of errors returned by the validator. If the list is empty, there
+     * were no errors.
+     * 
+ * + * repeated .google.cloud.securitycentermanagement.v1.ValidateEventThreatDetectionCustomModuleResponse.CustomModuleValidationError errors = 2; + */ + public java.util.List getErrorsList() { + if (errorsBuilder_ == null) { + return java.util.Collections.unmodifiableList(errors_); + } else { + return errorsBuilder_.getMessageList(); + } + } + /** + *
+     * A list of errors returned by the validator. If the list is empty, there
+     * were no errors.
+     * 
+ * + * repeated .google.cloud.securitycentermanagement.v1.ValidateEventThreatDetectionCustomModuleResponse.CustomModuleValidationError errors = 2; + */ + public int getErrorsCount() { + if (errorsBuilder_ == null) { + return errors_.size(); + } else { + return errorsBuilder_.getCount(); + } + } + /** + *
+     * A list of errors returned by the validator. If the list is empty, there
+     * were no errors.
+     * 
+ * + * repeated .google.cloud.securitycentermanagement.v1.ValidateEventThreatDetectionCustomModuleResponse.CustomModuleValidationError errors = 2; + */ + public com.google.cloud.securitycentermanagement.v1.ValidateEventThreatDetectionCustomModuleResponse.CustomModuleValidationError getErrors(int index) { + if (errorsBuilder_ == null) { + return errors_.get(index); + } else { + return errorsBuilder_.getMessage(index); + } + } + /** + *
+     * A list of errors returned by the validator. If the list is empty, there
+     * were no errors.
+     * 
+ * + * repeated .google.cloud.securitycentermanagement.v1.ValidateEventThreatDetectionCustomModuleResponse.CustomModuleValidationError errors = 2; + */ + public Builder setErrors( + int index, com.google.cloud.securitycentermanagement.v1.ValidateEventThreatDetectionCustomModuleResponse.CustomModuleValidationError value) { + if (errorsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureErrorsIsMutable(); + errors_.set(index, value); + onChanged(); + } else { + errorsBuilder_.setMessage(index, value); + } + return this; + } + /** + *
+     * A list of errors returned by the validator. If the list is empty, there
+     * were no errors.
+     * 
+ * + * repeated .google.cloud.securitycentermanagement.v1.ValidateEventThreatDetectionCustomModuleResponse.CustomModuleValidationError errors = 2; + */ + public Builder setErrors( + int index, com.google.cloud.securitycentermanagement.v1.ValidateEventThreatDetectionCustomModuleResponse.CustomModuleValidationError.Builder builderForValue) { + if (errorsBuilder_ == null) { + ensureErrorsIsMutable(); + errors_.set(index, builderForValue.build()); + onChanged(); + } else { + errorsBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + /** + *
+     * A list of errors returned by the validator. If the list is empty, there
+     * were no errors.
+     * 
+ * + * repeated .google.cloud.securitycentermanagement.v1.ValidateEventThreatDetectionCustomModuleResponse.CustomModuleValidationError errors = 2; + */ + public Builder addErrors(com.google.cloud.securitycentermanagement.v1.ValidateEventThreatDetectionCustomModuleResponse.CustomModuleValidationError value) { + if (errorsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureErrorsIsMutable(); + errors_.add(value); + onChanged(); + } else { + errorsBuilder_.addMessage(value); + } + return this; + } + /** + *
+     * A list of errors returned by the validator. If the list is empty, there
+     * were no errors.
+     * 
+ * + * repeated .google.cloud.securitycentermanagement.v1.ValidateEventThreatDetectionCustomModuleResponse.CustomModuleValidationError errors = 2; + */ + public Builder addErrors( + int index, com.google.cloud.securitycentermanagement.v1.ValidateEventThreatDetectionCustomModuleResponse.CustomModuleValidationError value) { + if (errorsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureErrorsIsMutable(); + errors_.add(index, value); + onChanged(); + } else { + errorsBuilder_.addMessage(index, value); + } + return this; + } + /** + *
+     * A list of errors returned by the validator. If the list is empty, there
+     * were no errors.
+     * 
+ * + * repeated .google.cloud.securitycentermanagement.v1.ValidateEventThreatDetectionCustomModuleResponse.CustomModuleValidationError errors = 2; + */ + public Builder addErrors( + com.google.cloud.securitycentermanagement.v1.ValidateEventThreatDetectionCustomModuleResponse.CustomModuleValidationError.Builder builderForValue) { + if (errorsBuilder_ == null) { + ensureErrorsIsMutable(); + errors_.add(builderForValue.build()); + onChanged(); + } else { + errorsBuilder_.addMessage(builderForValue.build()); + } + return this; + } + /** + *
+     * A list of errors returned by the validator. If the list is empty, there
+     * were no errors.
+     * 
+ * + * repeated .google.cloud.securitycentermanagement.v1.ValidateEventThreatDetectionCustomModuleResponse.CustomModuleValidationError errors = 2; + */ + public Builder addErrors( + int index, com.google.cloud.securitycentermanagement.v1.ValidateEventThreatDetectionCustomModuleResponse.CustomModuleValidationError.Builder builderForValue) { + if (errorsBuilder_ == null) { + ensureErrorsIsMutable(); + errors_.add(index, builderForValue.build()); + onChanged(); + } else { + errorsBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + /** + *
+     * A list of errors returned by the validator. If the list is empty, there
+     * were no errors.
+     * 
+ * + * repeated .google.cloud.securitycentermanagement.v1.ValidateEventThreatDetectionCustomModuleResponse.CustomModuleValidationError errors = 2; + */ + public Builder addAllErrors( + java.lang.Iterable values) { + if (errorsBuilder_ == null) { + ensureErrorsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, errors_); + onChanged(); + } else { + errorsBuilder_.addAllMessages(values); + } + return this; + } + /** + *
+     * A list of errors returned by the validator. If the list is empty, there
+     * were no errors.
+     * 
+ * + * repeated .google.cloud.securitycentermanagement.v1.ValidateEventThreatDetectionCustomModuleResponse.CustomModuleValidationError errors = 2; + */ + public Builder clearErrors() { + if (errorsBuilder_ == null) { + errors_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + } else { + errorsBuilder_.clear(); + } + return this; + } + /** + *
+     * A list of errors returned by the validator. If the list is empty, there
+     * were no errors.
+     * 
+ * + * repeated .google.cloud.securitycentermanagement.v1.ValidateEventThreatDetectionCustomModuleResponse.CustomModuleValidationError errors = 2; + */ + public Builder removeErrors(int index) { + if (errorsBuilder_ == null) { + ensureErrorsIsMutable(); + errors_.remove(index); + onChanged(); + } else { + errorsBuilder_.remove(index); + } + return this; + } + /** + *
+     * A list of errors returned by the validator. If the list is empty, there
+     * were no errors.
+     * 
+ * + * repeated .google.cloud.securitycentermanagement.v1.ValidateEventThreatDetectionCustomModuleResponse.CustomModuleValidationError errors = 2; + */ + public com.google.cloud.securitycentermanagement.v1.ValidateEventThreatDetectionCustomModuleResponse.CustomModuleValidationError.Builder getErrorsBuilder( + int index) { + return getErrorsFieldBuilder().getBuilder(index); + } + /** + *
+     * A list of errors returned by the validator. If the list is empty, there
+     * were no errors.
+     * 
+ * + * repeated .google.cloud.securitycentermanagement.v1.ValidateEventThreatDetectionCustomModuleResponse.CustomModuleValidationError errors = 2; + */ + public com.google.cloud.securitycentermanagement.v1.ValidateEventThreatDetectionCustomModuleResponse.CustomModuleValidationErrorOrBuilder getErrorsOrBuilder( + int index) { + if (errorsBuilder_ == null) { + return errors_.get(index); } else { + return errorsBuilder_.getMessageOrBuilder(index); + } + } + /** + *
+     * A list of errors returned by the validator. If the list is empty, there
+     * were no errors.
+     * 
+ * + * repeated .google.cloud.securitycentermanagement.v1.ValidateEventThreatDetectionCustomModuleResponse.CustomModuleValidationError errors = 2; + */ + public java.util.List + getErrorsOrBuilderList() { + if (errorsBuilder_ != null) { + return errorsBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(errors_); + } + } + /** + *
+     * A list of errors returned by the validator. If the list is empty, there
+     * were no errors.
+     * 
+ * + * repeated .google.cloud.securitycentermanagement.v1.ValidateEventThreatDetectionCustomModuleResponse.CustomModuleValidationError errors = 2; + */ + public com.google.cloud.securitycentermanagement.v1.ValidateEventThreatDetectionCustomModuleResponse.CustomModuleValidationError.Builder addErrorsBuilder() { + return getErrorsFieldBuilder().addBuilder( + com.google.cloud.securitycentermanagement.v1.ValidateEventThreatDetectionCustomModuleResponse.CustomModuleValidationError.getDefaultInstance()); + } + /** + *
+     * A list of errors returned by the validator. If the list is empty, there
+     * were no errors.
+     * 
+ * + * repeated .google.cloud.securitycentermanagement.v1.ValidateEventThreatDetectionCustomModuleResponse.CustomModuleValidationError errors = 2; + */ + public com.google.cloud.securitycentermanagement.v1.ValidateEventThreatDetectionCustomModuleResponse.CustomModuleValidationError.Builder addErrorsBuilder( + int index) { + return getErrorsFieldBuilder().addBuilder( + index, com.google.cloud.securitycentermanagement.v1.ValidateEventThreatDetectionCustomModuleResponse.CustomModuleValidationError.getDefaultInstance()); + } + /** + *
+     * A list of errors returned by the validator. If the list is empty, there
+     * were no errors.
+     * 
+ * + * repeated .google.cloud.securitycentermanagement.v1.ValidateEventThreatDetectionCustomModuleResponse.CustomModuleValidationError errors = 2; + */ + public java.util.List + getErrorsBuilderList() { + return getErrorsFieldBuilder().getBuilderList(); + } + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.securitycentermanagement.v1.ValidateEventThreatDetectionCustomModuleResponse.CustomModuleValidationError, com.google.cloud.securitycentermanagement.v1.ValidateEventThreatDetectionCustomModuleResponse.CustomModuleValidationError.Builder, com.google.cloud.securitycentermanagement.v1.ValidateEventThreatDetectionCustomModuleResponse.CustomModuleValidationErrorOrBuilder> + getErrorsFieldBuilder() { + if (errorsBuilder_ == null) { + errorsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.securitycentermanagement.v1.ValidateEventThreatDetectionCustomModuleResponse.CustomModuleValidationError, com.google.cloud.securitycentermanagement.v1.ValidateEventThreatDetectionCustomModuleResponse.CustomModuleValidationError.Builder, com.google.cloud.securitycentermanagement.v1.ValidateEventThreatDetectionCustomModuleResponse.CustomModuleValidationErrorOrBuilder>( + errors_, + ((bitField0_ & 0x00000001) != 0), + getParentForChildren(), + isClean()); + errors_ = null; + } + return errorsBuilder_; + } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:google.cloud.securitycentermanagement.v1.ValidateEventThreatDetectionCustomModuleResponse) + } + + // @@protoc_insertion_point(class_scope:google.cloud.securitycentermanagement.v1.ValidateEventThreatDetectionCustomModuleResponse) + private static final com.google.cloud.securitycentermanagement.v1.ValidateEventThreatDetectionCustomModuleResponse DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new com.google.cloud.securitycentermanagement.v1.ValidateEventThreatDetectionCustomModuleResponse(); + } + + public static com.google.cloud.securitycentermanagement.v1.ValidateEventThreatDetectionCustomModuleResponse getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ValidateEventThreatDetectionCustomModuleResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.securitycentermanagement.v1.ValidateEventThreatDetectionCustomModuleResponse getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + +} + diff --git a/owl-bot-staging/java-securitycentermanagement/v1/proto-google-cloud-securitycentermanagement-v1/src/main/java/com/google/cloud/securitycentermanagement/v1/ValidateEventThreatDetectionCustomModuleResponseOrBuilder.java b/owl-bot-staging/java-securitycentermanagement/v1/proto-google-cloud-securitycentermanagement-v1/src/main/java/com/google/cloud/securitycentermanagement/v1/ValidateEventThreatDetectionCustomModuleResponseOrBuilder.java new file mode 100644 index 000000000000..81b9370f0524 --- /dev/null +++ b/owl-bot-staging/java-securitycentermanagement/v1/proto-google-cloud-securitycentermanagement-v1/src/main/java/com/google/cloud/securitycentermanagement/v1/ValidateEventThreatDetectionCustomModuleResponseOrBuilder.java @@ -0,0 +1,58 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/securitycentermanagement/v1/security_center_management.proto + +package com.google.cloud.securitycentermanagement.v1; + +public interface ValidateEventThreatDetectionCustomModuleResponseOrBuilder extends + // @@protoc_insertion_point(interface_extends:google.cloud.securitycentermanagement.v1.ValidateEventThreatDetectionCustomModuleResponse) + com.google.protobuf.MessageOrBuilder { + + /** + *
+   * A list of errors returned by the validator. If the list is empty, there
+   * were no errors.
+   * 
+ * + * repeated .google.cloud.securitycentermanagement.v1.ValidateEventThreatDetectionCustomModuleResponse.CustomModuleValidationError errors = 2; + */ + java.util.List + getErrorsList(); + /** + *
+   * A list of errors returned by the validator. If the list is empty, there
+   * were no errors.
+   * 
+ * + * repeated .google.cloud.securitycentermanagement.v1.ValidateEventThreatDetectionCustomModuleResponse.CustomModuleValidationError errors = 2; + */ + com.google.cloud.securitycentermanagement.v1.ValidateEventThreatDetectionCustomModuleResponse.CustomModuleValidationError getErrors(int index); + /** + *
+   * A list of errors returned by the validator. If the list is empty, there
+   * were no errors.
+   * 
+ * + * repeated .google.cloud.securitycentermanagement.v1.ValidateEventThreatDetectionCustomModuleResponse.CustomModuleValidationError errors = 2; + */ + int getErrorsCount(); + /** + *
+   * A list of errors returned by the validator. If the list is empty, there
+   * were no errors.
+   * 
+ * + * repeated .google.cloud.securitycentermanagement.v1.ValidateEventThreatDetectionCustomModuleResponse.CustomModuleValidationError errors = 2; + */ + java.util.List + getErrorsOrBuilderList(); + /** + *
+   * A list of errors returned by the validator. If the list is empty, there
+   * were no errors.
+   * 
+ * + * repeated .google.cloud.securitycentermanagement.v1.ValidateEventThreatDetectionCustomModuleResponse.CustomModuleValidationError errors = 2; + */ + com.google.cloud.securitycentermanagement.v1.ValidateEventThreatDetectionCustomModuleResponse.CustomModuleValidationErrorOrBuilder getErrorsOrBuilder( + int index); +} diff --git a/java-securitycentermanagement/proto-google-cloud-securitycentermanagement-v1/src/main/proto/google/cloud/securitycentermanagement/v1/security_center_management.proto b/owl-bot-staging/java-securitycentermanagement/v1/proto-google-cloud-securitycentermanagement-v1/src/main/proto/google/cloud/securitycentermanagement/v1/security_center_management.proto similarity index 99% rename from java-securitycentermanagement/proto-google-cloud-securitycentermanagement-v1/src/main/proto/google/cloud/securitycentermanagement/v1/security_center_management.proto rename to owl-bot-staging/java-securitycentermanagement/v1/proto-google-cloud-securitycentermanagement-v1/src/main/proto/google/cloud/securitycentermanagement/v1/security_center_management.proto index 2472ea8f17ed..2f401c2b7874 100644 --- a/java-securitycentermanagement/proto-google-cloud-securitycentermanagement-v1/src/main/proto/google/cloud/securitycentermanagement/v1/security_center_management.proto +++ b/owl-bot-staging/java-securitycentermanagement/v1/proto-google-cloud-securitycentermanagement-v1/src/main/proto/google/cloud/securitycentermanagement/v1/security_center_management.proto @@ -765,11 +765,10 @@ message CreateSecurityHealthAnalyticsCustomModuleRequest { // Message for updating a SecurityHealthAnalyticsCustomModule message UpdateSecurityHealthAnalyticsCustomModuleRequest { - // Required. Field mask is used to specify the fields to be overwritten in the - // SecurityHealthAnalyticsCustomModule resource by the update. - // The fields specified in the update_mask are relative to the resource, not - // the full request. A field will be overwritten if it is in the mask. If the - // user does not provide a mask then all fields will be overwritten. + // Required. The list of fields to be updated. The only fields that can be + // updated are `enablement_state` and `custom_config`. If empty or set to the + // wildcard value `*`, both `enablement_state` and `custom_config` are + // updated. google.protobuf.FieldMask update_mask = 1 [(google.api.field_behavior) = REQUIRED]; diff --git a/java-securitycentermanagement/samples/snippets/generated/com/google/cloud/securitycentermanagement/v1/securitycentermanagement/create/SyncCreateSetCredentialsProvider.java b/owl-bot-staging/java-securitycentermanagement/v1/samples/snippets/generated/com/google/cloud/securitycentermanagement/v1/securitycentermanagement/create/SyncCreateSetCredentialsProvider.java similarity index 100% rename from java-securitycentermanagement/samples/snippets/generated/com/google/cloud/securitycentermanagement/v1/securitycentermanagement/create/SyncCreateSetCredentialsProvider.java rename to owl-bot-staging/java-securitycentermanagement/v1/samples/snippets/generated/com/google/cloud/securitycentermanagement/v1/securitycentermanagement/create/SyncCreateSetCredentialsProvider.java diff --git a/java-securitycentermanagement/samples/snippets/generated/com/google/cloud/securitycentermanagement/v1/securitycentermanagement/create/SyncCreateSetCredentialsProvider1.java b/owl-bot-staging/java-securitycentermanagement/v1/samples/snippets/generated/com/google/cloud/securitycentermanagement/v1/securitycentermanagement/create/SyncCreateSetCredentialsProvider1.java similarity index 100% rename from java-securitycentermanagement/samples/snippets/generated/com/google/cloud/securitycentermanagement/v1/securitycentermanagement/create/SyncCreateSetCredentialsProvider1.java rename to owl-bot-staging/java-securitycentermanagement/v1/samples/snippets/generated/com/google/cloud/securitycentermanagement/v1/securitycentermanagement/create/SyncCreateSetCredentialsProvider1.java diff --git a/java-securitycentermanagement/samples/snippets/generated/com/google/cloud/securitycentermanagement/v1/securitycentermanagement/create/SyncCreateSetEndpoint.java b/owl-bot-staging/java-securitycentermanagement/v1/samples/snippets/generated/com/google/cloud/securitycentermanagement/v1/securitycentermanagement/create/SyncCreateSetEndpoint.java similarity index 100% rename from java-securitycentermanagement/samples/snippets/generated/com/google/cloud/securitycentermanagement/v1/securitycentermanagement/create/SyncCreateSetEndpoint.java rename to owl-bot-staging/java-securitycentermanagement/v1/samples/snippets/generated/com/google/cloud/securitycentermanagement/v1/securitycentermanagement/create/SyncCreateSetEndpoint.java diff --git a/java-securitycentermanagement/samples/snippets/generated/com/google/cloud/securitycentermanagement/v1/securitycentermanagement/createeventthreatdetectioncustommodule/AsyncCreateEventThreatDetectionCustomModule.java b/owl-bot-staging/java-securitycentermanagement/v1/samples/snippets/generated/com/google/cloud/securitycentermanagement/v1/securitycentermanagement/createeventthreatdetectioncustommodule/AsyncCreateEventThreatDetectionCustomModule.java similarity index 100% rename from java-securitycentermanagement/samples/snippets/generated/com/google/cloud/securitycentermanagement/v1/securitycentermanagement/createeventthreatdetectioncustommodule/AsyncCreateEventThreatDetectionCustomModule.java rename to owl-bot-staging/java-securitycentermanagement/v1/samples/snippets/generated/com/google/cloud/securitycentermanagement/v1/securitycentermanagement/createeventthreatdetectioncustommodule/AsyncCreateEventThreatDetectionCustomModule.java diff --git a/java-securitycentermanagement/samples/snippets/generated/com/google/cloud/securitycentermanagement/v1/securitycentermanagement/createeventthreatdetectioncustommodule/SyncCreateEventThreatDetectionCustomModule.java b/owl-bot-staging/java-securitycentermanagement/v1/samples/snippets/generated/com/google/cloud/securitycentermanagement/v1/securitycentermanagement/createeventthreatdetectioncustommodule/SyncCreateEventThreatDetectionCustomModule.java similarity index 100% rename from java-securitycentermanagement/samples/snippets/generated/com/google/cloud/securitycentermanagement/v1/securitycentermanagement/createeventthreatdetectioncustommodule/SyncCreateEventThreatDetectionCustomModule.java rename to owl-bot-staging/java-securitycentermanagement/v1/samples/snippets/generated/com/google/cloud/securitycentermanagement/v1/securitycentermanagement/createeventthreatdetectioncustommodule/SyncCreateEventThreatDetectionCustomModule.java diff --git a/java-securitycentermanagement/samples/snippets/generated/com/google/cloud/securitycentermanagement/v1/securitycentermanagement/createeventthreatdetectioncustommodule/SyncCreateEventThreatDetectionCustomModuleFolderlocationnameEventthreatdetectioncustommodule.java b/owl-bot-staging/java-securitycentermanagement/v1/samples/snippets/generated/com/google/cloud/securitycentermanagement/v1/securitycentermanagement/createeventthreatdetectioncustommodule/SyncCreateEventThreatDetectionCustomModuleFolderlocationnameEventthreatdetectioncustommodule.java similarity index 100% rename from java-securitycentermanagement/samples/snippets/generated/com/google/cloud/securitycentermanagement/v1/securitycentermanagement/createeventthreatdetectioncustommodule/SyncCreateEventThreatDetectionCustomModuleFolderlocationnameEventthreatdetectioncustommodule.java rename to owl-bot-staging/java-securitycentermanagement/v1/samples/snippets/generated/com/google/cloud/securitycentermanagement/v1/securitycentermanagement/createeventthreatdetectioncustommodule/SyncCreateEventThreatDetectionCustomModuleFolderlocationnameEventthreatdetectioncustommodule.java diff --git a/java-securitycentermanagement/samples/snippets/generated/com/google/cloud/securitycentermanagement/v1/securitycentermanagement/createeventthreatdetectioncustommodule/SyncCreateEventThreatDetectionCustomModuleLocationnameEventthreatdetectioncustommodule.java b/owl-bot-staging/java-securitycentermanagement/v1/samples/snippets/generated/com/google/cloud/securitycentermanagement/v1/securitycentermanagement/createeventthreatdetectioncustommodule/SyncCreateEventThreatDetectionCustomModuleLocationnameEventthreatdetectioncustommodule.java similarity index 100% rename from java-securitycentermanagement/samples/snippets/generated/com/google/cloud/securitycentermanagement/v1/securitycentermanagement/createeventthreatdetectioncustommodule/SyncCreateEventThreatDetectionCustomModuleLocationnameEventthreatdetectioncustommodule.java rename to owl-bot-staging/java-securitycentermanagement/v1/samples/snippets/generated/com/google/cloud/securitycentermanagement/v1/securitycentermanagement/createeventthreatdetectioncustommodule/SyncCreateEventThreatDetectionCustomModuleLocationnameEventthreatdetectioncustommodule.java diff --git a/java-securitycentermanagement/samples/snippets/generated/com/google/cloud/securitycentermanagement/v1/securitycentermanagement/createeventthreatdetectioncustommodule/SyncCreateEventThreatDetectionCustomModuleOrganizationlocationnameEventthreatdetectioncustommodule.java b/owl-bot-staging/java-securitycentermanagement/v1/samples/snippets/generated/com/google/cloud/securitycentermanagement/v1/securitycentermanagement/createeventthreatdetectioncustommodule/SyncCreateEventThreatDetectionCustomModuleOrganizationlocationnameEventthreatdetectioncustommodule.java similarity index 100% rename from java-securitycentermanagement/samples/snippets/generated/com/google/cloud/securitycentermanagement/v1/securitycentermanagement/createeventthreatdetectioncustommodule/SyncCreateEventThreatDetectionCustomModuleOrganizationlocationnameEventthreatdetectioncustommodule.java rename to owl-bot-staging/java-securitycentermanagement/v1/samples/snippets/generated/com/google/cloud/securitycentermanagement/v1/securitycentermanagement/createeventthreatdetectioncustommodule/SyncCreateEventThreatDetectionCustomModuleOrganizationlocationnameEventthreatdetectioncustommodule.java diff --git a/java-securitycentermanagement/samples/snippets/generated/com/google/cloud/securitycentermanagement/v1/securitycentermanagement/createeventthreatdetectioncustommodule/SyncCreateEventThreatDetectionCustomModuleStringEventthreatdetectioncustommodule.java b/owl-bot-staging/java-securitycentermanagement/v1/samples/snippets/generated/com/google/cloud/securitycentermanagement/v1/securitycentermanagement/createeventthreatdetectioncustommodule/SyncCreateEventThreatDetectionCustomModuleStringEventthreatdetectioncustommodule.java similarity index 100% rename from java-securitycentermanagement/samples/snippets/generated/com/google/cloud/securitycentermanagement/v1/securitycentermanagement/createeventthreatdetectioncustommodule/SyncCreateEventThreatDetectionCustomModuleStringEventthreatdetectioncustommodule.java rename to owl-bot-staging/java-securitycentermanagement/v1/samples/snippets/generated/com/google/cloud/securitycentermanagement/v1/securitycentermanagement/createeventthreatdetectioncustommodule/SyncCreateEventThreatDetectionCustomModuleStringEventthreatdetectioncustommodule.java diff --git a/java-securitycentermanagement/samples/snippets/generated/com/google/cloud/securitycentermanagement/v1/securitycentermanagement/createsecurityhealthanalyticscustommodule/AsyncCreateSecurityHealthAnalyticsCustomModule.java b/owl-bot-staging/java-securitycentermanagement/v1/samples/snippets/generated/com/google/cloud/securitycentermanagement/v1/securitycentermanagement/createsecurityhealthanalyticscustommodule/AsyncCreateSecurityHealthAnalyticsCustomModule.java similarity index 100% rename from java-securitycentermanagement/samples/snippets/generated/com/google/cloud/securitycentermanagement/v1/securitycentermanagement/createsecurityhealthanalyticscustommodule/AsyncCreateSecurityHealthAnalyticsCustomModule.java rename to owl-bot-staging/java-securitycentermanagement/v1/samples/snippets/generated/com/google/cloud/securitycentermanagement/v1/securitycentermanagement/createsecurityhealthanalyticscustommodule/AsyncCreateSecurityHealthAnalyticsCustomModule.java diff --git a/java-securitycentermanagement/samples/snippets/generated/com/google/cloud/securitycentermanagement/v1/securitycentermanagement/createsecurityhealthanalyticscustommodule/SyncCreateSecurityHealthAnalyticsCustomModule.java b/owl-bot-staging/java-securitycentermanagement/v1/samples/snippets/generated/com/google/cloud/securitycentermanagement/v1/securitycentermanagement/createsecurityhealthanalyticscustommodule/SyncCreateSecurityHealthAnalyticsCustomModule.java similarity index 100% rename from java-securitycentermanagement/samples/snippets/generated/com/google/cloud/securitycentermanagement/v1/securitycentermanagement/createsecurityhealthanalyticscustommodule/SyncCreateSecurityHealthAnalyticsCustomModule.java rename to owl-bot-staging/java-securitycentermanagement/v1/samples/snippets/generated/com/google/cloud/securitycentermanagement/v1/securitycentermanagement/createsecurityhealthanalyticscustommodule/SyncCreateSecurityHealthAnalyticsCustomModule.java diff --git a/java-securitycentermanagement/samples/snippets/generated/com/google/cloud/securitycentermanagement/v1/securitycentermanagement/createsecurityhealthanalyticscustommodule/SyncCreateSecurityHealthAnalyticsCustomModuleFolderlocationnameSecurityhealthanalyticscustommodule.java b/owl-bot-staging/java-securitycentermanagement/v1/samples/snippets/generated/com/google/cloud/securitycentermanagement/v1/securitycentermanagement/createsecurityhealthanalyticscustommodule/SyncCreateSecurityHealthAnalyticsCustomModuleFolderlocationnameSecurityhealthanalyticscustommodule.java similarity index 100% rename from java-securitycentermanagement/samples/snippets/generated/com/google/cloud/securitycentermanagement/v1/securitycentermanagement/createsecurityhealthanalyticscustommodule/SyncCreateSecurityHealthAnalyticsCustomModuleFolderlocationnameSecurityhealthanalyticscustommodule.java rename to owl-bot-staging/java-securitycentermanagement/v1/samples/snippets/generated/com/google/cloud/securitycentermanagement/v1/securitycentermanagement/createsecurityhealthanalyticscustommodule/SyncCreateSecurityHealthAnalyticsCustomModuleFolderlocationnameSecurityhealthanalyticscustommodule.java diff --git a/java-securitycentermanagement/samples/snippets/generated/com/google/cloud/securitycentermanagement/v1/securitycentermanagement/createsecurityhealthanalyticscustommodule/SyncCreateSecurityHealthAnalyticsCustomModuleLocationnameSecurityhealthanalyticscustommodule.java b/owl-bot-staging/java-securitycentermanagement/v1/samples/snippets/generated/com/google/cloud/securitycentermanagement/v1/securitycentermanagement/createsecurityhealthanalyticscustommodule/SyncCreateSecurityHealthAnalyticsCustomModuleLocationnameSecurityhealthanalyticscustommodule.java similarity index 100% rename from java-securitycentermanagement/samples/snippets/generated/com/google/cloud/securitycentermanagement/v1/securitycentermanagement/createsecurityhealthanalyticscustommodule/SyncCreateSecurityHealthAnalyticsCustomModuleLocationnameSecurityhealthanalyticscustommodule.java rename to owl-bot-staging/java-securitycentermanagement/v1/samples/snippets/generated/com/google/cloud/securitycentermanagement/v1/securitycentermanagement/createsecurityhealthanalyticscustommodule/SyncCreateSecurityHealthAnalyticsCustomModuleLocationnameSecurityhealthanalyticscustommodule.java diff --git a/java-securitycentermanagement/samples/snippets/generated/com/google/cloud/securitycentermanagement/v1/securitycentermanagement/createsecurityhealthanalyticscustommodule/SyncCreateSecurityHealthAnalyticsCustomModuleOrganizationlocationnameSecurityhealthanalyticscustommodule.java b/owl-bot-staging/java-securitycentermanagement/v1/samples/snippets/generated/com/google/cloud/securitycentermanagement/v1/securitycentermanagement/createsecurityhealthanalyticscustommodule/SyncCreateSecurityHealthAnalyticsCustomModuleOrganizationlocationnameSecurityhealthanalyticscustommodule.java similarity index 100% rename from java-securitycentermanagement/samples/snippets/generated/com/google/cloud/securitycentermanagement/v1/securitycentermanagement/createsecurityhealthanalyticscustommodule/SyncCreateSecurityHealthAnalyticsCustomModuleOrganizationlocationnameSecurityhealthanalyticscustommodule.java rename to owl-bot-staging/java-securitycentermanagement/v1/samples/snippets/generated/com/google/cloud/securitycentermanagement/v1/securitycentermanagement/createsecurityhealthanalyticscustommodule/SyncCreateSecurityHealthAnalyticsCustomModuleOrganizationlocationnameSecurityhealthanalyticscustommodule.java diff --git a/java-securitycentermanagement/samples/snippets/generated/com/google/cloud/securitycentermanagement/v1/securitycentermanagement/createsecurityhealthanalyticscustommodule/SyncCreateSecurityHealthAnalyticsCustomModuleStringSecurityhealthanalyticscustommodule.java b/owl-bot-staging/java-securitycentermanagement/v1/samples/snippets/generated/com/google/cloud/securitycentermanagement/v1/securitycentermanagement/createsecurityhealthanalyticscustommodule/SyncCreateSecurityHealthAnalyticsCustomModuleStringSecurityhealthanalyticscustommodule.java similarity index 100% rename from java-securitycentermanagement/samples/snippets/generated/com/google/cloud/securitycentermanagement/v1/securitycentermanagement/createsecurityhealthanalyticscustommodule/SyncCreateSecurityHealthAnalyticsCustomModuleStringSecurityhealthanalyticscustommodule.java rename to owl-bot-staging/java-securitycentermanagement/v1/samples/snippets/generated/com/google/cloud/securitycentermanagement/v1/securitycentermanagement/createsecurityhealthanalyticscustommodule/SyncCreateSecurityHealthAnalyticsCustomModuleStringSecurityhealthanalyticscustommodule.java diff --git a/java-securitycentermanagement/samples/snippets/generated/com/google/cloud/securitycentermanagement/v1/securitycentermanagement/deleteeventthreatdetectioncustommodule/AsyncDeleteEventThreatDetectionCustomModule.java b/owl-bot-staging/java-securitycentermanagement/v1/samples/snippets/generated/com/google/cloud/securitycentermanagement/v1/securitycentermanagement/deleteeventthreatdetectioncustommodule/AsyncDeleteEventThreatDetectionCustomModule.java similarity index 100% rename from java-securitycentermanagement/samples/snippets/generated/com/google/cloud/securitycentermanagement/v1/securitycentermanagement/deleteeventthreatdetectioncustommodule/AsyncDeleteEventThreatDetectionCustomModule.java rename to owl-bot-staging/java-securitycentermanagement/v1/samples/snippets/generated/com/google/cloud/securitycentermanagement/v1/securitycentermanagement/deleteeventthreatdetectioncustommodule/AsyncDeleteEventThreatDetectionCustomModule.java diff --git a/java-securitycentermanagement/samples/snippets/generated/com/google/cloud/securitycentermanagement/v1/securitycentermanagement/deleteeventthreatdetectioncustommodule/SyncDeleteEventThreatDetectionCustomModule.java b/owl-bot-staging/java-securitycentermanagement/v1/samples/snippets/generated/com/google/cloud/securitycentermanagement/v1/securitycentermanagement/deleteeventthreatdetectioncustommodule/SyncDeleteEventThreatDetectionCustomModule.java similarity index 100% rename from java-securitycentermanagement/samples/snippets/generated/com/google/cloud/securitycentermanagement/v1/securitycentermanagement/deleteeventthreatdetectioncustommodule/SyncDeleteEventThreatDetectionCustomModule.java rename to owl-bot-staging/java-securitycentermanagement/v1/samples/snippets/generated/com/google/cloud/securitycentermanagement/v1/securitycentermanagement/deleteeventthreatdetectioncustommodule/SyncDeleteEventThreatDetectionCustomModule.java diff --git a/java-securitycentermanagement/samples/snippets/generated/com/google/cloud/securitycentermanagement/v1/securitycentermanagement/deleteeventthreatdetectioncustommodule/SyncDeleteEventThreatDetectionCustomModuleEventthreatdetectioncustommodulename.java b/owl-bot-staging/java-securitycentermanagement/v1/samples/snippets/generated/com/google/cloud/securitycentermanagement/v1/securitycentermanagement/deleteeventthreatdetectioncustommodule/SyncDeleteEventThreatDetectionCustomModuleEventthreatdetectioncustommodulename.java similarity index 100% rename from java-securitycentermanagement/samples/snippets/generated/com/google/cloud/securitycentermanagement/v1/securitycentermanagement/deleteeventthreatdetectioncustommodule/SyncDeleteEventThreatDetectionCustomModuleEventthreatdetectioncustommodulename.java rename to owl-bot-staging/java-securitycentermanagement/v1/samples/snippets/generated/com/google/cloud/securitycentermanagement/v1/securitycentermanagement/deleteeventthreatdetectioncustommodule/SyncDeleteEventThreatDetectionCustomModuleEventthreatdetectioncustommodulename.java diff --git a/java-securitycentermanagement/samples/snippets/generated/com/google/cloud/securitycentermanagement/v1/securitycentermanagement/deleteeventthreatdetectioncustommodule/SyncDeleteEventThreatDetectionCustomModuleString.java b/owl-bot-staging/java-securitycentermanagement/v1/samples/snippets/generated/com/google/cloud/securitycentermanagement/v1/securitycentermanagement/deleteeventthreatdetectioncustommodule/SyncDeleteEventThreatDetectionCustomModuleString.java similarity index 100% rename from java-securitycentermanagement/samples/snippets/generated/com/google/cloud/securitycentermanagement/v1/securitycentermanagement/deleteeventthreatdetectioncustommodule/SyncDeleteEventThreatDetectionCustomModuleString.java rename to owl-bot-staging/java-securitycentermanagement/v1/samples/snippets/generated/com/google/cloud/securitycentermanagement/v1/securitycentermanagement/deleteeventthreatdetectioncustommodule/SyncDeleteEventThreatDetectionCustomModuleString.java diff --git a/java-securitycentermanagement/samples/snippets/generated/com/google/cloud/securitycentermanagement/v1/securitycentermanagement/deletesecurityhealthanalyticscustommodule/AsyncDeleteSecurityHealthAnalyticsCustomModule.java b/owl-bot-staging/java-securitycentermanagement/v1/samples/snippets/generated/com/google/cloud/securitycentermanagement/v1/securitycentermanagement/deletesecurityhealthanalyticscustommodule/AsyncDeleteSecurityHealthAnalyticsCustomModule.java similarity index 100% rename from java-securitycentermanagement/samples/snippets/generated/com/google/cloud/securitycentermanagement/v1/securitycentermanagement/deletesecurityhealthanalyticscustommodule/AsyncDeleteSecurityHealthAnalyticsCustomModule.java rename to owl-bot-staging/java-securitycentermanagement/v1/samples/snippets/generated/com/google/cloud/securitycentermanagement/v1/securitycentermanagement/deletesecurityhealthanalyticscustommodule/AsyncDeleteSecurityHealthAnalyticsCustomModule.java diff --git a/java-securitycentermanagement/samples/snippets/generated/com/google/cloud/securitycentermanagement/v1/securitycentermanagement/deletesecurityhealthanalyticscustommodule/SyncDeleteSecurityHealthAnalyticsCustomModule.java b/owl-bot-staging/java-securitycentermanagement/v1/samples/snippets/generated/com/google/cloud/securitycentermanagement/v1/securitycentermanagement/deletesecurityhealthanalyticscustommodule/SyncDeleteSecurityHealthAnalyticsCustomModule.java similarity index 100% rename from java-securitycentermanagement/samples/snippets/generated/com/google/cloud/securitycentermanagement/v1/securitycentermanagement/deletesecurityhealthanalyticscustommodule/SyncDeleteSecurityHealthAnalyticsCustomModule.java rename to owl-bot-staging/java-securitycentermanagement/v1/samples/snippets/generated/com/google/cloud/securitycentermanagement/v1/securitycentermanagement/deletesecurityhealthanalyticscustommodule/SyncDeleteSecurityHealthAnalyticsCustomModule.java diff --git a/java-securitycentermanagement/samples/snippets/generated/com/google/cloud/securitycentermanagement/v1/securitycentermanagement/deletesecurityhealthanalyticscustommodule/SyncDeleteSecurityHealthAnalyticsCustomModuleSecurityhealthanalyticscustommodulename.java b/owl-bot-staging/java-securitycentermanagement/v1/samples/snippets/generated/com/google/cloud/securitycentermanagement/v1/securitycentermanagement/deletesecurityhealthanalyticscustommodule/SyncDeleteSecurityHealthAnalyticsCustomModuleSecurityhealthanalyticscustommodulename.java similarity index 100% rename from java-securitycentermanagement/samples/snippets/generated/com/google/cloud/securitycentermanagement/v1/securitycentermanagement/deletesecurityhealthanalyticscustommodule/SyncDeleteSecurityHealthAnalyticsCustomModuleSecurityhealthanalyticscustommodulename.java rename to owl-bot-staging/java-securitycentermanagement/v1/samples/snippets/generated/com/google/cloud/securitycentermanagement/v1/securitycentermanagement/deletesecurityhealthanalyticscustommodule/SyncDeleteSecurityHealthAnalyticsCustomModuleSecurityhealthanalyticscustommodulename.java diff --git a/java-securitycentermanagement/samples/snippets/generated/com/google/cloud/securitycentermanagement/v1/securitycentermanagement/deletesecurityhealthanalyticscustommodule/SyncDeleteSecurityHealthAnalyticsCustomModuleString.java b/owl-bot-staging/java-securitycentermanagement/v1/samples/snippets/generated/com/google/cloud/securitycentermanagement/v1/securitycentermanagement/deletesecurityhealthanalyticscustommodule/SyncDeleteSecurityHealthAnalyticsCustomModuleString.java similarity index 100% rename from java-securitycentermanagement/samples/snippets/generated/com/google/cloud/securitycentermanagement/v1/securitycentermanagement/deletesecurityhealthanalyticscustommodule/SyncDeleteSecurityHealthAnalyticsCustomModuleString.java rename to owl-bot-staging/java-securitycentermanagement/v1/samples/snippets/generated/com/google/cloud/securitycentermanagement/v1/securitycentermanagement/deletesecurityhealthanalyticscustommodule/SyncDeleteSecurityHealthAnalyticsCustomModuleString.java diff --git a/java-securitycentermanagement/samples/snippets/generated/com/google/cloud/securitycentermanagement/v1/securitycentermanagement/geteffectiveeventthreatdetectioncustommodule/AsyncGetEffectiveEventThreatDetectionCustomModule.java b/owl-bot-staging/java-securitycentermanagement/v1/samples/snippets/generated/com/google/cloud/securitycentermanagement/v1/securitycentermanagement/geteffectiveeventthreatdetectioncustommodule/AsyncGetEffectiveEventThreatDetectionCustomModule.java similarity index 100% rename from java-securitycentermanagement/samples/snippets/generated/com/google/cloud/securitycentermanagement/v1/securitycentermanagement/geteffectiveeventthreatdetectioncustommodule/AsyncGetEffectiveEventThreatDetectionCustomModule.java rename to owl-bot-staging/java-securitycentermanagement/v1/samples/snippets/generated/com/google/cloud/securitycentermanagement/v1/securitycentermanagement/geteffectiveeventthreatdetectioncustommodule/AsyncGetEffectiveEventThreatDetectionCustomModule.java diff --git a/java-securitycentermanagement/samples/snippets/generated/com/google/cloud/securitycentermanagement/v1/securitycentermanagement/geteffectiveeventthreatdetectioncustommodule/SyncGetEffectiveEventThreatDetectionCustomModule.java b/owl-bot-staging/java-securitycentermanagement/v1/samples/snippets/generated/com/google/cloud/securitycentermanagement/v1/securitycentermanagement/geteffectiveeventthreatdetectioncustommodule/SyncGetEffectiveEventThreatDetectionCustomModule.java similarity index 100% rename from java-securitycentermanagement/samples/snippets/generated/com/google/cloud/securitycentermanagement/v1/securitycentermanagement/geteffectiveeventthreatdetectioncustommodule/SyncGetEffectiveEventThreatDetectionCustomModule.java rename to owl-bot-staging/java-securitycentermanagement/v1/samples/snippets/generated/com/google/cloud/securitycentermanagement/v1/securitycentermanagement/geteffectiveeventthreatdetectioncustommodule/SyncGetEffectiveEventThreatDetectionCustomModule.java diff --git a/java-securitycentermanagement/samples/snippets/generated/com/google/cloud/securitycentermanagement/v1/securitycentermanagement/geteffectiveeventthreatdetectioncustommodule/SyncGetEffectiveEventThreatDetectionCustomModuleEffectiveeventthreatdetectioncustommodulename.java b/owl-bot-staging/java-securitycentermanagement/v1/samples/snippets/generated/com/google/cloud/securitycentermanagement/v1/securitycentermanagement/geteffectiveeventthreatdetectioncustommodule/SyncGetEffectiveEventThreatDetectionCustomModuleEffectiveeventthreatdetectioncustommodulename.java similarity index 100% rename from java-securitycentermanagement/samples/snippets/generated/com/google/cloud/securitycentermanagement/v1/securitycentermanagement/geteffectiveeventthreatdetectioncustommodule/SyncGetEffectiveEventThreatDetectionCustomModuleEffectiveeventthreatdetectioncustommodulename.java rename to owl-bot-staging/java-securitycentermanagement/v1/samples/snippets/generated/com/google/cloud/securitycentermanagement/v1/securitycentermanagement/geteffectiveeventthreatdetectioncustommodule/SyncGetEffectiveEventThreatDetectionCustomModuleEffectiveeventthreatdetectioncustommodulename.java diff --git a/java-securitycentermanagement/samples/snippets/generated/com/google/cloud/securitycentermanagement/v1/securitycentermanagement/geteffectiveeventthreatdetectioncustommodule/SyncGetEffectiveEventThreatDetectionCustomModuleString.java b/owl-bot-staging/java-securitycentermanagement/v1/samples/snippets/generated/com/google/cloud/securitycentermanagement/v1/securitycentermanagement/geteffectiveeventthreatdetectioncustommodule/SyncGetEffectiveEventThreatDetectionCustomModuleString.java similarity index 100% rename from java-securitycentermanagement/samples/snippets/generated/com/google/cloud/securitycentermanagement/v1/securitycentermanagement/geteffectiveeventthreatdetectioncustommodule/SyncGetEffectiveEventThreatDetectionCustomModuleString.java rename to owl-bot-staging/java-securitycentermanagement/v1/samples/snippets/generated/com/google/cloud/securitycentermanagement/v1/securitycentermanagement/geteffectiveeventthreatdetectioncustommodule/SyncGetEffectiveEventThreatDetectionCustomModuleString.java diff --git a/java-securitycentermanagement/samples/snippets/generated/com/google/cloud/securitycentermanagement/v1/securitycentermanagement/geteffectivesecurityhealthanalyticscustommodule/AsyncGetEffectiveSecurityHealthAnalyticsCustomModule.java b/owl-bot-staging/java-securitycentermanagement/v1/samples/snippets/generated/com/google/cloud/securitycentermanagement/v1/securitycentermanagement/geteffectivesecurityhealthanalyticscustommodule/AsyncGetEffectiveSecurityHealthAnalyticsCustomModule.java similarity index 100% rename from java-securitycentermanagement/samples/snippets/generated/com/google/cloud/securitycentermanagement/v1/securitycentermanagement/geteffectivesecurityhealthanalyticscustommodule/AsyncGetEffectiveSecurityHealthAnalyticsCustomModule.java rename to owl-bot-staging/java-securitycentermanagement/v1/samples/snippets/generated/com/google/cloud/securitycentermanagement/v1/securitycentermanagement/geteffectivesecurityhealthanalyticscustommodule/AsyncGetEffectiveSecurityHealthAnalyticsCustomModule.java diff --git a/java-securitycentermanagement/samples/snippets/generated/com/google/cloud/securitycentermanagement/v1/securitycentermanagement/geteffectivesecurityhealthanalyticscustommodule/SyncGetEffectiveSecurityHealthAnalyticsCustomModule.java b/owl-bot-staging/java-securitycentermanagement/v1/samples/snippets/generated/com/google/cloud/securitycentermanagement/v1/securitycentermanagement/geteffectivesecurityhealthanalyticscustommodule/SyncGetEffectiveSecurityHealthAnalyticsCustomModule.java similarity index 100% rename from java-securitycentermanagement/samples/snippets/generated/com/google/cloud/securitycentermanagement/v1/securitycentermanagement/geteffectivesecurityhealthanalyticscustommodule/SyncGetEffectiveSecurityHealthAnalyticsCustomModule.java rename to owl-bot-staging/java-securitycentermanagement/v1/samples/snippets/generated/com/google/cloud/securitycentermanagement/v1/securitycentermanagement/geteffectivesecurityhealthanalyticscustommodule/SyncGetEffectiveSecurityHealthAnalyticsCustomModule.java diff --git a/java-securitycentermanagement/samples/snippets/generated/com/google/cloud/securitycentermanagement/v1/securitycentermanagement/geteffectivesecurityhealthanalyticscustommodule/SyncGetEffectiveSecurityHealthAnalyticsCustomModuleEffectivesecurityhealthanalyticscustommodulename.java b/owl-bot-staging/java-securitycentermanagement/v1/samples/snippets/generated/com/google/cloud/securitycentermanagement/v1/securitycentermanagement/geteffectivesecurityhealthanalyticscustommodule/SyncGetEffectiveSecurityHealthAnalyticsCustomModuleEffectivesecurityhealthanalyticscustommodulename.java similarity index 100% rename from java-securitycentermanagement/samples/snippets/generated/com/google/cloud/securitycentermanagement/v1/securitycentermanagement/geteffectivesecurityhealthanalyticscustommodule/SyncGetEffectiveSecurityHealthAnalyticsCustomModuleEffectivesecurityhealthanalyticscustommodulename.java rename to owl-bot-staging/java-securitycentermanagement/v1/samples/snippets/generated/com/google/cloud/securitycentermanagement/v1/securitycentermanagement/geteffectivesecurityhealthanalyticscustommodule/SyncGetEffectiveSecurityHealthAnalyticsCustomModuleEffectivesecurityhealthanalyticscustommodulename.java diff --git a/java-securitycentermanagement/samples/snippets/generated/com/google/cloud/securitycentermanagement/v1/securitycentermanagement/geteffectivesecurityhealthanalyticscustommodule/SyncGetEffectiveSecurityHealthAnalyticsCustomModuleString.java b/owl-bot-staging/java-securitycentermanagement/v1/samples/snippets/generated/com/google/cloud/securitycentermanagement/v1/securitycentermanagement/geteffectivesecurityhealthanalyticscustommodule/SyncGetEffectiveSecurityHealthAnalyticsCustomModuleString.java similarity index 100% rename from java-securitycentermanagement/samples/snippets/generated/com/google/cloud/securitycentermanagement/v1/securitycentermanagement/geteffectivesecurityhealthanalyticscustommodule/SyncGetEffectiveSecurityHealthAnalyticsCustomModuleString.java rename to owl-bot-staging/java-securitycentermanagement/v1/samples/snippets/generated/com/google/cloud/securitycentermanagement/v1/securitycentermanagement/geteffectivesecurityhealthanalyticscustommodule/SyncGetEffectiveSecurityHealthAnalyticsCustomModuleString.java diff --git a/java-securitycentermanagement/samples/snippets/generated/com/google/cloud/securitycentermanagement/v1/securitycentermanagement/geteventthreatdetectioncustommodule/AsyncGetEventThreatDetectionCustomModule.java b/owl-bot-staging/java-securitycentermanagement/v1/samples/snippets/generated/com/google/cloud/securitycentermanagement/v1/securitycentermanagement/geteventthreatdetectioncustommodule/AsyncGetEventThreatDetectionCustomModule.java similarity index 100% rename from java-securitycentermanagement/samples/snippets/generated/com/google/cloud/securitycentermanagement/v1/securitycentermanagement/geteventthreatdetectioncustommodule/AsyncGetEventThreatDetectionCustomModule.java rename to owl-bot-staging/java-securitycentermanagement/v1/samples/snippets/generated/com/google/cloud/securitycentermanagement/v1/securitycentermanagement/geteventthreatdetectioncustommodule/AsyncGetEventThreatDetectionCustomModule.java diff --git a/java-securitycentermanagement/samples/snippets/generated/com/google/cloud/securitycentermanagement/v1/securitycentermanagement/geteventthreatdetectioncustommodule/SyncGetEventThreatDetectionCustomModule.java b/owl-bot-staging/java-securitycentermanagement/v1/samples/snippets/generated/com/google/cloud/securitycentermanagement/v1/securitycentermanagement/geteventthreatdetectioncustommodule/SyncGetEventThreatDetectionCustomModule.java similarity index 100% rename from java-securitycentermanagement/samples/snippets/generated/com/google/cloud/securitycentermanagement/v1/securitycentermanagement/geteventthreatdetectioncustommodule/SyncGetEventThreatDetectionCustomModule.java rename to owl-bot-staging/java-securitycentermanagement/v1/samples/snippets/generated/com/google/cloud/securitycentermanagement/v1/securitycentermanagement/geteventthreatdetectioncustommodule/SyncGetEventThreatDetectionCustomModule.java diff --git a/java-securitycentermanagement/samples/snippets/generated/com/google/cloud/securitycentermanagement/v1/securitycentermanagement/geteventthreatdetectioncustommodule/SyncGetEventThreatDetectionCustomModuleEventthreatdetectioncustommodulename.java b/owl-bot-staging/java-securitycentermanagement/v1/samples/snippets/generated/com/google/cloud/securitycentermanagement/v1/securitycentermanagement/geteventthreatdetectioncustommodule/SyncGetEventThreatDetectionCustomModuleEventthreatdetectioncustommodulename.java similarity index 100% rename from java-securitycentermanagement/samples/snippets/generated/com/google/cloud/securitycentermanagement/v1/securitycentermanagement/geteventthreatdetectioncustommodule/SyncGetEventThreatDetectionCustomModuleEventthreatdetectioncustommodulename.java rename to owl-bot-staging/java-securitycentermanagement/v1/samples/snippets/generated/com/google/cloud/securitycentermanagement/v1/securitycentermanagement/geteventthreatdetectioncustommodule/SyncGetEventThreatDetectionCustomModuleEventthreatdetectioncustommodulename.java diff --git a/java-securitycentermanagement/samples/snippets/generated/com/google/cloud/securitycentermanagement/v1/securitycentermanagement/geteventthreatdetectioncustommodule/SyncGetEventThreatDetectionCustomModuleString.java b/owl-bot-staging/java-securitycentermanagement/v1/samples/snippets/generated/com/google/cloud/securitycentermanagement/v1/securitycentermanagement/geteventthreatdetectioncustommodule/SyncGetEventThreatDetectionCustomModuleString.java similarity index 100% rename from java-securitycentermanagement/samples/snippets/generated/com/google/cloud/securitycentermanagement/v1/securitycentermanagement/geteventthreatdetectioncustommodule/SyncGetEventThreatDetectionCustomModuleString.java rename to owl-bot-staging/java-securitycentermanagement/v1/samples/snippets/generated/com/google/cloud/securitycentermanagement/v1/securitycentermanagement/geteventthreatdetectioncustommodule/SyncGetEventThreatDetectionCustomModuleString.java diff --git a/java-securitycentermanagement/samples/snippets/generated/com/google/cloud/securitycentermanagement/v1/securitycentermanagement/getlocation/AsyncGetLocation.java b/owl-bot-staging/java-securitycentermanagement/v1/samples/snippets/generated/com/google/cloud/securitycentermanagement/v1/securitycentermanagement/getlocation/AsyncGetLocation.java similarity index 100% rename from java-securitycentermanagement/samples/snippets/generated/com/google/cloud/securitycentermanagement/v1/securitycentermanagement/getlocation/AsyncGetLocation.java rename to owl-bot-staging/java-securitycentermanagement/v1/samples/snippets/generated/com/google/cloud/securitycentermanagement/v1/securitycentermanagement/getlocation/AsyncGetLocation.java diff --git a/java-securitycentermanagement/samples/snippets/generated/com/google/cloud/securitycentermanagement/v1/securitycentermanagement/getlocation/SyncGetLocation.java b/owl-bot-staging/java-securitycentermanagement/v1/samples/snippets/generated/com/google/cloud/securitycentermanagement/v1/securitycentermanagement/getlocation/SyncGetLocation.java similarity index 100% rename from java-securitycentermanagement/samples/snippets/generated/com/google/cloud/securitycentermanagement/v1/securitycentermanagement/getlocation/SyncGetLocation.java rename to owl-bot-staging/java-securitycentermanagement/v1/samples/snippets/generated/com/google/cloud/securitycentermanagement/v1/securitycentermanagement/getlocation/SyncGetLocation.java diff --git a/java-securitycentermanagement/samples/snippets/generated/com/google/cloud/securitycentermanagement/v1/securitycentermanagement/getsecurityhealthanalyticscustommodule/AsyncGetSecurityHealthAnalyticsCustomModule.java b/owl-bot-staging/java-securitycentermanagement/v1/samples/snippets/generated/com/google/cloud/securitycentermanagement/v1/securitycentermanagement/getsecurityhealthanalyticscustommodule/AsyncGetSecurityHealthAnalyticsCustomModule.java similarity index 100% rename from java-securitycentermanagement/samples/snippets/generated/com/google/cloud/securitycentermanagement/v1/securitycentermanagement/getsecurityhealthanalyticscustommodule/AsyncGetSecurityHealthAnalyticsCustomModule.java rename to owl-bot-staging/java-securitycentermanagement/v1/samples/snippets/generated/com/google/cloud/securitycentermanagement/v1/securitycentermanagement/getsecurityhealthanalyticscustommodule/AsyncGetSecurityHealthAnalyticsCustomModule.java diff --git a/java-securitycentermanagement/samples/snippets/generated/com/google/cloud/securitycentermanagement/v1/securitycentermanagement/getsecurityhealthanalyticscustommodule/SyncGetSecurityHealthAnalyticsCustomModule.java b/owl-bot-staging/java-securitycentermanagement/v1/samples/snippets/generated/com/google/cloud/securitycentermanagement/v1/securitycentermanagement/getsecurityhealthanalyticscustommodule/SyncGetSecurityHealthAnalyticsCustomModule.java similarity index 100% rename from java-securitycentermanagement/samples/snippets/generated/com/google/cloud/securitycentermanagement/v1/securitycentermanagement/getsecurityhealthanalyticscustommodule/SyncGetSecurityHealthAnalyticsCustomModule.java rename to owl-bot-staging/java-securitycentermanagement/v1/samples/snippets/generated/com/google/cloud/securitycentermanagement/v1/securitycentermanagement/getsecurityhealthanalyticscustommodule/SyncGetSecurityHealthAnalyticsCustomModule.java diff --git a/java-securitycentermanagement/samples/snippets/generated/com/google/cloud/securitycentermanagement/v1/securitycentermanagement/getsecurityhealthanalyticscustommodule/SyncGetSecurityHealthAnalyticsCustomModuleSecurityhealthanalyticscustommodulename.java b/owl-bot-staging/java-securitycentermanagement/v1/samples/snippets/generated/com/google/cloud/securitycentermanagement/v1/securitycentermanagement/getsecurityhealthanalyticscustommodule/SyncGetSecurityHealthAnalyticsCustomModuleSecurityhealthanalyticscustommodulename.java similarity index 100% rename from java-securitycentermanagement/samples/snippets/generated/com/google/cloud/securitycentermanagement/v1/securitycentermanagement/getsecurityhealthanalyticscustommodule/SyncGetSecurityHealthAnalyticsCustomModuleSecurityhealthanalyticscustommodulename.java rename to owl-bot-staging/java-securitycentermanagement/v1/samples/snippets/generated/com/google/cloud/securitycentermanagement/v1/securitycentermanagement/getsecurityhealthanalyticscustommodule/SyncGetSecurityHealthAnalyticsCustomModuleSecurityhealthanalyticscustommodulename.java diff --git a/java-securitycentermanagement/samples/snippets/generated/com/google/cloud/securitycentermanagement/v1/securitycentermanagement/getsecurityhealthanalyticscustommodule/SyncGetSecurityHealthAnalyticsCustomModuleString.java b/owl-bot-staging/java-securitycentermanagement/v1/samples/snippets/generated/com/google/cloud/securitycentermanagement/v1/securitycentermanagement/getsecurityhealthanalyticscustommodule/SyncGetSecurityHealthAnalyticsCustomModuleString.java similarity index 100% rename from java-securitycentermanagement/samples/snippets/generated/com/google/cloud/securitycentermanagement/v1/securitycentermanagement/getsecurityhealthanalyticscustommodule/SyncGetSecurityHealthAnalyticsCustomModuleString.java rename to owl-bot-staging/java-securitycentermanagement/v1/samples/snippets/generated/com/google/cloud/securitycentermanagement/v1/securitycentermanagement/getsecurityhealthanalyticscustommodule/SyncGetSecurityHealthAnalyticsCustomModuleString.java diff --git a/java-securitycentermanagement/samples/snippets/generated/com/google/cloud/securitycentermanagement/v1/securitycentermanagement/listdescendanteventthreatdetectioncustommodules/AsyncListDescendantEventThreatDetectionCustomModules.java b/owl-bot-staging/java-securitycentermanagement/v1/samples/snippets/generated/com/google/cloud/securitycentermanagement/v1/securitycentermanagement/listdescendanteventthreatdetectioncustommodules/AsyncListDescendantEventThreatDetectionCustomModules.java similarity index 100% rename from java-securitycentermanagement/samples/snippets/generated/com/google/cloud/securitycentermanagement/v1/securitycentermanagement/listdescendanteventthreatdetectioncustommodules/AsyncListDescendantEventThreatDetectionCustomModules.java rename to owl-bot-staging/java-securitycentermanagement/v1/samples/snippets/generated/com/google/cloud/securitycentermanagement/v1/securitycentermanagement/listdescendanteventthreatdetectioncustommodules/AsyncListDescendantEventThreatDetectionCustomModules.java diff --git a/java-securitycentermanagement/samples/snippets/generated/com/google/cloud/securitycentermanagement/v1/securitycentermanagement/listdescendanteventthreatdetectioncustommodules/AsyncListDescendantEventThreatDetectionCustomModulesPaged.java b/owl-bot-staging/java-securitycentermanagement/v1/samples/snippets/generated/com/google/cloud/securitycentermanagement/v1/securitycentermanagement/listdescendanteventthreatdetectioncustommodules/AsyncListDescendantEventThreatDetectionCustomModulesPaged.java similarity index 100% rename from java-securitycentermanagement/samples/snippets/generated/com/google/cloud/securitycentermanagement/v1/securitycentermanagement/listdescendanteventthreatdetectioncustommodules/AsyncListDescendantEventThreatDetectionCustomModulesPaged.java rename to owl-bot-staging/java-securitycentermanagement/v1/samples/snippets/generated/com/google/cloud/securitycentermanagement/v1/securitycentermanagement/listdescendanteventthreatdetectioncustommodules/AsyncListDescendantEventThreatDetectionCustomModulesPaged.java diff --git a/java-securitycentermanagement/samples/snippets/generated/com/google/cloud/securitycentermanagement/v1/securitycentermanagement/listdescendanteventthreatdetectioncustommodules/SyncListDescendantEventThreatDetectionCustomModules.java b/owl-bot-staging/java-securitycentermanagement/v1/samples/snippets/generated/com/google/cloud/securitycentermanagement/v1/securitycentermanagement/listdescendanteventthreatdetectioncustommodules/SyncListDescendantEventThreatDetectionCustomModules.java similarity index 100% rename from java-securitycentermanagement/samples/snippets/generated/com/google/cloud/securitycentermanagement/v1/securitycentermanagement/listdescendanteventthreatdetectioncustommodules/SyncListDescendantEventThreatDetectionCustomModules.java rename to owl-bot-staging/java-securitycentermanagement/v1/samples/snippets/generated/com/google/cloud/securitycentermanagement/v1/securitycentermanagement/listdescendanteventthreatdetectioncustommodules/SyncListDescendantEventThreatDetectionCustomModules.java diff --git a/java-securitycentermanagement/samples/snippets/generated/com/google/cloud/securitycentermanagement/v1/securitycentermanagement/listdescendanteventthreatdetectioncustommodules/SyncListDescendantEventThreatDetectionCustomModulesFolderlocationname.java b/owl-bot-staging/java-securitycentermanagement/v1/samples/snippets/generated/com/google/cloud/securitycentermanagement/v1/securitycentermanagement/listdescendanteventthreatdetectioncustommodules/SyncListDescendantEventThreatDetectionCustomModulesFolderlocationname.java similarity index 100% rename from java-securitycentermanagement/samples/snippets/generated/com/google/cloud/securitycentermanagement/v1/securitycentermanagement/listdescendanteventthreatdetectioncustommodules/SyncListDescendantEventThreatDetectionCustomModulesFolderlocationname.java rename to owl-bot-staging/java-securitycentermanagement/v1/samples/snippets/generated/com/google/cloud/securitycentermanagement/v1/securitycentermanagement/listdescendanteventthreatdetectioncustommodules/SyncListDescendantEventThreatDetectionCustomModulesFolderlocationname.java diff --git a/java-securitycentermanagement/samples/snippets/generated/com/google/cloud/securitycentermanagement/v1/securitycentermanagement/listdescendanteventthreatdetectioncustommodules/SyncListDescendantEventThreatDetectionCustomModulesLocationname.java b/owl-bot-staging/java-securitycentermanagement/v1/samples/snippets/generated/com/google/cloud/securitycentermanagement/v1/securitycentermanagement/listdescendanteventthreatdetectioncustommodules/SyncListDescendantEventThreatDetectionCustomModulesLocationname.java similarity index 100% rename from java-securitycentermanagement/samples/snippets/generated/com/google/cloud/securitycentermanagement/v1/securitycentermanagement/listdescendanteventthreatdetectioncustommodules/SyncListDescendantEventThreatDetectionCustomModulesLocationname.java rename to owl-bot-staging/java-securitycentermanagement/v1/samples/snippets/generated/com/google/cloud/securitycentermanagement/v1/securitycentermanagement/listdescendanteventthreatdetectioncustommodules/SyncListDescendantEventThreatDetectionCustomModulesLocationname.java diff --git a/java-securitycentermanagement/samples/snippets/generated/com/google/cloud/securitycentermanagement/v1/securitycentermanagement/listdescendanteventthreatdetectioncustommodules/SyncListDescendantEventThreatDetectionCustomModulesOrganizationlocationname.java b/owl-bot-staging/java-securitycentermanagement/v1/samples/snippets/generated/com/google/cloud/securitycentermanagement/v1/securitycentermanagement/listdescendanteventthreatdetectioncustommodules/SyncListDescendantEventThreatDetectionCustomModulesOrganizationlocationname.java similarity index 100% rename from java-securitycentermanagement/samples/snippets/generated/com/google/cloud/securitycentermanagement/v1/securitycentermanagement/listdescendanteventthreatdetectioncustommodules/SyncListDescendantEventThreatDetectionCustomModulesOrganizationlocationname.java rename to owl-bot-staging/java-securitycentermanagement/v1/samples/snippets/generated/com/google/cloud/securitycentermanagement/v1/securitycentermanagement/listdescendanteventthreatdetectioncustommodules/SyncListDescendantEventThreatDetectionCustomModulesOrganizationlocationname.java diff --git a/java-securitycentermanagement/samples/snippets/generated/com/google/cloud/securitycentermanagement/v1/securitycentermanagement/listdescendanteventthreatdetectioncustommodules/SyncListDescendantEventThreatDetectionCustomModulesString.java b/owl-bot-staging/java-securitycentermanagement/v1/samples/snippets/generated/com/google/cloud/securitycentermanagement/v1/securitycentermanagement/listdescendanteventthreatdetectioncustommodules/SyncListDescendantEventThreatDetectionCustomModulesString.java similarity index 100% rename from java-securitycentermanagement/samples/snippets/generated/com/google/cloud/securitycentermanagement/v1/securitycentermanagement/listdescendanteventthreatdetectioncustommodules/SyncListDescendantEventThreatDetectionCustomModulesString.java rename to owl-bot-staging/java-securitycentermanagement/v1/samples/snippets/generated/com/google/cloud/securitycentermanagement/v1/securitycentermanagement/listdescendanteventthreatdetectioncustommodules/SyncListDescendantEventThreatDetectionCustomModulesString.java diff --git a/java-securitycentermanagement/samples/snippets/generated/com/google/cloud/securitycentermanagement/v1/securitycentermanagement/listdescendantsecurityhealthanalyticscustommodules/AsyncListDescendantSecurityHealthAnalyticsCustomModules.java b/owl-bot-staging/java-securitycentermanagement/v1/samples/snippets/generated/com/google/cloud/securitycentermanagement/v1/securitycentermanagement/listdescendantsecurityhealthanalyticscustommodules/AsyncListDescendantSecurityHealthAnalyticsCustomModules.java similarity index 100% rename from java-securitycentermanagement/samples/snippets/generated/com/google/cloud/securitycentermanagement/v1/securitycentermanagement/listdescendantsecurityhealthanalyticscustommodules/AsyncListDescendantSecurityHealthAnalyticsCustomModules.java rename to owl-bot-staging/java-securitycentermanagement/v1/samples/snippets/generated/com/google/cloud/securitycentermanagement/v1/securitycentermanagement/listdescendantsecurityhealthanalyticscustommodules/AsyncListDescendantSecurityHealthAnalyticsCustomModules.java diff --git a/java-securitycentermanagement/samples/snippets/generated/com/google/cloud/securitycentermanagement/v1/securitycentermanagement/listdescendantsecurityhealthanalyticscustommodules/AsyncListDescendantSecurityHealthAnalyticsCustomModulesPaged.java b/owl-bot-staging/java-securitycentermanagement/v1/samples/snippets/generated/com/google/cloud/securitycentermanagement/v1/securitycentermanagement/listdescendantsecurityhealthanalyticscustommodules/AsyncListDescendantSecurityHealthAnalyticsCustomModulesPaged.java similarity index 100% rename from java-securitycentermanagement/samples/snippets/generated/com/google/cloud/securitycentermanagement/v1/securitycentermanagement/listdescendantsecurityhealthanalyticscustommodules/AsyncListDescendantSecurityHealthAnalyticsCustomModulesPaged.java rename to owl-bot-staging/java-securitycentermanagement/v1/samples/snippets/generated/com/google/cloud/securitycentermanagement/v1/securitycentermanagement/listdescendantsecurityhealthanalyticscustommodules/AsyncListDescendantSecurityHealthAnalyticsCustomModulesPaged.java diff --git a/java-securitycentermanagement/samples/snippets/generated/com/google/cloud/securitycentermanagement/v1/securitycentermanagement/listdescendantsecurityhealthanalyticscustommodules/SyncListDescendantSecurityHealthAnalyticsCustomModules.java b/owl-bot-staging/java-securitycentermanagement/v1/samples/snippets/generated/com/google/cloud/securitycentermanagement/v1/securitycentermanagement/listdescendantsecurityhealthanalyticscustommodules/SyncListDescendantSecurityHealthAnalyticsCustomModules.java similarity index 100% rename from java-securitycentermanagement/samples/snippets/generated/com/google/cloud/securitycentermanagement/v1/securitycentermanagement/listdescendantsecurityhealthanalyticscustommodules/SyncListDescendantSecurityHealthAnalyticsCustomModules.java rename to owl-bot-staging/java-securitycentermanagement/v1/samples/snippets/generated/com/google/cloud/securitycentermanagement/v1/securitycentermanagement/listdescendantsecurityhealthanalyticscustommodules/SyncListDescendantSecurityHealthAnalyticsCustomModules.java diff --git a/java-securitycentermanagement/samples/snippets/generated/com/google/cloud/securitycentermanagement/v1/securitycentermanagement/listdescendantsecurityhealthanalyticscustommodules/SyncListDescendantSecurityHealthAnalyticsCustomModulesFolderlocationname.java b/owl-bot-staging/java-securitycentermanagement/v1/samples/snippets/generated/com/google/cloud/securitycentermanagement/v1/securitycentermanagement/listdescendantsecurityhealthanalyticscustommodules/SyncListDescendantSecurityHealthAnalyticsCustomModulesFolderlocationname.java similarity index 100% rename from java-securitycentermanagement/samples/snippets/generated/com/google/cloud/securitycentermanagement/v1/securitycentermanagement/listdescendantsecurityhealthanalyticscustommodules/SyncListDescendantSecurityHealthAnalyticsCustomModulesFolderlocationname.java rename to owl-bot-staging/java-securitycentermanagement/v1/samples/snippets/generated/com/google/cloud/securitycentermanagement/v1/securitycentermanagement/listdescendantsecurityhealthanalyticscustommodules/SyncListDescendantSecurityHealthAnalyticsCustomModulesFolderlocationname.java diff --git a/java-securitycentermanagement/samples/snippets/generated/com/google/cloud/securitycentermanagement/v1/securitycentermanagement/listdescendantsecurityhealthanalyticscustommodules/SyncListDescendantSecurityHealthAnalyticsCustomModulesLocationname.java b/owl-bot-staging/java-securitycentermanagement/v1/samples/snippets/generated/com/google/cloud/securitycentermanagement/v1/securitycentermanagement/listdescendantsecurityhealthanalyticscustommodules/SyncListDescendantSecurityHealthAnalyticsCustomModulesLocationname.java similarity index 100% rename from java-securitycentermanagement/samples/snippets/generated/com/google/cloud/securitycentermanagement/v1/securitycentermanagement/listdescendantsecurityhealthanalyticscustommodules/SyncListDescendantSecurityHealthAnalyticsCustomModulesLocationname.java rename to owl-bot-staging/java-securitycentermanagement/v1/samples/snippets/generated/com/google/cloud/securitycentermanagement/v1/securitycentermanagement/listdescendantsecurityhealthanalyticscustommodules/SyncListDescendantSecurityHealthAnalyticsCustomModulesLocationname.java diff --git a/java-securitycentermanagement/samples/snippets/generated/com/google/cloud/securitycentermanagement/v1/securitycentermanagement/listdescendantsecurityhealthanalyticscustommodules/SyncListDescendantSecurityHealthAnalyticsCustomModulesOrganizationlocationname.java b/owl-bot-staging/java-securitycentermanagement/v1/samples/snippets/generated/com/google/cloud/securitycentermanagement/v1/securitycentermanagement/listdescendantsecurityhealthanalyticscustommodules/SyncListDescendantSecurityHealthAnalyticsCustomModulesOrganizationlocationname.java similarity index 100% rename from java-securitycentermanagement/samples/snippets/generated/com/google/cloud/securitycentermanagement/v1/securitycentermanagement/listdescendantsecurityhealthanalyticscustommodules/SyncListDescendantSecurityHealthAnalyticsCustomModulesOrganizationlocationname.java rename to owl-bot-staging/java-securitycentermanagement/v1/samples/snippets/generated/com/google/cloud/securitycentermanagement/v1/securitycentermanagement/listdescendantsecurityhealthanalyticscustommodules/SyncListDescendantSecurityHealthAnalyticsCustomModulesOrganizationlocationname.java diff --git a/java-securitycentermanagement/samples/snippets/generated/com/google/cloud/securitycentermanagement/v1/securitycentermanagement/listdescendantsecurityhealthanalyticscustommodules/SyncListDescendantSecurityHealthAnalyticsCustomModulesString.java b/owl-bot-staging/java-securitycentermanagement/v1/samples/snippets/generated/com/google/cloud/securitycentermanagement/v1/securitycentermanagement/listdescendantsecurityhealthanalyticscustommodules/SyncListDescendantSecurityHealthAnalyticsCustomModulesString.java similarity index 100% rename from java-securitycentermanagement/samples/snippets/generated/com/google/cloud/securitycentermanagement/v1/securitycentermanagement/listdescendantsecurityhealthanalyticscustommodules/SyncListDescendantSecurityHealthAnalyticsCustomModulesString.java rename to owl-bot-staging/java-securitycentermanagement/v1/samples/snippets/generated/com/google/cloud/securitycentermanagement/v1/securitycentermanagement/listdescendantsecurityhealthanalyticscustommodules/SyncListDescendantSecurityHealthAnalyticsCustomModulesString.java diff --git a/java-securitycentermanagement/samples/snippets/generated/com/google/cloud/securitycentermanagement/v1/securitycentermanagement/listeffectiveeventthreatdetectioncustommodules/AsyncListEffectiveEventThreatDetectionCustomModules.java b/owl-bot-staging/java-securitycentermanagement/v1/samples/snippets/generated/com/google/cloud/securitycentermanagement/v1/securitycentermanagement/listeffectiveeventthreatdetectioncustommodules/AsyncListEffectiveEventThreatDetectionCustomModules.java similarity index 100% rename from java-securitycentermanagement/samples/snippets/generated/com/google/cloud/securitycentermanagement/v1/securitycentermanagement/listeffectiveeventthreatdetectioncustommodules/AsyncListEffectiveEventThreatDetectionCustomModules.java rename to owl-bot-staging/java-securitycentermanagement/v1/samples/snippets/generated/com/google/cloud/securitycentermanagement/v1/securitycentermanagement/listeffectiveeventthreatdetectioncustommodules/AsyncListEffectiveEventThreatDetectionCustomModules.java diff --git a/java-securitycentermanagement/samples/snippets/generated/com/google/cloud/securitycentermanagement/v1/securitycentermanagement/listeffectiveeventthreatdetectioncustommodules/AsyncListEffectiveEventThreatDetectionCustomModulesPaged.java b/owl-bot-staging/java-securitycentermanagement/v1/samples/snippets/generated/com/google/cloud/securitycentermanagement/v1/securitycentermanagement/listeffectiveeventthreatdetectioncustommodules/AsyncListEffectiveEventThreatDetectionCustomModulesPaged.java similarity index 100% rename from java-securitycentermanagement/samples/snippets/generated/com/google/cloud/securitycentermanagement/v1/securitycentermanagement/listeffectiveeventthreatdetectioncustommodules/AsyncListEffectiveEventThreatDetectionCustomModulesPaged.java rename to owl-bot-staging/java-securitycentermanagement/v1/samples/snippets/generated/com/google/cloud/securitycentermanagement/v1/securitycentermanagement/listeffectiveeventthreatdetectioncustommodules/AsyncListEffectiveEventThreatDetectionCustomModulesPaged.java diff --git a/java-securitycentermanagement/samples/snippets/generated/com/google/cloud/securitycentermanagement/v1/securitycentermanagement/listeffectiveeventthreatdetectioncustommodules/SyncListEffectiveEventThreatDetectionCustomModules.java b/owl-bot-staging/java-securitycentermanagement/v1/samples/snippets/generated/com/google/cloud/securitycentermanagement/v1/securitycentermanagement/listeffectiveeventthreatdetectioncustommodules/SyncListEffectiveEventThreatDetectionCustomModules.java similarity index 100% rename from java-securitycentermanagement/samples/snippets/generated/com/google/cloud/securitycentermanagement/v1/securitycentermanagement/listeffectiveeventthreatdetectioncustommodules/SyncListEffectiveEventThreatDetectionCustomModules.java rename to owl-bot-staging/java-securitycentermanagement/v1/samples/snippets/generated/com/google/cloud/securitycentermanagement/v1/securitycentermanagement/listeffectiveeventthreatdetectioncustommodules/SyncListEffectiveEventThreatDetectionCustomModules.java diff --git a/java-securitycentermanagement/samples/snippets/generated/com/google/cloud/securitycentermanagement/v1/securitycentermanagement/listeffectiveeventthreatdetectioncustommodules/SyncListEffectiveEventThreatDetectionCustomModulesFolderlocationname.java b/owl-bot-staging/java-securitycentermanagement/v1/samples/snippets/generated/com/google/cloud/securitycentermanagement/v1/securitycentermanagement/listeffectiveeventthreatdetectioncustommodules/SyncListEffectiveEventThreatDetectionCustomModulesFolderlocationname.java similarity index 100% rename from java-securitycentermanagement/samples/snippets/generated/com/google/cloud/securitycentermanagement/v1/securitycentermanagement/listeffectiveeventthreatdetectioncustommodules/SyncListEffectiveEventThreatDetectionCustomModulesFolderlocationname.java rename to owl-bot-staging/java-securitycentermanagement/v1/samples/snippets/generated/com/google/cloud/securitycentermanagement/v1/securitycentermanagement/listeffectiveeventthreatdetectioncustommodules/SyncListEffectiveEventThreatDetectionCustomModulesFolderlocationname.java diff --git a/java-securitycentermanagement/samples/snippets/generated/com/google/cloud/securitycentermanagement/v1/securitycentermanagement/listeffectiveeventthreatdetectioncustommodules/SyncListEffectiveEventThreatDetectionCustomModulesLocationname.java b/owl-bot-staging/java-securitycentermanagement/v1/samples/snippets/generated/com/google/cloud/securitycentermanagement/v1/securitycentermanagement/listeffectiveeventthreatdetectioncustommodules/SyncListEffectiveEventThreatDetectionCustomModulesLocationname.java similarity index 100% rename from java-securitycentermanagement/samples/snippets/generated/com/google/cloud/securitycentermanagement/v1/securitycentermanagement/listeffectiveeventthreatdetectioncustommodules/SyncListEffectiveEventThreatDetectionCustomModulesLocationname.java rename to owl-bot-staging/java-securitycentermanagement/v1/samples/snippets/generated/com/google/cloud/securitycentermanagement/v1/securitycentermanagement/listeffectiveeventthreatdetectioncustommodules/SyncListEffectiveEventThreatDetectionCustomModulesLocationname.java diff --git a/java-securitycentermanagement/samples/snippets/generated/com/google/cloud/securitycentermanagement/v1/securitycentermanagement/listeffectiveeventthreatdetectioncustommodules/SyncListEffectiveEventThreatDetectionCustomModulesOrganizationlocationname.java b/owl-bot-staging/java-securitycentermanagement/v1/samples/snippets/generated/com/google/cloud/securitycentermanagement/v1/securitycentermanagement/listeffectiveeventthreatdetectioncustommodules/SyncListEffectiveEventThreatDetectionCustomModulesOrganizationlocationname.java similarity index 100% rename from java-securitycentermanagement/samples/snippets/generated/com/google/cloud/securitycentermanagement/v1/securitycentermanagement/listeffectiveeventthreatdetectioncustommodules/SyncListEffectiveEventThreatDetectionCustomModulesOrganizationlocationname.java rename to owl-bot-staging/java-securitycentermanagement/v1/samples/snippets/generated/com/google/cloud/securitycentermanagement/v1/securitycentermanagement/listeffectiveeventthreatdetectioncustommodules/SyncListEffectiveEventThreatDetectionCustomModulesOrganizationlocationname.java diff --git a/java-securitycentermanagement/samples/snippets/generated/com/google/cloud/securitycentermanagement/v1/securitycentermanagement/listeffectiveeventthreatdetectioncustommodules/SyncListEffectiveEventThreatDetectionCustomModulesString.java b/owl-bot-staging/java-securitycentermanagement/v1/samples/snippets/generated/com/google/cloud/securitycentermanagement/v1/securitycentermanagement/listeffectiveeventthreatdetectioncustommodules/SyncListEffectiveEventThreatDetectionCustomModulesString.java similarity index 100% rename from java-securitycentermanagement/samples/snippets/generated/com/google/cloud/securitycentermanagement/v1/securitycentermanagement/listeffectiveeventthreatdetectioncustommodules/SyncListEffectiveEventThreatDetectionCustomModulesString.java rename to owl-bot-staging/java-securitycentermanagement/v1/samples/snippets/generated/com/google/cloud/securitycentermanagement/v1/securitycentermanagement/listeffectiveeventthreatdetectioncustommodules/SyncListEffectiveEventThreatDetectionCustomModulesString.java diff --git a/java-securitycentermanagement/samples/snippets/generated/com/google/cloud/securitycentermanagement/v1/securitycentermanagement/listeffectivesecurityhealthanalyticscustommodules/AsyncListEffectiveSecurityHealthAnalyticsCustomModules.java b/owl-bot-staging/java-securitycentermanagement/v1/samples/snippets/generated/com/google/cloud/securitycentermanagement/v1/securitycentermanagement/listeffectivesecurityhealthanalyticscustommodules/AsyncListEffectiveSecurityHealthAnalyticsCustomModules.java similarity index 100% rename from java-securitycentermanagement/samples/snippets/generated/com/google/cloud/securitycentermanagement/v1/securitycentermanagement/listeffectivesecurityhealthanalyticscustommodules/AsyncListEffectiveSecurityHealthAnalyticsCustomModules.java rename to owl-bot-staging/java-securitycentermanagement/v1/samples/snippets/generated/com/google/cloud/securitycentermanagement/v1/securitycentermanagement/listeffectivesecurityhealthanalyticscustommodules/AsyncListEffectiveSecurityHealthAnalyticsCustomModules.java diff --git a/java-securitycentermanagement/samples/snippets/generated/com/google/cloud/securitycentermanagement/v1/securitycentermanagement/listeffectivesecurityhealthanalyticscustommodules/AsyncListEffectiveSecurityHealthAnalyticsCustomModulesPaged.java b/owl-bot-staging/java-securitycentermanagement/v1/samples/snippets/generated/com/google/cloud/securitycentermanagement/v1/securitycentermanagement/listeffectivesecurityhealthanalyticscustommodules/AsyncListEffectiveSecurityHealthAnalyticsCustomModulesPaged.java similarity index 100% rename from java-securitycentermanagement/samples/snippets/generated/com/google/cloud/securitycentermanagement/v1/securitycentermanagement/listeffectivesecurityhealthanalyticscustommodules/AsyncListEffectiveSecurityHealthAnalyticsCustomModulesPaged.java rename to owl-bot-staging/java-securitycentermanagement/v1/samples/snippets/generated/com/google/cloud/securitycentermanagement/v1/securitycentermanagement/listeffectivesecurityhealthanalyticscustommodules/AsyncListEffectiveSecurityHealthAnalyticsCustomModulesPaged.java diff --git a/java-securitycentermanagement/samples/snippets/generated/com/google/cloud/securitycentermanagement/v1/securitycentermanagement/listeffectivesecurityhealthanalyticscustommodules/SyncListEffectiveSecurityHealthAnalyticsCustomModules.java b/owl-bot-staging/java-securitycentermanagement/v1/samples/snippets/generated/com/google/cloud/securitycentermanagement/v1/securitycentermanagement/listeffectivesecurityhealthanalyticscustommodules/SyncListEffectiveSecurityHealthAnalyticsCustomModules.java similarity index 100% rename from java-securitycentermanagement/samples/snippets/generated/com/google/cloud/securitycentermanagement/v1/securitycentermanagement/listeffectivesecurityhealthanalyticscustommodules/SyncListEffectiveSecurityHealthAnalyticsCustomModules.java rename to owl-bot-staging/java-securitycentermanagement/v1/samples/snippets/generated/com/google/cloud/securitycentermanagement/v1/securitycentermanagement/listeffectivesecurityhealthanalyticscustommodules/SyncListEffectiveSecurityHealthAnalyticsCustomModules.java diff --git a/java-securitycentermanagement/samples/snippets/generated/com/google/cloud/securitycentermanagement/v1/securitycentermanagement/listeffectivesecurityhealthanalyticscustommodules/SyncListEffectiveSecurityHealthAnalyticsCustomModulesFolderlocationname.java b/owl-bot-staging/java-securitycentermanagement/v1/samples/snippets/generated/com/google/cloud/securitycentermanagement/v1/securitycentermanagement/listeffectivesecurityhealthanalyticscustommodules/SyncListEffectiveSecurityHealthAnalyticsCustomModulesFolderlocationname.java similarity index 100% rename from java-securitycentermanagement/samples/snippets/generated/com/google/cloud/securitycentermanagement/v1/securitycentermanagement/listeffectivesecurityhealthanalyticscustommodules/SyncListEffectiveSecurityHealthAnalyticsCustomModulesFolderlocationname.java rename to owl-bot-staging/java-securitycentermanagement/v1/samples/snippets/generated/com/google/cloud/securitycentermanagement/v1/securitycentermanagement/listeffectivesecurityhealthanalyticscustommodules/SyncListEffectiveSecurityHealthAnalyticsCustomModulesFolderlocationname.java diff --git a/java-securitycentermanagement/samples/snippets/generated/com/google/cloud/securitycentermanagement/v1/securitycentermanagement/listeffectivesecurityhealthanalyticscustommodules/SyncListEffectiveSecurityHealthAnalyticsCustomModulesLocationname.java b/owl-bot-staging/java-securitycentermanagement/v1/samples/snippets/generated/com/google/cloud/securitycentermanagement/v1/securitycentermanagement/listeffectivesecurityhealthanalyticscustommodules/SyncListEffectiveSecurityHealthAnalyticsCustomModulesLocationname.java similarity index 100% rename from java-securitycentermanagement/samples/snippets/generated/com/google/cloud/securitycentermanagement/v1/securitycentermanagement/listeffectivesecurityhealthanalyticscustommodules/SyncListEffectiveSecurityHealthAnalyticsCustomModulesLocationname.java rename to owl-bot-staging/java-securitycentermanagement/v1/samples/snippets/generated/com/google/cloud/securitycentermanagement/v1/securitycentermanagement/listeffectivesecurityhealthanalyticscustommodules/SyncListEffectiveSecurityHealthAnalyticsCustomModulesLocationname.java diff --git a/java-securitycentermanagement/samples/snippets/generated/com/google/cloud/securitycentermanagement/v1/securitycentermanagement/listeffectivesecurityhealthanalyticscustommodules/SyncListEffectiveSecurityHealthAnalyticsCustomModulesOrganizationlocationname.java b/owl-bot-staging/java-securitycentermanagement/v1/samples/snippets/generated/com/google/cloud/securitycentermanagement/v1/securitycentermanagement/listeffectivesecurityhealthanalyticscustommodules/SyncListEffectiveSecurityHealthAnalyticsCustomModulesOrganizationlocationname.java similarity index 100% rename from java-securitycentermanagement/samples/snippets/generated/com/google/cloud/securitycentermanagement/v1/securitycentermanagement/listeffectivesecurityhealthanalyticscustommodules/SyncListEffectiveSecurityHealthAnalyticsCustomModulesOrganizationlocationname.java rename to owl-bot-staging/java-securitycentermanagement/v1/samples/snippets/generated/com/google/cloud/securitycentermanagement/v1/securitycentermanagement/listeffectivesecurityhealthanalyticscustommodules/SyncListEffectiveSecurityHealthAnalyticsCustomModulesOrganizationlocationname.java diff --git a/java-securitycentermanagement/samples/snippets/generated/com/google/cloud/securitycentermanagement/v1/securitycentermanagement/listeffectivesecurityhealthanalyticscustommodules/SyncListEffectiveSecurityHealthAnalyticsCustomModulesString.java b/owl-bot-staging/java-securitycentermanagement/v1/samples/snippets/generated/com/google/cloud/securitycentermanagement/v1/securitycentermanagement/listeffectivesecurityhealthanalyticscustommodules/SyncListEffectiveSecurityHealthAnalyticsCustomModulesString.java similarity index 100% rename from java-securitycentermanagement/samples/snippets/generated/com/google/cloud/securitycentermanagement/v1/securitycentermanagement/listeffectivesecurityhealthanalyticscustommodules/SyncListEffectiveSecurityHealthAnalyticsCustomModulesString.java rename to owl-bot-staging/java-securitycentermanagement/v1/samples/snippets/generated/com/google/cloud/securitycentermanagement/v1/securitycentermanagement/listeffectivesecurityhealthanalyticscustommodules/SyncListEffectiveSecurityHealthAnalyticsCustomModulesString.java diff --git a/java-securitycentermanagement/samples/snippets/generated/com/google/cloud/securitycentermanagement/v1/securitycentermanagement/listeventthreatdetectioncustommodules/AsyncListEventThreatDetectionCustomModules.java b/owl-bot-staging/java-securitycentermanagement/v1/samples/snippets/generated/com/google/cloud/securitycentermanagement/v1/securitycentermanagement/listeventthreatdetectioncustommodules/AsyncListEventThreatDetectionCustomModules.java similarity index 100% rename from java-securitycentermanagement/samples/snippets/generated/com/google/cloud/securitycentermanagement/v1/securitycentermanagement/listeventthreatdetectioncustommodules/AsyncListEventThreatDetectionCustomModules.java rename to owl-bot-staging/java-securitycentermanagement/v1/samples/snippets/generated/com/google/cloud/securitycentermanagement/v1/securitycentermanagement/listeventthreatdetectioncustommodules/AsyncListEventThreatDetectionCustomModules.java diff --git a/java-securitycentermanagement/samples/snippets/generated/com/google/cloud/securitycentermanagement/v1/securitycentermanagement/listeventthreatdetectioncustommodules/AsyncListEventThreatDetectionCustomModulesPaged.java b/owl-bot-staging/java-securitycentermanagement/v1/samples/snippets/generated/com/google/cloud/securitycentermanagement/v1/securitycentermanagement/listeventthreatdetectioncustommodules/AsyncListEventThreatDetectionCustomModulesPaged.java similarity index 100% rename from java-securitycentermanagement/samples/snippets/generated/com/google/cloud/securitycentermanagement/v1/securitycentermanagement/listeventthreatdetectioncustommodules/AsyncListEventThreatDetectionCustomModulesPaged.java rename to owl-bot-staging/java-securitycentermanagement/v1/samples/snippets/generated/com/google/cloud/securitycentermanagement/v1/securitycentermanagement/listeventthreatdetectioncustommodules/AsyncListEventThreatDetectionCustomModulesPaged.java diff --git a/java-securitycentermanagement/samples/snippets/generated/com/google/cloud/securitycentermanagement/v1/securitycentermanagement/listeventthreatdetectioncustommodules/SyncListEventThreatDetectionCustomModules.java b/owl-bot-staging/java-securitycentermanagement/v1/samples/snippets/generated/com/google/cloud/securitycentermanagement/v1/securitycentermanagement/listeventthreatdetectioncustommodules/SyncListEventThreatDetectionCustomModules.java similarity index 100% rename from java-securitycentermanagement/samples/snippets/generated/com/google/cloud/securitycentermanagement/v1/securitycentermanagement/listeventthreatdetectioncustommodules/SyncListEventThreatDetectionCustomModules.java rename to owl-bot-staging/java-securitycentermanagement/v1/samples/snippets/generated/com/google/cloud/securitycentermanagement/v1/securitycentermanagement/listeventthreatdetectioncustommodules/SyncListEventThreatDetectionCustomModules.java diff --git a/java-securitycentermanagement/samples/snippets/generated/com/google/cloud/securitycentermanagement/v1/securitycentermanagement/listeventthreatdetectioncustommodules/SyncListEventThreatDetectionCustomModulesFolderlocationname.java b/owl-bot-staging/java-securitycentermanagement/v1/samples/snippets/generated/com/google/cloud/securitycentermanagement/v1/securitycentermanagement/listeventthreatdetectioncustommodules/SyncListEventThreatDetectionCustomModulesFolderlocationname.java similarity index 100% rename from java-securitycentermanagement/samples/snippets/generated/com/google/cloud/securitycentermanagement/v1/securitycentermanagement/listeventthreatdetectioncustommodules/SyncListEventThreatDetectionCustomModulesFolderlocationname.java rename to owl-bot-staging/java-securitycentermanagement/v1/samples/snippets/generated/com/google/cloud/securitycentermanagement/v1/securitycentermanagement/listeventthreatdetectioncustommodules/SyncListEventThreatDetectionCustomModulesFolderlocationname.java diff --git a/java-securitycentermanagement/samples/snippets/generated/com/google/cloud/securitycentermanagement/v1/securitycentermanagement/listeventthreatdetectioncustommodules/SyncListEventThreatDetectionCustomModulesLocationname.java b/owl-bot-staging/java-securitycentermanagement/v1/samples/snippets/generated/com/google/cloud/securitycentermanagement/v1/securitycentermanagement/listeventthreatdetectioncustommodules/SyncListEventThreatDetectionCustomModulesLocationname.java similarity index 100% rename from java-securitycentermanagement/samples/snippets/generated/com/google/cloud/securitycentermanagement/v1/securitycentermanagement/listeventthreatdetectioncustommodules/SyncListEventThreatDetectionCustomModulesLocationname.java rename to owl-bot-staging/java-securitycentermanagement/v1/samples/snippets/generated/com/google/cloud/securitycentermanagement/v1/securitycentermanagement/listeventthreatdetectioncustommodules/SyncListEventThreatDetectionCustomModulesLocationname.java diff --git a/java-securitycentermanagement/samples/snippets/generated/com/google/cloud/securitycentermanagement/v1/securitycentermanagement/listeventthreatdetectioncustommodules/SyncListEventThreatDetectionCustomModulesOrganizationlocationname.java b/owl-bot-staging/java-securitycentermanagement/v1/samples/snippets/generated/com/google/cloud/securitycentermanagement/v1/securitycentermanagement/listeventthreatdetectioncustommodules/SyncListEventThreatDetectionCustomModulesOrganizationlocationname.java similarity index 100% rename from java-securitycentermanagement/samples/snippets/generated/com/google/cloud/securitycentermanagement/v1/securitycentermanagement/listeventthreatdetectioncustommodules/SyncListEventThreatDetectionCustomModulesOrganizationlocationname.java rename to owl-bot-staging/java-securitycentermanagement/v1/samples/snippets/generated/com/google/cloud/securitycentermanagement/v1/securitycentermanagement/listeventthreatdetectioncustommodules/SyncListEventThreatDetectionCustomModulesOrganizationlocationname.java diff --git a/java-securitycentermanagement/samples/snippets/generated/com/google/cloud/securitycentermanagement/v1/securitycentermanagement/listeventthreatdetectioncustommodules/SyncListEventThreatDetectionCustomModulesString.java b/owl-bot-staging/java-securitycentermanagement/v1/samples/snippets/generated/com/google/cloud/securitycentermanagement/v1/securitycentermanagement/listeventthreatdetectioncustommodules/SyncListEventThreatDetectionCustomModulesString.java similarity index 100% rename from java-securitycentermanagement/samples/snippets/generated/com/google/cloud/securitycentermanagement/v1/securitycentermanagement/listeventthreatdetectioncustommodules/SyncListEventThreatDetectionCustomModulesString.java rename to owl-bot-staging/java-securitycentermanagement/v1/samples/snippets/generated/com/google/cloud/securitycentermanagement/v1/securitycentermanagement/listeventthreatdetectioncustommodules/SyncListEventThreatDetectionCustomModulesString.java diff --git a/java-securitycentermanagement/samples/snippets/generated/com/google/cloud/securitycentermanagement/v1/securitycentermanagement/listlocations/AsyncListLocations.java b/owl-bot-staging/java-securitycentermanagement/v1/samples/snippets/generated/com/google/cloud/securitycentermanagement/v1/securitycentermanagement/listlocations/AsyncListLocations.java similarity index 100% rename from java-securitycentermanagement/samples/snippets/generated/com/google/cloud/securitycentermanagement/v1/securitycentermanagement/listlocations/AsyncListLocations.java rename to owl-bot-staging/java-securitycentermanagement/v1/samples/snippets/generated/com/google/cloud/securitycentermanagement/v1/securitycentermanagement/listlocations/AsyncListLocations.java diff --git a/java-securitycentermanagement/samples/snippets/generated/com/google/cloud/securitycentermanagement/v1/securitycentermanagement/listlocations/AsyncListLocationsPaged.java b/owl-bot-staging/java-securitycentermanagement/v1/samples/snippets/generated/com/google/cloud/securitycentermanagement/v1/securitycentermanagement/listlocations/AsyncListLocationsPaged.java similarity index 100% rename from java-securitycentermanagement/samples/snippets/generated/com/google/cloud/securitycentermanagement/v1/securitycentermanagement/listlocations/AsyncListLocationsPaged.java rename to owl-bot-staging/java-securitycentermanagement/v1/samples/snippets/generated/com/google/cloud/securitycentermanagement/v1/securitycentermanagement/listlocations/AsyncListLocationsPaged.java diff --git a/java-securitycentermanagement/samples/snippets/generated/com/google/cloud/securitycentermanagement/v1/securitycentermanagement/listlocations/SyncListLocations.java b/owl-bot-staging/java-securitycentermanagement/v1/samples/snippets/generated/com/google/cloud/securitycentermanagement/v1/securitycentermanagement/listlocations/SyncListLocations.java similarity index 100% rename from java-securitycentermanagement/samples/snippets/generated/com/google/cloud/securitycentermanagement/v1/securitycentermanagement/listlocations/SyncListLocations.java rename to owl-bot-staging/java-securitycentermanagement/v1/samples/snippets/generated/com/google/cloud/securitycentermanagement/v1/securitycentermanagement/listlocations/SyncListLocations.java diff --git a/java-securitycentermanagement/samples/snippets/generated/com/google/cloud/securitycentermanagement/v1/securitycentermanagement/listsecurityhealthanalyticscustommodules/AsyncListSecurityHealthAnalyticsCustomModules.java b/owl-bot-staging/java-securitycentermanagement/v1/samples/snippets/generated/com/google/cloud/securitycentermanagement/v1/securitycentermanagement/listsecurityhealthanalyticscustommodules/AsyncListSecurityHealthAnalyticsCustomModules.java similarity index 100% rename from java-securitycentermanagement/samples/snippets/generated/com/google/cloud/securitycentermanagement/v1/securitycentermanagement/listsecurityhealthanalyticscustommodules/AsyncListSecurityHealthAnalyticsCustomModules.java rename to owl-bot-staging/java-securitycentermanagement/v1/samples/snippets/generated/com/google/cloud/securitycentermanagement/v1/securitycentermanagement/listsecurityhealthanalyticscustommodules/AsyncListSecurityHealthAnalyticsCustomModules.java diff --git a/java-securitycentermanagement/samples/snippets/generated/com/google/cloud/securitycentermanagement/v1/securitycentermanagement/listsecurityhealthanalyticscustommodules/AsyncListSecurityHealthAnalyticsCustomModulesPaged.java b/owl-bot-staging/java-securitycentermanagement/v1/samples/snippets/generated/com/google/cloud/securitycentermanagement/v1/securitycentermanagement/listsecurityhealthanalyticscustommodules/AsyncListSecurityHealthAnalyticsCustomModulesPaged.java similarity index 100% rename from java-securitycentermanagement/samples/snippets/generated/com/google/cloud/securitycentermanagement/v1/securitycentermanagement/listsecurityhealthanalyticscustommodules/AsyncListSecurityHealthAnalyticsCustomModulesPaged.java rename to owl-bot-staging/java-securitycentermanagement/v1/samples/snippets/generated/com/google/cloud/securitycentermanagement/v1/securitycentermanagement/listsecurityhealthanalyticscustommodules/AsyncListSecurityHealthAnalyticsCustomModulesPaged.java diff --git a/java-securitycentermanagement/samples/snippets/generated/com/google/cloud/securitycentermanagement/v1/securitycentermanagement/listsecurityhealthanalyticscustommodules/SyncListSecurityHealthAnalyticsCustomModules.java b/owl-bot-staging/java-securitycentermanagement/v1/samples/snippets/generated/com/google/cloud/securitycentermanagement/v1/securitycentermanagement/listsecurityhealthanalyticscustommodules/SyncListSecurityHealthAnalyticsCustomModules.java similarity index 100% rename from java-securitycentermanagement/samples/snippets/generated/com/google/cloud/securitycentermanagement/v1/securitycentermanagement/listsecurityhealthanalyticscustommodules/SyncListSecurityHealthAnalyticsCustomModules.java rename to owl-bot-staging/java-securitycentermanagement/v1/samples/snippets/generated/com/google/cloud/securitycentermanagement/v1/securitycentermanagement/listsecurityhealthanalyticscustommodules/SyncListSecurityHealthAnalyticsCustomModules.java diff --git a/java-securitycentermanagement/samples/snippets/generated/com/google/cloud/securitycentermanagement/v1/securitycentermanagement/listsecurityhealthanalyticscustommodules/SyncListSecurityHealthAnalyticsCustomModulesFolderlocationname.java b/owl-bot-staging/java-securitycentermanagement/v1/samples/snippets/generated/com/google/cloud/securitycentermanagement/v1/securitycentermanagement/listsecurityhealthanalyticscustommodules/SyncListSecurityHealthAnalyticsCustomModulesFolderlocationname.java similarity index 100% rename from java-securitycentermanagement/samples/snippets/generated/com/google/cloud/securitycentermanagement/v1/securitycentermanagement/listsecurityhealthanalyticscustommodules/SyncListSecurityHealthAnalyticsCustomModulesFolderlocationname.java rename to owl-bot-staging/java-securitycentermanagement/v1/samples/snippets/generated/com/google/cloud/securitycentermanagement/v1/securitycentermanagement/listsecurityhealthanalyticscustommodules/SyncListSecurityHealthAnalyticsCustomModulesFolderlocationname.java diff --git a/java-securitycentermanagement/samples/snippets/generated/com/google/cloud/securitycentermanagement/v1/securitycentermanagement/listsecurityhealthanalyticscustommodules/SyncListSecurityHealthAnalyticsCustomModulesLocationname.java b/owl-bot-staging/java-securitycentermanagement/v1/samples/snippets/generated/com/google/cloud/securitycentermanagement/v1/securitycentermanagement/listsecurityhealthanalyticscustommodules/SyncListSecurityHealthAnalyticsCustomModulesLocationname.java similarity index 100% rename from java-securitycentermanagement/samples/snippets/generated/com/google/cloud/securitycentermanagement/v1/securitycentermanagement/listsecurityhealthanalyticscustommodules/SyncListSecurityHealthAnalyticsCustomModulesLocationname.java rename to owl-bot-staging/java-securitycentermanagement/v1/samples/snippets/generated/com/google/cloud/securitycentermanagement/v1/securitycentermanagement/listsecurityhealthanalyticscustommodules/SyncListSecurityHealthAnalyticsCustomModulesLocationname.java diff --git a/java-securitycentermanagement/samples/snippets/generated/com/google/cloud/securitycentermanagement/v1/securitycentermanagement/listsecurityhealthanalyticscustommodules/SyncListSecurityHealthAnalyticsCustomModulesOrganizationlocationname.java b/owl-bot-staging/java-securitycentermanagement/v1/samples/snippets/generated/com/google/cloud/securitycentermanagement/v1/securitycentermanagement/listsecurityhealthanalyticscustommodules/SyncListSecurityHealthAnalyticsCustomModulesOrganizationlocationname.java similarity index 100% rename from java-securitycentermanagement/samples/snippets/generated/com/google/cloud/securitycentermanagement/v1/securitycentermanagement/listsecurityhealthanalyticscustommodules/SyncListSecurityHealthAnalyticsCustomModulesOrganizationlocationname.java rename to owl-bot-staging/java-securitycentermanagement/v1/samples/snippets/generated/com/google/cloud/securitycentermanagement/v1/securitycentermanagement/listsecurityhealthanalyticscustommodules/SyncListSecurityHealthAnalyticsCustomModulesOrganizationlocationname.java diff --git a/java-securitycentermanagement/samples/snippets/generated/com/google/cloud/securitycentermanagement/v1/securitycentermanagement/listsecurityhealthanalyticscustommodules/SyncListSecurityHealthAnalyticsCustomModulesString.java b/owl-bot-staging/java-securitycentermanagement/v1/samples/snippets/generated/com/google/cloud/securitycentermanagement/v1/securitycentermanagement/listsecurityhealthanalyticscustommodules/SyncListSecurityHealthAnalyticsCustomModulesString.java similarity index 100% rename from java-securitycentermanagement/samples/snippets/generated/com/google/cloud/securitycentermanagement/v1/securitycentermanagement/listsecurityhealthanalyticscustommodules/SyncListSecurityHealthAnalyticsCustomModulesString.java rename to owl-bot-staging/java-securitycentermanagement/v1/samples/snippets/generated/com/google/cloud/securitycentermanagement/v1/securitycentermanagement/listsecurityhealthanalyticscustommodules/SyncListSecurityHealthAnalyticsCustomModulesString.java diff --git a/java-securitycentermanagement/samples/snippets/generated/com/google/cloud/securitycentermanagement/v1/securitycentermanagement/simulatesecurityhealthanalyticscustommodule/AsyncSimulateSecurityHealthAnalyticsCustomModule.java b/owl-bot-staging/java-securitycentermanagement/v1/samples/snippets/generated/com/google/cloud/securitycentermanagement/v1/securitycentermanagement/simulatesecurityhealthanalyticscustommodule/AsyncSimulateSecurityHealthAnalyticsCustomModule.java similarity index 100% rename from java-securitycentermanagement/samples/snippets/generated/com/google/cloud/securitycentermanagement/v1/securitycentermanagement/simulatesecurityhealthanalyticscustommodule/AsyncSimulateSecurityHealthAnalyticsCustomModule.java rename to owl-bot-staging/java-securitycentermanagement/v1/samples/snippets/generated/com/google/cloud/securitycentermanagement/v1/securitycentermanagement/simulatesecurityhealthanalyticscustommodule/AsyncSimulateSecurityHealthAnalyticsCustomModule.java diff --git a/java-securitycentermanagement/samples/snippets/generated/com/google/cloud/securitycentermanagement/v1/securitycentermanagement/simulatesecurityhealthanalyticscustommodule/SyncSimulateSecurityHealthAnalyticsCustomModule.java b/owl-bot-staging/java-securitycentermanagement/v1/samples/snippets/generated/com/google/cloud/securitycentermanagement/v1/securitycentermanagement/simulatesecurityhealthanalyticscustommodule/SyncSimulateSecurityHealthAnalyticsCustomModule.java similarity index 100% rename from java-securitycentermanagement/samples/snippets/generated/com/google/cloud/securitycentermanagement/v1/securitycentermanagement/simulatesecurityhealthanalyticscustommodule/SyncSimulateSecurityHealthAnalyticsCustomModule.java rename to owl-bot-staging/java-securitycentermanagement/v1/samples/snippets/generated/com/google/cloud/securitycentermanagement/v1/securitycentermanagement/simulatesecurityhealthanalyticscustommodule/SyncSimulateSecurityHealthAnalyticsCustomModule.java diff --git a/java-securitycentermanagement/samples/snippets/generated/com/google/cloud/securitycentermanagement/v1/securitycentermanagement/simulatesecurityhealthanalyticscustommodule/SyncSimulateSecurityHealthAnalyticsCustomModuleStringCustomconfigSimulatesecurityhealthanalyticscustommodulerequestsimulatedresource.java b/owl-bot-staging/java-securitycentermanagement/v1/samples/snippets/generated/com/google/cloud/securitycentermanagement/v1/securitycentermanagement/simulatesecurityhealthanalyticscustommodule/SyncSimulateSecurityHealthAnalyticsCustomModuleStringCustomconfigSimulatesecurityhealthanalyticscustommodulerequestsimulatedresource.java similarity index 100% rename from java-securitycentermanagement/samples/snippets/generated/com/google/cloud/securitycentermanagement/v1/securitycentermanagement/simulatesecurityhealthanalyticscustommodule/SyncSimulateSecurityHealthAnalyticsCustomModuleStringCustomconfigSimulatesecurityhealthanalyticscustommodulerequestsimulatedresource.java rename to owl-bot-staging/java-securitycentermanagement/v1/samples/snippets/generated/com/google/cloud/securitycentermanagement/v1/securitycentermanagement/simulatesecurityhealthanalyticscustommodule/SyncSimulateSecurityHealthAnalyticsCustomModuleStringCustomconfigSimulatesecurityhealthanalyticscustommodulerequestsimulatedresource.java diff --git a/java-securitycentermanagement/samples/snippets/generated/com/google/cloud/securitycentermanagement/v1/securitycentermanagement/updateeventthreatdetectioncustommodule/AsyncUpdateEventThreatDetectionCustomModule.java b/owl-bot-staging/java-securitycentermanagement/v1/samples/snippets/generated/com/google/cloud/securitycentermanagement/v1/securitycentermanagement/updateeventthreatdetectioncustommodule/AsyncUpdateEventThreatDetectionCustomModule.java similarity index 100% rename from java-securitycentermanagement/samples/snippets/generated/com/google/cloud/securitycentermanagement/v1/securitycentermanagement/updateeventthreatdetectioncustommodule/AsyncUpdateEventThreatDetectionCustomModule.java rename to owl-bot-staging/java-securitycentermanagement/v1/samples/snippets/generated/com/google/cloud/securitycentermanagement/v1/securitycentermanagement/updateeventthreatdetectioncustommodule/AsyncUpdateEventThreatDetectionCustomModule.java diff --git a/java-securitycentermanagement/samples/snippets/generated/com/google/cloud/securitycentermanagement/v1/securitycentermanagement/updateeventthreatdetectioncustommodule/SyncUpdateEventThreatDetectionCustomModule.java b/owl-bot-staging/java-securitycentermanagement/v1/samples/snippets/generated/com/google/cloud/securitycentermanagement/v1/securitycentermanagement/updateeventthreatdetectioncustommodule/SyncUpdateEventThreatDetectionCustomModule.java similarity index 100% rename from java-securitycentermanagement/samples/snippets/generated/com/google/cloud/securitycentermanagement/v1/securitycentermanagement/updateeventthreatdetectioncustommodule/SyncUpdateEventThreatDetectionCustomModule.java rename to owl-bot-staging/java-securitycentermanagement/v1/samples/snippets/generated/com/google/cloud/securitycentermanagement/v1/securitycentermanagement/updateeventthreatdetectioncustommodule/SyncUpdateEventThreatDetectionCustomModule.java diff --git a/java-securitycentermanagement/samples/snippets/generated/com/google/cloud/securitycentermanagement/v1/securitycentermanagement/updateeventthreatdetectioncustommodule/SyncUpdateEventThreatDetectionCustomModuleEventthreatdetectioncustommoduleFieldmask.java b/owl-bot-staging/java-securitycentermanagement/v1/samples/snippets/generated/com/google/cloud/securitycentermanagement/v1/securitycentermanagement/updateeventthreatdetectioncustommodule/SyncUpdateEventThreatDetectionCustomModuleEventthreatdetectioncustommoduleFieldmask.java similarity index 100% rename from java-securitycentermanagement/samples/snippets/generated/com/google/cloud/securitycentermanagement/v1/securitycentermanagement/updateeventthreatdetectioncustommodule/SyncUpdateEventThreatDetectionCustomModuleEventthreatdetectioncustommoduleFieldmask.java rename to owl-bot-staging/java-securitycentermanagement/v1/samples/snippets/generated/com/google/cloud/securitycentermanagement/v1/securitycentermanagement/updateeventthreatdetectioncustommodule/SyncUpdateEventThreatDetectionCustomModuleEventthreatdetectioncustommoduleFieldmask.java diff --git a/java-securitycentermanagement/samples/snippets/generated/com/google/cloud/securitycentermanagement/v1/securitycentermanagement/updatesecurityhealthanalyticscustommodule/AsyncUpdateSecurityHealthAnalyticsCustomModule.java b/owl-bot-staging/java-securitycentermanagement/v1/samples/snippets/generated/com/google/cloud/securitycentermanagement/v1/securitycentermanagement/updatesecurityhealthanalyticscustommodule/AsyncUpdateSecurityHealthAnalyticsCustomModule.java similarity index 100% rename from java-securitycentermanagement/samples/snippets/generated/com/google/cloud/securitycentermanagement/v1/securitycentermanagement/updatesecurityhealthanalyticscustommodule/AsyncUpdateSecurityHealthAnalyticsCustomModule.java rename to owl-bot-staging/java-securitycentermanagement/v1/samples/snippets/generated/com/google/cloud/securitycentermanagement/v1/securitycentermanagement/updatesecurityhealthanalyticscustommodule/AsyncUpdateSecurityHealthAnalyticsCustomModule.java diff --git a/java-securitycentermanagement/samples/snippets/generated/com/google/cloud/securitycentermanagement/v1/securitycentermanagement/updatesecurityhealthanalyticscustommodule/SyncUpdateSecurityHealthAnalyticsCustomModule.java b/owl-bot-staging/java-securitycentermanagement/v1/samples/snippets/generated/com/google/cloud/securitycentermanagement/v1/securitycentermanagement/updatesecurityhealthanalyticscustommodule/SyncUpdateSecurityHealthAnalyticsCustomModule.java similarity index 100% rename from java-securitycentermanagement/samples/snippets/generated/com/google/cloud/securitycentermanagement/v1/securitycentermanagement/updatesecurityhealthanalyticscustommodule/SyncUpdateSecurityHealthAnalyticsCustomModule.java rename to owl-bot-staging/java-securitycentermanagement/v1/samples/snippets/generated/com/google/cloud/securitycentermanagement/v1/securitycentermanagement/updatesecurityhealthanalyticscustommodule/SyncUpdateSecurityHealthAnalyticsCustomModule.java diff --git a/java-securitycentermanagement/samples/snippets/generated/com/google/cloud/securitycentermanagement/v1/securitycentermanagement/updatesecurityhealthanalyticscustommodule/SyncUpdateSecurityHealthAnalyticsCustomModuleSecurityhealthanalyticscustommoduleFieldmask.java b/owl-bot-staging/java-securitycentermanagement/v1/samples/snippets/generated/com/google/cloud/securitycentermanagement/v1/securitycentermanagement/updatesecurityhealthanalyticscustommodule/SyncUpdateSecurityHealthAnalyticsCustomModuleSecurityhealthanalyticscustommoduleFieldmask.java similarity index 100% rename from java-securitycentermanagement/samples/snippets/generated/com/google/cloud/securitycentermanagement/v1/securitycentermanagement/updatesecurityhealthanalyticscustommodule/SyncUpdateSecurityHealthAnalyticsCustomModuleSecurityhealthanalyticscustommoduleFieldmask.java rename to owl-bot-staging/java-securitycentermanagement/v1/samples/snippets/generated/com/google/cloud/securitycentermanagement/v1/securitycentermanagement/updatesecurityhealthanalyticscustommodule/SyncUpdateSecurityHealthAnalyticsCustomModuleSecurityhealthanalyticscustommoduleFieldmask.java diff --git a/java-securitycentermanagement/samples/snippets/generated/com/google/cloud/securitycentermanagement/v1/securitycentermanagement/validateeventthreatdetectioncustommodule/AsyncValidateEventThreatDetectionCustomModule.java b/owl-bot-staging/java-securitycentermanagement/v1/samples/snippets/generated/com/google/cloud/securitycentermanagement/v1/securitycentermanagement/validateeventthreatdetectioncustommodule/AsyncValidateEventThreatDetectionCustomModule.java similarity index 100% rename from java-securitycentermanagement/samples/snippets/generated/com/google/cloud/securitycentermanagement/v1/securitycentermanagement/validateeventthreatdetectioncustommodule/AsyncValidateEventThreatDetectionCustomModule.java rename to owl-bot-staging/java-securitycentermanagement/v1/samples/snippets/generated/com/google/cloud/securitycentermanagement/v1/securitycentermanagement/validateeventthreatdetectioncustommodule/AsyncValidateEventThreatDetectionCustomModule.java diff --git a/java-securitycentermanagement/samples/snippets/generated/com/google/cloud/securitycentermanagement/v1/securitycentermanagement/validateeventthreatdetectioncustommodule/SyncValidateEventThreatDetectionCustomModule.java b/owl-bot-staging/java-securitycentermanagement/v1/samples/snippets/generated/com/google/cloud/securitycentermanagement/v1/securitycentermanagement/validateeventthreatdetectioncustommodule/SyncValidateEventThreatDetectionCustomModule.java similarity index 100% rename from java-securitycentermanagement/samples/snippets/generated/com/google/cloud/securitycentermanagement/v1/securitycentermanagement/validateeventthreatdetectioncustommodule/SyncValidateEventThreatDetectionCustomModule.java rename to owl-bot-staging/java-securitycentermanagement/v1/samples/snippets/generated/com/google/cloud/securitycentermanagement/v1/securitycentermanagement/validateeventthreatdetectioncustommodule/SyncValidateEventThreatDetectionCustomModule.java diff --git a/java-securitycentermanagement/samples/snippets/generated/com/google/cloud/securitycentermanagement/v1/securitycentermanagementsettings/geteffectivesecurityhealthanalyticscustommodule/SyncGetEffectiveSecurityHealthAnalyticsCustomModule.java b/owl-bot-staging/java-securitycentermanagement/v1/samples/snippets/generated/com/google/cloud/securitycentermanagement/v1/securitycentermanagementsettings/geteffectivesecurityhealthanalyticscustommodule/SyncGetEffectiveSecurityHealthAnalyticsCustomModule.java similarity index 100% rename from java-securitycentermanagement/samples/snippets/generated/com/google/cloud/securitycentermanagement/v1/securitycentermanagementsettings/geteffectivesecurityhealthanalyticscustommodule/SyncGetEffectiveSecurityHealthAnalyticsCustomModule.java rename to owl-bot-staging/java-securitycentermanagement/v1/samples/snippets/generated/com/google/cloud/securitycentermanagement/v1/securitycentermanagementsettings/geteffectivesecurityhealthanalyticscustommodule/SyncGetEffectiveSecurityHealthAnalyticsCustomModule.java diff --git a/java-securitycentermanagement/samples/snippets/generated/com/google/cloud/securitycentermanagement/v1/stub/securitycentermanagementstubsettings/geteffectivesecurityhealthanalyticscustommodule/SyncGetEffectiveSecurityHealthAnalyticsCustomModule.java b/owl-bot-staging/java-securitycentermanagement/v1/samples/snippets/generated/com/google/cloud/securitycentermanagement/v1/stub/securitycentermanagementstubsettings/geteffectivesecurityhealthanalyticscustommodule/SyncGetEffectiveSecurityHealthAnalyticsCustomModule.java similarity index 100% rename from java-securitycentermanagement/samples/snippets/generated/com/google/cloud/securitycentermanagement/v1/stub/securitycentermanagementstubsettings/geteffectivesecurityhealthanalyticscustommodule/SyncGetEffectiveSecurityHealthAnalyticsCustomModule.java rename to owl-bot-staging/java-securitycentermanagement/v1/samples/snippets/generated/com/google/cloud/securitycentermanagement/v1/stub/securitycentermanagementstubsettings/geteffectivesecurityhealthanalyticscustommodule/SyncGetEffectiveSecurityHealthAnalyticsCustomModule.java From cf14430545486fb5dd4205068679c73369a852ee Mon Sep 17 00:00:00 2001 From: Owl Bot Date: Sat, 13 Jan 2024 01:17:13 +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-securitycentermanagement/README.md | 2 +- .../v1/SecurityCenterManagementClient.java | 0 .../v1/SecurityCenterManagementSettings.java | 1 - .../v1/gapic_metadata.json | 0 .../v1/package-info.java | 0 ...curityCenterManagementCallableFactory.java | 0 .../GrpcSecurityCenterManagementStub.java | 1 - ...curityCenterManagementCallableFactory.java | 0 .../HttpJsonSecurityCenterManagementStub.java | 0 .../v1/stub/SecurityCenterManagementStub.java | 0 .../SecurityCenterManagementStubSettings.java | 0 .../reflect-config.json | 0 .../v1/MockLocations.java | 0 .../v1/MockLocationsImpl.java | 0 .../v1/MockSecurityCenterManagement.java | 0 .../v1/MockSecurityCenterManagementImpl.java | 0 ...ityCenterManagementClientHttpJsonTest.java | 0 .../SecurityCenterManagementClientTest.java | 0 .../v1/SecurityCenterManagementGrpc.java | 3331 +++++++++++++++ ...entThreatDetectionCustomModuleRequest.java | 719 ++-- ...DetectionCustomModuleRequestOrBuilder.java | 64 +- ...ityHealthAnalyticsCustomModuleRequest.java | 730 ++-- ...AnalyticsCustomModuleRequestOrBuilder.java | 64 +- .../v1/CustomConfig.java | 2781 ++++++++----- .../v1/CustomConfigOrBuilder.java | 104 +- ...entThreatDetectionCustomModuleRequest.java | 532 ++- ...DetectionCustomModuleRequestOrBuilder.java | 38 +- ...ityHealthAnalyticsCustomModuleRequest.java | 539 ++- ...AnalyticsCustomModuleRequestOrBuilder.java | 38 +- ...ctiveEventThreatDetectionCustomModule.java | 943 +++-- ...eEventThreatDetectionCustomModuleName.java | 0 ...tThreatDetectionCustomModuleOrBuilder.java | 80 +- ...veSecurityHealthAnalyticsCustomModule.java | 885 ++-- ...curityHealthAnalyticsCustomModuleName.java | 0 ...yHealthAnalyticsCustomModuleOrBuilder.java | 74 +- .../v1/EventThreatDetectionCustomModule.java | 1216 ++++-- .../EventThreatDetectionCustomModuleName.java | 0 ...tThreatDetectionCustomModuleOrBuilder.java | 122 +- .../v1/FolderLocationName.java | 0 ...entThreatDetectionCustomModuleRequest.java | 757 ++++ ...DetectionCustomModuleRequestOrBuilder.java | 35 +- ...ityHealthAnalyticsCustomModuleRequest.java | 758 ++++ ...AnalyticsCustomModuleRequestOrBuilder.java | 35 +- ...entThreatDetectionCustomModuleRequest.java | 488 ++- ...DetectionCustomModuleRequestOrBuilder.java | 35 +- ...ityHealthAnalyticsCustomModuleRequest.java | 705 ++++ ...AnalyticsCustomModuleRequestOrBuilder.java | 54 + ...ntThreatDetectionCustomModulesRequest.java | 616 ++- ...etectionCustomModulesRequestOrBuilder.java | 47 +- ...tThreatDetectionCustomModulesResponse.java | 1302 ++++++ ...tectionCustomModulesResponseOrBuilder.java | 118 + ...tyHealthAnalyticsCustomModulesRequest.java | 617 ++- ...nalyticsCustomModulesRequestOrBuilder.java | 47 +- ...yHealthAnalyticsCustomModulesResponse.java | 1310 ++++++ ...alyticsCustomModulesResponseOrBuilder.java | 118 + ...ntThreatDetectionCustomModulesRequest.java | 616 ++- ...etectionCustomModulesRequestOrBuilder.java | 47 +- ...tThreatDetectionCustomModulesResponse.java | 1329 ++++++ ...tectionCustomModulesResponseOrBuilder.java | 119 + ...tyHealthAnalyticsCustomModulesRequest.java | 616 ++- ...nalyticsCustomModulesRequestOrBuilder.java | 47 +- ...yHealthAnalyticsCustomModulesResponse.java | 1337 ++++++ ...alyticsCustomModulesResponseOrBuilder.java | 119 + ...ntThreatDetectionCustomModulesRequest.java | 598 ++- ...etectionCustomModulesRequestOrBuilder.java | 47 +- ...tThreatDetectionCustomModulesResponse.java | 789 ++-- ...tectionCustomModulesResponseOrBuilder.java | 118 + ...tyHealthAnalyticsCustomModulesRequest.java | 606 ++- ...nalyticsCustomModulesRequestOrBuilder.java | 47 +- ...yHealthAnalyticsCustomModulesResponse.java | 806 ++-- ...alyticsCustomModulesResponseOrBuilder.java | 118 + .../v1/LocationName.java | 0 .../v1/OrganizationLocationName.java | 0 .../v1/SecurityCenterManagementProto.java | 1181 ++++++ .../SecurityHealthAnalyticsCustomModule.java | 1164 ++++-- ...curityHealthAnalyticsCustomModuleName.java | 0 ...yHealthAnalyticsCustomModuleOrBuilder.java | 116 +- ...ityHealthAnalyticsCustomModuleRequest.java | 1614 +++++--- ...AnalyticsCustomModuleRequestOrBuilder.java | 75 +- ...tyHealthAnalyticsCustomModuleResponse.java | 1387 ++++--- ...nalyticsCustomModuleResponseOrBuilder.java | 70 + .../v1/SimulatedFinding.java | 1397 ++++--- .../v1/SimulatedFindingOrBuilder.java | 126 +- ...entThreatDetectionCustomModuleRequest.java | 747 ++-- ...DetectionCustomModuleRequestOrBuilder.java | 64 +- ...ityHealthAnalyticsCustomModuleRequest.java | 758 ++-- ...AnalyticsCustomModuleRequestOrBuilder.java | 64 +- ...entThreatDetectionCustomModuleRequest.java | 647 +-- ...DetectionCustomModuleRequestOrBuilder.java | 53 +- ...ntThreatDetectionCustomModuleResponse.java | 3644 +++++++++++++++++ ...etectionCustomModuleResponseOrBuilder.java | 103 + .../v1/security_center_management.proto | 0 .../SyncCreateSetCredentialsProvider.java | 0 .../SyncCreateSetCredentialsProvider1.java | 0 .../create/SyncCreateSetEndpoint.java | 0 ...reateEventThreatDetectionCustomModule.java | 0 ...reateEventThreatDetectionCustomModule.java | 0 ...nnameEventthreatdetectioncustommodule.java | 0 ...nnameEventthreatdetectioncustommodule.java | 0 ...nnameEventthreatdetectioncustommodule.java | 0 ...tringEventthreatdetectioncustommodule.java | 0 ...teSecurityHealthAnalyticsCustomModule.java | 0 ...teSecurityHealthAnalyticsCustomModule.java | 0 ...meSecurityhealthanalyticscustommodule.java | 0 ...meSecurityhealthanalyticscustommodule.java | 0 ...meSecurityhealthanalyticscustommodule.java | 0 ...ngSecurityhealthanalyticscustommodule.java | 0 ...eleteEventThreatDetectionCustomModule.java | 0 ...eleteEventThreatDetectionCustomModule.java | 0 ...eEventthreatdetectioncustommodulename.java | 0 ...ventThreatDetectionCustomModuleString.java | 0 ...teSecurityHealthAnalyticsCustomModule.java | 0 ...teSecurityHealthAnalyticsCustomModule.java | 0 ...curityhealthanalyticscustommodulename.java | 0 ...rityHealthAnalyticsCustomModuleString.java | 0 ...ctiveEventThreatDetectionCustomModule.java | 0 ...ctiveEventThreatDetectionCustomModule.java | 0 ...eeventthreatdetectioncustommodulename.java | 0 ...ventThreatDetectionCustomModuleString.java | 0 ...veSecurityHealthAnalyticsCustomModule.java | 0 ...veSecurityHealthAnalyticsCustomModule.java | 0 ...curityhealthanalyticscustommodulename.java | 0 ...rityHealthAnalyticsCustomModuleString.java | 0 ...ncGetEventThreatDetectionCustomModule.java | 0 ...ncGetEventThreatDetectionCustomModule.java | 0 ...eEventthreatdetectioncustommodulename.java | 0 ...ventThreatDetectionCustomModuleString.java | 0 .../getlocation/AsyncGetLocation.java | 0 .../getlocation/SyncGetLocation.java | 0 ...etSecurityHealthAnalyticsCustomModule.java | 0 ...etSecurityHealthAnalyticsCustomModule.java | 0 ...curityhealthanalyticscustommodulename.java | 0 ...rityHealthAnalyticsCustomModuleString.java | 0 ...dantEventThreatDetectionCustomModules.java | 0 ...ventThreatDetectionCustomModulesPaged.java | 0 ...dantEventThreatDetectionCustomModules.java | 0 ...ectionCustomModulesFolderlocationname.java | 0 ...eatDetectionCustomModulesLocationname.java | 0 ...CustomModulesOrganizationlocationname.java | 0 ...entThreatDetectionCustomModulesString.java | 0 ...tSecurityHealthAnalyticsCustomModules.java | 0 ...rityHealthAnalyticsCustomModulesPaged.java | 0 ...tSecurityHealthAnalyticsCustomModules.java | 0 ...lyticsCustomModulesFolderlocationname.java | 0 ...lthAnalyticsCustomModulesLocationname.java | 0 ...CustomModulesOrganizationlocationname.java | 0 ...ityHealthAnalyticsCustomModulesString.java | 0 ...tiveEventThreatDetectionCustomModules.java | 0 ...ventThreatDetectionCustomModulesPaged.java | 0 ...tiveEventThreatDetectionCustomModules.java | 0 ...ectionCustomModulesFolderlocationname.java | 0 ...eatDetectionCustomModulesLocationname.java | 0 ...CustomModulesOrganizationlocationname.java | 0 ...entThreatDetectionCustomModulesString.java | 0 ...eSecurityHealthAnalyticsCustomModules.java | 0 ...rityHealthAnalyticsCustomModulesPaged.java | 0 ...eSecurityHealthAnalyticsCustomModules.java | 0 ...lyticsCustomModulesFolderlocationname.java | 0 ...lthAnalyticsCustomModulesLocationname.java | 0 ...CustomModulesOrganizationlocationname.java | 0 ...ityHealthAnalyticsCustomModulesString.java | 0 ...ListEventThreatDetectionCustomModules.java | 0 ...ventThreatDetectionCustomModulesPaged.java | 0 ...ListEventThreatDetectionCustomModules.java | 0 ...ectionCustomModulesFolderlocationname.java | 0 ...eatDetectionCustomModulesLocationname.java | 0 ...CustomModulesOrganizationlocationname.java | 0 ...entThreatDetectionCustomModulesString.java | 0 .../listlocations/AsyncListLocations.java | 0 .../AsyncListLocationsPaged.java | 0 .../listlocations/SyncListLocations.java | 0 ...tSecurityHealthAnalyticsCustomModules.java | 0 ...rityHealthAnalyticsCustomModulesPaged.java | 0 ...tSecurityHealthAnalyticsCustomModules.java | 0 ...lyticsCustomModulesFolderlocationname.java | 0 ...lthAnalyticsCustomModulesLocationname.java | 0 ...CustomModulesOrganizationlocationname.java | 0 ...ityHealthAnalyticsCustomModulesString.java | 0 ...teSecurityHealthAnalyticsCustomModule.java | 0 ...teSecurityHealthAnalyticsCustomModule.java | 0 ...scustommodulerequestsimulatedresource.java | 0 ...pdateEventThreatDetectionCustomModule.java | 0 ...pdateEventThreatDetectionCustomModule.java | 0 ...tthreatdetectioncustommoduleFieldmask.java | 0 ...teSecurityHealthAnalyticsCustomModule.java | 0 ...teSecurityHealthAnalyticsCustomModule.java | 0 ...yhealthanalyticscustommoduleFieldmask.java | 0 ...idateEventThreatDetectionCustomModule.java | 0 ...idateEventThreatDetectionCustomModule.java | 0 ...veSecurityHealthAnalyticsCustomModule.java | 0 ...veSecurityHealthAnalyticsCustomModule.java | 0 .../v1/SecurityCenterManagementGrpc.java | 1929 --------- ...entThreatDetectionCustomModuleRequest.java | 619 --- ...ityHealthAnalyticsCustomModuleRequest.java | 619 --- ...ityHealthAnalyticsCustomModuleRequest.java | 577 --- ...AnalyticsCustomModuleRequestOrBuilder.java | 29 - ...tThreatDetectionCustomModulesResponse.java | 1025 ----- ...tectionCustomModulesResponseOrBuilder.java | 73 - ...yHealthAnalyticsCustomModulesResponse.java | 1025 ----- ...alyticsCustomModulesResponseOrBuilder.java | 73 - ...tThreatDetectionCustomModulesResponse.java | 1025 ----- ...tectionCustomModulesResponseOrBuilder.java | 73 - ...yHealthAnalyticsCustomModulesResponse.java | 1025 ----- ...alyticsCustomModulesResponseOrBuilder.java | 73 - ...tectionCustomModulesResponseOrBuilder.java | 73 - ...alyticsCustomModulesResponseOrBuilder.java | 73 - .../v1/SecurityCenterManagementProto.java | 1084 ----- ...nalyticsCustomModuleResponseOrBuilder.java | 36 - ...ntThreatDetectionCustomModuleResponse.java | 2853 ------------- ...etectionCustomModuleResponseOrBuilder.java | 58 - versions.txt | 2 +- 211 files changed, 31955 insertions(+), 20264 deletions(-) rename {owl-bot-staging/java-securitycentermanagement/v1 => java-securitycentermanagement}/google-cloud-securitycentermanagement/src/main/java/com/google/cloud/securitycentermanagement/v1/SecurityCenterManagementClient.java (100%) rename {owl-bot-staging/java-securitycentermanagement/v1 => java-securitycentermanagement}/google-cloud-securitycentermanagement/src/main/java/com/google/cloud/securitycentermanagement/v1/SecurityCenterManagementSettings.java (99%) rename {owl-bot-staging/java-securitycentermanagement/v1 => java-securitycentermanagement}/google-cloud-securitycentermanagement/src/main/java/com/google/cloud/securitycentermanagement/v1/gapic_metadata.json (100%) rename {owl-bot-staging/java-securitycentermanagement/v1 => java-securitycentermanagement}/google-cloud-securitycentermanagement/src/main/java/com/google/cloud/securitycentermanagement/v1/package-info.java (100%) rename {owl-bot-staging/java-securitycentermanagement/v1 => java-securitycentermanagement}/google-cloud-securitycentermanagement/src/main/java/com/google/cloud/securitycentermanagement/v1/stub/GrpcSecurityCenterManagementCallableFactory.java (100%) rename {owl-bot-staging/java-securitycentermanagement/v1 => java-securitycentermanagement}/google-cloud-securitycentermanagement/src/main/java/com/google/cloud/securitycentermanagement/v1/stub/GrpcSecurityCenterManagementStub.java (99%) rename {owl-bot-staging/java-securitycentermanagement/v1 => java-securitycentermanagement}/google-cloud-securitycentermanagement/src/main/java/com/google/cloud/securitycentermanagement/v1/stub/HttpJsonSecurityCenterManagementCallableFactory.java (100%) rename {owl-bot-staging/java-securitycentermanagement/v1 => java-securitycentermanagement}/google-cloud-securitycentermanagement/src/main/java/com/google/cloud/securitycentermanagement/v1/stub/HttpJsonSecurityCenterManagementStub.java (100%) rename {owl-bot-staging/java-securitycentermanagement/v1 => java-securitycentermanagement}/google-cloud-securitycentermanagement/src/main/java/com/google/cloud/securitycentermanagement/v1/stub/SecurityCenterManagementStub.java (100%) rename {owl-bot-staging/java-securitycentermanagement/v1 => java-securitycentermanagement}/google-cloud-securitycentermanagement/src/main/java/com/google/cloud/securitycentermanagement/v1/stub/SecurityCenterManagementStubSettings.java (100%) rename {owl-bot-staging/java-securitycentermanagement/v1 => java-securitycentermanagement}/google-cloud-securitycentermanagement/src/main/resources/META-INF/native-image/com.google.cloud.securitycentermanagement.v1/reflect-config.json (100%) rename {owl-bot-staging/java-securitycentermanagement/v1 => java-securitycentermanagement}/google-cloud-securitycentermanagement/src/test/java/com/google/cloud/securitycentermanagement/v1/MockLocations.java (100%) rename {owl-bot-staging/java-securitycentermanagement/v1 => java-securitycentermanagement}/google-cloud-securitycentermanagement/src/test/java/com/google/cloud/securitycentermanagement/v1/MockLocationsImpl.java (100%) rename {owl-bot-staging/java-securitycentermanagement/v1 => java-securitycentermanagement}/google-cloud-securitycentermanagement/src/test/java/com/google/cloud/securitycentermanagement/v1/MockSecurityCenterManagement.java (100%) rename {owl-bot-staging/java-securitycentermanagement/v1 => java-securitycentermanagement}/google-cloud-securitycentermanagement/src/test/java/com/google/cloud/securitycentermanagement/v1/MockSecurityCenterManagementImpl.java (100%) rename {owl-bot-staging/java-securitycentermanagement/v1 => java-securitycentermanagement}/google-cloud-securitycentermanagement/src/test/java/com/google/cloud/securitycentermanagement/v1/SecurityCenterManagementClientHttpJsonTest.java (100%) rename {owl-bot-staging/java-securitycentermanagement/v1 => java-securitycentermanagement}/google-cloud-securitycentermanagement/src/test/java/com/google/cloud/securitycentermanagement/v1/SecurityCenterManagementClientTest.java (100%) create mode 100644 java-securitycentermanagement/grpc-google-cloud-securitycentermanagement-v1/src/main/java/com/google/cloud/securitycentermanagement/v1/SecurityCenterManagementGrpc.java rename {owl-bot-staging/java-securitycentermanagement/v1 => java-securitycentermanagement}/proto-google-cloud-securitycentermanagement-v1/src/main/java/com/google/cloud/securitycentermanagement/v1/CreateEventThreatDetectionCustomModuleRequest.java (52%) rename {owl-bot-staging/java-securitycentermanagement/v1 => java-securitycentermanagement}/proto-google-cloud-securitycentermanagement-v1/src/main/java/com/google/cloud/securitycentermanagement/v1/CreateEventThreatDetectionCustomModuleRequestOrBuilder.java (59%) rename {owl-bot-staging/java-securitycentermanagement/v1 => java-securitycentermanagement}/proto-google-cloud-securitycentermanagement-v1/src/main/java/com/google/cloud/securitycentermanagement/v1/CreateSecurityHealthAnalyticsCustomModuleRequest.java (50%) rename {owl-bot-staging/java-securitycentermanagement/v1 => java-securitycentermanagement}/proto-google-cloud-securitycentermanagement-v1/src/main/java/com/google/cloud/securitycentermanagement/v1/CreateSecurityHealthAnalyticsCustomModuleRequestOrBuilder.java (56%) rename {owl-bot-staging/java-securitycentermanagement/v1 => java-securitycentermanagement}/proto-google-cloud-securitycentermanagement-v1/src/main/java/com/google/cloud/securitycentermanagement/v1/CustomConfig.java (62%) rename {owl-bot-staging/java-securitycentermanagement/v1 => java-securitycentermanagement}/proto-google-cloud-securitycentermanagement-v1/src/main/java/com/google/cloud/securitycentermanagement/v1/CustomConfigOrBuilder.java (68%) rename {owl-bot-staging/java-securitycentermanagement/v1 => java-securitycentermanagement}/proto-google-cloud-securitycentermanagement-v1/src/main/java/com/google/cloud/securitycentermanagement/v1/DeleteEventThreatDetectionCustomModuleRequest.java (54%) rename {owl-bot-staging/java-securitycentermanagement/v1 => java-securitycentermanagement}/proto-google-cloud-securitycentermanagement-v1/src/main/java/com/google/cloud/securitycentermanagement/v1/DeleteEventThreatDetectionCustomModuleRequestOrBuilder.java (69%) rename {owl-bot-staging/java-securitycentermanagement/v1 => java-securitycentermanagement}/proto-google-cloud-securitycentermanagement-v1/src/main/java/com/google/cloud/securitycentermanagement/v1/DeleteSecurityHealthAnalyticsCustomModuleRequest.java (54%) rename {owl-bot-staging/java-securitycentermanagement/v1 => java-securitycentermanagement}/proto-google-cloud-securitycentermanagement-v1/src/main/java/com/google/cloud/securitycentermanagement/v1/DeleteSecurityHealthAnalyticsCustomModuleRequestOrBuilder.java (69%) rename {owl-bot-staging/java-securitycentermanagement/v1 => java-securitycentermanagement}/proto-google-cloud-securitycentermanagement-v1/src/main/java/com/google/cloud/securitycentermanagement/v1/EffectiveEventThreatDetectionCustomModule.java (64%) rename {owl-bot-staging/java-securitycentermanagement/v1 => java-securitycentermanagement}/proto-google-cloud-securitycentermanagement-v1/src/main/java/com/google/cloud/securitycentermanagement/v1/EffectiveEventThreatDetectionCustomModuleName.java (100%) rename {owl-bot-staging/java-securitycentermanagement/v1 => java-securitycentermanagement}/proto-google-cloud-securitycentermanagement-v1/src/main/java/com/google/cloud/securitycentermanagement/v1/EffectiveEventThreatDetectionCustomModuleOrBuilder.java (75%) rename {owl-bot-staging/java-securitycentermanagement/v1 => java-securitycentermanagement}/proto-google-cloud-securitycentermanagement-v1/src/main/java/com/google/cloud/securitycentermanagement/v1/EffectiveSecurityHealthAnalyticsCustomModule.java (58%) rename {owl-bot-staging/java-securitycentermanagement/v1 => java-securitycentermanagement}/proto-google-cloud-securitycentermanagement-v1/src/main/java/com/google/cloud/securitycentermanagement/v1/EffectiveSecurityHealthAnalyticsCustomModuleName.java (100%) rename {owl-bot-staging/java-securitycentermanagement/v1 => java-securitycentermanagement}/proto-google-cloud-securitycentermanagement-v1/src/main/java/com/google/cloud/securitycentermanagement/v1/EffectiveSecurityHealthAnalyticsCustomModuleOrBuilder.java (67%) rename {owl-bot-staging/java-securitycentermanagement/v1 => java-securitycentermanagement}/proto-google-cloud-securitycentermanagement-v1/src/main/java/com/google/cloud/securitycentermanagement/v1/EventThreatDetectionCustomModule.java (68%) rename {owl-bot-staging/java-securitycentermanagement/v1 => java-securitycentermanagement}/proto-google-cloud-securitycentermanagement-v1/src/main/java/com/google/cloud/securitycentermanagement/v1/EventThreatDetectionCustomModuleName.java (100%) rename {owl-bot-staging/java-securitycentermanagement/v1 => java-securitycentermanagement}/proto-google-cloud-securitycentermanagement-v1/src/main/java/com/google/cloud/securitycentermanagement/v1/EventThreatDetectionCustomModuleOrBuilder.java (75%) rename {owl-bot-staging/java-securitycentermanagement/v1 => java-securitycentermanagement}/proto-google-cloud-securitycentermanagement-v1/src/main/java/com/google/cloud/securitycentermanagement/v1/FolderLocationName.java (100%) create mode 100644 java-securitycentermanagement/proto-google-cloud-securitycentermanagement-v1/src/main/java/com/google/cloud/securitycentermanagement/v1/GetEffectiveEventThreatDetectionCustomModuleRequest.java rename {owl-bot-staging/java-securitycentermanagement/v1 => java-securitycentermanagement}/proto-google-cloud-securitycentermanagement-v1/src/main/java/com/google/cloud/securitycentermanagement/v1/GetEffectiveEventThreatDetectionCustomModuleRequestOrBuilder.java (63%) create mode 100644 java-securitycentermanagement/proto-google-cloud-securitycentermanagement-v1/src/main/java/com/google/cloud/securitycentermanagement/v1/GetEffectiveSecurityHealthAnalyticsCustomModuleRequest.java rename {owl-bot-staging/java-securitycentermanagement/v1 => java-securitycentermanagement}/proto-google-cloud-securitycentermanagement-v1/src/main/java/com/google/cloud/securitycentermanagement/v1/GetEffectiveSecurityHealthAnalyticsCustomModuleRequestOrBuilder.java (60%) rename {owl-bot-staging/java-securitycentermanagement/v1 => java-securitycentermanagement}/proto-google-cloud-securitycentermanagement-v1/src/main/java/com/google/cloud/securitycentermanagement/v1/GetEventThreatDetectionCustomModuleRequest.java (51%) rename {owl-bot-staging/java-securitycentermanagement/v1 => java-securitycentermanagement}/proto-google-cloud-securitycentermanagement-v1/src/main/java/com/google/cloud/securitycentermanagement/v1/GetEventThreatDetectionCustomModuleRequestOrBuilder.java (62%) create mode 100644 java-securitycentermanagement/proto-google-cloud-securitycentermanagement-v1/src/main/java/com/google/cloud/securitycentermanagement/v1/GetSecurityHealthAnalyticsCustomModuleRequest.java create mode 100644 java-securitycentermanagement/proto-google-cloud-securitycentermanagement-v1/src/main/java/com/google/cloud/securitycentermanagement/v1/GetSecurityHealthAnalyticsCustomModuleRequestOrBuilder.java rename {owl-bot-staging/java-securitycentermanagement/v1 => java-securitycentermanagement}/proto-google-cloud-securitycentermanagement-v1/src/main/java/com/google/cloud/securitycentermanagement/v1/ListDescendantEventThreatDetectionCustomModulesRequest.java (52%) rename {owl-bot-staging/java-securitycentermanagement/v1 => java-securitycentermanagement}/proto-google-cloud-securitycentermanagement-v1/src/main/java/com/google/cloud/securitycentermanagement/v1/ListDescendantEventThreatDetectionCustomModulesRequestOrBuilder.java (65%) create mode 100644 java-securitycentermanagement/proto-google-cloud-securitycentermanagement-v1/src/main/java/com/google/cloud/securitycentermanagement/v1/ListDescendantEventThreatDetectionCustomModulesResponse.java create mode 100644 java-securitycentermanagement/proto-google-cloud-securitycentermanagement-v1/src/main/java/com/google/cloud/securitycentermanagement/v1/ListDescendantEventThreatDetectionCustomModulesResponseOrBuilder.java rename {owl-bot-staging/java-securitycentermanagement/v1 => java-securitycentermanagement}/proto-google-cloud-securitycentermanagement-v1/src/main/java/com/google/cloud/securitycentermanagement/v1/ListDescendantSecurityHealthAnalyticsCustomModulesRequest.java (51%) rename {owl-bot-staging/java-securitycentermanagement/v1 => java-securitycentermanagement}/proto-google-cloud-securitycentermanagement-v1/src/main/java/com/google/cloud/securitycentermanagement/v1/ListDescendantSecurityHealthAnalyticsCustomModulesRequestOrBuilder.java (63%) create mode 100644 java-securitycentermanagement/proto-google-cloud-securitycentermanagement-v1/src/main/java/com/google/cloud/securitycentermanagement/v1/ListDescendantSecurityHealthAnalyticsCustomModulesResponse.java create mode 100644 java-securitycentermanagement/proto-google-cloud-securitycentermanagement-v1/src/main/java/com/google/cloud/securitycentermanagement/v1/ListDescendantSecurityHealthAnalyticsCustomModulesResponseOrBuilder.java rename {owl-bot-staging/java-securitycentermanagement/v1 => java-securitycentermanagement}/proto-google-cloud-securitycentermanagement-v1/src/main/java/com/google/cloud/securitycentermanagement/v1/ListEffectiveEventThreatDetectionCustomModulesRequest.java (52%) rename {owl-bot-staging/java-securitycentermanagement/v1 => java-securitycentermanagement}/proto-google-cloud-securitycentermanagement-v1/src/main/java/com/google/cloud/securitycentermanagement/v1/ListEffectiveEventThreatDetectionCustomModulesRequestOrBuilder.java (64%) create mode 100644 java-securitycentermanagement/proto-google-cloud-securitycentermanagement-v1/src/main/java/com/google/cloud/securitycentermanagement/v1/ListEffectiveEventThreatDetectionCustomModulesResponse.java create mode 100644 java-securitycentermanagement/proto-google-cloud-securitycentermanagement-v1/src/main/java/com/google/cloud/securitycentermanagement/v1/ListEffectiveEventThreatDetectionCustomModulesResponseOrBuilder.java rename {owl-bot-staging/java-securitycentermanagement/v1 => java-securitycentermanagement}/proto-google-cloud-securitycentermanagement-v1/src/main/java/com/google/cloud/securitycentermanagement/v1/ListEffectiveSecurityHealthAnalyticsCustomModulesRequest.java (52%) rename {owl-bot-staging/java-securitycentermanagement/v1 => java-securitycentermanagement}/proto-google-cloud-securitycentermanagement-v1/src/main/java/com/google/cloud/securitycentermanagement/v1/ListEffectiveSecurityHealthAnalyticsCustomModulesRequestOrBuilder.java (64%) create mode 100644 java-securitycentermanagement/proto-google-cloud-securitycentermanagement-v1/src/main/java/com/google/cloud/securitycentermanagement/v1/ListEffectiveSecurityHealthAnalyticsCustomModulesResponse.java create mode 100644 java-securitycentermanagement/proto-google-cloud-securitycentermanagement-v1/src/main/java/com/google/cloud/securitycentermanagement/v1/ListEffectiveSecurityHealthAnalyticsCustomModulesResponseOrBuilder.java rename {owl-bot-staging/java-securitycentermanagement/v1 => java-securitycentermanagement}/proto-google-cloud-securitycentermanagement-v1/src/main/java/com/google/cloud/securitycentermanagement/v1/ListEventThreatDetectionCustomModulesRequest.java (57%) rename {owl-bot-staging/java-securitycentermanagement/v1 => java-securitycentermanagement}/proto-google-cloud-securitycentermanagement-v1/src/main/java/com/google/cloud/securitycentermanagement/v1/ListEventThreatDetectionCustomModulesRequestOrBuilder.java (69%) rename {owl-bot-staging/java-securitycentermanagement/v1 => java-securitycentermanagement}/proto-google-cloud-securitycentermanagement-v1/src/main/java/com/google/cloud/securitycentermanagement/v1/ListEventThreatDetectionCustomModulesResponse.java (50%) create mode 100644 java-securitycentermanagement/proto-google-cloud-securitycentermanagement-v1/src/main/java/com/google/cloud/securitycentermanagement/v1/ListEventThreatDetectionCustomModulesResponseOrBuilder.java rename {owl-bot-staging/java-securitycentermanagement/v1 => java-securitycentermanagement}/proto-google-cloud-securitycentermanagement-v1/src/main/java/com/google/cloud/securitycentermanagement/v1/ListSecurityHealthAnalyticsCustomModulesRequest.java (53%) rename {owl-bot-staging/java-securitycentermanagement/v1 => java-securitycentermanagement}/proto-google-cloud-securitycentermanagement-v1/src/main/java/com/google/cloud/securitycentermanagement/v1/ListSecurityHealthAnalyticsCustomModulesRequestOrBuilder.java (63%) rename {owl-bot-staging/java-securitycentermanagement/v1 => java-securitycentermanagement}/proto-google-cloud-securitycentermanagement-v1/src/main/java/com/google/cloud/securitycentermanagement/v1/ListSecurityHealthAnalyticsCustomModulesResponse.java (50%) create mode 100644 java-securitycentermanagement/proto-google-cloud-securitycentermanagement-v1/src/main/java/com/google/cloud/securitycentermanagement/v1/ListSecurityHealthAnalyticsCustomModulesResponseOrBuilder.java rename {owl-bot-staging/java-securitycentermanagement/v1 => java-securitycentermanagement}/proto-google-cloud-securitycentermanagement-v1/src/main/java/com/google/cloud/securitycentermanagement/v1/LocationName.java (100%) rename {owl-bot-staging/java-securitycentermanagement/v1 => java-securitycentermanagement}/proto-google-cloud-securitycentermanagement-v1/src/main/java/com/google/cloud/securitycentermanagement/v1/OrganizationLocationName.java (100%) create mode 100644 java-securitycentermanagement/proto-google-cloud-securitycentermanagement-v1/src/main/java/com/google/cloud/securitycentermanagement/v1/SecurityCenterManagementProto.java rename {owl-bot-staging/java-securitycentermanagement/v1 => java-securitycentermanagement}/proto-google-cloud-securitycentermanagement-v1/src/main/java/com/google/cloud/securitycentermanagement/v1/SecurityHealthAnalyticsCustomModule.java (64%) rename {owl-bot-staging/java-securitycentermanagement/v1 => java-securitycentermanagement}/proto-google-cloud-securitycentermanagement-v1/src/main/java/com/google/cloud/securitycentermanagement/v1/SecurityHealthAnalyticsCustomModuleName.java (100%) rename {owl-bot-staging/java-securitycentermanagement/v1 => java-securitycentermanagement}/proto-google-cloud-securitycentermanagement-v1/src/main/java/com/google/cloud/securitycentermanagement/v1/SecurityHealthAnalyticsCustomModuleOrBuilder.java (70%) rename {owl-bot-staging/java-securitycentermanagement/v1 => java-securitycentermanagement}/proto-google-cloud-securitycentermanagement-v1/src/main/java/com/google/cloud/securitycentermanagement/v1/SimulateSecurityHealthAnalyticsCustomModuleRequest.java (53%) rename {owl-bot-staging/java-securitycentermanagement/v1 => java-securitycentermanagement}/proto-google-cloud-securitycentermanagement-v1/src/main/java/com/google/cloud/securitycentermanagement/v1/SimulateSecurityHealthAnalyticsCustomModuleRequestOrBuilder.java (55%) rename {owl-bot-staging/java-securitycentermanagement/v1 => java-securitycentermanagement}/proto-google-cloud-securitycentermanagement-v1/src/main/java/com/google/cloud/securitycentermanagement/v1/SimulateSecurityHealthAnalyticsCustomModuleResponse.java (53%) create mode 100644 java-securitycentermanagement/proto-google-cloud-securitycentermanagement-v1/src/main/java/com/google/cloud/securitycentermanagement/v1/SimulateSecurityHealthAnalyticsCustomModuleResponseOrBuilder.java rename {owl-bot-staging/java-securitycentermanagement/v1 => java-securitycentermanagement}/proto-google-cloud-securitycentermanagement-v1/src/main/java/com/google/cloud/securitycentermanagement/v1/SimulatedFinding.java (73%) rename {owl-bot-staging/java-securitycentermanagement/v1 => java-securitycentermanagement}/proto-google-cloud-securitycentermanagement-v1/src/main/java/com/google/cloud/securitycentermanagement/v1/SimulatedFindingOrBuilder.java (81%) rename {owl-bot-staging/java-securitycentermanagement/v1 => java-securitycentermanagement}/proto-google-cloud-securitycentermanagement-v1/src/main/java/com/google/cloud/securitycentermanagement/v1/UpdateEventThreatDetectionCustomModuleRequest.java (56%) rename {owl-bot-staging/java-securitycentermanagement/v1 => java-securitycentermanagement}/proto-google-cloud-securitycentermanagement-v1/src/main/java/com/google/cloud/securitycentermanagement/v1/UpdateEventThreatDetectionCustomModuleRequestOrBuilder.java (67%) rename {owl-bot-staging/java-securitycentermanagement/v1 => java-securitycentermanagement}/proto-google-cloud-securitycentermanagement-v1/src/main/java/com/google/cloud/securitycentermanagement/v1/UpdateSecurityHealthAnalyticsCustomModuleRequest.java (53%) rename {owl-bot-staging/java-securitycentermanagement/v1 => java-securitycentermanagement}/proto-google-cloud-securitycentermanagement-v1/src/main/java/com/google/cloud/securitycentermanagement/v1/UpdateSecurityHealthAnalyticsCustomModuleRequestOrBuilder.java (64%) rename {owl-bot-staging/java-securitycentermanagement/v1 => java-securitycentermanagement}/proto-google-cloud-securitycentermanagement-v1/src/main/java/com/google/cloud/securitycentermanagement/v1/ValidateEventThreatDetectionCustomModuleRequest.java (54%) rename {owl-bot-staging/java-securitycentermanagement/v1 => java-securitycentermanagement}/proto-google-cloud-securitycentermanagement-v1/src/main/java/com/google/cloud/securitycentermanagement/v1/ValidateEventThreatDetectionCustomModuleRequestOrBuilder.java (63%) create mode 100644 java-securitycentermanagement/proto-google-cloud-securitycentermanagement-v1/src/main/java/com/google/cloud/securitycentermanagement/v1/ValidateEventThreatDetectionCustomModuleResponse.java create mode 100644 java-securitycentermanagement/proto-google-cloud-securitycentermanagement-v1/src/main/java/com/google/cloud/securitycentermanagement/v1/ValidateEventThreatDetectionCustomModuleResponseOrBuilder.java rename {owl-bot-staging/java-securitycentermanagement/v1 => java-securitycentermanagement}/proto-google-cloud-securitycentermanagement-v1/src/main/proto/google/cloud/securitycentermanagement/v1/security_center_management.proto (100%) rename {owl-bot-staging/java-securitycentermanagement/v1 => java-securitycentermanagement}/samples/snippets/generated/com/google/cloud/securitycentermanagement/v1/securitycentermanagement/create/SyncCreateSetCredentialsProvider.java (100%) rename {owl-bot-staging/java-securitycentermanagement/v1 => java-securitycentermanagement}/samples/snippets/generated/com/google/cloud/securitycentermanagement/v1/securitycentermanagement/create/SyncCreateSetCredentialsProvider1.java (100%) rename {owl-bot-staging/java-securitycentermanagement/v1 => java-securitycentermanagement}/samples/snippets/generated/com/google/cloud/securitycentermanagement/v1/securitycentermanagement/create/SyncCreateSetEndpoint.java (100%) rename {owl-bot-staging/java-securitycentermanagement/v1 => java-securitycentermanagement}/samples/snippets/generated/com/google/cloud/securitycentermanagement/v1/securitycentermanagement/createeventthreatdetectioncustommodule/AsyncCreateEventThreatDetectionCustomModule.java (100%) rename {owl-bot-staging/java-securitycentermanagement/v1 => java-securitycentermanagement}/samples/snippets/generated/com/google/cloud/securitycentermanagement/v1/securitycentermanagement/createeventthreatdetectioncustommodule/SyncCreateEventThreatDetectionCustomModule.java (100%) rename {owl-bot-staging/java-securitycentermanagement/v1 => java-securitycentermanagement}/samples/snippets/generated/com/google/cloud/securitycentermanagement/v1/securitycentermanagement/createeventthreatdetectioncustommodule/SyncCreateEventThreatDetectionCustomModuleFolderlocationnameEventthreatdetectioncustommodule.java (100%) rename {owl-bot-staging/java-securitycentermanagement/v1 => java-securitycentermanagement}/samples/snippets/generated/com/google/cloud/securitycentermanagement/v1/securitycentermanagement/createeventthreatdetectioncustommodule/SyncCreateEventThreatDetectionCustomModuleLocationnameEventthreatdetectioncustommodule.java (100%) rename {owl-bot-staging/java-securitycentermanagement/v1 => java-securitycentermanagement}/samples/snippets/generated/com/google/cloud/securitycentermanagement/v1/securitycentermanagement/createeventthreatdetectioncustommodule/SyncCreateEventThreatDetectionCustomModuleOrganizationlocationnameEventthreatdetectioncustommodule.java (100%) rename {owl-bot-staging/java-securitycentermanagement/v1 => java-securitycentermanagement}/samples/snippets/generated/com/google/cloud/securitycentermanagement/v1/securitycentermanagement/createeventthreatdetectioncustommodule/SyncCreateEventThreatDetectionCustomModuleStringEventthreatdetectioncustommodule.java (100%) rename {owl-bot-staging/java-securitycentermanagement/v1 => java-securitycentermanagement}/samples/snippets/generated/com/google/cloud/securitycentermanagement/v1/securitycentermanagement/createsecurityhealthanalyticscustommodule/AsyncCreateSecurityHealthAnalyticsCustomModule.java (100%) rename {owl-bot-staging/java-securitycentermanagement/v1 => java-securitycentermanagement}/samples/snippets/generated/com/google/cloud/securitycentermanagement/v1/securitycentermanagement/createsecurityhealthanalyticscustommodule/SyncCreateSecurityHealthAnalyticsCustomModule.java (100%) rename {owl-bot-staging/java-securitycentermanagement/v1 => java-securitycentermanagement}/samples/snippets/generated/com/google/cloud/securitycentermanagement/v1/securitycentermanagement/createsecurityhealthanalyticscustommodule/SyncCreateSecurityHealthAnalyticsCustomModuleFolderlocationnameSecurityhealthanalyticscustommodule.java (100%) rename {owl-bot-staging/java-securitycentermanagement/v1 => java-securitycentermanagement}/samples/snippets/generated/com/google/cloud/securitycentermanagement/v1/securitycentermanagement/createsecurityhealthanalyticscustommodule/SyncCreateSecurityHealthAnalyticsCustomModuleLocationnameSecurityhealthanalyticscustommodule.java (100%) rename {owl-bot-staging/java-securitycentermanagement/v1 => java-securitycentermanagement}/samples/snippets/generated/com/google/cloud/securitycentermanagement/v1/securitycentermanagement/createsecurityhealthanalyticscustommodule/SyncCreateSecurityHealthAnalyticsCustomModuleOrganizationlocationnameSecurityhealthanalyticscustommodule.java (100%) rename {owl-bot-staging/java-securitycentermanagement/v1 => java-securitycentermanagement}/samples/snippets/generated/com/google/cloud/securitycentermanagement/v1/securitycentermanagement/createsecurityhealthanalyticscustommodule/SyncCreateSecurityHealthAnalyticsCustomModuleStringSecurityhealthanalyticscustommodule.java (100%) rename {owl-bot-staging/java-securitycentermanagement/v1 => java-securitycentermanagement}/samples/snippets/generated/com/google/cloud/securitycentermanagement/v1/securitycentermanagement/deleteeventthreatdetectioncustommodule/AsyncDeleteEventThreatDetectionCustomModule.java (100%) rename {owl-bot-staging/java-securitycentermanagement/v1 => java-securitycentermanagement}/samples/snippets/generated/com/google/cloud/securitycentermanagement/v1/securitycentermanagement/deleteeventthreatdetectioncustommodule/SyncDeleteEventThreatDetectionCustomModule.java (100%) rename {owl-bot-staging/java-securitycentermanagement/v1 => java-securitycentermanagement}/samples/snippets/generated/com/google/cloud/securitycentermanagement/v1/securitycentermanagement/deleteeventthreatdetectioncustommodule/SyncDeleteEventThreatDetectionCustomModuleEventthreatdetectioncustommodulename.java (100%) rename {owl-bot-staging/java-securitycentermanagement/v1 => java-securitycentermanagement}/samples/snippets/generated/com/google/cloud/securitycentermanagement/v1/securitycentermanagement/deleteeventthreatdetectioncustommodule/SyncDeleteEventThreatDetectionCustomModuleString.java (100%) rename {owl-bot-staging/java-securitycentermanagement/v1 => java-securitycentermanagement}/samples/snippets/generated/com/google/cloud/securitycentermanagement/v1/securitycentermanagement/deletesecurityhealthanalyticscustommodule/AsyncDeleteSecurityHealthAnalyticsCustomModule.java (100%) rename {owl-bot-staging/java-securitycentermanagement/v1 => java-securitycentermanagement}/samples/snippets/generated/com/google/cloud/securitycentermanagement/v1/securitycentermanagement/deletesecurityhealthanalyticscustommodule/SyncDeleteSecurityHealthAnalyticsCustomModule.java (100%) rename {owl-bot-staging/java-securitycentermanagement/v1 => java-securitycentermanagement}/samples/snippets/generated/com/google/cloud/securitycentermanagement/v1/securitycentermanagement/deletesecurityhealthanalyticscustommodule/SyncDeleteSecurityHealthAnalyticsCustomModuleSecurityhealthanalyticscustommodulename.java (100%) rename {owl-bot-staging/java-securitycentermanagement/v1 => java-securitycentermanagement}/samples/snippets/generated/com/google/cloud/securitycentermanagement/v1/securitycentermanagement/deletesecurityhealthanalyticscustommodule/SyncDeleteSecurityHealthAnalyticsCustomModuleString.java (100%) rename {owl-bot-staging/java-securitycentermanagement/v1 => java-securitycentermanagement}/samples/snippets/generated/com/google/cloud/securitycentermanagement/v1/securitycentermanagement/geteffectiveeventthreatdetectioncustommodule/AsyncGetEffectiveEventThreatDetectionCustomModule.java (100%) rename {owl-bot-staging/java-securitycentermanagement/v1 => java-securitycentermanagement}/samples/snippets/generated/com/google/cloud/securitycentermanagement/v1/securitycentermanagement/geteffectiveeventthreatdetectioncustommodule/SyncGetEffectiveEventThreatDetectionCustomModule.java (100%) rename {owl-bot-staging/java-securitycentermanagement/v1 => java-securitycentermanagement}/samples/snippets/generated/com/google/cloud/securitycentermanagement/v1/securitycentermanagement/geteffectiveeventthreatdetectioncustommodule/SyncGetEffectiveEventThreatDetectionCustomModuleEffectiveeventthreatdetectioncustommodulename.java (100%) rename {owl-bot-staging/java-securitycentermanagement/v1 => java-securitycentermanagement}/samples/snippets/generated/com/google/cloud/securitycentermanagement/v1/securitycentermanagement/geteffectiveeventthreatdetectioncustommodule/SyncGetEffectiveEventThreatDetectionCustomModuleString.java (100%) rename {owl-bot-staging/java-securitycentermanagement/v1 => java-securitycentermanagement}/samples/snippets/generated/com/google/cloud/securitycentermanagement/v1/securitycentermanagement/geteffectivesecurityhealthanalyticscustommodule/AsyncGetEffectiveSecurityHealthAnalyticsCustomModule.java (100%) rename {owl-bot-staging/java-securitycentermanagement/v1 => java-securitycentermanagement}/samples/snippets/generated/com/google/cloud/securitycentermanagement/v1/securitycentermanagement/geteffectivesecurityhealthanalyticscustommodule/SyncGetEffectiveSecurityHealthAnalyticsCustomModule.java (100%) rename {owl-bot-staging/java-securitycentermanagement/v1 => java-securitycentermanagement}/samples/snippets/generated/com/google/cloud/securitycentermanagement/v1/securitycentermanagement/geteffectivesecurityhealthanalyticscustommodule/SyncGetEffectiveSecurityHealthAnalyticsCustomModuleEffectivesecurityhealthanalyticscustommodulename.java (100%) rename {owl-bot-staging/java-securitycentermanagement/v1 => java-securitycentermanagement}/samples/snippets/generated/com/google/cloud/securitycentermanagement/v1/securitycentermanagement/geteffectivesecurityhealthanalyticscustommodule/SyncGetEffectiveSecurityHealthAnalyticsCustomModuleString.java (100%) rename {owl-bot-staging/java-securitycentermanagement/v1 => java-securitycentermanagement}/samples/snippets/generated/com/google/cloud/securitycentermanagement/v1/securitycentermanagement/geteventthreatdetectioncustommodule/AsyncGetEventThreatDetectionCustomModule.java (100%) rename {owl-bot-staging/java-securitycentermanagement/v1 => java-securitycentermanagement}/samples/snippets/generated/com/google/cloud/securitycentermanagement/v1/securitycentermanagement/geteventthreatdetectioncustommodule/SyncGetEventThreatDetectionCustomModule.java (100%) rename {owl-bot-staging/java-securitycentermanagement/v1 => java-securitycentermanagement}/samples/snippets/generated/com/google/cloud/securitycentermanagement/v1/securitycentermanagement/geteventthreatdetectioncustommodule/SyncGetEventThreatDetectionCustomModuleEventthreatdetectioncustommodulename.java (100%) rename {owl-bot-staging/java-securitycentermanagement/v1 => java-securitycentermanagement}/samples/snippets/generated/com/google/cloud/securitycentermanagement/v1/securitycentermanagement/geteventthreatdetectioncustommodule/SyncGetEventThreatDetectionCustomModuleString.java (100%) rename {owl-bot-staging/java-securitycentermanagement/v1 => java-securitycentermanagement}/samples/snippets/generated/com/google/cloud/securitycentermanagement/v1/securitycentermanagement/getlocation/AsyncGetLocation.java (100%) rename {owl-bot-staging/java-securitycentermanagement/v1 => java-securitycentermanagement}/samples/snippets/generated/com/google/cloud/securitycentermanagement/v1/securitycentermanagement/getlocation/SyncGetLocation.java (100%) rename {owl-bot-staging/java-securitycentermanagement/v1 => java-securitycentermanagement}/samples/snippets/generated/com/google/cloud/securitycentermanagement/v1/securitycentermanagement/getsecurityhealthanalyticscustommodule/AsyncGetSecurityHealthAnalyticsCustomModule.java (100%) rename {owl-bot-staging/java-securitycentermanagement/v1 => java-securitycentermanagement}/samples/snippets/generated/com/google/cloud/securitycentermanagement/v1/securitycentermanagement/getsecurityhealthanalyticscustommodule/SyncGetSecurityHealthAnalyticsCustomModule.java (100%) rename {owl-bot-staging/java-securitycentermanagement/v1 => java-securitycentermanagement}/samples/snippets/generated/com/google/cloud/securitycentermanagement/v1/securitycentermanagement/getsecurityhealthanalyticscustommodule/SyncGetSecurityHealthAnalyticsCustomModuleSecurityhealthanalyticscustommodulename.java (100%) rename {owl-bot-staging/java-securitycentermanagement/v1 => java-securitycentermanagement}/samples/snippets/generated/com/google/cloud/securitycentermanagement/v1/securitycentermanagement/getsecurityhealthanalyticscustommodule/SyncGetSecurityHealthAnalyticsCustomModuleString.java (100%) rename {owl-bot-staging/java-securitycentermanagement/v1 => java-securitycentermanagement}/samples/snippets/generated/com/google/cloud/securitycentermanagement/v1/securitycentermanagement/listdescendanteventthreatdetectioncustommodules/AsyncListDescendantEventThreatDetectionCustomModules.java (100%) rename {owl-bot-staging/java-securitycentermanagement/v1 => java-securitycentermanagement}/samples/snippets/generated/com/google/cloud/securitycentermanagement/v1/securitycentermanagement/listdescendanteventthreatdetectioncustommodules/AsyncListDescendantEventThreatDetectionCustomModulesPaged.java (100%) rename {owl-bot-staging/java-securitycentermanagement/v1 => java-securitycentermanagement}/samples/snippets/generated/com/google/cloud/securitycentermanagement/v1/securitycentermanagement/listdescendanteventthreatdetectioncustommodules/SyncListDescendantEventThreatDetectionCustomModules.java (100%) rename {owl-bot-staging/java-securitycentermanagement/v1 => java-securitycentermanagement}/samples/snippets/generated/com/google/cloud/securitycentermanagement/v1/securitycentermanagement/listdescendanteventthreatdetectioncustommodules/SyncListDescendantEventThreatDetectionCustomModulesFolderlocationname.java (100%) rename {owl-bot-staging/java-securitycentermanagement/v1 => java-securitycentermanagement}/samples/snippets/generated/com/google/cloud/securitycentermanagement/v1/securitycentermanagement/listdescendanteventthreatdetectioncustommodules/SyncListDescendantEventThreatDetectionCustomModulesLocationname.java (100%) rename {owl-bot-staging/java-securitycentermanagement/v1 => java-securitycentermanagement}/samples/snippets/generated/com/google/cloud/securitycentermanagement/v1/securitycentermanagement/listdescendanteventthreatdetectioncustommodules/SyncListDescendantEventThreatDetectionCustomModulesOrganizationlocationname.java (100%) rename {owl-bot-staging/java-securitycentermanagement/v1 => java-securitycentermanagement}/samples/snippets/generated/com/google/cloud/securitycentermanagement/v1/securitycentermanagement/listdescendanteventthreatdetectioncustommodules/SyncListDescendantEventThreatDetectionCustomModulesString.java (100%) rename {owl-bot-staging/java-securitycentermanagement/v1 => java-securitycentermanagement}/samples/snippets/generated/com/google/cloud/securitycentermanagement/v1/securitycentermanagement/listdescendantsecurityhealthanalyticscustommodules/AsyncListDescendantSecurityHealthAnalyticsCustomModules.java (100%) rename {owl-bot-staging/java-securitycentermanagement/v1 => java-securitycentermanagement}/samples/snippets/generated/com/google/cloud/securitycentermanagement/v1/securitycentermanagement/listdescendantsecurityhealthanalyticscustommodules/AsyncListDescendantSecurityHealthAnalyticsCustomModulesPaged.java (100%) rename {owl-bot-staging/java-securitycentermanagement/v1 => java-securitycentermanagement}/samples/snippets/generated/com/google/cloud/securitycentermanagement/v1/securitycentermanagement/listdescendantsecurityhealthanalyticscustommodules/SyncListDescendantSecurityHealthAnalyticsCustomModules.java (100%) rename {owl-bot-staging/java-securitycentermanagement/v1 => java-securitycentermanagement}/samples/snippets/generated/com/google/cloud/securitycentermanagement/v1/securitycentermanagement/listdescendantsecurityhealthanalyticscustommodules/SyncListDescendantSecurityHealthAnalyticsCustomModulesFolderlocationname.java (100%) rename {owl-bot-staging/java-securitycentermanagement/v1 => java-securitycentermanagement}/samples/snippets/generated/com/google/cloud/securitycentermanagement/v1/securitycentermanagement/listdescendantsecurityhealthanalyticscustommodules/SyncListDescendantSecurityHealthAnalyticsCustomModulesLocationname.java (100%) rename {owl-bot-staging/java-securitycentermanagement/v1 => java-securitycentermanagement}/samples/snippets/generated/com/google/cloud/securitycentermanagement/v1/securitycentermanagement/listdescendantsecurityhealthanalyticscustommodules/SyncListDescendantSecurityHealthAnalyticsCustomModulesOrganizationlocationname.java (100%) rename {owl-bot-staging/java-securitycentermanagement/v1 => java-securitycentermanagement}/samples/snippets/generated/com/google/cloud/securitycentermanagement/v1/securitycentermanagement/listdescendantsecurityhealthanalyticscustommodules/SyncListDescendantSecurityHealthAnalyticsCustomModulesString.java (100%) rename {owl-bot-staging/java-securitycentermanagement/v1 => java-securitycentermanagement}/samples/snippets/generated/com/google/cloud/securitycentermanagement/v1/securitycentermanagement/listeffectiveeventthreatdetectioncustommodules/AsyncListEffectiveEventThreatDetectionCustomModules.java (100%) rename {owl-bot-staging/java-securitycentermanagement/v1 => java-securitycentermanagement}/samples/snippets/generated/com/google/cloud/securitycentermanagement/v1/securitycentermanagement/listeffectiveeventthreatdetectioncustommodules/AsyncListEffectiveEventThreatDetectionCustomModulesPaged.java (100%) rename {owl-bot-staging/java-securitycentermanagement/v1 => java-securitycentermanagement}/samples/snippets/generated/com/google/cloud/securitycentermanagement/v1/securitycentermanagement/listeffectiveeventthreatdetectioncustommodules/SyncListEffectiveEventThreatDetectionCustomModules.java (100%) rename {owl-bot-staging/java-securitycentermanagement/v1 => java-securitycentermanagement}/samples/snippets/generated/com/google/cloud/securitycentermanagement/v1/securitycentermanagement/listeffectiveeventthreatdetectioncustommodules/SyncListEffectiveEventThreatDetectionCustomModulesFolderlocationname.java (100%) rename {owl-bot-staging/java-securitycentermanagement/v1 => java-securitycentermanagement}/samples/snippets/generated/com/google/cloud/securitycentermanagement/v1/securitycentermanagement/listeffectiveeventthreatdetectioncustommodules/SyncListEffectiveEventThreatDetectionCustomModulesLocationname.java (100%) rename {owl-bot-staging/java-securitycentermanagement/v1 => java-securitycentermanagement}/samples/snippets/generated/com/google/cloud/securitycentermanagement/v1/securitycentermanagement/listeffectiveeventthreatdetectioncustommodules/SyncListEffectiveEventThreatDetectionCustomModulesOrganizationlocationname.java (100%) rename {owl-bot-staging/java-securitycentermanagement/v1 => java-securitycentermanagement}/samples/snippets/generated/com/google/cloud/securitycentermanagement/v1/securitycentermanagement/listeffectiveeventthreatdetectioncustommodules/SyncListEffectiveEventThreatDetectionCustomModulesString.java (100%) rename {owl-bot-staging/java-securitycentermanagement/v1 => java-securitycentermanagement}/samples/snippets/generated/com/google/cloud/securitycentermanagement/v1/securitycentermanagement/listeffectivesecurityhealthanalyticscustommodules/AsyncListEffectiveSecurityHealthAnalyticsCustomModules.java (100%) rename {owl-bot-staging/java-securitycentermanagement/v1 => java-securitycentermanagement}/samples/snippets/generated/com/google/cloud/securitycentermanagement/v1/securitycentermanagement/listeffectivesecurityhealthanalyticscustommodules/AsyncListEffectiveSecurityHealthAnalyticsCustomModulesPaged.java (100%) rename {owl-bot-staging/java-securitycentermanagement/v1 => java-securitycentermanagement}/samples/snippets/generated/com/google/cloud/securitycentermanagement/v1/securitycentermanagement/listeffectivesecurityhealthanalyticscustommodules/SyncListEffectiveSecurityHealthAnalyticsCustomModules.java (100%) rename {owl-bot-staging/java-securitycentermanagement/v1 => java-securitycentermanagement}/samples/snippets/generated/com/google/cloud/securitycentermanagement/v1/securitycentermanagement/listeffectivesecurityhealthanalyticscustommodules/SyncListEffectiveSecurityHealthAnalyticsCustomModulesFolderlocationname.java (100%) rename {owl-bot-staging/java-securitycentermanagement/v1 => java-securitycentermanagement}/samples/snippets/generated/com/google/cloud/securitycentermanagement/v1/securitycentermanagement/listeffectivesecurityhealthanalyticscustommodules/SyncListEffectiveSecurityHealthAnalyticsCustomModulesLocationname.java (100%) rename {owl-bot-staging/java-securitycentermanagement/v1 => java-securitycentermanagement}/samples/snippets/generated/com/google/cloud/securitycentermanagement/v1/securitycentermanagement/listeffectivesecurityhealthanalyticscustommodules/SyncListEffectiveSecurityHealthAnalyticsCustomModulesOrganizationlocationname.java (100%) rename {owl-bot-staging/java-securitycentermanagement/v1 => java-securitycentermanagement}/samples/snippets/generated/com/google/cloud/securitycentermanagement/v1/securitycentermanagement/listeffectivesecurityhealthanalyticscustommodules/SyncListEffectiveSecurityHealthAnalyticsCustomModulesString.java (100%) rename {owl-bot-staging/java-securitycentermanagement/v1 => java-securitycentermanagement}/samples/snippets/generated/com/google/cloud/securitycentermanagement/v1/securitycentermanagement/listeventthreatdetectioncustommodules/AsyncListEventThreatDetectionCustomModules.java (100%) rename {owl-bot-staging/java-securitycentermanagement/v1 => java-securitycentermanagement}/samples/snippets/generated/com/google/cloud/securitycentermanagement/v1/securitycentermanagement/listeventthreatdetectioncustommodules/AsyncListEventThreatDetectionCustomModulesPaged.java (100%) rename {owl-bot-staging/java-securitycentermanagement/v1 => java-securitycentermanagement}/samples/snippets/generated/com/google/cloud/securitycentermanagement/v1/securitycentermanagement/listeventthreatdetectioncustommodules/SyncListEventThreatDetectionCustomModules.java (100%) rename {owl-bot-staging/java-securitycentermanagement/v1 => java-securitycentermanagement}/samples/snippets/generated/com/google/cloud/securitycentermanagement/v1/securitycentermanagement/listeventthreatdetectioncustommodules/SyncListEventThreatDetectionCustomModulesFolderlocationname.java (100%) rename {owl-bot-staging/java-securitycentermanagement/v1 => java-securitycentermanagement}/samples/snippets/generated/com/google/cloud/securitycentermanagement/v1/securitycentermanagement/listeventthreatdetectioncustommodules/SyncListEventThreatDetectionCustomModulesLocationname.java (100%) rename {owl-bot-staging/java-securitycentermanagement/v1 => java-securitycentermanagement}/samples/snippets/generated/com/google/cloud/securitycentermanagement/v1/securitycentermanagement/listeventthreatdetectioncustommodules/SyncListEventThreatDetectionCustomModulesOrganizationlocationname.java (100%) rename {owl-bot-staging/java-securitycentermanagement/v1 => java-securitycentermanagement}/samples/snippets/generated/com/google/cloud/securitycentermanagement/v1/securitycentermanagement/listeventthreatdetectioncustommodules/SyncListEventThreatDetectionCustomModulesString.java (100%) rename {owl-bot-staging/java-securitycentermanagement/v1 => java-securitycentermanagement}/samples/snippets/generated/com/google/cloud/securitycentermanagement/v1/securitycentermanagement/listlocations/AsyncListLocations.java (100%) rename {owl-bot-staging/java-securitycentermanagement/v1 => java-securitycentermanagement}/samples/snippets/generated/com/google/cloud/securitycentermanagement/v1/securitycentermanagement/listlocations/AsyncListLocationsPaged.java (100%) rename {owl-bot-staging/java-securitycentermanagement/v1 => java-securitycentermanagement}/samples/snippets/generated/com/google/cloud/securitycentermanagement/v1/securitycentermanagement/listlocations/SyncListLocations.java (100%) rename {owl-bot-staging/java-securitycentermanagement/v1 => java-securitycentermanagement}/samples/snippets/generated/com/google/cloud/securitycentermanagement/v1/securitycentermanagement/listsecurityhealthanalyticscustommodules/AsyncListSecurityHealthAnalyticsCustomModules.java (100%) rename {owl-bot-staging/java-securitycentermanagement/v1 => java-securitycentermanagement}/samples/snippets/generated/com/google/cloud/securitycentermanagement/v1/securitycentermanagement/listsecurityhealthanalyticscustommodules/AsyncListSecurityHealthAnalyticsCustomModulesPaged.java (100%) rename {owl-bot-staging/java-securitycentermanagement/v1 => java-securitycentermanagement}/samples/snippets/generated/com/google/cloud/securitycentermanagement/v1/securitycentermanagement/listsecurityhealthanalyticscustommodules/SyncListSecurityHealthAnalyticsCustomModules.java (100%) rename {owl-bot-staging/java-securitycentermanagement/v1 => java-securitycentermanagement}/samples/snippets/generated/com/google/cloud/securitycentermanagement/v1/securitycentermanagement/listsecurityhealthanalyticscustommodules/SyncListSecurityHealthAnalyticsCustomModulesFolderlocationname.java (100%) rename {owl-bot-staging/java-securitycentermanagement/v1 => java-securitycentermanagement}/samples/snippets/generated/com/google/cloud/securitycentermanagement/v1/securitycentermanagement/listsecurityhealthanalyticscustommodules/SyncListSecurityHealthAnalyticsCustomModulesLocationname.java (100%) rename {owl-bot-staging/java-securitycentermanagement/v1 => java-securitycentermanagement}/samples/snippets/generated/com/google/cloud/securitycentermanagement/v1/securitycentermanagement/listsecurityhealthanalyticscustommodules/SyncListSecurityHealthAnalyticsCustomModulesOrganizationlocationname.java (100%) rename {owl-bot-staging/java-securitycentermanagement/v1 => java-securitycentermanagement}/samples/snippets/generated/com/google/cloud/securitycentermanagement/v1/securitycentermanagement/listsecurityhealthanalyticscustommodules/SyncListSecurityHealthAnalyticsCustomModulesString.java (100%) rename {owl-bot-staging/java-securitycentermanagement/v1 => java-securitycentermanagement}/samples/snippets/generated/com/google/cloud/securitycentermanagement/v1/securitycentermanagement/simulatesecurityhealthanalyticscustommodule/AsyncSimulateSecurityHealthAnalyticsCustomModule.java (100%) rename {owl-bot-staging/java-securitycentermanagement/v1 => java-securitycentermanagement}/samples/snippets/generated/com/google/cloud/securitycentermanagement/v1/securitycentermanagement/simulatesecurityhealthanalyticscustommodule/SyncSimulateSecurityHealthAnalyticsCustomModule.java (100%) rename {owl-bot-staging/java-securitycentermanagement/v1 => java-securitycentermanagement}/samples/snippets/generated/com/google/cloud/securitycentermanagement/v1/securitycentermanagement/simulatesecurityhealthanalyticscustommodule/SyncSimulateSecurityHealthAnalyticsCustomModuleStringCustomconfigSimulatesecurityhealthanalyticscustommodulerequestsimulatedresource.java (100%) rename {owl-bot-staging/java-securitycentermanagement/v1 => java-securitycentermanagement}/samples/snippets/generated/com/google/cloud/securitycentermanagement/v1/securitycentermanagement/updateeventthreatdetectioncustommodule/AsyncUpdateEventThreatDetectionCustomModule.java (100%) rename {owl-bot-staging/java-securitycentermanagement/v1 => java-securitycentermanagement}/samples/snippets/generated/com/google/cloud/securitycentermanagement/v1/securitycentermanagement/updateeventthreatdetectioncustommodule/SyncUpdateEventThreatDetectionCustomModule.java (100%) rename {owl-bot-staging/java-securitycentermanagement/v1 => java-securitycentermanagement}/samples/snippets/generated/com/google/cloud/securitycentermanagement/v1/securitycentermanagement/updateeventthreatdetectioncustommodule/SyncUpdateEventThreatDetectionCustomModuleEventthreatdetectioncustommoduleFieldmask.java (100%) rename {owl-bot-staging/java-securitycentermanagement/v1 => java-securitycentermanagement}/samples/snippets/generated/com/google/cloud/securitycentermanagement/v1/securitycentermanagement/updatesecurityhealthanalyticscustommodule/AsyncUpdateSecurityHealthAnalyticsCustomModule.java (100%) rename {owl-bot-staging/java-securitycentermanagement/v1 => java-securitycentermanagement}/samples/snippets/generated/com/google/cloud/securitycentermanagement/v1/securitycentermanagement/updatesecurityhealthanalyticscustommodule/SyncUpdateSecurityHealthAnalyticsCustomModule.java (100%) rename {owl-bot-staging/java-securitycentermanagement/v1 => java-securitycentermanagement}/samples/snippets/generated/com/google/cloud/securitycentermanagement/v1/securitycentermanagement/updatesecurityhealthanalyticscustommodule/SyncUpdateSecurityHealthAnalyticsCustomModuleSecurityhealthanalyticscustommoduleFieldmask.java (100%) rename {owl-bot-staging/java-securitycentermanagement/v1 => java-securitycentermanagement}/samples/snippets/generated/com/google/cloud/securitycentermanagement/v1/securitycentermanagement/validateeventthreatdetectioncustommodule/AsyncValidateEventThreatDetectionCustomModule.java (100%) rename {owl-bot-staging/java-securitycentermanagement/v1 => java-securitycentermanagement}/samples/snippets/generated/com/google/cloud/securitycentermanagement/v1/securitycentermanagement/validateeventthreatdetectioncustommodule/SyncValidateEventThreatDetectionCustomModule.java (100%) rename {owl-bot-staging/java-securitycentermanagement/v1 => java-securitycentermanagement}/samples/snippets/generated/com/google/cloud/securitycentermanagement/v1/securitycentermanagementsettings/geteffectivesecurityhealthanalyticscustommodule/SyncGetEffectiveSecurityHealthAnalyticsCustomModule.java (100%) rename {owl-bot-staging/java-securitycentermanagement/v1 => java-securitycentermanagement}/samples/snippets/generated/com/google/cloud/securitycentermanagement/v1/stub/securitycentermanagementstubsettings/geteffectivesecurityhealthanalyticscustommodule/SyncGetEffectiveSecurityHealthAnalyticsCustomModule.java (100%) delete mode 100644 owl-bot-staging/java-securitycentermanagement/v1/grpc-google-cloud-securitycentermanagement-v1/src/main/java/com/google/cloud/securitycentermanagement/v1/SecurityCenterManagementGrpc.java delete mode 100644 owl-bot-staging/java-securitycentermanagement/v1/proto-google-cloud-securitycentermanagement-v1/src/main/java/com/google/cloud/securitycentermanagement/v1/GetEffectiveEventThreatDetectionCustomModuleRequest.java delete mode 100644 owl-bot-staging/java-securitycentermanagement/v1/proto-google-cloud-securitycentermanagement-v1/src/main/java/com/google/cloud/securitycentermanagement/v1/GetEffectiveSecurityHealthAnalyticsCustomModuleRequest.java delete mode 100644 owl-bot-staging/java-securitycentermanagement/v1/proto-google-cloud-securitycentermanagement-v1/src/main/java/com/google/cloud/securitycentermanagement/v1/GetSecurityHealthAnalyticsCustomModuleRequest.java delete mode 100644 owl-bot-staging/java-securitycentermanagement/v1/proto-google-cloud-securitycentermanagement-v1/src/main/java/com/google/cloud/securitycentermanagement/v1/GetSecurityHealthAnalyticsCustomModuleRequestOrBuilder.java delete mode 100644 owl-bot-staging/java-securitycentermanagement/v1/proto-google-cloud-securitycentermanagement-v1/src/main/java/com/google/cloud/securitycentermanagement/v1/ListDescendantEventThreatDetectionCustomModulesResponse.java delete mode 100644 owl-bot-staging/java-securitycentermanagement/v1/proto-google-cloud-securitycentermanagement-v1/src/main/java/com/google/cloud/securitycentermanagement/v1/ListDescendantEventThreatDetectionCustomModulesResponseOrBuilder.java delete mode 100644 owl-bot-staging/java-securitycentermanagement/v1/proto-google-cloud-securitycentermanagement-v1/src/main/java/com/google/cloud/securitycentermanagement/v1/ListDescendantSecurityHealthAnalyticsCustomModulesResponse.java delete mode 100644 owl-bot-staging/java-securitycentermanagement/v1/proto-google-cloud-securitycentermanagement-v1/src/main/java/com/google/cloud/securitycentermanagement/v1/ListDescendantSecurityHealthAnalyticsCustomModulesResponseOrBuilder.java delete mode 100644 owl-bot-staging/java-securitycentermanagement/v1/proto-google-cloud-securitycentermanagement-v1/src/main/java/com/google/cloud/securitycentermanagement/v1/ListEffectiveEventThreatDetectionCustomModulesResponse.java delete mode 100644 owl-bot-staging/java-securitycentermanagement/v1/proto-google-cloud-securitycentermanagement-v1/src/main/java/com/google/cloud/securitycentermanagement/v1/ListEffectiveEventThreatDetectionCustomModulesResponseOrBuilder.java delete mode 100644 owl-bot-staging/java-securitycentermanagement/v1/proto-google-cloud-securitycentermanagement-v1/src/main/java/com/google/cloud/securitycentermanagement/v1/ListEffectiveSecurityHealthAnalyticsCustomModulesResponse.java delete mode 100644 owl-bot-staging/java-securitycentermanagement/v1/proto-google-cloud-securitycentermanagement-v1/src/main/java/com/google/cloud/securitycentermanagement/v1/ListEffectiveSecurityHealthAnalyticsCustomModulesResponseOrBuilder.java delete mode 100644 owl-bot-staging/java-securitycentermanagement/v1/proto-google-cloud-securitycentermanagement-v1/src/main/java/com/google/cloud/securitycentermanagement/v1/ListEventThreatDetectionCustomModulesResponseOrBuilder.java delete mode 100644 owl-bot-staging/java-securitycentermanagement/v1/proto-google-cloud-securitycentermanagement-v1/src/main/java/com/google/cloud/securitycentermanagement/v1/ListSecurityHealthAnalyticsCustomModulesResponseOrBuilder.java delete mode 100644 owl-bot-staging/java-securitycentermanagement/v1/proto-google-cloud-securitycentermanagement-v1/src/main/java/com/google/cloud/securitycentermanagement/v1/SecurityCenterManagementProto.java delete mode 100644 owl-bot-staging/java-securitycentermanagement/v1/proto-google-cloud-securitycentermanagement-v1/src/main/java/com/google/cloud/securitycentermanagement/v1/SimulateSecurityHealthAnalyticsCustomModuleResponseOrBuilder.java delete mode 100644 owl-bot-staging/java-securitycentermanagement/v1/proto-google-cloud-securitycentermanagement-v1/src/main/java/com/google/cloud/securitycentermanagement/v1/ValidateEventThreatDetectionCustomModuleResponse.java delete mode 100644 owl-bot-staging/java-securitycentermanagement/v1/proto-google-cloud-securitycentermanagement-v1/src/main/java/com/google/cloud/securitycentermanagement/v1/ValidateEventThreatDetectionCustomModuleResponseOrBuilder.java diff --git a/java-securitycentermanagement/README.md b/java-securitycentermanagement/README.md index 4e47ff76629d..bff1f796c005 100644 --- a/java-securitycentermanagement/README.md +++ b/java-securitycentermanagement/README.md @@ -201,7 +201,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/java-securitycentermanagement/java11.html [stability-image]: https://img.shields.io/badge/stability-preview-yellow [maven-version-image]: https://img.shields.io/maven-central/v/com.google.cloud/google-cloud-securitycentermanagement.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-securitycentermanagement/0.0.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-securitycentermanagement/0.1.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-securitycentermanagement/v1/google-cloud-securitycentermanagement/src/main/java/com/google/cloud/securitycentermanagement/v1/SecurityCenterManagementClient.java b/java-securitycentermanagement/google-cloud-securitycentermanagement/src/main/java/com/google/cloud/securitycentermanagement/v1/SecurityCenterManagementClient.java similarity index 100% rename from owl-bot-staging/java-securitycentermanagement/v1/google-cloud-securitycentermanagement/src/main/java/com/google/cloud/securitycentermanagement/v1/SecurityCenterManagementClient.java rename to java-securitycentermanagement/google-cloud-securitycentermanagement/src/main/java/com/google/cloud/securitycentermanagement/v1/SecurityCenterManagementClient.java diff --git a/owl-bot-staging/java-securitycentermanagement/v1/google-cloud-securitycentermanagement/src/main/java/com/google/cloud/securitycentermanagement/v1/SecurityCenterManagementSettings.java b/java-securitycentermanagement/google-cloud-securitycentermanagement/src/main/java/com/google/cloud/securitycentermanagement/v1/SecurityCenterManagementSettings.java similarity index 99% rename from owl-bot-staging/java-securitycentermanagement/v1/google-cloud-securitycentermanagement/src/main/java/com/google/cloud/securitycentermanagement/v1/SecurityCenterManagementSettings.java rename to java-securitycentermanagement/google-cloud-securitycentermanagement/src/main/java/com/google/cloud/securitycentermanagement/v1/SecurityCenterManagementSettings.java index 63dfa60e9d42..708e8b06c4d0 100644 --- a/owl-bot-staging/java-securitycentermanagement/v1/google-cloud-securitycentermanagement/src/main/java/com/google/cloud/securitycentermanagement/v1/SecurityCenterManagementSettings.java +++ b/java-securitycentermanagement/google-cloud-securitycentermanagement/src/main/java/com/google/cloud/securitycentermanagement/v1/SecurityCenterManagementSettings.java @@ -34,7 +34,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.location.GetLocationRequest; diff --git a/owl-bot-staging/java-securitycentermanagement/v1/google-cloud-securitycentermanagement/src/main/java/com/google/cloud/securitycentermanagement/v1/gapic_metadata.json b/java-securitycentermanagement/google-cloud-securitycentermanagement/src/main/java/com/google/cloud/securitycentermanagement/v1/gapic_metadata.json similarity index 100% rename from owl-bot-staging/java-securitycentermanagement/v1/google-cloud-securitycentermanagement/src/main/java/com/google/cloud/securitycentermanagement/v1/gapic_metadata.json rename to java-securitycentermanagement/google-cloud-securitycentermanagement/src/main/java/com/google/cloud/securitycentermanagement/v1/gapic_metadata.json diff --git a/owl-bot-staging/java-securitycentermanagement/v1/google-cloud-securitycentermanagement/src/main/java/com/google/cloud/securitycentermanagement/v1/package-info.java b/java-securitycentermanagement/google-cloud-securitycentermanagement/src/main/java/com/google/cloud/securitycentermanagement/v1/package-info.java similarity index 100% rename from owl-bot-staging/java-securitycentermanagement/v1/google-cloud-securitycentermanagement/src/main/java/com/google/cloud/securitycentermanagement/v1/package-info.java rename to java-securitycentermanagement/google-cloud-securitycentermanagement/src/main/java/com/google/cloud/securitycentermanagement/v1/package-info.java diff --git a/owl-bot-staging/java-securitycentermanagement/v1/google-cloud-securitycentermanagement/src/main/java/com/google/cloud/securitycentermanagement/v1/stub/GrpcSecurityCenterManagementCallableFactory.java b/java-securitycentermanagement/google-cloud-securitycentermanagement/src/main/java/com/google/cloud/securitycentermanagement/v1/stub/GrpcSecurityCenterManagementCallableFactory.java similarity index 100% rename from owl-bot-staging/java-securitycentermanagement/v1/google-cloud-securitycentermanagement/src/main/java/com/google/cloud/securitycentermanagement/v1/stub/GrpcSecurityCenterManagementCallableFactory.java rename to java-securitycentermanagement/google-cloud-securitycentermanagement/src/main/java/com/google/cloud/securitycentermanagement/v1/stub/GrpcSecurityCenterManagementCallableFactory.java diff --git a/owl-bot-staging/java-securitycentermanagement/v1/google-cloud-securitycentermanagement/src/main/java/com/google/cloud/securitycentermanagement/v1/stub/GrpcSecurityCenterManagementStub.java b/java-securitycentermanagement/google-cloud-securitycentermanagement/src/main/java/com/google/cloud/securitycentermanagement/v1/stub/GrpcSecurityCenterManagementStub.java similarity index 99% rename from owl-bot-staging/java-securitycentermanagement/v1/google-cloud-securitycentermanagement/src/main/java/com/google/cloud/securitycentermanagement/v1/stub/GrpcSecurityCenterManagementStub.java rename to java-securitycentermanagement/google-cloud-securitycentermanagement/src/main/java/com/google/cloud/securitycentermanagement/v1/stub/GrpcSecurityCenterManagementStub.java index 0ef914ece725..ec52e612c4d8 100644 --- a/owl-bot-staging/java-securitycentermanagement/v1/google-cloud-securitycentermanagement/src/main/java/com/google/cloud/securitycentermanagement/v1/stub/GrpcSecurityCenterManagementStub.java +++ b/java-securitycentermanagement/google-cloud-securitycentermanagement/src/main/java/com/google/cloud/securitycentermanagement/v1/stub/GrpcSecurityCenterManagementStub.java @@ -70,7 +70,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-securitycentermanagement/v1/google-cloud-securitycentermanagement/src/main/java/com/google/cloud/securitycentermanagement/v1/stub/HttpJsonSecurityCenterManagementCallableFactory.java b/java-securitycentermanagement/google-cloud-securitycentermanagement/src/main/java/com/google/cloud/securitycentermanagement/v1/stub/HttpJsonSecurityCenterManagementCallableFactory.java similarity index 100% rename from owl-bot-staging/java-securitycentermanagement/v1/google-cloud-securitycentermanagement/src/main/java/com/google/cloud/securitycentermanagement/v1/stub/HttpJsonSecurityCenterManagementCallableFactory.java rename to java-securitycentermanagement/google-cloud-securitycentermanagement/src/main/java/com/google/cloud/securitycentermanagement/v1/stub/HttpJsonSecurityCenterManagementCallableFactory.java diff --git a/owl-bot-staging/java-securitycentermanagement/v1/google-cloud-securitycentermanagement/src/main/java/com/google/cloud/securitycentermanagement/v1/stub/HttpJsonSecurityCenterManagementStub.java b/java-securitycentermanagement/google-cloud-securitycentermanagement/src/main/java/com/google/cloud/securitycentermanagement/v1/stub/HttpJsonSecurityCenterManagementStub.java similarity index 100% rename from owl-bot-staging/java-securitycentermanagement/v1/google-cloud-securitycentermanagement/src/main/java/com/google/cloud/securitycentermanagement/v1/stub/HttpJsonSecurityCenterManagementStub.java rename to java-securitycentermanagement/google-cloud-securitycentermanagement/src/main/java/com/google/cloud/securitycentermanagement/v1/stub/HttpJsonSecurityCenterManagementStub.java diff --git a/owl-bot-staging/java-securitycentermanagement/v1/google-cloud-securitycentermanagement/src/main/java/com/google/cloud/securitycentermanagement/v1/stub/SecurityCenterManagementStub.java b/java-securitycentermanagement/google-cloud-securitycentermanagement/src/main/java/com/google/cloud/securitycentermanagement/v1/stub/SecurityCenterManagementStub.java similarity index 100% rename from owl-bot-staging/java-securitycentermanagement/v1/google-cloud-securitycentermanagement/src/main/java/com/google/cloud/securitycentermanagement/v1/stub/SecurityCenterManagementStub.java rename to java-securitycentermanagement/google-cloud-securitycentermanagement/src/main/java/com/google/cloud/securitycentermanagement/v1/stub/SecurityCenterManagementStub.java diff --git a/owl-bot-staging/java-securitycentermanagement/v1/google-cloud-securitycentermanagement/src/main/java/com/google/cloud/securitycentermanagement/v1/stub/SecurityCenterManagementStubSettings.java b/java-securitycentermanagement/google-cloud-securitycentermanagement/src/main/java/com/google/cloud/securitycentermanagement/v1/stub/SecurityCenterManagementStubSettings.java similarity index 100% rename from owl-bot-staging/java-securitycentermanagement/v1/google-cloud-securitycentermanagement/src/main/java/com/google/cloud/securitycentermanagement/v1/stub/SecurityCenterManagementStubSettings.java rename to java-securitycentermanagement/google-cloud-securitycentermanagement/src/main/java/com/google/cloud/securitycentermanagement/v1/stub/SecurityCenterManagementStubSettings.java diff --git a/owl-bot-staging/java-securitycentermanagement/v1/google-cloud-securitycentermanagement/src/main/resources/META-INF/native-image/com.google.cloud.securitycentermanagement.v1/reflect-config.json b/java-securitycentermanagement/google-cloud-securitycentermanagement/src/main/resources/META-INF/native-image/com.google.cloud.securitycentermanagement.v1/reflect-config.json similarity index 100% rename from owl-bot-staging/java-securitycentermanagement/v1/google-cloud-securitycentermanagement/src/main/resources/META-INF/native-image/com.google.cloud.securitycentermanagement.v1/reflect-config.json rename to java-securitycentermanagement/google-cloud-securitycentermanagement/src/main/resources/META-INF/native-image/com.google.cloud.securitycentermanagement.v1/reflect-config.json diff --git a/owl-bot-staging/java-securitycentermanagement/v1/google-cloud-securitycentermanagement/src/test/java/com/google/cloud/securitycentermanagement/v1/MockLocations.java b/java-securitycentermanagement/google-cloud-securitycentermanagement/src/test/java/com/google/cloud/securitycentermanagement/v1/MockLocations.java similarity index 100% rename from owl-bot-staging/java-securitycentermanagement/v1/google-cloud-securitycentermanagement/src/test/java/com/google/cloud/securitycentermanagement/v1/MockLocations.java rename to java-securitycentermanagement/google-cloud-securitycentermanagement/src/test/java/com/google/cloud/securitycentermanagement/v1/MockLocations.java diff --git a/owl-bot-staging/java-securitycentermanagement/v1/google-cloud-securitycentermanagement/src/test/java/com/google/cloud/securitycentermanagement/v1/MockLocationsImpl.java b/java-securitycentermanagement/google-cloud-securitycentermanagement/src/test/java/com/google/cloud/securitycentermanagement/v1/MockLocationsImpl.java similarity index 100% rename from owl-bot-staging/java-securitycentermanagement/v1/google-cloud-securitycentermanagement/src/test/java/com/google/cloud/securitycentermanagement/v1/MockLocationsImpl.java rename to java-securitycentermanagement/google-cloud-securitycentermanagement/src/test/java/com/google/cloud/securitycentermanagement/v1/MockLocationsImpl.java diff --git a/owl-bot-staging/java-securitycentermanagement/v1/google-cloud-securitycentermanagement/src/test/java/com/google/cloud/securitycentermanagement/v1/MockSecurityCenterManagement.java b/java-securitycentermanagement/google-cloud-securitycentermanagement/src/test/java/com/google/cloud/securitycentermanagement/v1/MockSecurityCenterManagement.java similarity index 100% rename from owl-bot-staging/java-securitycentermanagement/v1/google-cloud-securitycentermanagement/src/test/java/com/google/cloud/securitycentermanagement/v1/MockSecurityCenterManagement.java rename to java-securitycentermanagement/google-cloud-securitycentermanagement/src/test/java/com/google/cloud/securitycentermanagement/v1/MockSecurityCenterManagement.java diff --git a/owl-bot-staging/java-securitycentermanagement/v1/google-cloud-securitycentermanagement/src/test/java/com/google/cloud/securitycentermanagement/v1/MockSecurityCenterManagementImpl.java b/java-securitycentermanagement/google-cloud-securitycentermanagement/src/test/java/com/google/cloud/securitycentermanagement/v1/MockSecurityCenterManagementImpl.java similarity index 100% rename from owl-bot-staging/java-securitycentermanagement/v1/google-cloud-securitycentermanagement/src/test/java/com/google/cloud/securitycentermanagement/v1/MockSecurityCenterManagementImpl.java rename to java-securitycentermanagement/google-cloud-securitycentermanagement/src/test/java/com/google/cloud/securitycentermanagement/v1/MockSecurityCenterManagementImpl.java diff --git a/owl-bot-staging/java-securitycentermanagement/v1/google-cloud-securitycentermanagement/src/test/java/com/google/cloud/securitycentermanagement/v1/SecurityCenterManagementClientHttpJsonTest.java b/java-securitycentermanagement/google-cloud-securitycentermanagement/src/test/java/com/google/cloud/securitycentermanagement/v1/SecurityCenterManagementClientHttpJsonTest.java similarity index 100% rename from owl-bot-staging/java-securitycentermanagement/v1/google-cloud-securitycentermanagement/src/test/java/com/google/cloud/securitycentermanagement/v1/SecurityCenterManagementClientHttpJsonTest.java rename to java-securitycentermanagement/google-cloud-securitycentermanagement/src/test/java/com/google/cloud/securitycentermanagement/v1/SecurityCenterManagementClientHttpJsonTest.java diff --git a/owl-bot-staging/java-securitycentermanagement/v1/google-cloud-securitycentermanagement/src/test/java/com/google/cloud/securitycentermanagement/v1/SecurityCenterManagementClientTest.java b/java-securitycentermanagement/google-cloud-securitycentermanagement/src/test/java/com/google/cloud/securitycentermanagement/v1/SecurityCenterManagementClientTest.java similarity index 100% rename from owl-bot-staging/java-securitycentermanagement/v1/google-cloud-securitycentermanagement/src/test/java/com/google/cloud/securitycentermanagement/v1/SecurityCenterManagementClientTest.java rename to java-securitycentermanagement/google-cloud-securitycentermanagement/src/test/java/com/google/cloud/securitycentermanagement/v1/SecurityCenterManagementClientTest.java diff --git a/java-securitycentermanagement/grpc-google-cloud-securitycentermanagement-v1/src/main/java/com/google/cloud/securitycentermanagement/v1/SecurityCenterManagementGrpc.java b/java-securitycentermanagement/grpc-google-cloud-securitycentermanagement-v1/src/main/java/com/google/cloud/securitycentermanagement/v1/SecurityCenterManagementGrpc.java new file mode 100644 index 000000000000..5d66514e01f2 --- /dev/null +++ b/java-securitycentermanagement/grpc-google-cloud-securitycentermanagement-v1/src/main/java/com/google/cloud/securitycentermanagement/v1/SecurityCenterManagementGrpc.java @@ -0,0 +1,3331 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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.securitycentermanagement.v1; + +import static io.grpc.MethodDescriptor.generateFullMethodName; + +/** + * + * + *
+ * Service describing handlers for resources
+ * 
+ */ +@javax.annotation.Generated( + value = "by gRPC proto compiler", + comments = "Source: google/cloud/securitycentermanagement/v1/security_center_management.proto") +@io.grpc.stub.annotations.GrpcGenerated +public final class SecurityCenterManagementGrpc { + + private SecurityCenterManagementGrpc() {} + + public static final java.lang.String SERVICE_NAME = + "google.cloud.securitycentermanagement.v1.SecurityCenterManagement"; + + // Static method descriptors that strictly reflect the proto. + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.securitycentermanagement.v1 + .ListEffectiveSecurityHealthAnalyticsCustomModulesRequest, + com.google.cloud.securitycentermanagement.v1 + .ListEffectiveSecurityHealthAnalyticsCustomModulesResponse> + getListEffectiveSecurityHealthAnalyticsCustomModulesMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "ListEffectiveSecurityHealthAnalyticsCustomModules", + requestType = + com.google.cloud.securitycentermanagement.v1 + .ListEffectiveSecurityHealthAnalyticsCustomModulesRequest.class, + responseType = + com.google.cloud.securitycentermanagement.v1 + .ListEffectiveSecurityHealthAnalyticsCustomModulesResponse.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.securitycentermanagement.v1 + .ListEffectiveSecurityHealthAnalyticsCustomModulesRequest, + com.google.cloud.securitycentermanagement.v1 + .ListEffectiveSecurityHealthAnalyticsCustomModulesResponse> + getListEffectiveSecurityHealthAnalyticsCustomModulesMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.securitycentermanagement.v1 + .ListEffectiveSecurityHealthAnalyticsCustomModulesRequest, + com.google.cloud.securitycentermanagement.v1 + .ListEffectiveSecurityHealthAnalyticsCustomModulesResponse> + getListEffectiveSecurityHealthAnalyticsCustomModulesMethod; + if ((getListEffectiveSecurityHealthAnalyticsCustomModulesMethod = + SecurityCenterManagementGrpc.getListEffectiveSecurityHealthAnalyticsCustomModulesMethod) + == null) { + synchronized (SecurityCenterManagementGrpc.class) { + if ((getListEffectiveSecurityHealthAnalyticsCustomModulesMethod = + SecurityCenterManagementGrpc + .getListEffectiveSecurityHealthAnalyticsCustomModulesMethod) + == null) { + SecurityCenterManagementGrpc.getListEffectiveSecurityHealthAnalyticsCustomModulesMethod = + getListEffectiveSecurityHealthAnalyticsCustomModulesMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + generateFullMethodName( + SERVICE_NAME, "ListEffectiveSecurityHealthAnalyticsCustomModules")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.securitycentermanagement.v1 + .ListEffectiveSecurityHealthAnalyticsCustomModulesRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.securitycentermanagement.v1 + .ListEffectiveSecurityHealthAnalyticsCustomModulesResponse + .getDefaultInstance())) + .setSchemaDescriptor( + new SecurityCenterManagementMethodDescriptorSupplier( + "ListEffectiveSecurityHealthAnalyticsCustomModules")) + .build(); + } + } + } + return getListEffectiveSecurityHealthAnalyticsCustomModulesMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.securitycentermanagement.v1 + .GetEffectiveSecurityHealthAnalyticsCustomModuleRequest, + com.google.cloud.securitycentermanagement.v1.EffectiveSecurityHealthAnalyticsCustomModule> + getGetEffectiveSecurityHealthAnalyticsCustomModuleMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "GetEffectiveSecurityHealthAnalyticsCustomModule", + requestType = + com.google.cloud.securitycentermanagement.v1 + .GetEffectiveSecurityHealthAnalyticsCustomModuleRequest.class, + responseType = + com.google.cloud.securitycentermanagement.v1.EffectiveSecurityHealthAnalyticsCustomModule + .class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.securitycentermanagement.v1 + .GetEffectiveSecurityHealthAnalyticsCustomModuleRequest, + com.google.cloud.securitycentermanagement.v1.EffectiveSecurityHealthAnalyticsCustomModule> + getGetEffectiveSecurityHealthAnalyticsCustomModuleMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.securitycentermanagement.v1 + .GetEffectiveSecurityHealthAnalyticsCustomModuleRequest, + com.google.cloud.securitycentermanagement.v1 + .EffectiveSecurityHealthAnalyticsCustomModule> + getGetEffectiveSecurityHealthAnalyticsCustomModuleMethod; + if ((getGetEffectiveSecurityHealthAnalyticsCustomModuleMethod = + SecurityCenterManagementGrpc.getGetEffectiveSecurityHealthAnalyticsCustomModuleMethod) + == null) { + synchronized (SecurityCenterManagementGrpc.class) { + if ((getGetEffectiveSecurityHealthAnalyticsCustomModuleMethod = + SecurityCenterManagementGrpc + .getGetEffectiveSecurityHealthAnalyticsCustomModuleMethod) + == null) { + SecurityCenterManagementGrpc.getGetEffectiveSecurityHealthAnalyticsCustomModuleMethod = + getGetEffectiveSecurityHealthAnalyticsCustomModuleMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + generateFullMethodName( + SERVICE_NAME, "GetEffectiveSecurityHealthAnalyticsCustomModule")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.securitycentermanagement.v1 + .GetEffectiveSecurityHealthAnalyticsCustomModuleRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.securitycentermanagement.v1 + .EffectiveSecurityHealthAnalyticsCustomModule + .getDefaultInstance())) + .setSchemaDescriptor( + new SecurityCenterManagementMethodDescriptorSupplier( + "GetEffectiveSecurityHealthAnalyticsCustomModule")) + .build(); + } + } + } + return getGetEffectiveSecurityHealthAnalyticsCustomModuleMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.securitycentermanagement.v1 + .ListSecurityHealthAnalyticsCustomModulesRequest, + com.google.cloud.securitycentermanagement.v1 + .ListSecurityHealthAnalyticsCustomModulesResponse> + getListSecurityHealthAnalyticsCustomModulesMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "ListSecurityHealthAnalyticsCustomModules", + requestType = + com.google.cloud.securitycentermanagement.v1 + .ListSecurityHealthAnalyticsCustomModulesRequest.class, + responseType = + com.google.cloud.securitycentermanagement.v1 + .ListSecurityHealthAnalyticsCustomModulesResponse.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.securitycentermanagement.v1 + .ListSecurityHealthAnalyticsCustomModulesRequest, + com.google.cloud.securitycentermanagement.v1 + .ListSecurityHealthAnalyticsCustomModulesResponse> + getListSecurityHealthAnalyticsCustomModulesMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.securitycentermanagement.v1 + .ListSecurityHealthAnalyticsCustomModulesRequest, + com.google.cloud.securitycentermanagement.v1 + .ListSecurityHealthAnalyticsCustomModulesResponse> + getListSecurityHealthAnalyticsCustomModulesMethod; + if ((getListSecurityHealthAnalyticsCustomModulesMethod = + SecurityCenterManagementGrpc.getListSecurityHealthAnalyticsCustomModulesMethod) + == null) { + synchronized (SecurityCenterManagementGrpc.class) { + if ((getListSecurityHealthAnalyticsCustomModulesMethod = + SecurityCenterManagementGrpc.getListSecurityHealthAnalyticsCustomModulesMethod) + == null) { + SecurityCenterManagementGrpc.getListSecurityHealthAnalyticsCustomModulesMethod = + getListSecurityHealthAnalyticsCustomModulesMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + generateFullMethodName( + SERVICE_NAME, "ListSecurityHealthAnalyticsCustomModules")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.securitycentermanagement.v1 + .ListSecurityHealthAnalyticsCustomModulesRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.securitycentermanagement.v1 + .ListSecurityHealthAnalyticsCustomModulesResponse + .getDefaultInstance())) + .setSchemaDescriptor( + new SecurityCenterManagementMethodDescriptorSupplier( + "ListSecurityHealthAnalyticsCustomModules")) + .build(); + } + } + } + return getListSecurityHealthAnalyticsCustomModulesMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.securitycentermanagement.v1 + .ListDescendantSecurityHealthAnalyticsCustomModulesRequest, + com.google.cloud.securitycentermanagement.v1 + .ListDescendantSecurityHealthAnalyticsCustomModulesResponse> + getListDescendantSecurityHealthAnalyticsCustomModulesMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "ListDescendantSecurityHealthAnalyticsCustomModules", + requestType = + com.google.cloud.securitycentermanagement.v1 + .ListDescendantSecurityHealthAnalyticsCustomModulesRequest.class, + responseType = + com.google.cloud.securitycentermanagement.v1 + .ListDescendantSecurityHealthAnalyticsCustomModulesResponse.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.securitycentermanagement.v1 + .ListDescendantSecurityHealthAnalyticsCustomModulesRequest, + com.google.cloud.securitycentermanagement.v1 + .ListDescendantSecurityHealthAnalyticsCustomModulesResponse> + getListDescendantSecurityHealthAnalyticsCustomModulesMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.securitycentermanagement.v1 + .ListDescendantSecurityHealthAnalyticsCustomModulesRequest, + com.google.cloud.securitycentermanagement.v1 + .ListDescendantSecurityHealthAnalyticsCustomModulesResponse> + getListDescendantSecurityHealthAnalyticsCustomModulesMethod; + if ((getListDescendantSecurityHealthAnalyticsCustomModulesMethod = + SecurityCenterManagementGrpc + .getListDescendantSecurityHealthAnalyticsCustomModulesMethod) + == null) { + synchronized (SecurityCenterManagementGrpc.class) { + if ((getListDescendantSecurityHealthAnalyticsCustomModulesMethod = + SecurityCenterManagementGrpc + .getListDescendantSecurityHealthAnalyticsCustomModulesMethod) + == null) { + SecurityCenterManagementGrpc.getListDescendantSecurityHealthAnalyticsCustomModulesMethod = + getListDescendantSecurityHealthAnalyticsCustomModulesMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + generateFullMethodName( + SERVICE_NAME, "ListDescendantSecurityHealthAnalyticsCustomModules")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.securitycentermanagement.v1 + .ListDescendantSecurityHealthAnalyticsCustomModulesRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.securitycentermanagement.v1 + .ListDescendantSecurityHealthAnalyticsCustomModulesResponse + .getDefaultInstance())) + .setSchemaDescriptor( + new SecurityCenterManagementMethodDescriptorSupplier( + "ListDescendantSecurityHealthAnalyticsCustomModules")) + .build(); + } + } + } + return getListDescendantSecurityHealthAnalyticsCustomModulesMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.securitycentermanagement.v1 + .GetSecurityHealthAnalyticsCustomModuleRequest, + com.google.cloud.securitycentermanagement.v1.SecurityHealthAnalyticsCustomModule> + getGetSecurityHealthAnalyticsCustomModuleMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "GetSecurityHealthAnalyticsCustomModule", + requestType = + com.google.cloud.securitycentermanagement.v1.GetSecurityHealthAnalyticsCustomModuleRequest + .class, + responseType = + com.google.cloud.securitycentermanagement.v1.SecurityHealthAnalyticsCustomModule.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.securitycentermanagement.v1 + .GetSecurityHealthAnalyticsCustomModuleRequest, + com.google.cloud.securitycentermanagement.v1.SecurityHealthAnalyticsCustomModule> + getGetSecurityHealthAnalyticsCustomModuleMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.securitycentermanagement.v1 + .GetSecurityHealthAnalyticsCustomModuleRequest, + com.google.cloud.securitycentermanagement.v1.SecurityHealthAnalyticsCustomModule> + getGetSecurityHealthAnalyticsCustomModuleMethod; + if ((getGetSecurityHealthAnalyticsCustomModuleMethod = + SecurityCenterManagementGrpc.getGetSecurityHealthAnalyticsCustomModuleMethod) + == null) { + synchronized (SecurityCenterManagementGrpc.class) { + if ((getGetSecurityHealthAnalyticsCustomModuleMethod = + SecurityCenterManagementGrpc.getGetSecurityHealthAnalyticsCustomModuleMethod) + == null) { + SecurityCenterManagementGrpc.getGetSecurityHealthAnalyticsCustomModuleMethod = + getGetSecurityHealthAnalyticsCustomModuleMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + generateFullMethodName( + SERVICE_NAME, "GetSecurityHealthAnalyticsCustomModule")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.securitycentermanagement.v1 + .GetSecurityHealthAnalyticsCustomModuleRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.securitycentermanagement.v1 + .SecurityHealthAnalyticsCustomModule.getDefaultInstance())) + .setSchemaDescriptor( + new SecurityCenterManagementMethodDescriptorSupplier( + "GetSecurityHealthAnalyticsCustomModule")) + .build(); + } + } + } + return getGetSecurityHealthAnalyticsCustomModuleMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.securitycentermanagement.v1 + .CreateSecurityHealthAnalyticsCustomModuleRequest, + com.google.cloud.securitycentermanagement.v1.SecurityHealthAnalyticsCustomModule> + getCreateSecurityHealthAnalyticsCustomModuleMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "CreateSecurityHealthAnalyticsCustomModule", + requestType = + com.google.cloud.securitycentermanagement.v1 + .CreateSecurityHealthAnalyticsCustomModuleRequest.class, + responseType = + com.google.cloud.securitycentermanagement.v1.SecurityHealthAnalyticsCustomModule.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.securitycentermanagement.v1 + .CreateSecurityHealthAnalyticsCustomModuleRequest, + com.google.cloud.securitycentermanagement.v1.SecurityHealthAnalyticsCustomModule> + getCreateSecurityHealthAnalyticsCustomModuleMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.securitycentermanagement.v1 + .CreateSecurityHealthAnalyticsCustomModuleRequest, + com.google.cloud.securitycentermanagement.v1.SecurityHealthAnalyticsCustomModule> + getCreateSecurityHealthAnalyticsCustomModuleMethod; + if ((getCreateSecurityHealthAnalyticsCustomModuleMethod = + SecurityCenterManagementGrpc.getCreateSecurityHealthAnalyticsCustomModuleMethod) + == null) { + synchronized (SecurityCenterManagementGrpc.class) { + if ((getCreateSecurityHealthAnalyticsCustomModuleMethod = + SecurityCenterManagementGrpc.getCreateSecurityHealthAnalyticsCustomModuleMethod) + == null) { + SecurityCenterManagementGrpc.getCreateSecurityHealthAnalyticsCustomModuleMethod = + getCreateSecurityHealthAnalyticsCustomModuleMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + generateFullMethodName( + SERVICE_NAME, "CreateSecurityHealthAnalyticsCustomModule")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.securitycentermanagement.v1 + .CreateSecurityHealthAnalyticsCustomModuleRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.securitycentermanagement.v1 + .SecurityHealthAnalyticsCustomModule.getDefaultInstance())) + .setSchemaDescriptor( + new SecurityCenterManagementMethodDescriptorSupplier( + "CreateSecurityHealthAnalyticsCustomModule")) + .build(); + } + } + } + return getCreateSecurityHealthAnalyticsCustomModuleMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.securitycentermanagement.v1 + .UpdateSecurityHealthAnalyticsCustomModuleRequest, + com.google.cloud.securitycentermanagement.v1.SecurityHealthAnalyticsCustomModule> + getUpdateSecurityHealthAnalyticsCustomModuleMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "UpdateSecurityHealthAnalyticsCustomModule", + requestType = + com.google.cloud.securitycentermanagement.v1 + .UpdateSecurityHealthAnalyticsCustomModuleRequest.class, + responseType = + com.google.cloud.securitycentermanagement.v1.SecurityHealthAnalyticsCustomModule.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.securitycentermanagement.v1 + .UpdateSecurityHealthAnalyticsCustomModuleRequest, + com.google.cloud.securitycentermanagement.v1.SecurityHealthAnalyticsCustomModule> + getUpdateSecurityHealthAnalyticsCustomModuleMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.securitycentermanagement.v1 + .UpdateSecurityHealthAnalyticsCustomModuleRequest, + com.google.cloud.securitycentermanagement.v1.SecurityHealthAnalyticsCustomModule> + getUpdateSecurityHealthAnalyticsCustomModuleMethod; + if ((getUpdateSecurityHealthAnalyticsCustomModuleMethod = + SecurityCenterManagementGrpc.getUpdateSecurityHealthAnalyticsCustomModuleMethod) + == null) { + synchronized (SecurityCenterManagementGrpc.class) { + if ((getUpdateSecurityHealthAnalyticsCustomModuleMethod = + SecurityCenterManagementGrpc.getUpdateSecurityHealthAnalyticsCustomModuleMethod) + == null) { + SecurityCenterManagementGrpc.getUpdateSecurityHealthAnalyticsCustomModuleMethod = + getUpdateSecurityHealthAnalyticsCustomModuleMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + generateFullMethodName( + SERVICE_NAME, "UpdateSecurityHealthAnalyticsCustomModule")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.securitycentermanagement.v1 + .UpdateSecurityHealthAnalyticsCustomModuleRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.securitycentermanagement.v1 + .SecurityHealthAnalyticsCustomModule.getDefaultInstance())) + .setSchemaDescriptor( + new SecurityCenterManagementMethodDescriptorSupplier( + "UpdateSecurityHealthAnalyticsCustomModule")) + .build(); + } + } + } + return getUpdateSecurityHealthAnalyticsCustomModuleMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.securitycentermanagement.v1 + .DeleteSecurityHealthAnalyticsCustomModuleRequest, + com.google.protobuf.Empty> + getDeleteSecurityHealthAnalyticsCustomModuleMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "DeleteSecurityHealthAnalyticsCustomModule", + requestType = + com.google.cloud.securitycentermanagement.v1 + .DeleteSecurityHealthAnalyticsCustomModuleRequest.class, + responseType = com.google.protobuf.Empty.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.securitycentermanagement.v1 + .DeleteSecurityHealthAnalyticsCustomModuleRequest, + com.google.protobuf.Empty> + getDeleteSecurityHealthAnalyticsCustomModuleMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.securitycentermanagement.v1 + .DeleteSecurityHealthAnalyticsCustomModuleRequest, + com.google.protobuf.Empty> + getDeleteSecurityHealthAnalyticsCustomModuleMethod; + if ((getDeleteSecurityHealthAnalyticsCustomModuleMethod = + SecurityCenterManagementGrpc.getDeleteSecurityHealthAnalyticsCustomModuleMethod) + == null) { + synchronized (SecurityCenterManagementGrpc.class) { + if ((getDeleteSecurityHealthAnalyticsCustomModuleMethod = + SecurityCenterManagementGrpc.getDeleteSecurityHealthAnalyticsCustomModuleMethod) + == null) { + SecurityCenterManagementGrpc.getDeleteSecurityHealthAnalyticsCustomModuleMethod = + getDeleteSecurityHealthAnalyticsCustomModuleMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + generateFullMethodName( + SERVICE_NAME, "DeleteSecurityHealthAnalyticsCustomModule")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.securitycentermanagement.v1 + .DeleteSecurityHealthAnalyticsCustomModuleRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.protobuf.Empty.getDefaultInstance())) + .setSchemaDescriptor( + new SecurityCenterManagementMethodDescriptorSupplier( + "DeleteSecurityHealthAnalyticsCustomModule")) + .build(); + } + } + } + return getDeleteSecurityHealthAnalyticsCustomModuleMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.securitycentermanagement.v1 + .SimulateSecurityHealthAnalyticsCustomModuleRequest, + com.google.cloud.securitycentermanagement.v1 + .SimulateSecurityHealthAnalyticsCustomModuleResponse> + getSimulateSecurityHealthAnalyticsCustomModuleMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "SimulateSecurityHealthAnalyticsCustomModule", + requestType = + com.google.cloud.securitycentermanagement.v1 + .SimulateSecurityHealthAnalyticsCustomModuleRequest.class, + responseType = + com.google.cloud.securitycentermanagement.v1 + .SimulateSecurityHealthAnalyticsCustomModuleResponse.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.securitycentermanagement.v1 + .SimulateSecurityHealthAnalyticsCustomModuleRequest, + com.google.cloud.securitycentermanagement.v1 + .SimulateSecurityHealthAnalyticsCustomModuleResponse> + getSimulateSecurityHealthAnalyticsCustomModuleMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.securitycentermanagement.v1 + .SimulateSecurityHealthAnalyticsCustomModuleRequest, + com.google.cloud.securitycentermanagement.v1 + .SimulateSecurityHealthAnalyticsCustomModuleResponse> + getSimulateSecurityHealthAnalyticsCustomModuleMethod; + if ((getSimulateSecurityHealthAnalyticsCustomModuleMethod = + SecurityCenterManagementGrpc.getSimulateSecurityHealthAnalyticsCustomModuleMethod) + == null) { + synchronized (SecurityCenterManagementGrpc.class) { + if ((getSimulateSecurityHealthAnalyticsCustomModuleMethod = + SecurityCenterManagementGrpc.getSimulateSecurityHealthAnalyticsCustomModuleMethod) + == null) { + SecurityCenterManagementGrpc.getSimulateSecurityHealthAnalyticsCustomModuleMethod = + getSimulateSecurityHealthAnalyticsCustomModuleMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + generateFullMethodName( + SERVICE_NAME, "SimulateSecurityHealthAnalyticsCustomModule")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.securitycentermanagement.v1 + .SimulateSecurityHealthAnalyticsCustomModuleRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.securitycentermanagement.v1 + .SimulateSecurityHealthAnalyticsCustomModuleResponse + .getDefaultInstance())) + .setSchemaDescriptor( + new SecurityCenterManagementMethodDescriptorSupplier( + "SimulateSecurityHealthAnalyticsCustomModule")) + .build(); + } + } + } + return getSimulateSecurityHealthAnalyticsCustomModuleMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.securitycentermanagement.v1 + .ListEffectiveEventThreatDetectionCustomModulesRequest, + com.google.cloud.securitycentermanagement.v1 + .ListEffectiveEventThreatDetectionCustomModulesResponse> + getListEffectiveEventThreatDetectionCustomModulesMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "ListEffectiveEventThreatDetectionCustomModules", + requestType = + com.google.cloud.securitycentermanagement.v1 + .ListEffectiveEventThreatDetectionCustomModulesRequest.class, + responseType = + com.google.cloud.securitycentermanagement.v1 + .ListEffectiveEventThreatDetectionCustomModulesResponse.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.securitycentermanagement.v1 + .ListEffectiveEventThreatDetectionCustomModulesRequest, + com.google.cloud.securitycentermanagement.v1 + .ListEffectiveEventThreatDetectionCustomModulesResponse> + getListEffectiveEventThreatDetectionCustomModulesMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.securitycentermanagement.v1 + .ListEffectiveEventThreatDetectionCustomModulesRequest, + com.google.cloud.securitycentermanagement.v1 + .ListEffectiveEventThreatDetectionCustomModulesResponse> + getListEffectiveEventThreatDetectionCustomModulesMethod; + if ((getListEffectiveEventThreatDetectionCustomModulesMethod = + SecurityCenterManagementGrpc.getListEffectiveEventThreatDetectionCustomModulesMethod) + == null) { + synchronized (SecurityCenterManagementGrpc.class) { + if ((getListEffectiveEventThreatDetectionCustomModulesMethod = + SecurityCenterManagementGrpc + .getListEffectiveEventThreatDetectionCustomModulesMethod) + == null) { + SecurityCenterManagementGrpc.getListEffectiveEventThreatDetectionCustomModulesMethod = + getListEffectiveEventThreatDetectionCustomModulesMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + generateFullMethodName( + SERVICE_NAME, "ListEffectiveEventThreatDetectionCustomModules")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.securitycentermanagement.v1 + .ListEffectiveEventThreatDetectionCustomModulesRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.securitycentermanagement.v1 + .ListEffectiveEventThreatDetectionCustomModulesResponse + .getDefaultInstance())) + .setSchemaDescriptor( + new SecurityCenterManagementMethodDescriptorSupplier( + "ListEffectiveEventThreatDetectionCustomModules")) + .build(); + } + } + } + return getListEffectiveEventThreatDetectionCustomModulesMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.securitycentermanagement.v1 + .GetEffectiveEventThreatDetectionCustomModuleRequest, + com.google.cloud.securitycentermanagement.v1.EffectiveEventThreatDetectionCustomModule> + getGetEffectiveEventThreatDetectionCustomModuleMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "GetEffectiveEventThreatDetectionCustomModule", + requestType = + com.google.cloud.securitycentermanagement.v1 + .GetEffectiveEventThreatDetectionCustomModuleRequest.class, + responseType = + com.google.cloud.securitycentermanagement.v1.EffectiveEventThreatDetectionCustomModule + .class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.securitycentermanagement.v1 + .GetEffectiveEventThreatDetectionCustomModuleRequest, + com.google.cloud.securitycentermanagement.v1.EffectiveEventThreatDetectionCustomModule> + getGetEffectiveEventThreatDetectionCustomModuleMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.securitycentermanagement.v1 + .GetEffectiveEventThreatDetectionCustomModuleRequest, + com.google.cloud.securitycentermanagement.v1.EffectiveEventThreatDetectionCustomModule> + getGetEffectiveEventThreatDetectionCustomModuleMethod; + if ((getGetEffectiveEventThreatDetectionCustomModuleMethod = + SecurityCenterManagementGrpc.getGetEffectiveEventThreatDetectionCustomModuleMethod) + == null) { + synchronized (SecurityCenterManagementGrpc.class) { + if ((getGetEffectiveEventThreatDetectionCustomModuleMethod = + SecurityCenterManagementGrpc.getGetEffectiveEventThreatDetectionCustomModuleMethod) + == null) { + SecurityCenterManagementGrpc.getGetEffectiveEventThreatDetectionCustomModuleMethod = + getGetEffectiveEventThreatDetectionCustomModuleMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + generateFullMethodName( + SERVICE_NAME, "GetEffectiveEventThreatDetectionCustomModule")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.securitycentermanagement.v1 + .GetEffectiveEventThreatDetectionCustomModuleRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.securitycentermanagement.v1 + .EffectiveEventThreatDetectionCustomModule.getDefaultInstance())) + .setSchemaDescriptor( + new SecurityCenterManagementMethodDescriptorSupplier( + "GetEffectiveEventThreatDetectionCustomModule")) + .build(); + } + } + } + return getGetEffectiveEventThreatDetectionCustomModuleMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.securitycentermanagement.v1.ListEventThreatDetectionCustomModulesRequest, + com.google.cloud.securitycentermanagement.v1 + .ListEventThreatDetectionCustomModulesResponse> + getListEventThreatDetectionCustomModulesMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "ListEventThreatDetectionCustomModules", + requestType = + com.google.cloud.securitycentermanagement.v1.ListEventThreatDetectionCustomModulesRequest + .class, + responseType = + com.google.cloud.securitycentermanagement.v1.ListEventThreatDetectionCustomModulesResponse + .class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.securitycentermanagement.v1.ListEventThreatDetectionCustomModulesRequest, + com.google.cloud.securitycentermanagement.v1 + .ListEventThreatDetectionCustomModulesResponse> + getListEventThreatDetectionCustomModulesMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.securitycentermanagement.v1 + .ListEventThreatDetectionCustomModulesRequest, + com.google.cloud.securitycentermanagement.v1 + .ListEventThreatDetectionCustomModulesResponse> + getListEventThreatDetectionCustomModulesMethod; + if ((getListEventThreatDetectionCustomModulesMethod = + SecurityCenterManagementGrpc.getListEventThreatDetectionCustomModulesMethod) + == null) { + synchronized (SecurityCenterManagementGrpc.class) { + if ((getListEventThreatDetectionCustomModulesMethod = + SecurityCenterManagementGrpc.getListEventThreatDetectionCustomModulesMethod) + == null) { + SecurityCenterManagementGrpc.getListEventThreatDetectionCustomModulesMethod = + getListEventThreatDetectionCustomModulesMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + generateFullMethodName( + SERVICE_NAME, "ListEventThreatDetectionCustomModules")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.securitycentermanagement.v1 + .ListEventThreatDetectionCustomModulesRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.securitycentermanagement.v1 + .ListEventThreatDetectionCustomModulesResponse + .getDefaultInstance())) + .setSchemaDescriptor( + new SecurityCenterManagementMethodDescriptorSupplier( + "ListEventThreatDetectionCustomModules")) + .build(); + } + } + } + return getListEventThreatDetectionCustomModulesMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.securitycentermanagement.v1 + .ListDescendantEventThreatDetectionCustomModulesRequest, + com.google.cloud.securitycentermanagement.v1 + .ListDescendantEventThreatDetectionCustomModulesResponse> + getListDescendantEventThreatDetectionCustomModulesMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "ListDescendantEventThreatDetectionCustomModules", + requestType = + com.google.cloud.securitycentermanagement.v1 + .ListDescendantEventThreatDetectionCustomModulesRequest.class, + responseType = + com.google.cloud.securitycentermanagement.v1 + .ListDescendantEventThreatDetectionCustomModulesResponse.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.securitycentermanagement.v1 + .ListDescendantEventThreatDetectionCustomModulesRequest, + com.google.cloud.securitycentermanagement.v1 + .ListDescendantEventThreatDetectionCustomModulesResponse> + getListDescendantEventThreatDetectionCustomModulesMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.securitycentermanagement.v1 + .ListDescendantEventThreatDetectionCustomModulesRequest, + com.google.cloud.securitycentermanagement.v1 + .ListDescendantEventThreatDetectionCustomModulesResponse> + getListDescendantEventThreatDetectionCustomModulesMethod; + if ((getListDescendantEventThreatDetectionCustomModulesMethod = + SecurityCenterManagementGrpc.getListDescendantEventThreatDetectionCustomModulesMethod) + == null) { + synchronized (SecurityCenterManagementGrpc.class) { + if ((getListDescendantEventThreatDetectionCustomModulesMethod = + SecurityCenterManagementGrpc + .getListDescendantEventThreatDetectionCustomModulesMethod) + == null) { + SecurityCenterManagementGrpc.getListDescendantEventThreatDetectionCustomModulesMethod = + getListDescendantEventThreatDetectionCustomModulesMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + generateFullMethodName( + SERVICE_NAME, "ListDescendantEventThreatDetectionCustomModules")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.securitycentermanagement.v1 + .ListDescendantEventThreatDetectionCustomModulesRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.securitycentermanagement.v1 + .ListDescendantEventThreatDetectionCustomModulesResponse + .getDefaultInstance())) + .setSchemaDescriptor( + new SecurityCenterManagementMethodDescriptorSupplier( + "ListDescendantEventThreatDetectionCustomModules")) + .build(); + } + } + } + return getListDescendantEventThreatDetectionCustomModulesMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.securitycentermanagement.v1.GetEventThreatDetectionCustomModuleRequest, + com.google.cloud.securitycentermanagement.v1.EventThreatDetectionCustomModule> + getGetEventThreatDetectionCustomModuleMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "GetEventThreatDetectionCustomModule", + requestType = + com.google.cloud.securitycentermanagement.v1.GetEventThreatDetectionCustomModuleRequest + .class, + responseType = + com.google.cloud.securitycentermanagement.v1.EventThreatDetectionCustomModule.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.securitycentermanagement.v1.GetEventThreatDetectionCustomModuleRequest, + com.google.cloud.securitycentermanagement.v1.EventThreatDetectionCustomModule> + getGetEventThreatDetectionCustomModuleMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.securitycentermanagement.v1.GetEventThreatDetectionCustomModuleRequest, + com.google.cloud.securitycentermanagement.v1.EventThreatDetectionCustomModule> + getGetEventThreatDetectionCustomModuleMethod; + if ((getGetEventThreatDetectionCustomModuleMethod = + SecurityCenterManagementGrpc.getGetEventThreatDetectionCustomModuleMethod) + == null) { + synchronized (SecurityCenterManagementGrpc.class) { + if ((getGetEventThreatDetectionCustomModuleMethod = + SecurityCenterManagementGrpc.getGetEventThreatDetectionCustomModuleMethod) + == null) { + SecurityCenterManagementGrpc.getGetEventThreatDetectionCustomModuleMethod = + getGetEventThreatDetectionCustomModuleMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + generateFullMethodName( + SERVICE_NAME, "GetEventThreatDetectionCustomModule")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.securitycentermanagement.v1 + .GetEventThreatDetectionCustomModuleRequest.getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.securitycentermanagement.v1 + .EventThreatDetectionCustomModule.getDefaultInstance())) + .setSchemaDescriptor( + new SecurityCenterManagementMethodDescriptorSupplier( + "GetEventThreatDetectionCustomModule")) + .build(); + } + } + } + return getGetEventThreatDetectionCustomModuleMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.securitycentermanagement.v1 + .CreateEventThreatDetectionCustomModuleRequest, + com.google.cloud.securitycentermanagement.v1.EventThreatDetectionCustomModule> + getCreateEventThreatDetectionCustomModuleMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "CreateEventThreatDetectionCustomModule", + requestType = + com.google.cloud.securitycentermanagement.v1.CreateEventThreatDetectionCustomModuleRequest + .class, + responseType = + com.google.cloud.securitycentermanagement.v1.EventThreatDetectionCustomModule.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.securitycentermanagement.v1 + .CreateEventThreatDetectionCustomModuleRequest, + com.google.cloud.securitycentermanagement.v1.EventThreatDetectionCustomModule> + getCreateEventThreatDetectionCustomModuleMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.securitycentermanagement.v1 + .CreateEventThreatDetectionCustomModuleRequest, + com.google.cloud.securitycentermanagement.v1.EventThreatDetectionCustomModule> + getCreateEventThreatDetectionCustomModuleMethod; + if ((getCreateEventThreatDetectionCustomModuleMethod = + SecurityCenterManagementGrpc.getCreateEventThreatDetectionCustomModuleMethod) + == null) { + synchronized (SecurityCenterManagementGrpc.class) { + if ((getCreateEventThreatDetectionCustomModuleMethod = + SecurityCenterManagementGrpc.getCreateEventThreatDetectionCustomModuleMethod) + == null) { + SecurityCenterManagementGrpc.getCreateEventThreatDetectionCustomModuleMethod = + getCreateEventThreatDetectionCustomModuleMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + generateFullMethodName( + SERVICE_NAME, "CreateEventThreatDetectionCustomModule")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.securitycentermanagement.v1 + .CreateEventThreatDetectionCustomModuleRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.securitycentermanagement.v1 + .EventThreatDetectionCustomModule.getDefaultInstance())) + .setSchemaDescriptor( + new SecurityCenterManagementMethodDescriptorSupplier( + "CreateEventThreatDetectionCustomModule")) + .build(); + } + } + } + return getCreateEventThreatDetectionCustomModuleMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.securitycentermanagement.v1 + .UpdateEventThreatDetectionCustomModuleRequest, + com.google.cloud.securitycentermanagement.v1.EventThreatDetectionCustomModule> + getUpdateEventThreatDetectionCustomModuleMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "UpdateEventThreatDetectionCustomModule", + requestType = + com.google.cloud.securitycentermanagement.v1.UpdateEventThreatDetectionCustomModuleRequest + .class, + responseType = + com.google.cloud.securitycentermanagement.v1.EventThreatDetectionCustomModule.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.securitycentermanagement.v1 + .UpdateEventThreatDetectionCustomModuleRequest, + com.google.cloud.securitycentermanagement.v1.EventThreatDetectionCustomModule> + getUpdateEventThreatDetectionCustomModuleMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.securitycentermanagement.v1 + .UpdateEventThreatDetectionCustomModuleRequest, + com.google.cloud.securitycentermanagement.v1.EventThreatDetectionCustomModule> + getUpdateEventThreatDetectionCustomModuleMethod; + if ((getUpdateEventThreatDetectionCustomModuleMethod = + SecurityCenterManagementGrpc.getUpdateEventThreatDetectionCustomModuleMethod) + == null) { + synchronized (SecurityCenterManagementGrpc.class) { + if ((getUpdateEventThreatDetectionCustomModuleMethod = + SecurityCenterManagementGrpc.getUpdateEventThreatDetectionCustomModuleMethod) + == null) { + SecurityCenterManagementGrpc.getUpdateEventThreatDetectionCustomModuleMethod = + getUpdateEventThreatDetectionCustomModuleMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + generateFullMethodName( + SERVICE_NAME, "UpdateEventThreatDetectionCustomModule")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.securitycentermanagement.v1 + .UpdateEventThreatDetectionCustomModuleRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.securitycentermanagement.v1 + .EventThreatDetectionCustomModule.getDefaultInstance())) + .setSchemaDescriptor( + new SecurityCenterManagementMethodDescriptorSupplier( + "UpdateEventThreatDetectionCustomModule")) + .build(); + } + } + } + return getUpdateEventThreatDetectionCustomModuleMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.securitycentermanagement.v1 + .DeleteEventThreatDetectionCustomModuleRequest, + com.google.protobuf.Empty> + getDeleteEventThreatDetectionCustomModuleMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "DeleteEventThreatDetectionCustomModule", + requestType = + com.google.cloud.securitycentermanagement.v1.DeleteEventThreatDetectionCustomModuleRequest + .class, + responseType = com.google.protobuf.Empty.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.securitycentermanagement.v1 + .DeleteEventThreatDetectionCustomModuleRequest, + com.google.protobuf.Empty> + getDeleteEventThreatDetectionCustomModuleMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.securitycentermanagement.v1 + .DeleteEventThreatDetectionCustomModuleRequest, + com.google.protobuf.Empty> + getDeleteEventThreatDetectionCustomModuleMethod; + if ((getDeleteEventThreatDetectionCustomModuleMethod = + SecurityCenterManagementGrpc.getDeleteEventThreatDetectionCustomModuleMethod) + == null) { + synchronized (SecurityCenterManagementGrpc.class) { + if ((getDeleteEventThreatDetectionCustomModuleMethod = + SecurityCenterManagementGrpc.getDeleteEventThreatDetectionCustomModuleMethod) + == null) { + SecurityCenterManagementGrpc.getDeleteEventThreatDetectionCustomModuleMethod = + getDeleteEventThreatDetectionCustomModuleMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + generateFullMethodName( + SERVICE_NAME, "DeleteEventThreatDetectionCustomModule")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.securitycentermanagement.v1 + .DeleteEventThreatDetectionCustomModuleRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.protobuf.Empty.getDefaultInstance())) + .setSchemaDescriptor( + new SecurityCenterManagementMethodDescriptorSupplier( + "DeleteEventThreatDetectionCustomModule")) + .build(); + } + } + } + return getDeleteEventThreatDetectionCustomModuleMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.securitycentermanagement.v1 + .ValidateEventThreatDetectionCustomModuleRequest, + com.google.cloud.securitycentermanagement.v1 + .ValidateEventThreatDetectionCustomModuleResponse> + getValidateEventThreatDetectionCustomModuleMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "ValidateEventThreatDetectionCustomModule", + requestType = + com.google.cloud.securitycentermanagement.v1 + .ValidateEventThreatDetectionCustomModuleRequest.class, + responseType = + com.google.cloud.securitycentermanagement.v1 + .ValidateEventThreatDetectionCustomModuleResponse.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.securitycentermanagement.v1 + .ValidateEventThreatDetectionCustomModuleRequest, + com.google.cloud.securitycentermanagement.v1 + .ValidateEventThreatDetectionCustomModuleResponse> + getValidateEventThreatDetectionCustomModuleMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.securitycentermanagement.v1 + .ValidateEventThreatDetectionCustomModuleRequest, + com.google.cloud.securitycentermanagement.v1 + .ValidateEventThreatDetectionCustomModuleResponse> + getValidateEventThreatDetectionCustomModuleMethod; + if ((getValidateEventThreatDetectionCustomModuleMethod = + SecurityCenterManagementGrpc.getValidateEventThreatDetectionCustomModuleMethod) + == null) { + synchronized (SecurityCenterManagementGrpc.class) { + if ((getValidateEventThreatDetectionCustomModuleMethod = + SecurityCenterManagementGrpc.getValidateEventThreatDetectionCustomModuleMethod) + == null) { + SecurityCenterManagementGrpc.getValidateEventThreatDetectionCustomModuleMethod = + getValidateEventThreatDetectionCustomModuleMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + generateFullMethodName( + SERVICE_NAME, "ValidateEventThreatDetectionCustomModule")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.securitycentermanagement.v1 + .ValidateEventThreatDetectionCustomModuleRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.securitycentermanagement.v1 + .ValidateEventThreatDetectionCustomModuleResponse + .getDefaultInstance())) + .setSchemaDescriptor( + new SecurityCenterManagementMethodDescriptorSupplier( + "ValidateEventThreatDetectionCustomModule")) + .build(); + } + } + } + return getValidateEventThreatDetectionCustomModuleMethod; + } + + /** Creates a new async stub that supports all call types for the service */ + public static SecurityCenterManagementStub newStub(io.grpc.Channel channel) { + io.grpc.stub.AbstractStub.StubFactory factory = + new io.grpc.stub.AbstractStub.StubFactory() { + @java.lang.Override + public SecurityCenterManagementStub newStub( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new SecurityCenterManagementStub(channel, callOptions); + } + }; + return SecurityCenterManagementStub.newStub(factory, channel); + } + + /** + * Creates a new blocking-style stub that supports unary and streaming output calls on the service + */ + public static SecurityCenterManagementBlockingStub newBlockingStub(io.grpc.Channel channel) { + io.grpc.stub.AbstractStub.StubFactory factory = + new io.grpc.stub.AbstractStub.StubFactory() { + @java.lang.Override + public SecurityCenterManagementBlockingStub newStub( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new SecurityCenterManagementBlockingStub(channel, callOptions); + } + }; + return SecurityCenterManagementBlockingStub.newStub(factory, channel); + } + + /** Creates a new ListenableFuture-style stub that supports unary calls on the service */ + public static SecurityCenterManagementFutureStub newFutureStub(io.grpc.Channel channel) { + io.grpc.stub.AbstractStub.StubFactory factory = + new io.grpc.stub.AbstractStub.StubFactory() { + @java.lang.Override + public SecurityCenterManagementFutureStub newStub( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new SecurityCenterManagementFutureStub(channel, callOptions); + } + }; + return SecurityCenterManagementFutureStub.newStub(factory, channel); + } + + /** + * + * + *
+   * Service describing handlers for resources
+   * 
+ */ + public interface AsyncService { + + /** + * + * + *
+     * Returns a list of all EffectiveSecurityHealthAnalyticsCustomModules for the
+     * given parent. This includes resident modules defined at the scope of the
+     * parent, and inherited modules, inherited from CRM ancestors (no
+     * descendants).
+     * 
+ */ + default void listEffectiveSecurityHealthAnalyticsCustomModules( + com.google.cloud.securitycentermanagement.v1 + .ListEffectiveSecurityHealthAnalyticsCustomModulesRequest + request, + io.grpc.stub.StreamObserver< + com.google.cloud.securitycentermanagement.v1 + .ListEffectiveSecurityHealthAnalyticsCustomModulesResponse> + responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getListEffectiveSecurityHealthAnalyticsCustomModulesMethod(), responseObserver); + } + + /** + * + * + *
+     * Gets details of a single EffectiveSecurityHealthAnalyticsCustomModule.
+     * 
+ */ + default void getEffectiveSecurityHealthAnalyticsCustomModule( + com.google.cloud.securitycentermanagement.v1 + .GetEffectiveSecurityHealthAnalyticsCustomModuleRequest + request, + io.grpc.stub.StreamObserver< + com.google.cloud.securitycentermanagement.v1 + .EffectiveSecurityHealthAnalyticsCustomModule> + responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getGetEffectiveSecurityHealthAnalyticsCustomModuleMethod(), responseObserver); + } + + /** + * + * + *
+     * Returns a list of all SecurityHealthAnalyticsCustomModules for the given
+     * parent. This includes resident modules defined at the scope of the parent,
+     * and inherited modules, inherited from CRM ancestors (no descendants).
+     * 
+ */ + default void listSecurityHealthAnalyticsCustomModules( + com.google.cloud.securitycentermanagement.v1.ListSecurityHealthAnalyticsCustomModulesRequest + request, + io.grpc.stub.StreamObserver< + com.google.cloud.securitycentermanagement.v1 + .ListSecurityHealthAnalyticsCustomModulesResponse> + responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getListSecurityHealthAnalyticsCustomModulesMethod(), responseObserver); + } + + /** + * + * + *
+     * Returns a list of all resident SecurityHealthAnalyticsCustomModules under
+     * the given CRM parent and all of the parent’s CRM descendants.
+     * 
+ */ + default void listDescendantSecurityHealthAnalyticsCustomModules( + com.google.cloud.securitycentermanagement.v1 + .ListDescendantSecurityHealthAnalyticsCustomModulesRequest + request, + io.grpc.stub.StreamObserver< + com.google.cloud.securitycentermanagement.v1 + .ListDescendantSecurityHealthAnalyticsCustomModulesResponse> + responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getListDescendantSecurityHealthAnalyticsCustomModulesMethod(), responseObserver); + } + + /** + * + * + *
+     * Retrieves a SecurityHealthAnalyticsCustomModule.
+     * 
+ */ + default void getSecurityHealthAnalyticsCustomModule( + com.google.cloud.securitycentermanagement.v1.GetSecurityHealthAnalyticsCustomModuleRequest + request, + io.grpc.stub.StreamObserver< + com.google.cloud.securitycentermanagement.v1.SecurityHealthAnalyticsCustomModule> + responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getGetSecurityHealthAnalyticsCustomModuleMethod(), responseObserver); + } + + /** + * + * + *
+     * Creates a resident SecurityHealthAnalyticsCustomModule at the scope of the
+     * given CRM parent, and also creates inherited
+     * SecurityHealthAnalyticsCustomModules for all CRM descendants of the given
+     * parent. These modules are enabled by default.
+     * 
+ */ + default void createSecurityHealthAnalyticsCustomModule( + com.google.cloud.securitycentermanagement.v1 + .CreateSecurityHealthAnalyticsCustomModuleRequest + request, + io.grpc.stub.StreamObserver< + com.google.cloud.securitycentermanagement.v1.SecurityHealthAnalyticsCustomModule> + responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getCreateSecurityHealthAnalyticsCustomModuleMethod(), responseObserver); + } + + /** + * + * + *
+     * Updates the SecurityHealthAnalyticsCustomModule under the given name based
+     * on the given update mask. Updating the enablement state is supported on
+     * both resident and inherited modules (though resident modules cannot have an
+     * enablement state of "inherited"). Updating the display name and custom
+     * config of a module is supported on resident modules only.
+     * 
+ */ + default void updateSecurityHealthAnalyticsCustomModule( + com.google.cloud.securitycentermanagement.v1 + .UpdateSecurityHealthAnalyticsCustomModuleRequest + request, + io.grpc.stub.StreamObserver< + com.google.cloud.securitycentermanagement.v1.SecurityHealthAnalyticsCustomModule> + responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getUpdateSecurityHealthAnalyticsCustomModuleMethod(), responseObserver); + } + + /** + * + * + *
+     * Deletes the specified SecurityHealthAnalyticsCustomModule and all of its
+     * descendants in the CRM hierarchy. This method is only supported for
+     * resident custom modules.
+     * 
+ */ + default void deleteSecurityHealthAnalyticsCustomModule( + com.google.cloud.securitycentermanagement.v1 + .DeleteSecurityHealthAnalyticsCustomModuleRequest + request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getDeleteSecurityHealthAnalyticsCustomModuleMethod(), responseObserver); + } + + /** + * + * + *
+     * Simulates a given SecurityHealthAnalyticsCustomModule and Resource.
+     * 
+ */ + default void simulateSecurityHealthAnalyticsCustomModule( + com.google.cloud.securitycentermanagement.v1 + .SimulateSecurityHealthAnalyticsCustomModuleRequest + request, + io.grpc.stub.StreamObserver< + com.google.cloud.securitycentermanagement.v1 + .SimulateSecurityHealthAnalyticsCustomModuleResponse> + responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getSimulateSecurityHealthAnalyticsCustomModuleMethod(), responseObserver); + } + + /** + * + * + *
+     * Lists all effective Event Threat Detection custom modules for the
+     * given parent. This includes resident modules defined at the scope of the
+     * parent along with modules inherited from its ancestors.
+     * 
+ */ + default void listEffectiveEventThreatDetectionCustomModules( + com.google.cloud.securitycentermanagement.v1 + .ListEffectiveEventThreatDetectionCustomModulesRequest + request, + io.grpc.stub.StreamObserver< + com.google.cloud.securitycentermanagement.v1 + .ListEffectiveEventThreatDetectionCustomModulesResponse> + responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getListEffectiveEventThreatDetectionCustomModulesMethod(), responseObserver); + } + + /** + * + * + *
+     * Gets an effective ETD custom module. Retrieves the effective module at the
+     * given level. The difference between an EffectiveCustomModule and a
+     * CustomModule is that the fields for an EffectiveCustomModule are computed
+     * from ancestors if needed. For example, the enablement_state for a
+     * CustomModule can be either ENABLED, DISABLED, or INHERITED. Where as the
+     * enablement_state for an EffectiveCustomModule is always computed to ENABLED
+     * or DISABLED (the effective enablement_state).
+     * 
+ */ + default void getEffectiveEventThreatDetectionCustomModule( + com.google.cloud.securitycentermanagement.v1 + .GetEffectiveEventThreatDetectionCustomModuleRequest + request, + io.grpc.stub.StreamObserver< + com.google.cloud.securitycentermanagement.v1 + .EffectiveEventThreatDetectionCustomModule> + responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getGetEffectiveEventThreatDetectionCustomModuleMethod(), responseObserver); + } + + /** + * + * + *
+     * Lists all Event Threat Detection custom modules for the given
+     * Resource Manager parent. This includes resident modules defined at the
+     * scope of the parent along with modules inherited from ancestors.
+     * 
+ */ + default void listEventThreatDetectionCustomModules( + com.google.cloud.securitycentermanagement.v1.ListEventThreatDetectionCustomModulesRequest + request, + io.grpc.stub.StreamObserver< + com.google.cloud.securitycentermanagement.v1 + .ListEventThreatDetectionCustomModulesResponse> + responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getListEventThreatDetectionCustomModulesMethod(), responseObserver); + } + + /** + * + * + *
+     * Lists all resident Event Threat Detection custom modules under the
+     * given Resource Manager parent and its descendants.
+     * 
+ */ + default void listDescendantEventThreatDetectionCustomModules( + com.google.cloud.securitycentermanagement.v1 + .ListDescendantEventThreatDetectionCustomModulesRequest + request, + io.grpc.stub.StreamObserver< + com.google.cloud.securitycentermanagement.v1 + .ListDescendantEventThreatDetectionCustomModulesResponse> + responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getListDescendantEventThreatDetectionCustomModulesMethod(), responseObserver); + } + + /** + * + * + *
+     * Gets an Event Threat Detection custom module.
+     * 
+ */ + default void getEventThreatDetectionCustomModule( + com.google.cloud.securitycentermanagement.v1.GetEventThreatDetectionCustomModuleRequest + request, + io.grpc.stub.StreamObserver< + com.google.cloud.securitycentermanagement.v1.EventThreatDetectionCustomModule> + responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getGetEventThreatDetectionCustomModuleMethod(), responseObserver); + } + + /** + * + * + *
+     * Creates a resident Event Threat Detection custom module at the scope of the
+     * given Resource Manager parent, and also creates inherited custom modules
+     * for all descendants of the given parent. These modules are enabled by
+     * default.
+     * 
+ */ + default void createEventThreatDetectionCustomModule( + com.google.cloud.securitycentermanagement.v1.CreateEventThreatDetectionCustomModuleRequest + request, + io.grpc.stub.StreamObserver< + com.google.cloud.securitycentermanagement.v1.EventThreatDetectionCustomModule> + responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getCreateEventThreatDetectionCustomModuleMethod(), responseObserver); + } + + /** + * + * + *
+     * Updates the Event Threat Detection custom module with the given name based
+     * on the given update mask. Updating the enablement state is supported for
+     * both resident and inherited modules (though resident modules cannot have an
+     * enablement state of "inherited"). Updating the display name or
+     * configuration of a module is supported for resident modules only. The type
+     * of a module cannot be changed.
+     * 
+ */ + default void updateEventThreatDetectionCustomModule( + com.google.cloud.securitycentermanagement.v1.UpdateEventThreatDetectionCustomModuleRequest + request, + io.grpc.stub.StreamObserver< + com.google.cloud.securitycentermanagement.v1.EventThreatDetectionCustomModule> + responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getUpdateEventThreatDetectionCustomModuleMethod(), responseObserver); + } + + /** + * + * + *
+     * Deletes the specified Event Threat Detection custom module and all of its
+     * descendants in the Resource Manager hierarchy. This method is only
+     * supported for resident custom modules.
+     * 
+ */ + default void deleteEventThreatDetectionCustomModule( + com.google.cloud.securitycentermanagement.v1.DeleteEventThreatDetectionCustomModuleRequest + request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getDeleteEventThreatDetectionCustomModuleMethod(), responseObserver); + } + + /** + * + * + *
+     * Validates the given Event Threat Detection custom module.
+     * 
+ */ + default void validateEventThreatDetectionCustomModule( + com.google.cloud.securitycentermanagement.v1.ValidateEventThreatDetectionCustomModuleRequest + request, + io.grpc.stub.StreamObserver< + com.google.cloud.securitycentermanagement.v1 + .ValidateEventThreatDetectionCustomModuleResponse> + responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getValidateEventThreatDetectionCustomModuleMethod(), responseObserver); + } + } + + /** + * Base class for the server implementation of the service SecurityCenterManagement. + * + *
+   * Service describing handlers for resources
+   * 
+ */ + public abstract static class SecurityCenterManagementImplBase + implements io.grpc.BindableService, AsyncService { + + @java.lang.Override + public final io.grpc.ServerServiceDefinition bindService() { + return SecurityCenterManagementGrpc.bindService(this); + } + } + + /** + * A stub to allow clients to do asynchronous rpc calls to service SecurityCenterManagement. + * + *
+   * Service describing handlers for resources
+   * 
+ */ + public static final class SecurityCenterManagementStub + extends io.grpc.stub.AbstractAsyncStub { + private SecurityCenterManagementStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + super(channel, callOptions); + } + + @java.lang.Override + protected SecurityCenterManagementStub build( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new SecurityCenterManagementStub(channel, callOptions); + } + + /** + * + * + *
+     * Returns a list of all EffectiveSecurityHealthAnalyticsCustomModules for the
+     * given parent. This includes resident modules defined at the scope of the
+     * parent, and inherited modules, inherited from CRM ancestors (no
+     * descendants).
+     * 
+ */ + public void listEffectiveSecurityHealthAnalyticsCustomModules( + com.google.cloud.securitycentermanagement.v1 + .ListEffectiveSecurityHealthAnalyticsCustomModulesRequest + request, + io.grpc.stub.StreamObserver< + com.google.cloud.securitycentermanagement.v1 + .ListEffectiveSecurityHealthAnalyticsCustomModulesResponse> + responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel() + .newCall( + getListEffectiveSecurityHealthAnalyticsCustomModulesMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Gets details of a single EffectiveSecurityHealthAnalyticsCustomModule.
+     * 
+ */ + public void getEffectiveSecurityHealthAnalyticsCustomModule( + com.google.cloud.securitycentermanagement.v1 + .GetEffectiveSecurityHealthAnalyticsCustomModuleRequest + request, + io.grpc.stub.StreamObserver< + com.google.cloud.securitycentermanagement.v1 + .EffectiveSecurityHealthAnalyticsCustomModule> + responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel() + .newCall( + getGetEffectiveSecurityHealthAnalyticsCustomModuleMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Returns a list of all SecurityHealthAnalyticsCustomModules for the given
+     * parent. This includes resident modules defined at the scope of the parent,
+     * and inherited modules, inherited from CRM ancestors (no descendants).
+     * 
+ */ + public void listSecurityHealthAnalyticsCustomModules( + com.google.cloud.securitycentermanagement.v1.ListSecurityHealthAnalyticsCustomModulesRequest + request, + io.grpc.stub.StreamObserver< + com.google.cloud.securitycentermanagement.v1 + .ListSecurityHealthAnalyticsCustomModulesResponse> + responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel() + .newCall(getListSecurityHealthAnalyticsCustomModulesMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Returns a list of all resident SecurityHealthAnalyticsCustomModules under
+     * the given CRM parent and all of the parent’s CRM descendants.
+     * 
+ */ + public void listDescendantSecurityHealthAnalyticsCustomModules( + com.google.cloud.securitycentermanagement.v1 + .ListDescendantSecurityHealthAnalyticsCustomModulesRequest + request, + io.grpc.stub.StreamObserver< + com.google.cloud.securitycentermanagement.v1 + .ListDescendantSecurityHealthAnalyticsCustomModulesResponse> + responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel() + .newCall( + getListDescendantSecurityHealthAnalyticsCustomModulesMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Retrieves a SecurityHealthAnalyticsCustomModule.
+     * 
+ */ + public void getSecurityHealthAnalyticsCustomModule( + com.google.cloud.securitycentermanagement.v1.GetSecurityHealthAnalyticsCustomModuleRequest + request, + io.grpc.stub.StreamObserver< + com.google.cloud.securitycentermanagement.v1.SecurityHealthAnalyticsCustomModule> + responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getGetSecurityHealthAnalyticsCustomModuleMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Creates a resident SecurityHealthAnalyticsCustomModule at the scope of the
+     * given CRM parent, and also creates inherited
+     * SecurityHealthAnalyticsCustomModules for all CRM descendants of the given
+     * parent. These modules are enabled by default.
+     * 
+ */ + public void createSecurityHealthAnalyticsCustomModule( + com.google.cloud.securitycentermanagement.v1 + .CreateSecurityHealthAnalyticsCustomModuleRequest + request, + io.grpc.stub.StreamObserver< + com.google.cloud.securitycentermanagement.v1.SecurityHealthAnalyticsCustomModule> + responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel() + .newCall(getCreateSecurityHealthAnalyticsCustomModuleMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Updates the SecurityHealthAnalyticsCustomModule under the given name based
+     * on the given update mask. Updating the enablement state is supported on
+     * both resident and inherited modules (though resident modules cannot have an
+     * enablement state of "inherited"). Updating the display name and custom
+     * config of a module is supported on resident modules only.
+     * 
+ */ + public void updateSecurityHealthAnalyticsCustomModule( + com.google.cloud.securitycentermanagement.v1 + .UpdateSecurityHealthAnalyticsCustomModuleRequest + request, + io.grpc.stub.StreamObserver< + com.google.cloud.securitycentermanagement.v1.SecurityHealthAnalyticsCustomModule> + responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel() + .newCall(getUpdateSecurityHealthAnalyticsCustomModuleMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Deletes the specified SecurityHealthAnalyticsCustomModule and all of its
+     * descendants in the CRM hierarchy. This method is only supported for
+     * resident custom modules.
+     * 
+ */ + public void deleteSecurityHealthAnalyticsCustomModule( + com.google.cloud.securitycentermanagement.v1 + .DeleteSecurityHealthAnalyticsCustomModuleRequest + request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel() + .newCall(getDeleteSecurityHealthAnalyticsCustomModuleMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Simulates a given SecurityHealthAnalyticsCustomModule and Resource.
+     * 
+ */ + public void simulateSecurityHealthAnalyticsCustomModule( + com.google.cloud.securitycentermanagement.v1 + .SimulateSecurityHealthAnalyticsCustomModuleRequest + request, + io.grpc.stub.StreamObserver< + com.google.cloud.securitycentermanagement.v1 + .SimulateSecurityHealthAnalyticsCustomModuleResponse> + responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel() + .newCall(getSimulateSecurityHealthAnalyticsCustomModuleMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Lists all effective Event Threat Detection custom modules for the
+     * given parent. This includes resident modules defined at the scope of the
+     * parent along with modules inherited from its ancestors.
+     * 
+ */ + public void listEffectiveEventThreatDetectionCustomModules( + com.google.cloud.securitycentermanagement.v1 + .ListEffectiveEventThreatDetectionCustomModulesRequest + request, + io.grpc.stub.StreamObserver< + com.google.cloud.securitycentermanagement.v1 + .ListEffectiveEventThreatDetectionCustomModulesResponse> + responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel() + .newCall(getListEffectiveEventThreatDetectionCustomModulesMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Gets an effective ETD custom module. Retrieves the effective module at the
+     * given level. The difference between an EffectiveCustomModule and a
+     * CustomModule is that the fields for an EffectiveCustomModule are computed
+     * from ancestors if needed. For example, the enablement_state for a
+     * CustomModule can be either ENABLED, DISABLED, or INHERITED. Where as the
+     * enablement_state for an EffectiveCustomModule is always computed to ENABLED
+     * or DISABLED (the effective enablement_state).
+     * 
+ */ + public void getEffectiveEventThreatDetectionCustomModule( + com.google.cloud.securitycentermanagement.v1 + .GetEffectiveEventThreatDetectionCustomModuleRequest + request, + io.grpc.stub.StreamObserver< + com.google.cloud.securitycentermanagement.v1 + .EffectiveEventThreatDetectionCustomModule> + responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel() + .newCall(getGetEffectiveEventThreatDetectionCustomModuleMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Lists all Event Threat Detection custom modules for the given
+     * Resource Manager parent. This includes resident modules defined at the
+     * scope of the parent along with modules inherited from ancestors.
+     * 
+ */ + public void listEventThreatDetectionCustomModules( + com.google.cloud.securitycentermanagement.v1.ListEventThreatDetectionCustomModulesRequest + request, + io.grpc.stub.StreamObserver< + com.google.cloud.securitycentermanagement.v1 + .ListEventThreatDetectionCustomModulesResponse> + responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getListEventThreatDetectionCustomModulesMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Lists all resident Event Threat Detection custom modules under the
+     * given Resource Manager parent and its descendants.
+     * 
+ */ + public void listDescendantEventThreatDetectionCustomModules( + com.google.cloud.securitycentermanagement.v1 + .ListDescendantEventThreatDetectionCustomModulesRequest + request, + io.grpc.stub.StreamObserver< + com.google.cloud.securitycentermanagement.v1 + .ListDescendantEventThreatDetectionCustomModulesResponse> + responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel() + .newCall( + getListDescendantEventThreatDetectionCustomModulesMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Gets an Event Threat Detection custom module.
+     * 
+ */ + public void getEventThreatDetectionCustomModule( + com.google.cloud.securitycentermanagement.v1.GetEventThreatDetectionCustomModuleRequest + request, + io.grpc.stub.StreamObserver< + com.google.cloud.securitycentermanagement.v1.EventThreatDetectionCustomModule> + responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getGetEventThreatDetectionCustomModuleMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Creates a resident Event Threat Detection custom module at the scope of the
+     * given Resource Manager parent, and also creates inherited custom modules
+     * for all descendants of the given parent. These modules are enabled by
+     * default.
+     * 
+ */ + public void createEventThreatDetectionCustomModule( + com.google.cloud.securitycentermanagement.v1.CreateEventThreatDetectionCustomModuleRequest + request, + io.grpc.stub.StreamObserver< + com.google.cloud.securitycentermanagement.v1.EventThreatDetectionCustomModule> + responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getCreateEventThreatDetectionCustomModuleMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Updates the Event Threat Detection custom module with the given name based
+     * on the given update mask. Updating the enablement state is supported for
+     * both resident and inherited modules (though resident modules cannot have an
+     * enablement state of "inherited"). Updating the display name or
+     * configuration of a module is supported for resident modules only. The type
+     * of a module cannot be changed.
+     * 
+ */ + public void updateEventThreatDetectionCustomModule( + com.google.cloud.securitycentermanagement.v1.UpdateEventThreatDetectionCustomModuleRequest + request, + io.grpc.stub.StreamObserver< + com.google.cloud.securitycentermanagement.v1.EventThreatDetectionCustomModule> + responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getUpdateEventThreatDetectionCustomModuleMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Deletes the specified Event Threat Detection custom module and all of its
+     * descendants in the Resource Manager hierarchy. This method is only
+     * supported for resident custom modules.
+     * 
+ */ + public void deleteEventThreatDetectionCustomModule( + com.google.cloud.securitycentermanagement.v1.DeleteEventThreatDetectionCustomModuleRequest + request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getDeleteEventThreatDetectionCustomModuleMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Validates the given Event Threat Detection custom module.
+     * 
+ */ + public void validateEventThreatDetectionCustomModule( + com.google.cloud.securitycentermanagement.v1.ValidateEventThreatDetectionCustomModuleRequest + request, + io.grpc.stub.StreamObserver< + com.google.cloud.securitycentermanagement.v1 + .ValidateEventThreatDetectionCustomModuleResponse> + responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel() + .newCall(getValidateEventThreatDetectionCustomModuleMethod(), getCallOptions()), + request, + responseObserver); + } + } + + /** + * A stub to allow clients to do synchronous rpc calls to service SecurityCenterManagement. + * + *
+   * Service describing handlers for resources
+   * 
+ */ + public static final class SecurityCenterManagementBlockingStub + extends io.grpc.stub.AbstractBlockingStub { + private SecurityCenterManagementBlockingStub( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + super(channel, callOptions); + } + + @java.lang.Override + protected SecurityCenterManagementBlockingStub build( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new SecurityCenterManagementBlockingStub(channel, callOptions); + } + + /** + * + * + *
+     * Returns a list of all EffectiveSecurityHealthAnalyticsCustomModules for the
+     * given parent. This includes resident modules defined at the scope of the
+     * parent, and inherited modules, inherited from CRM ancestors (no
+     * descendants).
+     * 
+ */ + public com.google.cloud.securitycentermanagement.v1 + .ListEffectiveSecurityHealthAnalyticsCustomModulesResponse + listEffectiveSecurityHealthAnalyticsCustomModules( + com.google.cloud.securitycentermanagement.v1 + .ListEffectiveSecurityHealthAnalyticsCustomModulesRequest + request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), + getListEffectiveSecurityHealthAnalyticsCustomModulesMethod(), + getCallOptions(), + request); + } + + /** + * + * + *
+     * Gets details of a single EffectiveSecurityHealthAnalyticsCustomModule.
+     * 
+ */ + public com.google.cloud.securitycentermanagement.v1.EffectiveSecurityHealthAnalyticsCustomModule + getEffectiveSecurityHealthAnalyticsCustomModule( + com.google.cloud.securitycentermanagement.v1 + .GetEffectiveSecurityHealthAnalyticsCustomModuleRequest + request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), + getGetEffectiveSecurityHealthAnalyticsCustomModuleMethod(), + getCallOptions(), + request); + } + + /** + * + * + *
+     * Returns a list of all SecurityHealthAnalyticsCustomModules for the given
+     * parent. This includes resident modules defined at the scope of the parent,
+     * and inherited modules, inherited from CRM ancestors (no descendants).
+     * 
+ */ + public com.google.cloud.securitycentermanagement.v1 + .ListSecurityHealthAnalyticsCustomModulesResponse + listSecurityHealthAnalyticsCustomModules( + com.google.cloud.securitycentermanagement.v1 + .ListSecurityHealthAnalyticsCustomModulesRequest + request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), + getListSecurityHealthAnalyticsCustomModulesMethod(), + getCallOptions(), + request); + } + + /** + * + * + *
+     * Returns a list of all resident SecurityHealthAnalyticsCustomModules under
+     * the given CRM parent and all of the parent’s CRM descendants.
+     * 
+ */ + public com.google.cloud.securitycentermanagement.v1 + .ListDescendantSecurityHealthAnalyticsCustomModulesResponse + listDescendantSecurityHealthAnalyticsCustomModules( + com.google.cloud.securitycentermanagement.v1 + .ListDescendantSecurityHealthAnalyticsCustomModulesRequest + request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), + getListDescendantSecurityHealthAnalyticsCustomModulesMethod(), + getCallOptions(), + request); + } + + /** + * + * + *
+     * Retrieves a SecurityHealthAnalyticsCustomModule.
+     * 
+ */ + public com.google.cloud.securitycentermanagement.v1.SecurityHealthAnalyticsCustomModule + getSecurityHealthAnalyticsCustomModule( + com.google.cloud.securitycentermanagement.v1 + .GetSecurityHealthAnalyticsCustomModuleRequest + request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), + getGetSecurityHealthAnalyticsCustomModuleMethod(), + getCallOptions(), + request); + } + + /** + * + * + *
+     * Creates a resident SecurityHealthAnalyticsCustomModule at the scope of the
+     * given CRM parent, and also creates inherited
+     * SecurityHealthAnalyticsCustomModules for all CRM descendants of the given
+     * parent. These modules are enabled by default.
+     * 
+ */ + public com.google.cloud.securitycentermanagement.v1.SecurityHealthAnalyticsCustomModule + createSecurityHealthAnalyticsCustomModule( + com.google.cloud.securitycentermanagement.v1 + .CreateSecurityHealthAnalyticsCustomModuleRequest + request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), + getCreateSecurityHealthAnalyticsCustomModuleMethod(), + getCallOptions(), + request); + } + + /** + * + * + *
+     * Updates the SecurityHealthAnalyticsCustomModule under the given name based
+     * on the given update mask. Updating the enablement state is supported on
+     * both resident and inherited modules (though resident modules cannot have an
+     * enablement state of "inherited"). Updating the display name and custom
+     * config of a module is supported on resident modules only.
+     * 
+ */ + public com.google.cloud.securitycentermanagement.v1.SecurityHealthAnalyticsCustomModule + updateSecurityHealthAnalyticsCustomModule( + com.google.cloud.securitycentermanagement.v1 + .UpdateSecurityHealthAnalyticsCustomModuleRequest + request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), + getUpdateSecurityHealthAnalyticsCustomModuleMethod(), + getCallOptions(), + request); + } + + /** + * + * + *
+     * Deletes the specified SecurityHealthAnalyticsCustomModule and all of its
+     * descendants in the CRM hierarchy. This method is only supported for
+     * resident custom modules.
+     * 
+ */ + public com.google.protobuf.Empty deleteSecurityHealthAnalyticsCustomModule( + com.google.cloud.securitycentermanagement.v1 + .DeleteSecurityHealthAnalyticsCustomModuleRequest + request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), + getDeleteSecurityHealthAnalyticsCustomModuleMethod(), + getCallOptions(), + request); + } + + /** + * + * + *
+     * Simulates a given SecurityHealthAnalyticsCustomModule and Resource.
+     * 
+ */ + public com.google.cloud.securitycentermanagement.v1 + .SimulateSecurityHealthAnalyticsCustomModuleResponse + simulateSecurityHealthAnalyticsCustomModule( + com.google.cloud.securitycentermanagement.v1 + .SimulateSecurityHealthAnalyticsCustomModuleRequest + request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), + getSimulateSecurityHealthAnalyticsCustomModuleMethod(), + getCallOptions(), + request); + } + + /** + * + * + *
+     * Lists all effective Event Threat Detection custom modules for the
+     * given parent. This includes resident modules defined at the scope of the
+     * parent along with modules inherited from its ancestors.
+     * 
+ */ + public com.google.cloud.securitycentermanagement.v1 + .ListEffectiveEventThreatDetectionCustomModulesResponse + listEffectiveEventThreatDetectionCustomModules( + com.google.cloud.securitycentermanagement.v1 + .ListEffectiveEventThreatDetectionCustomModulesRequest + request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), + getListEffectiveEventThreatDetectionCustomModulesMethod(), + getCallOptions(), + request); + } + + /** + * + * + *
+     * Gets an effective ETD custom module. Retrieves the effective module at the
+     * given level. The difference between an EffectiveCustomModule and a
+     * CustomModule is that the fields for an EffectiveCustomModule are computed
+     * from ancestors if needed. For example, the enablement_state for a
+     * CustomModule can be either ENABLED, DISABLED, or INHERITED. Where as the
+     * enablement_state for an EffectiveCustomModule is always computed to ENABLED
+     * or DISABLED (the effective enablement_state).
+     * 
+ */ + public com.google.cloud.securitycentermanagement.v1.EffectiveEventThreatDetectionCustomModule + getEffectiveEventThreatDetectionCustomModule( + com.google.cloud.securitycentermanagement.v1 + .GetEffectiveEventThreatDetectionCustomModuleRequest + request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), + getGetEffectiveEventThreatDetectionCustomModuleMethod(), + getCallOptions(), + request); + } + + /** + * + * + *
+     * Lists all Event Threat Detection custom modules for the given
+     * Resource Manager parent. This includes resident modules defined at the
+     * scope of the parent along with modules inherited from ancestors.
+     * 
+ */ + public com.google.cloud.securitycentermanagement.v1 + .ListEventThreatDetectionCustomModulesResponse + listEventThreatDetectionCustomModules( + com.google.cloud.securitycentermanagement.v1 + .ListEventThreatDetectionCustomModulesRequest + request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), + getListEventThreatDetectionCustomModulesMethod(), + getCallOptions(), + request); + } + + /** + * + * + *
+     * Lists all resident Event Threat Detection custom modules under the
+     * given Resource Manager parent and its descendants.
+     * 
+ */ + public com.google.cloud.securitycentermanagement.v1 + .ListDescendantEventThreatDetectionCustomModulesResponse + listDescendantEventThreatDetectionCustomModules( + com.google.cloud.securitycentermanagement.v1 + .ListDescendantEventThreatDetectionCustomModulesRequest + request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), + getListDescendantEventThreatDetectionCustomModulesMethod(), + getCallOptions(), + request); + } + + /** + * + * + *
+     * Gets an Event Threat Detection custom module.
+     * 
+ */ + public com.google.cloud.securitycentermanagement.v1.EventThreatDetectionCustomModule + getEventThreatDetectionCustomModule( + com.google.cloud.securitycentermanagement.v1.GetEventThreatDetectionCustomModuleRequest + request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getGetEventThreatDetectionCustomModuleMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Creates a resident Event Threat Detection custom module at the scope of the
+     * given Resource Manager parent, and also creates inherited custom modules
+     * for all descendants of the given parent. These modules are enabled by
+     * default.
+     * 
+ */ + public com.google.cloud.securitycentermanagement.v1.EventThreatDetectionCustomModule + createEventThreatDetectionCustomModule( + com.google.cloud.securitycentermanagement.v1 + .CreateEventThreatDetectionCustomModuleRequest + request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), + getCreateEventThreatDetectionCustomModuleMethod(), + getCallOptions(), + request); + } + + /** + * + * + *
+     * Updates the Event Threat Detection custom module with the given name based
+     * on the given update mask. Updating the enablement state is supported for
+     * both resident and inherited modules (though resident modules cannot have an
+     * enablement state of "inherited"). Updating the display name or
+     * configuration of a module is supported for resident modules only. The type
+     * of a module cannot be changed.
+     * 
+ */ + public com.google.cloud.securitycentermanagement.v1.EventThreatDetectionCustomModule + updateEventThreatDetectionCustomModule( + com.google.cloud.securitycentermanagement.v1 + .UpdateEventThreatDetectionCustomModuleRequest + request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), + getUpdateEventThreatDetectionCustomModuleMethod(), + getCallOptions(), + request); + } + + /** + * + * + *
+     * Deletes the specified Event Threat Detection custom module and all of its
+     * descendants in the Resource Manager hierarchy. This method is only
+     * supported for resident custom modules.
+     * 
+ */ + public com.google.protobuf.Empty deleteEventThreatDetectionCustomModule( + com.google.cloud.securitycentermanagement.v1.DeleteEventThreatDetectionCustomModuleRequest + request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), + getDeleteEventThreatDetectionCustomModuleMethod(), + getCallOptions(), + request); + } + + /** + * + * + *
+     * Validates the given Event Threat Detection custom module.
+     * 
+ */ + public com.google.cloud.securitycentermanagement.v1 + .ValidateEventThreatDetectionCustomModuleResponse + validateEventThreatDetectionCustomModule( + com.google.cloud.securitycentermanagement.v1 + .ValidateEventThreatDetectionCustomModuleRequest + request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), + getValidateEventThreatDetectionCustomModuleMethod(), + getCallOptions(), + request); + } + } + + /** + * A stub to allow clients to do ListenableFuture-style rpc calls to service + * SecurityCenterManagement. + * + *
+   * Service describing handlers for resources
+   * 
+ */ + public static final class SecurityCenterManagementFutureStub + extends io.grpc.stub.AbstractFutureStub { + private SecurityCenterManagementFutureStub( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + super(channel, callOptions); + } + + @java.lang.Override + protected SecurityCenterManagementFutureStub build( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new SecurityCenterManagementFutureStub(channel, callOptions); + } + + /** + * + * + *
+     * Returns a list of all EffectiveSecurityHealthAnalyticsCustomModules for the
+     * given parent. This includes resident modules defined at the scope of the
+     * parent, and inherited modules, inherited from CRM ancestors (no
+     * descendants).
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture< + com.google.cloud.securitycentermanagement.v1 + .ListEffectiveSecurityHealthAnalyticsCustomModulesResponse> + listEffectiveSecurityHealthAnalyticsCustomModules( + com.google.cloud.securitycentermanagement.v1 + .ListEffectiveSecurityHealthAnalyticsCustomModulesRequest + request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel() + .newCall( + getListEffectiveSecurityHealthAnalyticsCustomModulesMethod(), getCallOptions()), + request); + } + + /** + * + * + *
+     * Gets details of a single EffectiveSecurityHealthAnalyticsCustomModule.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture< + com.google.cloud.securitycentermanagement.v1 + .EffectiveSecurityHealthAnalyticsCustomModule> + getEffectiveSecurityHealthAnalyticsCustomModule( + com.google.cloud.securitycentermanagement.v1 + .GetEffectiveSecurityHealthAnalyticsCustomModuleRequest + request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel() + .newCall( + getGetEffectiveSecurityHealthAnalyticsCustomModuleMethod(), getCallOptions()), + request); + } + + /** + * + * + *
+     * Returns a list of all SecurityHealthAnalyticsCustomModules for the given
+     * parent. This includes resident modules defined at the scope of the parent,
+     * and inherited modules, inherited from CRM ancestors (no descendants).
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture< + com.google.cloud.securitycentermanagement.v1 + .ListSecurityHealthAnalyticsCustomModulesResponse> + listSecurityHealthAnalyticsCustomModules( + com.google.cloud.securitycentermanagement.v1 + .ListSecurityHealthAnalyticsCustomModulesRequest + request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel() + .newCall(getListSecurityHealthAnalyticsCustomModulesMethod(), getCallOptions()), + request); + } + + /** + * + * + *
+     * Returns a list of all resident SecurityHealthAnalyticsCustomModules under
+     * the given CRM parent and all of the parent’s CRM descendants.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture< + com.google.cloud.securitycentermanagement.v1 + .ListDescendantSecurityHealthAnalyticsCustomModulesResponse> + listDescendantSecurityHealthAnalyticsCustomModules( + com.google.cloud.securitycentermanagement.v1 + .ListDescendantSecurityHealthAnalyticsCustomModulesRequest + request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel() + .newCall( + getListDescendantSecurityHealthAnalyticsCustomModulesMethod(), getCallOptions()), + request); + } + + /** + * + * + *
+     * Retrieves a SecurityHealthAnalyticsCustomModule.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture< + com.google.cloud.securitycentermanagement.v1.SecurityHealthAnalyticsCustomModule> + getSecurityHealthAnalyticsCustomModule( + com.google.cloud.securitycentermanagement.v1 + .GetSecurityHealthAnalyticsCustomModuleRequest + request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getGetSecurityHealthAnalyticsCustomModuleMethod(), getCallOptions()), + request); + } + + /** + * + * + *
+     * Creates a resident SecurityHealthAnalyticsCustomModule at the scope of the
+     * given CRM parent, and also creates inherited
+     * SecurityHealthAnalyticsCustomModules for all CRM descendants of the given
+     * parent. These modules are enabled by default.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture< + com.google.cloud.securitycentermanagement.v1.SecurityHealthAnalyticsCustomModule> + createSecurityHealthAnalyticsCustomModule( + com.google.cloud.securitycentermanagement.v1 + .CreateSecurityHealthAnalyticsCustomModuleRequest + request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel() + .newCall(getCreateSecurityHealthAnalyticsCustomModuleMethod(), getCallOptions()), + request); + } + + /** + * + * + *
+     * Updates the SecurityHealthAnalyticsCustomModule under the given name based
+     * on the given update mask. Updating the enablement state is supported on
+     * both resident and inherited modules (though resident modules cannot have an
+     * enablement state of "inherited"). Updating the display name and custom
+     * config of a module is supported on resident modules only.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture< + com.google.cloud.securitycentermanagement.v1.SecurityHealthAnalyticsCustomModule> + updateSecurityHealthAnalyticsCustomModule( + com.google.cloud.securitycentermanagement.v1 + .UpdateSecurityHealthAnalyticsCustomModuleRequest + request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel() + .newCall(getUpdateSecurityHealthAnalyticsCustomModuleMethod(), getCallOptions()), + request); + } + + /** + * + * + *
+     * Deletes the specified SecurityHealthAnalyticsCustomModule and all of its
+     * descendants in the CRM hierarchy. This method is only supported for
+     * resident custom modules.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture + deleteSecurityHealthAnalyticsCustomModule( + com.google.cloud.securitycentermanagement.v1 + .DeleteSecurityHealthAnalyticsCustomModuleRequest + request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel() + .newCall(getDeleteSecurityHealthAnalyticsCustomModuleMethod(), getCallOptions()), + request); + } + + /** + * + * + *
+     * Simulates a given SecurityHealthAnalyticsCustomModule and Resource.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture< + com.google.cloud.securitycentermanagement.v1 + .SimulateSecurityHealthAnalyticsCustomModuleResponse> + simulateSecurityHealthAnalyticsCustomModule( + com.google.cloud.securitycentermanagement.v1 + .SimulateSecurityHealthAnalyticsCustomModuleRequest + request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel() + .newCall(getSimulateSecurityHealthAnalyticsCustomModuleMethod(), getCallOptions()), + request); + } + + /** + * + * + *
+     * Lists all effective Event Threat Detection custom modules for the
+     * given parent. This includes resident modules defined at the scope of the
+     * parent along with modules inherited from its ancestors.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture< + com.google.cloud.securitycentermanagement.v1 + .ListEffectiveEventThreatDetectionCustomModulesResponse> + listEffectiveEventThreatDetectionCustomModules( + com.google.cloud.securitycentermanagement.v1 + .ListEffectiveEventThreatDetectionCustomModulesRequest + request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel() + .newCall(getListEffectiveEventThreatDetectionCustomModulesMethod(), getCallOptions()), + request); + } + + /** + * + * + *
+     * Gets an effective ETD custom module. Retrieves the effective module at the
+     * given level. The difference between an EffectiveCustomModule and a
+     * CustomModule is that the fields for an EffectiveCustomModule are computed
+     * from ancestors if needed. For example, the enablement_state for a
+     * CustomModule can be either ENABLED, DISABLED, or INHERITED. Where as the
+     * enablement_state for an EffectiveCustomModule is always computed to ENABLED
+     * or DISABLED (the effective enablement_state).
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture< + com.google.cloud.securitycentermanagement.v1.EffectiveEventThreatDetectionCustomModule> + getEffectiveEventThreatDetectionCustomModule( + com.google.cloud.securitycentermanagement.v1 + .GetEffectiveEventThreatDetectionCustomModuleRequest + request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel() + .newCall(getGetEffectiveEventThreatDetectionCustomModuleMethod(), getCallOptions()), + request); + } + + /** + * + * + *
+     * Lists all Event Threat Detection custom modules for the given
+     * Resource Manager parent. This includes resident modules defined at the
+     * scope of the parent along with modules inherited from ancestors.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture< + com.google.cloud.securitycentermanagement.v1 + .ListEventThreatDetectionCustomModulesResponse> + listEventThreatDetectionCustomModules( + com.google.cloud.securitycentermanagement.v1 + .ListEventThreatDetectionCustomModulesRequest + request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getListEventThreatDetectionCustomModulesMethod(), getCallOptions()), + request); + } + + /** + * + * + *
+     * Lists all resident Event Threat Detection custom modules under the
+     * given Resource Manager parent and its descendants.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture< + com.google.cloud.securitycentermanagement.v1 + .ListDescendantEventThreatDetectionCustomModulesResponse> + listDescendantEventThreatDetectionCustomModules( + com.google.cloud.securitycentermanagement.v1 + .ListDescendantEventThreatDetectionCustomModulesRequest + request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel() + .newCall( + getListDescendantEventThreatDetectionCustomModulesMethod(), getCallOptions()), + request); + } + + /** + * + * + *
+     * Gets an Event Threat Detection custom module.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture< + com.google.cloud.securitycentermanagement.v1.EventThreatDetectionCustomModule> + getEventThreatDetectionCustomModule( + com.google.cloud.securitycentermanagement.v1.GetEventThreatDetectionCustomModuleRequest + request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getGetEventThreatDetectionCustomModuleMethod(), getCallOptions()), + request); + } + + /** + * + * + *
+     * Creates a resident Event Threat Detection custom module at the scope of the
+     * given Resource Manager parent, and also creates inherited custom modules
+     * for all descendants of the given parent. These modules are enabled by
+     * default.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture< + com.google.cloud.securitycentermanagement.v1.EventThreatDetectionCustomModule> + createEventThreatDetectionCustomModule( + com.google.cloud.securitycentermanagement.v1 + .CreateEventThreatDetectionCustomModuleRequest + request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getCreateEventThreatDetectionCustomModuleMethod(), getCallOptions()), + request); + } + + /** + * + * + *
+     * Updates the Event Threat Detection custom module with the given name based
+     * on the given update mask. Updating the enablement state is supported for
+     * both resident and inherited modules (though resident modules cannot have an
+     * enablement state of "inherited"). Updating the display name or
+     * configuration of a module is supported for resident modules only. The type
+     * of a module cannot be changed.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture< + com.google.cloud.securitycentermanagement.v1.EventThreatDetectionCustomModule> + updateEventThreatDetectionCustomModule( + com.google.cloud.securitycentermanagement.v1 + .UpdateEventThreatDetectionCustomModuleRequest + request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getUpdateEventThreatDetectionCustomModuleMethod(), getCallOptions()), + request); + } + + /** + * + * + *
+     * Deletes the specified Event Threat Detection custom module and all of its
+     * descendants in the Resource Manager hierarchy. This method is only
+     * supported for resident custom modules.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture + deleteEventThreatDetectionCustomModule( + com.google.cloud.securitycentermanagement.v1 + .DeleteEventThreatDetectionCustomModuleRequest + request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getDeleteEventThreatDetectionCustomModuleMethod(), getCallOptions()), + request); + } + + /** + * + * + *
+     * Validates the given Event Threat Detection custom module.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture< + com.google.cloud.securitycentermanagement.v1 + .ValidateEventThreatDetectionCustomModuleResponse> + validateEventThreatDetectionCustomModule( + com.google.cloud.securitycentermanagement.v1 + .ValidateEventThreatDetectionCustomModuleRequest + request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel() + .newCall(getValidateEventThreatDetectionCustomModuleMethod(), getCallOptions()), + request); + } + } + + private static final int METHODID_LIST_EFFECTIVE_SECURITY_HEALTH_ANALYTICS_CUSTOM_MODULES = 0; + private static final int METHODID_GET_EFFECTIVE_SECURITY_HEALTH_ANALYTICS_CUSTOM_MODULE = 1; + private static final int METHODID_LIST_SECURITY_HEALTH_ANALYTICS_CUSTOM_MODULES = 2; + private static final int METHODID_LIST_DESCENDANT_SECURITY_HEALTH_ANALYTICS_CUSTOM_MODULES = 3; + private static final int METHODID_GET_SECURITY_HEALTH_ANALYTICS_CUSTOM_MODULE = 4; + private static final int METHODID_CREATE_SECURITY_HEALTH_ANALYTICS_CUSTOM_MODULE = 5; + private static final int METHODID_UPDATE_SECURITY_HEALTH_ANALYTICS_CUSTOM_MODULE = 6; + private static final int METHODID_DELETE_SECURITY_HEALTH_ANALYTICS_CUSTOM_MODULE = 7; + private static final int METHODID_SIMULATE_SECURITY_HEALTH_ANALYTICS_CUSTOM_MODULE = 8; + private static final int METHODID_LIST_EFFECTIVE_EVENT_THREAT_DETECTION_CUSTOM_MODULES = 9; + private static final int METHODID_GET_EFFECTIVE_EVENT_THREAT_DETECTION_CUSTOM_MODULE = 10; + private static final int METHODID_LIST_EVENT_THREAT_DETECTION_CUSTOM_MODULES = 11; + private static final int METHODID_LIST_DESCENDANT_EVENT_THREAT_DETECTION_CUSTOM_MODULES = 12; + private static final int METHODID_GET_EVENT_THREAT_DETECTION_CUSTOM_MODULE = 13; + private static final int METHODID_CREATE_EVENT_THREAT_DETECTION_CUSTOM_MODULE = 14; + private static final int METHODID_UPDATE_EVENT_THREAT_DETECTION_CUSTOM_MODULE = 15; + private static final int METHODID_DELETE_EVENT_THREAT_DETECTION_CUSTOM_MODULE = 16; + private static final int METHODID_VALIDATE_EVENT_THREAT_DETECTION_CUSTOM_MODULE = 17; + + 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_EFFECTIVE_SECURITY_HEALTH_ANALYTICS_CUSTOM_MODULES: + serviceImpl.listEffectiveSecurityHealthAnalyticsCustomModules( + (com.google.cloud.securitycentermanagement.v1 + .ListEffectiveSecurityHealthAnalyticsCustomModulesRequest) + request, + (io.grpc.stub.StreamObserver< + com.google.cloud.securitycentermanagement.v1 + .ListEffectiveSecurityHealthAnalyticsCustomModulesResponse>) + responseObserver); + break; + case METHODID_GET_EFFECTIVE_SECURITY_HEALTH_ANALYTICS_CUSTOM_MODULE: + serviceImpl.getEffectiveSecurityHealthAnalyticsCustomModule( + (com.google.cloud.securitycentermanagement.v1 + .GetEffectiveSecurityHealthAnalyticsCustomModuleRequest) + request, + (io.grpc.stub.StreamObserver< + com.google.cloud.securitycentermanagement.v1 + .EffectiveSecurityHealthAnalyticsCustomModule>) + responseObserver); + break; + case METHODID_LIST_SECURITY_HEALTH_ANALYTICS_CUSTOM_MODULES: + serviceImpl.listSecurityHealthAnalyticsCustomModules( + (com.google.cloud.securitycentermanagement.v1 + .ListSecurityHealthAnalyticsCustomModulesRequest) + request, + (io.grpc.stub.StreamObserver< + com.google.cloud.securitycentermanagement.v1 + .ListSecurityHealthAnalyticsCustomModulesResponse>) + responseObserver); + break; + case METHODID_LIST_DESCENDANT_SECURITY_HEALTH_ANALYTICS_CUSTOM_MODULES: + serviceImpl.listDescendantSecurityHealthAnalyticsCustomModules( + (com.google.cloud.securitycentermanagement.v1 + .ListDescendantSecurityHealthAnalyticsCustomModulesRequest) + request, + (io.grpc.stub.StreamObserver< + com.google.cloud.securitycentermanagement.v1 + .ListDescendantSecurityHealthAnalyticsCustomModulesResponse>) + responseObserver); + break; + case METHODID_GET_SECURITY_HEALTH_ANALYTICS_CUSTOM_MODULE: + serviceImpl.getSecurityHealthAnalyticsCustomModule( + (com.google.cloud.securitycentermanagement.v1 + .GetSecurityHealthAnalyticsCustomModuleRequest) + request, + (io.grpc.stub.StreamObserver< + com.google.cloud.securitycentermanagement.v1 + .SecurityHealthAnalyticsCustomModule>) + responseObserver); + break; + case METHODID_CREATE_SECURITY_HEALTH_ANALYTICS_CUSTOM_MODULE: + serviceImpl.createSecurityHealthAnalyticsCustomModule( + (com.google.cloud.securitycentermanagement.v1 + .CreateSecurityHealthAnalyticsCustomModuleRequest) + request, + (io.grpc.stub.StreamObserver< + com.google.cloud.securitycentermanagement.v1 + .SecurityHealthAnalyticsCustomModule>) + responseObserver); + break; + case METHODID_UPDATE_SECURITY_HEALTH_ANALYTICS_CUSTOM_MODULE: + serviceImpl.updateSecurityHealthAnalyticsCustomModule( + (com.google.cloud.securitycentermanagement.v1 + .UpdateSecurityHealthAnalyticsCustomModuleRequest) + request, + (io.grpc.stub.StreamObserver< + com.google.cloud.securitycentermanagement.v1 + .SecurityHealthAnalyticsCustomModule>) + responseObserver); + break; + case METHODID_DELETE_SECURITY_HEALTH_ANALYTICS_CUSTOM_MODULE: + serviceImpl.deleteSecurityHealthAnalyticsCustomModule( + (com.google.cloud.securitycentermanagement.v1 + .DeleteSecurityHealthAnalyticsCustomModuleRequest) + request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_SIMULATE_SECURITY_HEALTH_ANALYTICS_CUSTOM_MODULE: + serviceImpl.simulateSecurityHealthAnalyticsCustomModule( + (com.google.cloud.securitycentermanagement.v1 + .SimulateSecurityHealthAnalyticsCustomModuleRequest) + request, + (io.grpc.stub.StreamObserver< + com.google.cloud.securitycentermanagement.v1 + .SimulateSecurityHealthAnalyticsCustomModuleResponse>) + responseObserver); + break; + case METHODID_LIST_EFFECTIVE_EVENT_THREAT_DETECTION_CUSTOM_MODULES: + serviceImpl.listEffectiveEventThreatDetectionCustomModules( + (com.google.cloud.securitycentermanagement.v1 + .ListEffectiveEventThreatDetectionCustomModulesRequest) + request, + (io.grpc.stub.StreamObserver< + com.google.cloud.securitycentermanagement.v1 + .ListEffectiveEventThreatDetectionCustomModulesResponse>) + responseObserver); + break; + case METHODID_GET_EFFECTIVE_EVENT_THREAT_DETECTION_CUSTOM_MODULE: + serviceImpl.getEffectiveEventThreatDetectionCustomModule( + (com.google.cloud.securitycentermanagement.v1 + .GetEffectiveEventThreatDetectionCustomModuleRequest) + request, + (io.grpc.stub.StreamObserver< + com.google.cloud.securitycentermanagement.v1 + .EffectiveEventThreatDetectionCustomModule>) + responseObserver); + break; + case METHODID_LIST_EVENT_THREAT_DETECTION_CUSTOM_MODULES: + serviceImpl.listEventThreatDetectionCustomModules( + (com.google.cloud.securitycentermanagement.v1 + .ListEventThreatDetectionCustomModulesRequest) + request, + (io.grpc.stub.StreamObserver< + com.google.cloud.securitycentermanagement.v1 + .ListEventThreatDetectionCustomModulesResponse>) + responseObserver); + break; + case METHODID_LIST_DESCENDANT_EVENT_THREAT_DETECTION_CUSTOM_MODULES: + serviceImpl.listDescendantEventThreatDetectionCustomModules( + (com.google.cloud.securitycentermanagement.v1 + .ListDescendantEventThreatDetectionCustomModulesRequest) + request, + (io.grpc.stub.StreamObserver< + com.google.cloud.securitycentermanagement.v1 + .ListDescendantEventThreatDetectionCustomModulesResponse>) + responseObserver); + break; + case METHODID_GET_EVENT_THREAT_DETECTION_CUSTOM_MODULE: + serviceImpl.getEventThreatDetectionCustomModule( + (com.google.cloud.securitycentermanagement.v1 + .GetEventThreatDetectionCustomModuleRequest) + request, + (io.grpc.stub.StreamObserver< + com.google.cloud.securitycentermanagement.v1 + .EventThreatDetectionCustomModule>) + responseObserver); + break; + case METHODID_CREATE_EVENT_THREAT_DETECTION_CUSTOM_MODULE: + serviceImpl.createEventThreatDetectionCustomModule( + (com.google.cloud.securitycentermanagement.v1 + .CreateEventThreatDetectionCustomModuleRequest) + request, + (io.grpc.stub.StreamObserver< + com.google.cloud.securitycentermanagement.v1 + .EventThreatDetectionCustomModule>) + responseObserver); + break; + case METHODID_UPDATE_EVENT_THREAT_DETECTION_CUSTOM_MODULE: + serviceImpl.updateEventThreatDetectionCustomModule( + (com.google.cloud.securitycentermanagement.v1 + .UpdateEventThreatDetectionCustomModuleRequest) + request, + (io.grpc.stub.StreamObserver< + com.google.cloud.securitycentermanagement.v1 + .EventThreatDetectionCustomModule>) + responseObserver); + break; + case METHODID_DELETE_EVENT_THREAT_DETECTION_CUSTOM_MODULE: + serviceImpl.deleteEventThreatDetectionCustomModule( + (com.google.cloud.securitycentermanagement.v1 + .DeleteEventThreatDetectionCustomModuleRequest) + request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_VALIDATE_EVENT_THREAT_DETECTION_CUSTOM_MODULE: + serviceImpl.validateEventThreatDetectionCustomModule( + (com.google.cloud.securitycentermanagement.v1 + .ValidateEventThreatDetectionCustomModuleRequest) + request, + (io.grpc.stub.StreamObserver< + com.google.cloud.securitycentermanagement.v1 + .ValidateEventThreatDetectionCustomModuleResponse>) + 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( + getListEffectiveSecurityHealthAnalyticsCustomModulesMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.securitycentermanagement.v1 + .ListEffectiveSecurityHealthAnalyticsCustomModulesRequest, + com.google.cloud.securitycentermanagement.v1 + .ListEffectiveSecurityHealthAnalyticsCustomModulesResponse>( + service, METHODID_LIST_EFFECTIVE_SECURITY_HEALTH_ANALYTICS_CUSTOM_MODULES))) + .addMethod( + getGetEffectiveSecurityHealthAnalyticsCustomModuleMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.securitycentermanagement.v1 + .GetEffectiveSecurityHealthAnalyticsCustomModuleRequest, + com.google.cloud.securitycentermanagement.v1 + .EffectiveSecurityHealthAnalyticsCustomModule>( + service, METHODID_GET_EFFECTIVE_SECURITY_HEALTH_ANALYTICS_CUSTOM_MODULE))) + .addMethod( + getListSecurityHealthAnalyticsCustomModulesMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.securitycentermanagement.v1 + .ListSecurityHealthAnalyticsCustomModulesRequest, + com.google.cloud.securitycentermanagement.v1 + .ListSecurityHealthAnalyticsCustomModulesResponse>( + service, METHODID_LIST_SECURITY_HEALTH_ANALYTICS_CUSTOM_MODULES))) + .addMethod( + getListDescendantSecurityHealthAnalyticsCustomModulesMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.securitycentermanagement.v1 + .ListDescendantSecurityHealthAnalyticsCustomModulesRequest, + com.google.cloud.securitycentermanagement.v1 + .ListDescendantSecurityHealthAnalyticsCustomModulesResponse>( + service, METHODID_LIST_DESCENDANT_SECURITY_HEALTH_ANALYTICS_CUSTOM_MODULES))) + .addMethod( + getGetSecurityHealthAnalyticsCustomModuleMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.securitycentermanagement.v1 + .GetSecurityHealthAnalyticsCustomModuleRequest, + com.google.cloud.securitycentermanagement.v1 + .SecurityHealthAnalyticsCustomModule>( + service, METHODID_GET_SECURITY_HEALTH_ANALYTICS_CUSTOM_MODULE))) + .addMethod( + getCreateSecurityHealthAnalyticsCustomModuleMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.securitycentermanagement.v1 + .CreateSecurityHealthAnalyticsCustomModuleRequest, + com.google.cloud.securitycentermanagement.v1 + .SecurityHealthAnalyticsCustomModule>( + service, METHODID_CREATE_SECURITY_HEALTH_ANALYTICS_CUSTOM_MODULE))) + .addMethod( + getUpdateSecurityHealthAnalyticsCustomModuleMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.securitycentermanagement.v1 + .UpdateSecurityHealthAnalyticsCustomModuleRequest, + com.google.cloud.securitycentermanagement.v1 + .SecurityHealthAnalyticsCustomModule>( + service, METHODID_UPDATE_SECURITY_HEALTH_ANALYTICS_CUSTOM_MODULE))) + .addMethod( + getDeleteSecurityHealthAnalyticsCustomModuleMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.securitycentermanagement.v1 + .DeleteSecurityHealthAnalyticsCustomModuleRequest, + com.google.protobuf.Empty>( + service, METHODID_DELETE_SECURITY_HEALTH_ANALYTICS_CUSTOM_MODULE))) + .addMethod( + getSimulateSecurityHealthAnalyticsCustomModuleMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.securitycentermanagement.v1 + .SimulateSecurityHealthAnalyticsCustomModuleRequest, + com.google.cloud.securitycentermanagement.v1 + .SimulateSecurityHealthAnalyticsCustomModuleResponse>( + service, METHODID_SIMULATE_SECURITY_HEALTH_ANALYTICS_CUSTOM_MODULE))) + .addMethod( + getListEffectiveEventThreatDetectionCustomModulesMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.securitycentermanagement.v1 + .ListEffectiveEventThreatDetectionCustomModulesRequest, + com.google.cloud.securitycentermanagement.v1 + .ListEffectiveEventThreatDetectionCustomModulesResponse>( + service, METHODID_LIST_EFFECTIVE_EVENT_THREAT_DETECTION_CUSTOM_MODULES))) + .addMethod( + getGetEffectiveEventThreatDetectionCustomModuleMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.securitycentermanagement.v1 + .GetEffectiveEventThreatDetectionCustomModuleRequest, + com.google.cloud.securitycentermanagement.v1 + .EffectiveEventThreatDetectionCustomModule>( + service, METHODID_GET_EFFECTIVE_EVENT_THREAT_DETECTION_CUSTOM_MODULE))) + .addMethod( + getListEventThreatDetectionCustomModulesMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.securitycentermanagement.v1 + .ListEventThreatDetectionCustomModulesRequest, + com.google.cloud.securitycentermanagement.v1 + .ListEventThreatDetectionCustomModulesResponse>( + service, METHODID_LIST_EVENT_THREAT_DETECTION_CUSTOM_MODULES))) + .addMethod( + getListDescendantEventThreatDetectionCustomModulesMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.securitycentermanagement.v1 + .ListDescendantEventThreatDetectionCustomModulesRequest, + com.google.cloud.securitycentermanagement.v1 + .ListDescendantEventThreatDetectionCustomModulesResponse>( + service, METHODID_LIST_DESCENDANT_EVENT_THREAT_DETECTION_CUSTOM_MODULES))) + .addMethod( + getGetEventThreatDetectionCustomModuleMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.securitycentermanagement.v1 + .GetEventThreatDetectionCustomModuleRequest, + com.google.cloud.securitycentermanagement.v1.EventThreatDetectionCustomModule>( + service, METHODID_GET_EVENT_THREAT_DETECTION_CUSTOM_MODULE))) + .addMethod( + getCreateEventThreatDetectionCustomModuleMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.securitycentermanagement.v1 + .CreateEventThreatDetectionCustomModuleRequest, + com.google.cloud.securitycentermanagement.v1.EventThreatDetectionCustomModule>( + service, METHODID_CREATE_EVENT_THREAT_DETECTION_CUSTOM_MODULE))) + .addMethod( + getUpdateEventThreatDetectionCustomModuleMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.securitycentermanagement.v1 + .UpdateEventThreatDetectionCustomModuleRequest, + com.google.cloud.securitycentermanagement.v1.EventThreatDetectionCustomModule>( + service, METHODID_UPDATE_EVENT_THREAT_DETECTION_CUSTOM_MODULE))) + .addMethod( + getDeleteEventThreatDetectionCustomModuleMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.securitycentermanagement.v1 + .DeleteEventThreatDetectionCustomModuleRequest, + com.google.protobuf.Empty>( + service, METHODID_DELETE_EVENT_THREAT_DETECTION_CUSTOM_MODULE))) + .addMethod( + getValidateEventThreatDetectionCustomModuleMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.securitycentermanagement.v1 + .ValidateEventThreatDetectionCustomModuleRequest, + com.google.cloud.securitycentermanagement.v1 + .ValidateEventThreatDetectionCustomModuleResponse>( + service, METHODID_VALIDATE_EVENT_THREAT_DETECTION_CUSTOM_MODULE))) + .build(); + } + + private abstract static class SecurityCenterManagementBaseDescriptorSupplier + implements io.grpc.protobuf.ProtoFileDescriptorSupplier, + io.grpc.protobuf.ProtoServiceDescriptorSupplier { + SecurityCenterManagementBaseDescriptorSupplier() {} + + @java.lang.Override + public com.google.protobuf.Descriptors.FileDescriptor getFileDescriptor() { + return com.google.cloud.securitycentermanagement.v1.SecurityCenterManagementProto + .getDescriptor(); + } + + @java.lang.Override + public com.google.protobuf.Descriptors.ServiceDescriptor getServiceDescriptor() { + return getFileDescriptor().findServiceByName("SecurityCenterManagement"); + } + } + + private static final class SecurityCenterManagementFileDescriptorSupplier + extends SecurityCenterManagementBaseDescriptorSupplier { + SecurityCenterManagementFileDescriptorSupplier() {} + } + + private static final class SecurityCenterManagementMethodDescriptorSupplier + extends SecurityCenterManagementBaseDescriptorSupplier + implements io.grpc.protobuf.ProtoMethodDescriptorSupplier { + private final java.lang.String methodName; + + SecurityCenterManagementMethodDescriptorSupplier(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 (SecurityCenterManagementGrpc.class) { + result = serviceDescriptor; + if (result == null) { + serviceDescriptor = + result = + io.grpc.ServiceDescriptor.newBuilder(SERVICE_NAME) + .setSchemaDescriptor(new SecurityCenterManagementFileDescriptorSupplier()) + .addMethod(getListEffectiveSecurityHealthAnalyticsCustomModulesMethod()) + .addMethod(getGetEffectiveSecurityHealthAnalyticsCustomModuleMethod()) + .addMethod(getListSecurityHealthAnalyticsCustomModulesMethod()) + .addMethod(getListDescendantSecurityHealthAnalyticsCustomModulesMethod()) + .addMethod(getGetSecurityHealthAnalyticsCustomModuleMethod()) + .addMethod(getCreateSecurityHealthAnalyticsCustomModuleMethod()) + .addMethod(getUpdateSecurityHealthAnalyticsCustomModuleMethod()) + .addMethod(getDeleteSecurityHealthAnalyticsCustomModuleMethod()) + .addMethod(getSimulateSecurityHealthAnalyticsCustomModuleMethod()) + .addMethod(getListEffectiveEventThreatDetectionCustomModulesMethod()) + .addMethod(getGetEffectiveEventThreatDetectionCustomModuleMethod()) + .addMethod(getListEventThreatDetectionCustomModulesMethod()) + .addMethod(getListDescendantEventThreatDetectionCustomModulesMethod()) + .addMethod(getGetEventThreatDetectionCustomModuleMethod()) + .addMethod(getCreateEventThreatDetectionCustomModuleMethod()) + .addMethod(getUpdateEventThreatDetectionCustomModuleMethod()) + .addMethod(getDeleteEventThreatDetectionCustomModuleMethod()) + .addMethod(getValidateEventThreatDetectionCustomModuleMethod()) + .build(); + } + } + } + return result; + } +} diff --git a/owl-bot-staging/java-securitycentermanagement/v1/proto-google-cloud-securitycentermanagement-v1/src/main/java/com/google/cloud/securitycentermanagement/v1/CreateEventThreatDetectionCustomModuleRequest.java b/java-securitycentermanagement/proto-google-cloud-securitycentermanagement-v1/src/main/java/com/google/cloud/securitycentermanagement/v1/CreateEventThreatDetectionCustomModuleRequest.java similarity index 52% rename from owl-bot-staging/java-securitycentermanagement/v1/proto-google-cloud-securitycentermanagement-v1/src/main/java/com/google/cloud/securitycentermanagement/v1/CreateEventThreatDetectionCustomModuleRequest.java rename to java-securitycentermanagement/proto-google-cloud-securitycentermanagement-v1/src/main/java/com/google/cloud/securitycentermanagement/v1/CreateEventThreatDetectionCustomModuleRequest.java index 02c0f56f996a..c5291789294a 100644 --- a/owl-bot-staging/java-securitycentermanagement/v1/proto-google-cloud-securitycentermanagement-v1/src/main/java/com/google/cloud/securitycentermanagement/v1/CreateEventThreatDetectionCustomModuleRequest.java +++ b/java-securitycentermanagement/proto-google-cloud-securitycentermanagement-v1/src/main/java/com/google/cloud/securitycentermanagement/v1/CreateEventThreatDetectionCustomModuleRequest.java @@ -1,52 +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/securitycentermanagement/v1/security_center_management.proto package com.google.cloud.securitycentermanagement.v1; /** + * + * *
  * Message for creating a EventThreatDetectionCustomModule
  * 
* - * Protobuf type {@code google.cloud.securitycentermanagement.v1.CreateEventThreatDetectionCustomModuleRequest} + * Protobuf type {@code + * google.cloud.securitycentermanagement.v1.CreateEventThreatDetectionCustomModuleRequest} */ -public final class CreateEventThreatDetectionCustomModuleRequest extends - com.google.protobuf.GeneratedMessageV3 implements +public final class CreateEventThreatDetectionCustomModuleRequest + extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.securitycentermanagement.v1.CreateEventThreatDetectionCustomModuleRequest) CreateEventThreatDetectionCustomModuleRequestOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use CreateEventThreatDetectionCustomModuleRequest.newBuilder() to construct. - private CreateEventThreatDetectionCustomModuleRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + private CreateEventThreatDetectionCustomModuleRequest( + com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private CreateEventThreatDetectionCustomModuleRequest() { parent_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new CreateEventThreatDetectionCustomModuleRequest(); } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.securitycentermanagement.v1.SecurityCenterManagementProto.internal_static_google_cloud_securitycentermanagement_v1_CreateEventThreatDetectionCustomModuleRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.securitycentermanagement.v1.SecurityCenterManagementProto + .internal_static_google_cloud_securitycentermanagement_v1_CreateEventThreatDetectionCustomModuleRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.securitycentermanagement.v1.SecurityCenterManagementProto.internal_static_google_cloud_securitycentermanagement_v1_CreateEventThreatDetectionCustomModuleRequest_fieldAccessorTable + return com.google.cloud.securitycentermanagement.v1.SecurityCenterManagementProto + .internal_static_google_cloud_securitycentermanagement_v1_CreateEventThreatDetectionCustomModuleRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.securitycentermanagement.v1.CreateEventThreatDetectionCustomModuleRequest.class, com.google.cloud.securitycentermanagement.v1.CreateEventThreatDetectionCustomModuleRequest.Builder.class); + com.google.cloud.securitycentermanagement.v1 + .CreateEventThreatDetectionCustomModuleRequest.class, + com.google.cloud.securitycentermanagement.v1 + .CreateEventThreatDetectionCustomModuleRequest.Builder.class); } public static final int PARENT_FIELD_NUMBER = 1; + @SuppressWarnings("serial") private volatile java.lang.Object parent_ = ""; /** + * + * *
    * Required. Name of parent for the module. Its format is
    * "organizations/{organization}/locations/{location}",
@@ -55,7 +82,10 @@ protected java.lang.Object newInstance(
    * "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,14 +94,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. Name of parent for the module. Its format is
    * "organizations/{organization}/locations/{location}",
@@ -80,17 +111,18 @@ public java.lang.String getParent() {
    * "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 { @@ -99,15 +131,21 @@ public java.lang.String getParent() { } public static final int EVENT_THREAT_DETECTION_CUSTOM_MODULE_FIELD_NUMBER = 3; - private com.google.cloud.securitycentermanagement.v1.EventThreatDetectionCustomModule eventThreatDetectionCustomModule_; + private com.google.cloud.securitycentermanagement.v1.EventThreatDetectionCustomModule + eventThreatDetectionCustomModule_; /** + * + * *
    * Required. The module to create. The
    * event_threat_detection_custom_module.name will be ignored and server
    * generated.
    * 
* - * .google.cloud.securitycentermanagement.v1.EventThreatDetectionCustomModule event_threat_detection_custom_module = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.securitycentermanagement.v1.EventThreatDetectionCustomModule event_threat_detection_custom_module = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return Whether the eventThreatDetectionCustomModule field is set. */ @java.lang.Override @@ -115,36 +153,55 @@ public boolean hasEventThreatDetectionCustomModule() { return eventThreatDetectionCustomModule_ != null; } /** + * + * *
    * Required. The module to create. The
    * event_threat_detection_custom_module.name will be ignored and server
    * generated.
    * 
* - * .google.cloud.securitycentermanagement.v1.EventThreatDetectionCustomModule event_threat_detection_custom_module = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.securitycentermanagement.v1.EventThreatDetectionCustomModule event_threat_detection_custom_module = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return The eventThreatDetectionCustomModule. */ @java.lang.Override - public com.google.cloud.securitycentermanagement.v1.EventThreatDetectionCustomModule getEventThreatDetectionCustomModule() { - return eventThreatDetectionCustomModule_ == null ? com.google.cloud.securitycentermanagement.v1.EventThreatDetectionCustomModule.getDefaultInstance() : eventThreatDetectionCustomModule_; + public com.google.cloud.securitycentermanagement.v1.EventThreatDetectionCustomModule + getEventThreatDetectionCustomModule() { + return eventThreatDetectionCustomModule_ == null + ? com.google.cloud.securitycentermanagement.v1.EventThreatDetectionCustomModule + .getDefaultInstance() + : eventThreatDetectionCustomModule_; } /** + * + * *
    * Required. The module to create. The
    * event_threat_detection_custom_module.name will be ignored and server
    * generated.
    * 
* - * .google.cloud.securitycentermanagement.v1.EventThreatDetectionCustomModule event_threat_detection_custom_module = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.securitycentermanagement.v1.EventThreatDetectionCustomModule event_threat_detection_custom_module = 3 [(.google.api.field_behavior) = REQUIRED]; + * */ @java.lang.Override - public com.google.cloud.securitycentermanagement.v1.EventThreatDetectionCustomModuleOrBuilder getEventThreatDetectionCustomModuleOrBuilder() { - return eventThreatDetectionCustomModule_ == null ? com.google.cloud.securitycentermanagement.v1.EventThreatDetectionCustomModule.getDefaultInstance() : eventThreatDetectionCustomModule_; + public com.google.cloud.securitycentermanagement.v1.EventThreatDetectionCustomModuleOrBuilder + getEventThreatDetectionCustomModuleOrBuilder() { + return eventThreatDetectionCustomModule_ == null + ? com.google.cloud.securitycentermanagement.v1.EventThreatDetectionCustomModule + .getDefaultInstance() + : eventThreatDetectionCustomModule_; } public static final int VALIDATE_ONLY_FIELD_NUMBER = 4; private boolean validateOnly_ = false; /** + * + * *
    * Optional. When set to true, only validations (including IAM checks) will
    * done for the request (no module will be created). An OK response indicates
@@ -156,6 +213,7 @@ public com.google.cloud.securitycentermanagement.v1.EventThreatDetectionCustomMo
    * 
* * bool validate_only = 4 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The validateOnly. */ @java.lang.Override @@ -164,6 +222,7 @@ public boolean getValidateOnly() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -175,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(parent_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, parent_); } @@ -199,12 +257,12 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, parent_); } if (eventThreatDetectionCustomModule_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(3, getEventThreatDetectionCustomModule()); + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 3, getEventThreatDetectionCustomModule()); } if (validateOnly_ != false) { - size += com.google.protobuf.CodedOutputStream - .computeBoolSize(4, validateOnly_); + size += com.google.protobuf.CodedOutputStream.computeBoolSize(4, validateOnly_); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -214,22 +272,28 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } - if (!(obj instanceof com.google.cloud.securitycentermanagement.v1.CreateEventThreatDetectionCustomModuleRequest)) { + if (!(obj + instanceof + com.google.cloud.securitycentermanagement.v1 + .CreateEventThreatDetectionCustomModuleRequest)) { return super.equals(obj); } - com.google.cloud.securitycentermanagement.v1.CreateEventThreatDetectionCustomModuleRequest other = (com.google.cloud.securitycentermanagement.v1.CreateEventThreatDetectionCustomModuleRequest) obj; + com.google.cloud.securitycentermanagement.v1.CreateEventThreatDetectionCustomModuleRequest + other = + (com.google.cloud.securitycentermanagement.v1 + .CreateEventThreatDetectionCustomModuleRequest) + obj; - if (!getParent() - .equals(other.getParent())) return false; - if (hasEventThreatDetectionCustomModule() != other.hasEventThreatDetectionCustomModule()) return false; + if (!getParent().equals(other.getParent())) return false; + if (hasEventThreatDetectionCustomModule() != other.hasEventThreatDetectionCustomModule()) + return false; if (hasEventThreatDetectionCustomModule()) { if (!getEventThreatDetectionCustomModule() .equals(other.getEventThreatDetectionCustomModule())) return false; } - if (getValidateOnly() - != other.getValidateOnly()) return false; + if (getValidateOnly() != other.getValidateOnly()) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -248,139 +312,167 @@ public int hashCode() { hash = (53 * hash) + getEventThreatDetectionCustomModule().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.securitycentermanagement.v1.CreateEventThreatDetectionCustomModuleRequest parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.securitycentermanagement.v1 + .CreateEventThreatDetectionCustomModuleRequest + parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.securitycentermanagement.v1.CreateEventThreatDetectionCustomModuleRequest parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.cloud.securitycentermanagement.v1 + .CreateEventThreatDetectionCustomModuleRequest + 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.securitycentermanagement.v1.CreateEventThreatDetectionCustomModuleRequest parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.cloud.securitycentermanagement.v1 + .CreateEventThreatDetectionCustomModuleRequest + parseFrom(com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.securitycentermanagement.v1.CreateEventThreatDetectionCustomModuleRequest parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.cloud.securitycentermanagement.v1 + .CreateEventThreatDetectionCustomModuleRequest + parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.securitycentermanagement.v1.CreateEventThreatDetectionCustomModuleRequest parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.cloud.securitycentermanagement.v1 + .CreateEventThreatDetectionCustomModuleRequest + parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.securitycentermanagement.v1.CreateEventThreatDetectionCustomModuleRequest parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.cloud.securitycentermanagement.v1 + .CreateEventThreatDetectionCustomModuleRequest + parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.securitycentermanagement.v1.CreateEventThreatDetectionCustomModuleRequest parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.securitycentermanagement.v1 + .CreateEventThreatDetectionCustomModuleRequest + parseFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } - public static com.google.cloud.securitycentermanagement.v1.CreateEventThreatDetectionCustomModuleRequest 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.securitycentermanagement.v1 + .CreateEventThreatDetectionCustomModuleRequest + 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.securitycentermanagement.v1.CreateEventThreatDetectionCustomModuleRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.securitycentermanagement.v1 + .CreateEventThreatDetectionCustomModuleRequest + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.securitycentermanagement.v1.CreateEventThreatDetectionCustomModuleRequest parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + public static com.google.cloud.securitycentermanagement.v1 + .CreateEventThreatDetectionCustomModuleRequest + parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.securitycentermanagement.v1.CreateEventThreatDetectionCustomModuleRequest parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.securitycentermanagement.v1 + .CreateEventThreatDetectionCustomModuleRequest + parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } - public static com.google.cloud.securitycentermanagement.v1.CreateEventThreatDetectionCustomModuleRequest 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.securitycentermanagement.v1 + .CreateEventThreatDetectionCustomModuleRequest + 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.securitycentermanagement.v1.CreateEventThreatDetectionCustomModuleRequest prototype) { + + public static Builder newBuilder( + com.google.cloud.securitycentermanagement.v1.CreateEventThreatDetectionCustomModuleRequest + prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected 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 EventThreatDetectionCustomModule
    * 
* - * Protobuf type {@code google.cloud.securitycentermanagement.v1.CreateEventThreatDetectionCustomModuleRequest} + * Protobuf type {@code + * google.cloud.securitycentermanagement.v1.CreateEventThreatDetectionCustomModuleRequest} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.securitycentermanagement.v1.CreateEventThreatDetectionCustomModuleRequest) - com.google.cloud.securitycentermanagement.v1.CreateEventThreatDetectionCustomModuleRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.securitycentermanagement.v1.SecurityCenterManagementProto.internal_static_google_cloud_securitycentermanagement_v1_CreateEventThreatDetectionCustomModuleRequest_descriptor; + com.google.cloud.securitycentermanagement.v1 + .CreateEventThreatDetectionCustomModuleRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.securitycentermanagement.v1.SecurityCenterManagementProto + .internal_static_google_cloud_securitycentermanagement_v1_CreateEventThreatDetectionCustomModuleRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.securitycentermanagement.v1.SecurityCenterManagementProto.internal_static_google_cloud_securitycentermanagement_v1_CreateEventThreatDetectionCustomModuleRequest_fieldAccessorTable + return com.google.cloud.securitycentermanagement.v1.SecurityCenterManagementProto + .internal_static_google_cloud_securitycentermanagement_v1_CreateEventThreatDetectionCustomModuleRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.securitycentermanagement.v1.CreateEventThreatDetectionCustomModuleRequest.class, com.google.cloud.securitycentermanagement.v1.CreateEventThreatDetectionCustomModuleRequest.Builder.class); + com.google.cloud.securitycentermanagement.v1 + .CreateEventThreatDetectionCustomModuleRequest.class, + com.google.cloud.securitycentermanagement.v1 + .CreateEventThreatDetectionCustomModuleRequest.Builder.class); } - // Construct using com.google.cloud.securitycentermanagement.v1.CreateEventThreatDetectionCustomModuleRequest.newBuilder() - private Builder() { + // Construct using + // com.google.cloud.securitycentermanagement.v1.CreateEventThreatDetectionCustomModuleRequest.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(); @@ -396,19 +488,25 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.securitycentermanagement.v1.SecurityCenterManagementProto.internal_static_google_cloud_securitycentermanagement_v1_CreateEventThreatDetectionCustomModuleRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.securitycentermanagement.v1.SecurityCenterManagementProto + .internal_static_google_cloud_securitycentermanagement_v1_CreateEventThreatDetectionCustomModuleRequest_descriptor; } @java.lang.Override - public com.google.cloud.securitycentermanagement.v1.CreateEventThreatDetectionCustomModuleRequest getDefaultInstanceForType() { - return com.google.cloud.securitycentermanagement.v1.CreateEventThreatDetectionCustomModuleRequest.getDefaultInstance(); + public com.google.cloud.securitycentermanagement.v1 + .CreateEventThreatDetectionCustomModuleRequest + getDefaultInstanceForType() { + return com.google.cloud.securitycentermanagement.v1 + .CreateEventThreatDetectionCustomModuleRequest.getDefaultInstance(); } @java.lang.Override - public com.google.cloud.securitycentermanagement.v1.CreateEventThreatDetectionCustomModuleRequest build() { - com.google.cloud.securitycentermanagement.v1.CreateEventThreatDetectionCustomModuleRequest result = buildPartial(); + public com.google.cloud.securitycentermanagement.v1 + .CreateEventThreatDetectionCustomModuleRequest + build() { + com.google.cloud.securitycentermanagement.v1.CreateEventThreatDetectionCustomModuleRequest + result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } @@ -416,22 +514,32 @@ public com.google.cloud.securitycentermanagement.v1.CreateEventThreatDetectionCu } @java.lang.Override - public com.google.cloud.securitycentermanagement.v1.CreateEventThreatDetectionCustomModuleRequest buildPartial() { - com.google.cloud.securitycentermanagement.v1.CreateEventThreatDetectionCustomModuleRequest result = new com.google.cloud.securitycentermanagement.v1.CreateEventThreatDetectionCustomModuleRequest(this); - if (bitField0_ != 0) { buildPartial0(result); } + public com.google.cloud.securitycentermanagement.v1 + .CreateEventThreatDetectionCustomModuleRequest + buildPartial() { + com.google.cloud.securitycentermanagement.v1.CreateEventThreatDetectionCustomModuleRequest + result = + new com.google.cloud.securitycentermanagement.v1 + .CreateEventThreatDetectionCustomModuleRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } - private void buildPartial0(com.google.cloud.securitycentermanagement.v1.CreateEventThreatDetectionCustomModuleRequest result) { + private void buildPartial0( + com.google.cloud.securitycentermanagement.v1.CreateEventThreatDetectionCustomModuleRequest + result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000001) != 0)) { result.parent_ = parent_; } if (((from_bitField0_ & 0x00000002) != 0)) { - result.eventThreatDetectionCustomModule_ = eventThreatDetectionCustomModuleBuilder_ == null - ? eventThreatDetectionCustomModule_ - : eventThreatDetectionCustomModuleBuilder_.build(); + result.eventThreatDetectionCustomModule_ = + eventThreatDetectionCustomModuleBuilder_ == null + ? eventThreatDetectionCustomModule_ + : eventThreatDetectionCustomModuleBuilder_.build(); } if (((from_bitField0_ & 0x00000004) != 0)) { result.validateOnly_ = validateOnly_; @@ -442,46 +550,57 @@ private void buildPartial0(com.google.cloud.securitycentermanagement.v1.CreateEv public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.cloud.securitycentermanagement.v1.CreateEventThreatDetectionCustomModuleRequest) { - return mergeFrom((com.google.cloud.securitycentermanagement.v1.CreateEventThreatDetectionCustomModuleRequest)other); + if (other + instanceof + com.google.cloud.securitycentermanagement.v1 + .CreateEventThreatDetectionCustomModuleRequest) { + return mergeFrom( + (com.google.cloud.securitycentermanagement.v1 + .CreateEventThreatDetectionCustomModuleRequest) + other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom(com.google.cloud.securitycentermanagement.v1.CreateEventThreatDetectionCustomModuleRequest other) { - if (other == com.google.cloud.securitycentermanagement.v1.CreateEventThreatDetectionCustomModuleRequest.getDefaultInstance()) return this; + public Builder mergeFrom( + com.google.cloud.securitycentermanagement.v1.CreateEventThreatDetectionCustomModuleRequest + other) { + if (other + == com.google.cloud.securitycentermanagement.v1 + .CreateEventThreatDetectionCustomModuleRequest.getDefaultInstance()) return this; if (!other.getParent().isEmpty()) { parent_ = other.parent_; bitField0_ |= 0x00000001; @@ -519,29 +638,33 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: { - parent_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 26: { - input.readMessage( - getEventThreatDetectionCustomModuleFieldBuilder().getBuilder(), - extensionRegistry); - bitField0_ |= 0x00000002; - break; - } // case 26 - case 32: { - validateOnly_ = input.readBool(); - bitField0_ |= 0x00000004; - 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 26: + { + input.readMessage( + getEventThreatDetectionCustomModuleFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000002; + break; + } // case 26 + case 32: + { + validateOnly_ = input.readBool(); + bitField0_ |= 0x00000004; + 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) { @@ -551,10 +674,13 @@ public Builder mergeFrom( } // finally return this; } + private int bitField0_; private java.lang.Object parent_ = ""; /** + * + * *
      * Required. Name of parent for the module. Its format is
      * "organizations/{organization}/locations/{location}",
@@ -563,14 +689,16 @@ public Builder mergeFrom(
      * "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; @@ -579,6 +707,8 @@ public java.lang.String getParent() { } } /** + * + * *
      * Required. Name of parent for the module. Its format is
      * "organizations/{organization}/locations/{location}",
@@ -587,16 +717,17 @@ public java.lang.String getParent() {
      * "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 { @@ -604,6 +735,8 @@ public java.lang.String getParent() { } } /** + * + * *
      * Required. Name of parent for the module. Its format is
      * "organizations/{organization}/locations/{location}",
@@ -612,19 +745,25 @@ public java.lang.String getParent() {
      * "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. Name of parent for the module. Its format is
      * "organizations/{organization}/locations/{location}",
@@ -633,7 +772,10 @@ public Builder setParent(
      * "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() { @@ -643,6 +785,8 @@ public Builder clearParent() { return this; } /** + * + * *
      * Required. Name of parent for the module. Its format is
      * "organizations/{organization}/locations/{location}",
@@ -651,13 +795,17 @@ public Builder clearParent() {
      * "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; @@ -665,49 +813,72 @@ public Builder setParentBytes( return this; } - private com.google.cloud.securitycentermanagement.v1.EventThreatDetectionCustomModule eventThreatDetectionCustomModule_; + private com.google.cloud.securitycentermanagement.v1.EventThreatDetectionCustomModule + eventThreatDetectionCustomModule_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.securitycentermanagement.v1.EventThreatDetectionCustomModule, com.google.cloud.securitycentermanagement.v1.EventThreatDetectionCustomModule.Builder, com.google.cloud.securitycentermanagement.v1.EventThreatDetectionCustomModuleOrBuilder> eventThreatDetectionCustomModuleBuilder_; + com.google.cloud.securitycentermanagement.v1.EventThreatDetectionCustomModule, + com.google.cloud.securitycentermanagement.v1.EventThreatDetectionCustomModule.Builder, + com.google.cloud.securitycentermanagement.v1.EventThreatDetectionCustomModuleOrBuilder> + eventThreatDetectionCustomModuleBuilder_; /** + * + * *
      * Required. The module to create. The
      * event_threat_detection_custom_module.name will be ignored and server
      * generated.
      * 
* - * .google.cloud.securitycentermanagement.v1.EventThreatDetectionCustomModule event_threat_detection_custom_module = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.securitycentermanagement.v1.EventThreatDetectionCustomModule event_threat_detection_custom_module = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return Whether the eventThreatDetectionCustomModule field is set. */ public boolean hasEventThreatDetectionCustomModule() { return ((bitField0_ & 0x00000002) != 0); } /** + * + * *
      * Required. The module to create. The
      * event_threat_detection_custom_module.name will be ignored and server
      * generated.
      * 
* - * .google.cloud.securitycentermanagement.v1.EventThreatDetectionCustomModule event_threat_detection_custom_module = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.securitycentermanagement.v1.EventThreatDetectionCustomModule event_threat_detection_custom_module = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return The eventThreatDetectionCustomModule. */ - public com.google.cloud.securitycentermanagement.v1.EventThreatDetectionCustomModule getEventThreatDetectionCustomModule() { + public com.google.cloud.securitycentermanagement.v1.EventThreatDetectionCustomModule + getEventThreatDetectionCustomModule() { if (eventThreatDetectionCustomModuleBuilder_ == null) { - return eventThreatDetectionCustomModule_ == null ? com.google.cloud.securitycentermanagement.v1.EventThreatDetectionCustomModule.getDefaultInstance() : eventThreatDetectionCustomModule_; + return eventThreatDetectionCustomModule_ == null + ? com.google.cloud.securitycentermanagement.v1.EventThreatDetectionCustomModule + .getDefaultInstance() + : eventThreatDetectionCustomModule_; } else { return eventThreatDetectionCustomModuleBuilder_.getMessage(); } } /** + * + * *
      * Required. The module to create. The
      * event_threat_detection_custom_module.name will be ignored and server
      * generated.
      * 
* - * .google.cloud.securitycentermanagement.v1.EventThreatDetectionCustomModule event_threat_detection_custom_module = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.securitycentermanagement.v1.EventThreatDetectionCustomModule event_threat_detection_custom_module = 3 [(.google.api.field_behavior) = REQUIRED]; + * */ - public Builder setEventThreatDetectionCustomModule(com.google.cloud.securitycentermanagement.v1.EventThreatDetectionCustomModule value) { + public Builder setEventThreatDetectionCustomModule( + com.google.cloud.securitycentermanagement.v1.EventThreatDetectionCustomModule value) { if (eventThreatDetectionCustomModuleBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -721,16 +892,21 @@ public Builder setEventThreatDetectionCustomModule(com.google.cloud.securitycent return this; } /** + * + * *
      * Required. The module to create. The
      * event_threat_detection_custom_module.name will be ignored and server
      * generated.
      * 
* - * .google.cloud.securitycentermanagement.v1.EventThreatDetectionCustomModule event_threat_detection_custom_module = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.securitycentermanagement.v1.EventThreatDetectionCustomModule event_threat_detection_custom_module = 3 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder setEventThreatDetectionCustomModule( - com.google.cloud.securitycentermanagement.v1.EventThreatDetectionCustomModule.Builder builderForValue) { + com.google.cloud.securitycentermanagement.v1.EventThreatDetectionCustomModule.Builder + builderForValue) { if (eventThreatDetectionCustomModuleBuilder_ == null) { eventThreatDetectionCustomModule_ = builderForValue.build(); } else { @@ -741,19 +917,26 @@ public Builder setEventThreatDetectionCustomModule( return this; } /** + * + * *
      * Required. The module to create. The
      * event_threat_detection_custom_module.name will be ignored and server
      * generated.
      * 
* - * .google.cloud.securitycentermanagement.v1.EventThreatDetectionCustomModule event_threat_detection_custom_module = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.securitycentermanagement.v1.EventThreatDetectionCustomModule event_threat_detection_custom_module = 3 [(.google.api.field_behavior) = REQUIRED]; + * */ - public Builder mergeEventThreatDetectionCustomModule(com.google.cloud.securitycentermanagement.v1.EventThreatDetectionCustomModule value) { + public Builder mergeEventThreatDetectionCustomModule( + com.google.cloud.securitycentermanagement.v1.EventThreatDetectionCustomModule value) { if (eventThreatDetectionCustomModuleBuilder_ == null) { - if (((bitField0_ & 0x00000002) != 0) && - eventThreatDetectionCustomModule_ != null && - eventThreatDetectionCustomModule_ != com.google.cloud.securitycentermanagement.v1.EventThreatDetectionCustomModule.getDefaultInstance()) { + if (((bitField0_ & 0x00000002) != 0) + && eventThreatDetectionCustomModule_ != null + && eventThreatDetectionCustomModule_ + != com.google.cloud.securitycentermanagement.v1.EventThreatDetectionCustomModule + .getDefaultInstance()) { getEventThreatDetectionCustomModuleBuilder().mergeFrom(value); } else { eventThreatDetectionCustomModule_ = value; @@ -766,13 +949,17 @@ public Builder mergeEventThreatDetectionCustomModule(com.google.cloud.securityce return this; } /** + * + * *
      * Required. The module to create. The
      * event_threat_detection_custom_module.name will be ignored and server
      * generated.
      * 
* - * .google.cloud.securitycentermanagement.v1.EventThreatDetectionCustomModule event_threat_detection_custom_module = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.securitycentermanagement.v1.EventThreatDetectionCustomModule event_threat_detection_custom_module = 3 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder clearEventThreatDetectionCustomModule() { bitField0_ = (bitField0_ & ~0x00000002); @@ -785,61 +972,84 @@ public Builder clearEventThreatDetectionCustomModule() { return this; } /** + * + * *
      * Required. The module to create. The
      * event_threat_detection_custom_module.name will be ignored and server
      * generated.
      * 
* - * .google.cloud.securitycentermanagement.v1.EventThreatDetectionCustomModule event_threat_detection_custom_module = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.securitycentermanagement.v1.EventThreatDetectionCustomModule event_threat_detection_custom_module = 3 [(.google.api.field_behavior) = REQUIRED]; + * */ - public com.google.cloud.securitycentermanagement.v1.EventThreatDetectionCustomModule.Builder getEventThreatDetectionCustomModuleBuilder() { + public com.google.cloud.securitycentermanagement.v1.EventThreatDetectionCustomModule.Builder + getEventThreatDetectionCustomModuleBuilder() { bitField0_ |= 0x00000002; onChanged(); return getEventThreatDetectionCustomModuleFieldBuilder().getBuilder(); } /** + * + * *
      * Required. The module to create. The
      * event_threat_detection_custom_module.name will be ignored and server
      * generated.
      * 
* - * .google.cloud.securitycentermanagement.v1.EventThreatDetectionCustomModule event_threat_detection_custom_module = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.securitycentermanagement.v1.EventThreatDetectionCustomModule event_threat_detection_custom_module = 3 [(.google.api.field_behavior) = REQUIRED]; + * */ - public com.google.cloud.securitycentermanagement.v1.EventThreatDetectionCustomModuleOrBuilder getEventThreatDetectionCustomModuleOrBuilder() { + public com.google.cloud.securitycentermanagement.v1.EventThreatDetectionCustomModuleOrBuilder + getEventThreatDetectionCustomModuleOrBuilder() { if (eventThreatDetectionCustomModuleBuilder_ != null) { return eventThreatDetectionCustomModuleBuilder_.getMessageOrBuilder(); } else { - return eventThreatDetectionCustomModule_ == null ? - com.google.cloud.securitycentermanagement.v1.EventThreatDetectionCustomModule.getDefaultInstance() : eventThreatDetectionCustomModule_; + return eventThreatDetectionCustomModule_ == null + ? com.google.cloud.securitycentermanagement.v1.EventThreatDetectionCustomModule + .getDefaultInstance() + : eventThreatDetectionCustomModule_; } } /** + * + * *
      * Required. The module to create. The
      * event_threat_detection_custom_module.name will be ignored and server
      * generated.
      * 
* - * .google.cloud.securitycentermanagement.v1.EventThreatDetectionCustomModule event_threat_detection_custom_module = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.securitycentermanagement.v1.EventThreatDetectionCustomModule event_threat_detection_custom_module = 3 [(.google.api.field_behavior) = REQUIRED]; + * */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.securitycentermanagement.v1.EventThreatDetectionCustomModule, com.google.cloud.securitycentermanagement.v1.EventThreatDetectionCustomModule.Builder, com.google.cloud.securitycentermanagement.v1.EventThreatDetectionCustomModuleOrBuilder> + com.google.cloud.securitycentermanagement.v1.EventThreatDetectionCustomModule, + com.google.cloud.securitycentermanagement.v1.EventThreatDetectionCustomModule.Builder, + com.google.cloud.securitycentermanagement.v1.EventThreatDetectionCustomModuleOrBuilder> getEventThreatDetectionCustomModuleFieldBuilder() { if (eventThreatDetectionCustomModuleBuilder_ == null) { - eventThreatDetectionCustomModuleBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.securitycentermanagement.v1.EventThreatDetectionCustomModule, com.google.cloud.securitycentermanagement.v1.EventThreatDetectionCustomModule.Builder, com.google.cloud.securitycentermanagement.v1.EventThreatDetectionCustomModuleOrBuilder>( - getEventThreatDetectionCustomModule(), - getParentForChildren(), - isClean()); + eventThreatDetectionCustomModuleBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.securitycentermanagement.v1.EventThreatDetectionCustomModule, + com.google.cloud.securitycentermanagement.v1.EventThreatDetectionCustomModule + .Builder, + com.google.cloud.securitycentermanagement.v1 + .EventThreatDetectionCustomModuleOrBuilder>( + getEventThreatDetectionCustomModule(), getParentForChildren(), isClean()); eventThreatDetectionCustomModule_ = null; } return eventThreatDetectionCustomModuleBuilder_; } - private boolean validateOnly_ ; + private boolean validateOnly_; /** + * + * *
      * Optional. When set to true, only validations (including IAM checks) will
      * done for the request (no module will be created). An OK response indicates
@@ -851,6 +1061,7 @@ public com.google.cloud.securitycentermanagement.v1.EventThreatDetectionCustomMo
      * 
* * bool validate_only = 4 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The validateOnly. */ @java.lang.Override @@ -858,6 +1069,8 @@ public boolean getValidateOnly() { return validateOnly_; } /** + * + * *
      * Optional. When set to true, only validations (including IAM checks) will
      * done for the request (no module will be created). An OK response indicates
@@ -869,6 +1082,7 @@ public boolean getValidateOnly() {
      * 
* * bool validate_only = 4 [(.google.api.field_behavior) = OPTIONAL]; + * * @param value The validateOnly to set. * @return This builder for chaining. */ @@ -880,6 +1094,8 @@ public Builder setValidateOnly(boolean value) { return this; } /** + * + * *
      * Optional. When set to true, only validations (including IAM checks) will
      * done for the request (no module will be created). An OK response indicates
@@ -891,6 +1107,7 @@ public Builder setValidateOnly(boolean value) {
      * 
* * bool validate_only = 4 [(.google.api.field_behavior) = OPTIONAL]; + * * @return This builder for chaining. */ public Builder clearValidateOnly() { @@ -899,9 +1116,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); } @@ -911,55 +1128,63 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.securitycentermanagement.v1.CreateEventThreatDetectionCustomModuleRequest) } // @@protoc_insertion_point(class_scope:google.cloud.securitycentermanagement.v1.CreateEventThreatDetectionCustomModuleRequest) - private static final com.google.cloud.securitycentermanagement.v1.CreateEventThreatDetectionCustomModuleRequest DEFAULT_INSTANCE; + private static final com.google.cloud.securitycentermanagement.v1 + .CreateEventThreatDetectionCustomModuleRequest + DEFAULT_INSTANCE; + static { - DEFAULT_INSTANCE = new com.google.cloud.securitycentermanagement.v1.CreateEventThreatDetectionCustomModuleRequest(); + DEFAULT_INSTANCE = + new com.google.cloud.securitycentermanagement.v1 + .CreateEventThreatDetectionCustomModuleRequest(); } - public static com.google.cloud.securitycentermanagement.v1.CreateEventThreatDetectionCustomModuleRequest getDefaultInstance() { + public static com.google.cloud.securitycentermanagement.v1 + .CreateEventThreatDetectionCustomModuleRequest + getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public CreateEventThreatDetectionCustomModuleRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public CreateEventThreatDetectionCustomModuleRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException() + .setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; } @java.lang.Override - public com.google.protobuf.Parser getParserForType() { + public com.google.protobuf.Parser + getParserForType() { return PARSER; } @java.lang.Override - public com.google.cloud.securitycentermanagement.v1.CreateEventThreatDetectionCustomModuleRequest getDefaultInstanceForType() { + public com.google.cloud.securitycentermanagement.v1.CreateEventThreatDetectionCustomModuleRequest + getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/java-securitycentermanagement/v1/proto-google-cloud-securitycentermanagement-v1/src/main/java/com/google/cloud/securitycentermanagement/v1/CreateEventThreatDetectionCustomModuleRequestOrBuilder.java b/java-securitycentermanagement/proto-google-cloud-securitycentermanagement-v1/src/main/java/com/google/cloud/securitycentermanagement/v1/CreateEventThreatDetectionCustomModuleRequestOrBuilder.java similarity index 59% rename from owl-bot-staging/java-securitycentermanagement/v1/proto-google-cloud-securitycentermanagement-v1/src/main/java/com/google/cloud/securitycentermanagement/v1/CreateEventThreatDetectionCustomModuleRequestOrBuilder.java rename to java-securitycentermanagement/proto-google-cloud-securitycentermanagement-v1/src/main/java/com/google/cloud/securitycentermanagement/v1/CreateEventThreatDetectionCustomModuleRequestOrBuilder.java index b4cc121a854f..b11bd8256393 100644 --- a/owl-bot-staging/java-securitycentermanagement/v1/proto-google-cloud-securitycentermanagement-v1/src/main/java/com/google/cloud/securitycentermanagement/v1/CreateEventThreatDetectionCustomModuleRequestOrBuilder.java +++ b/java-securitycentermanagement/proto-google-cloud-securitycentermanagement-v1/src/main/java/com/google/cloud/securitycentermanagement/v1/CreateEventThreatDetectionCustomModuleRequestOrBuilder.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/securitycentermanagement/v1/security_center_management.proto package com.google.cloud.securitycentermanagement.v1; -public interface CreateEventThreatDetectionCustomModuleRequestOrBuilder extends +public interface CreateEventThreatDetectionCustomModuleRequestOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.securitycentermanagement.v1.CreateEventThreatDetectionCustomModuleRequest) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * Required. Name of parent for the module. Its format is
    * "organizations/{organization}/locations/{location}",
@@ -16,11 +34,16 @@ public interface CreateEventThreatDetectionCustomModuleRequestOrBuilder extends
    * "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. Name of parent for the module. Its format is
    * "organizations/{organization}/locations/{location}",
@@ -29,46 +52,66 @@ public interface CreateEventThreatDetectionCustomModuleRequestOrBuilder extends
    * "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. The module to create. The
    * event_threat_detection_custom_module.name will be ignored and server
    * generated.
    * 
* - * .google.cloud.securitycentermanagement.v1.EventThreatDetectionCustomModule event_threat_detection_custom_module = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.securitycentermanagement.v1.EventThreatDetectionCustomModule event_threat_detection_custom_module = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return Whether the eventThreatDetectionCustomModule field is set. */ boolean hasEventThreatDetectionCustomModule(); /** + * + * *
    * Required. The module to create. The
    * event_threat_detection_custom_module.name will be ignored and server
    * generated.
    * 
* - * .google.cloud.securitycentermanagement.v1.EventThreatDetectionCustomModule event_threat_detection_custom_module = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.securitycentermanagement.v1.EventThreatDetectionCustomModule event_threat_detection_custom_module = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return The eventThreatDetectionCustomModule. */ - com.google.cloud.securitycentermanagement.v1.EventThreatDetectionCustomModule getEventThreatDetectionCustomModule(); + com.google.cloud.securitycentermanagement.v1.EventThreatDetectionCustomModule + getEventThreatDetectionCustomModule(); /** + * + * *
    * Required. The module to create. The
    * event_threat_detection_custom_module.name will be ignored and server
    * generated.
    * 
* - * .google.cloud.securitycentermanagement.v1.EventThreatDetectionCustomModule event_threat_detection_custom_module = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.securitycentermanagement.v1.EventThreatDetectionCustomModule event_threat_detection_custom_module = 3 [(.google.api.field_behavior) = REQUIRED]; + * */ - com.google.cloud.securitycentermanagement.v1.EventThreatDetectionCustomModuleOrBuilder getEventThreatDetectionCustomModuleOrBuilder(); + com.google.cloud.securitycentermanagement.v1.EventThreatDetectionCustomModuleOrBuilder + getEventThreatDetectionCustomModuleOrBuilder(); /** + * + * *
    * Optional. When set to true, only validations (including IAM checks) will
    * done for the request (no module will be created). An OK response indicates
@@ -80,6 +123,7 @@ public interface CreateEventThreatDetectionCustomModuleRequestOrBuilder extends
    * 
* * bool validate_only = 4 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The validateOnly. */ boolean getValidateOnly(); diff --git a/owl-bot-staging/java-securitycentermanagement/v1/proto-google-cloud-securitycentermanagement-v1/src/main/java/com/google/cloud/securitycentermanagement/v1/CreateSecurityHealthAnalyticsCustomModuleRequest.java b/java-securitycentermanagement/proto-google-cloud-securitycentermanagement-v1/src/main/java/com/google/cloud/securitycentermanagement/v1/CreateSecurityHealthAnalyticsCustomModuleRequest.java similarity index 50% rename from owl-bot-staging/java-securitycentermanagement/v1/proto-google-cloud-securitycentermanagement-v1/src/main/java/com/google/cloud/securitycentermanagement/v1/CreateSecurityHealthAnalyticsCustomModuleRequest.java rename to java-securitycentermanagement/proto-google-cloud-securitycentermanagement-v1/src/main/java/com/google/cloud/securitycentermanagement/v1/CreateSecurityHealthAnalyticsCustomModuleRequest.java index 302fc8934b24..8de9ee853503 100644 --- a/owl-bot-staging/java-securitycentermanagement/v1/proto-google-cloud-securitycentermanagement-v1/src/main/java/com/google/cloud/securitycentermanagement/v1/CreateSecurityHealthAnalyticsCustomModuleRequest.java +++ b/java-securitycentermanagement/proto-google-cloud-securitycentermanagement-v1/src/main/java/com/google/cloud/securitycentermanagement/v1/CreateSecurityHealthAnalyticsCustomModuleRequest.java @@ -1,52 +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/securitycentermanagement/v1/security_center_management.proto package com.google.cloud.securitycentermanagement.v1; /** + * + * *
  * Message for creating a SecurityHealthAnalyticsCustomModule
  * 
* - * Protobuf type {@code google.cloud.securitycentermanagement.v1.CreateSecurityHealthAnalyticsCustomModuleRequest} + * Protobuf type {@code + * google.cloud.securitycentermanagement.v1.CreateSecurityHealthAnalyticsCustomModuleRequest} */ -public final class CreateSecurityHealthAnalyticsCustomModuleRequest extends - com.google.protobuf.GeneratedMessageV3 implements +public final class CreateSecurityHealthAnalyticsCustomModuleRequest + extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.securitycentermanagement.v1.CreateSecurityHealthAnalyticsCustomModuleRequest) CreateSecurityHealthAnalyticsCustomModuleRequestOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use CreateSecurityHealthAnalyticsCustomModuleRequest.newBuilder() to construct. - private CreateSecurityHealthAnalyticsCustomModuleRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + private CreateSecurityHealthAnalyticsCustomModuleRequest( + com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private CreateSecurityHealthAnalyticsCustomModuleRequest() { parent_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new CreateSecurityHealthAnalyticsCustomModuleRequest(); } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.securitycentermanagement.v1.SecurityCenterManagementProto.internal_static_google_cloud_securitycentermanagement_v1_CreateSecurityHealthAnalyticsCustomModuleRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.securitycentermanagement.v1.SecurityCenterManagementProto + .internal_static_google_cloud_securitycentermanagement_v1_CreateSecurityHealthAnalyticsCustomModuleRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.securitycentermanagement.v1.SecurityCenterManagementProto.internal_static_google_cloud_securitycentermanagement_v1_CreateSecurityHealthAnalyticsCustomModuleRequest_fieldAccessorTable + return com.google.cloud.securitycentermanagement.v1.SecurityCenterManagementProto + .internal_static_google_cloud_securitycentermanagement_v1_CreateSecurityHealthAnalyticsCustomModuleRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.securitycentermanagement.v1.CreateSecurityHealthAnalyticsCustomModuleRequest.class, com.google.cloud.securitycentermanagement.v1.CreateSecurityHealthAnalyticsCustomModuleRequest.Builder.class); + com.google.cloud.securitycentermanagement.v1 + .CreateSecurityHealthAnalyticsCustomModuleRequest.class, + com.google.cloud.securitycentermanagement.v1 + .CreateSecurityHealthAnalyticsCustomModuleRequest.Builder.class); } public static final int PARENT_FIELD_NUMBER = 1; + @SuppressWarnings("serial") private volatile java.lang.Object parent_ = ""; /** + * + * *
    * Required. Name of the parent for the module. Its format is
    * "organizations/{organization}/locations/{location}",
@@ -55,7 +82,10 @@ protected java.lang.Object newInstance(
    * "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,14 +94,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. Name of the parent for the module. Its format is
    * "organizations/{organization}/locations/{location}",
@@ -80,17 +111,18 @@ public java.lang.String getParent() {
    * "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 { @@ -99,13 +131,19 @@ public java.lang.String getParent() { } public static final int SECURITY_HEALTH_ANALYTICS_CUSTOM_MODULE_FIELD_NUMBER = 2; - private com.google.cloud.securitycentermanagement.v1.SecurityHealthAnalyticsCustomModule securityHealthAnalyticsCustomModule_; + private com.google.cloud.securitycentermanagement.v1.SecurityHealthAnalyticsCustomModule + securityHealthAnalyticsCustomModule_; /** + * + * *
    * Required. The resource being created
    * 
* - * .google.cloud.securitycentermanagement.v1.SecurityHealthAnalyticsCustomModule security_health_analytics_custom_module = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.securitycentermanagement.v1.SecurityHealthAnalyticsCustomModule security_health_analytics_custom_module = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return Whether the securityHealthAnalyticsCustomModule field is set. */ @java.lang.Override @@ -113,32 +151,51 @@ public boolean hasSecurityHealthAnalyticsCustomModule() { return securityHealthAnalyticsCustomModule_ != null; } /** + * + * *
    * Required. The resource being created
    * 
* - * .google.cloud.securitycentermanagement.v1.SecurityHealthAnalyticsCustomModule security_health_analytics_custom_module = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.securitycentermanagement.v1.SecurityHealthAnalyticsCustomModule security_health_analytics_custom_module = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return The securityHealthAnalyticsCustomModule. */ @java.lang.Override - public com.google.cloud.securitycentermanagement.v1.SecurityHealthAnalyticsCustomModule getSecurityHealthAnalyticsCustomModule() { - return securityHealthAnalyticsCustomModule_ == null ? com.google.cloud.securitycentermanagement.v1.SecurityHealthAnalyticsCustomModule.getDefaultInstance() : securityHealthAnalyticsCustomModule_; + public com.google.cloud.securitycentermanagement.v1.SecurityHealthAnalyticsCustomModule + getSecurityHealthAnalyticsCustomModule() { + return securityHealthAnalyticsCustomModule_ == null + ? com.google.cloud.securitycentermanagement.v1.SecurityHealthAnalyticsCustomModule + .getDefaultInstance() + : securityHealthAnalyticsCustomModule_; } /** + * + * *
    * Required. The resource being created
    * 
* - * .google.cloud.securitycentermanagement.v1.SecurityHealthAnalyticsCustomModule security_health_analytics_custom_module = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.securitycentermanagement.v1.SecurityHealthAnalyticsCustomModule security_health_analytics_custom_module = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ @java.lang.Override - public com.google.cloud.securitycentermanagement.v1.SecurityHealthAnalyticsCustomModuleOrBuilder getSecurityHealthAnalyticsCustomModuleOrBuilder() { - return securityHealthAnalyticsCustomModule_ == null ? com.google.cloud.securitycentermanagement.v1.SecurityHealthAnalyticsCustomModule.getDefaultInstance() : securityHealthAnalyticsCustomModule_; + public com.google.cloud.securitycentermanagement.v1.SecurityHealthAnalyticsCustomModuleOrBuilder + getSecurityHealthAnalyticsCustomModuleOrBuilder() { + return securityHealthAnalyticsCustomModule_ == null + ? com.google.cloud.securitycentermanagement.v1.SecurityHealthAnalyticsCustomModule + .getDefaultInstance() + : securityHealthAnalyticsCustomModule_; } public static final int VALIDATE_ONLY_FIELD_NUMBER = 3; private boolean validateOnly_ = false; /** + * + * *
    * Optional. When set to true, only validations (including IAM checks) will
    * done for the request (no module will be created). An OK response indicates
@@ -151,6 +208,7 @@ public com.google.cloud.securitycentermanagement.v1.SecurityHealthAnalyticsCusto
    * 
* * bool validate_only = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The validateOnly. */ @java.lang.Override @@ -159,6 +217,7 @@ public boolean getValidateOnly() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -170,8 +229,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.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_); } @@ -194,12 +252,12 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, parent_); } if (securityHealthAnalyticsCustomModule_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(2, getSecurityHealthAnalyticsCustomModule()); + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 2, getSecurityHealthAnalyticsCustomModule()); } if (validateOnly_ != false) { - size += com.google.protobuf.CodedOutputStream - .computeBoolSize(3, validateOnly_); + size += com.google.protobuf.CodedOutputStream.computeBoolSize(3, validateOnly_); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -209,22 +267,28 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } - if (!(obj instanceof com.google.cloud.securitycentermanagement.v1.CreateSecurityHealthAnalyticsCustomModuleRequest)) { + if (!(obj + instanceof + com.google.cloud.securitycentermanagement.v1 + .CreateSecurityHealthAnalyticsCustomModuleRequest)) { return super.equals(obj); } - com.google.cloud.securitycentermanagement.v1.CreateSecurityHealthAnalyticsCustomModuleRequest other = (com.google.cloud.securitycentermanagement.v1.CreateSecurityHealthAnalyticsCustomModuleRequest) obj; + com.google.cloud.securitycentermanagement.v1.CreateSecurityHealthAnalyticsCustomModuleRequest + other = + (com.google.cloud.securitycentermanagement.v1 + .CreateSecurityHealthAnalyticsCustomModuleRequest) + obj; - if (!getParent() - .equals(other.getParent())) return false; - if (hasSecurityHealthAnalyticsCustomModule() != other.hasSecurityHealthAnalyticsCustomModule()) return false; + if (!getParent().equals(other.getParent())) return false; + if (hasSecurityHealthAnalyticsCustomModule() != other.hasSecurityHealthAnalyticsCustomModule()) + return false; if (hasSecurityHealthAnalyticsCustomModule()) { if (!getSecurityHealthAnalyticsCustomModule() .equals(other.getSecurityHealthAnalyticsCustomModule())) return false; } - if (getValidateOnly() - != other.getValidateOnly()) return false; + if (getValidateOnly() != other.getValidateOnly()) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -243,139 +307,167 @@ public int hashCode() { hash = (53 * hash) + getSecurityHealthAnalyticsCustomModule().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.securitycentermanagement.v1.CreateSecurityHealthAnalyticsCustomModuleRequest parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.securitycentermanagement.v1 + .CreateSecurityHealthAnalyticsCustomModuleRequest + parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.securitycentermanagement.v1.CreateSecurityHealthAnalyticsCustomModuleRequest parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.cloud.securitycentermanagement.v1 + .CreateSecurityHealthAnalyticsCustomModuleRequest + 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.securitycentermanagement.v1.CreateSecurityHealthAnalyticsCustomModuleRequest parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.cloud.securitycentermanagement.v1 + .CreateSecurityHealthAnalyticsCustomModuleRequest + parseFrom(com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.securitycentermanagement.v1.CreateSecurityHealthAnalyticsCustomModuleRequest parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.cloud.securitycentermanagement.v1 + .CreateSecurityHealthAnalyticsCustomModuleRequest + parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.securitycentermanagement.v1.CreateSecurityHealthAnalyticsCustomModuleRequest parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.cloud.securitycentermanagement.v1 + .CreateSecurityHealthAnalyticsCustomModuleRequest + parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.securitycentermanagement.v1.CreateSecurityHealthAnalyticsCustomModuleRequest parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.cloud.securitycentermanagement.v1 + .CreateSecurityHealthAnalyticsCustomModuleRequest + parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.securitycentermanagement.v1.CreateSecurityHealthAnalyticsCustomModuleRequest parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.securitycentermanagement.v1 + .CreateSecurityHealthAnalyticsCustomModuleRequest + parseFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } - public static com.google.cloud.securitycentermanagement.v1.CreateSecurityHealthAnalyticsCustomModuleRequest 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.securitycentermanagement.v1 + .CreateSecurityHealthAnalyticsCustomModuleRequest + 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.securitycentermanagement.v1.CreateSecurityHealthAnalyticsCustomModuleRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.securitycentermanagement.v1 + .CreateSecurityHealthAnalyticsCustomModuleRequest + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.securitycentermanagement.v1.CreateSecurityHealthAnalyticsCustomModuleRequest parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + public static com.google.cloud.securitycentermanagement.v1 + .CreateSecurityHealthAnalyticsCustomModuleRequest + parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.securitycentermanagement.v1.CreateSecurityHealthAnalyticsCustomModuleRequest parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.securitycentermanagement.v1 + .CreateSecurityHealthAnalyticsCustomModuleRequest + parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } - public static com.google.cloud.securitycentermanagement.v1.CreateSecurityHealthAnalyticsCustomModuleRequest 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.securitycentermanagement.v1 + .CreateSecurityHealthAnalyticsCustomModuleRequest + 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.securitycentermanagement.v1.CreateSecurityHealthAnalyticsCustomModuleRequest prototype) { + + public static Builder newBuilder( + com.google.cloud.securitycentermanagement.v1.CreateSecurityHealthAnalyticsCustomModuleRequest + prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected 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 SecurityHealthAnalyticsCustomModule
    * 
* - * Protobuf type {@code google.cloud.securitycentermanagement.v1.CreateSecurityHealthAnalyticsCustomModuleRequest} + * Protobuf type {@code + * google.cloud.securitycentermanagement.v1.CreateSecurityHealthAnalyticsCustomModuleRequest} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.securitycentermanagement.v1.CreateSecurityHealthAnalyticsCustomModuleRequest) - com.google.cloud.securitycentermanagement.v1.CreateSecurityHealthAnalyticsCustomModuleRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.securitycentermanagement.v1.SecurityCenterManagementProto.internal_static_google_cloud_securitycentermanagement_v1_CreateSecurityHealthAnalyticsCustomModuleRequest_descriptor; + com.google.cloud.securitycentermanagement.v1 + .CreateSecurityHealthAnalyticsCustomModuleRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.securitycentermanagement.v1.SecurityCenterManagementProto + .internal_static_google_cloud_securitycentermanagement_v1_CreateSecurityHealthAnalyticsCustomModuleRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.securitycentermanagement.v1.SecurityCenterManagementProto.internal_static_google_cloud_securitycentermanagement_v1_CreateSecurityHealthAnalyticsCustomModuleRequest_fieldAccessorTable + return com.google.cloud.securitycentermanagement.v1.SecurityCenterManagementProto + .internal_static_google_cloud_securitycentermanagement_v1_CreateSecurityHealthAnalyticsCustomModuleRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.securitycentermanagement.v1.CreateSecurityHealthAnalyticsCustomModuleRequest.class, com.google.cloud.securitycentermanagement.v1.CreateSecurityHealthAnalyticsCustomModuleRequest.Builder.class); + com.google.cloud.securitycentermanagement.v1 + .CreateSecurityHealthAnalyticsCustomModuleRequest.class, + com.google.cloud.securitycentermanagement.v1 + .CreateSecurityHealthAnalyticsCustomModuleRequest.Builder.class); } - // Construct using com.google.cloud.securitycentermanagement.v1.CreateSecurityHealthAnalyticsCustomModuleRequest.newBuilder() - private Builder() { + // Construct using + // com.google.cloud.securitycentermanagement.v1.CreateSecurityHealthAnalyticsCustomModuleRequest.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(); @@ -391,19 +483,25 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.securitycentermanagement.v1.SecurityCenterManagementProto.internal_static_google_cloud_securitycentermanagement_v1_CreateSecurityHealthAnalyticsCustomModuleRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.securitycentermanagement.v1.SecurityCenterManagementProto + .internal_static_google_cloud_securitycentermanagement_v1_CreateSecurityHealthAnalyticsCustomModuleRequest_descriptor; } @java.lang.Override - public com.google.cloud.securitycentermanagement.v1.CreateSecurityHealthAnalyticsCustomModuleRequest getDefaultInstanceForType() { - return com.google.cloud.securitycentermanagement.v1.CreateSecurityHealthAnalyticsCustomModuleRequest.getDefaultInstance(); + public com.google.cloud.securitycentermanagement.v1 + .CreateSecurityHealthAnalyticsCustomModuleRequest + getDefaultInstanceForType() { + return com.google.cloud.securitycentermanagement.v1 + .CreateSecurityHealthAnalyticsCustomModuleRequest.getDefaultInstance(); } @java.lang.Override - public com.google.cloud.securitycentermanagement.v1.CreateSecurityHealthAnalyticsCustomModuleRequest build() { - com.google.cloud.securitycentermanagement.v1.CreateSecurityHealthAnalyticsCustomModuleRequest result = buildPartial(); + public com.google.cloud.securitycentermanagement.v1 + .CreateSecurityHealthAnalyticsCustomModuleRequest + build() { + com.google.cloud.securitycentermanagement.v1.CreateSecurityHealthAnalyticsCustomModuleRequest + result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } @@ -411,22 +509,33 @@ public com.google.cloud.securitycentermanagement.v1.CreateSecurityHealthAnalytic } @java.lang.Override - public com.google.cloud.securitycentermanagement.v1.CreateSecurityHealthAnalyticsCustomModuleRequest buildPartial() { - com.google.cloud.securitycentermanagement.v1.CreateSecurityHealthAnalyticsCustomModuleRequest result = new com.google.cloud.securitycentermanagement.v1.CreateSecurityHealthAnalyticsCustomModuleRequest(this); - if (bitField0_ != 0) { buildPartial0(result); } + public com.google.cloud.securitycentermanagement.v1 + .CreateSecurityHealthAnalyticsCustomModuleRequest + buildPartial() { + com.google.cloud.securitycentermanagement.v1.CreateSecurityHealthAnalyticsCustomModuleRequest + result = + new com.google.cloud.securitycentermanagement.v1 + .CreateSecurityHealthAnalyticsCustomModuleRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } - private void buildPartial0(com.google.cloud.securitycentermanagement.v1.CreateSecurityHealthAnalyticsCustomModuleRequest result) { + private void buildPartial0( + com.google.cloud.securitycentermanagement.v1 + .CreateSecurityHealthAnalyticsCustomModuleRequest + result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000001) != 0)) { result.parent_ = parent_; } if (((from_bitField0_ & 0x00000002) != 0)) { - result.securityHealthAnalyticsCustomModule_ = securityHealthAnalyticsCustomModuleBuilder_ == null - ? securityHealthAnalyticsCustomModule_ - : securityHealthAnalyticsCustomModuleBuilder_.build(); + result.securityHealthAnalyticsCustomModule_ = + securityHealthAnalyticsCustomModuleBuilder_ == null + ? securityHealthAnalyticsCustomModule_ + : securityHealthAnalyticsCustomModuleBuilder_.build(); } if (((from_bitField0_ & 0x00000004) != 0)) { result.validateOnly_ = validateOnly_; @@ -437,46 +546,58 @@ private void buildPartial0(com.google.cloud.securitycentermanagement.v1.CreateSe public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.cloud.securitycentermanagement.v1.CreateSecurityHealthAnalyticsCustomModuleRequest) { - return mergeFrom((com.google.cloud.securitycentermanagement.v1.CreateSecurityHealthAnalyticsCustomModuleRequest)other); + if (other + instanceof + com.google.cloud.securitycentermanagement.v1 + .CreateSecurityHealthAnalyticsCustomModuleRequest) { + return mergeFrom( + (com.google.cloud.securitycentermanagement.v1 + .CreateSecurityHealthAnalyticsCustomModuleRequest) + other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom(com.google.cloud.securitycentermanagement.v1.CreateSecurityHealthAnalyticsCustomModuleRequest other) { - if (other == com.google.cloud.securitycentermanagement.v1.CreateSecurityHealthAnalyticsCustomModuleRequest.getDefaultInstance()) return this; + public Builder mergeFrom( + com.google.cloud.securitycentermanagement.v1 + .CreateSecurityHealthAnalyticsCustomModuleRequest + other) { + if (other + == com.google.cloud.securitycentermanagement.v1 + .CreateSecurityHealthAnalyticsCustomModuleRequest.getDefaultInstance()) return this; if (!other.getParent().isEmpty()) { parent_ = other.parent_; bitField0_ |= 0x00000001; @@ -514,29 +635,33 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: { - parent_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 18: { - input.readMessage( - getSecurityHealthAnalyticsCustomModuleFieldBuilder().getBuilder(), - extensionRegistry); - bitField0_ |= 0x00000002; - break; - } // case 18 - case 24: { - validateOnly_ = input.readBool(); - 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: + { + input.readMessage( + getSecurityHealthAnalyticsCustomModuleFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 24: + { + validateOnly_ = 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) { @@ -546,10 +671,13 @@ public Builder mergeFrom( } // finally return this; } + private int bitField0_; private java.lang.Object parent_ = ""; /** + * + * *
      * Required. Name of the parent for the module. Its format is
      * "organizations/{organization}/locations/{location}",
@@ -558,14 +686,16 @@ public Builder mergeFrom(
      * "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; @@ -574,6 +704,8 @@ public java.lang.String getParent() { } } /** + * + * *
      * Required. Name of the parent for the module. Its format is
      * "organizations/{organization}/locations/{location}",
@@ -582,16 +714,17 @@ public java.lang.String getParent() {
      * "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 { @@ -599,6 +732,8 @@ public java.lang.String getParent() { } } /** + * + * *
      * Required. Name of the parent for the module. Its format is
      * "organizations/{organization}/locations/{location}",
@@ -607,19 +742,25 @@ public java.lang.String getParent() {
      * "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. Name of the parent for the module. Its format is
      * "organizations/{organization}/locations/{location}",
@@ -628,7 +769,10 @@ public Builder setParent(
      * "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() { @@ -638,6 +782,8 @@ public Builder clearParent() { return this; } /** + * + * *
      * Required. Name of the parent for the module. Its format is
      * "organizations/{organization}/locations/{location}",
@@ -646,13 +792,17 @@ public Builder clearParent() {
      * "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; @@ -660,43 +810,68 @@ public Builder setParentBytes( return this; } - private com.google.cloud.securitycentermanagement.v1.SecurityHealthAnalyticsCustomModule securityHealthAnalyticsCustomModule_; + private com.google.cloud.securitycentermanagement.v1.SecurityHealthAnalyticsCustomModule + securityHealthAnalyticsCustomModule_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.securitycentermanagement.v1.SecurityHealthAnalyticsCustomModule, com.google.cloud.securitycentermanagement.v1.SecurityHealthAnalyticsCustomModule.Builder, com.google.cloud.securitycentermanagement.v1.SecurityHealthAnalyticsCustomModuleOrBuilder> securityHealthAnalyticsCustomModuleBuilder_; + com.google.cloud.securitycentermanagement.v1.SecurityHealthAnalyticsCustomModule, + com.google.cloud.securitycentermanagement.v1.SecurityHealthAnalyticsCustomModule + .Builder, + com.google.cloud.securitycentermanagement.v1 + .SecurityHealthAnalyticsCustomModuleOrBuilder> + securityHealthAnalyticsCustomModuleBuilder_; /** + * + * *
      * Required. The resource being created
      * 
* - * .google.cloud.securitycentermanagement.v1.SecurityHealthAnalyticsCustomModule security_health_analytics_custom_module = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.securitycentermanagement.v1.SecurityHealthAnalyticsCustomModule security_health_analytics_custom_module = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return Whether the securityHealthAnalyticsCustomModule field is set. */ public boolean hasSecurityHealthAnalyticsCustomModule() { return ((bitField0_ & 0x00000002) != 0); } /** + * + * *
      * Required. The resource being created
      * 
* - * .google.cloud.securitycentermanagement.v1.SecurityHealthAnalyticsCustomModule security_health_analytics_custom_module = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.securitycentermanagement.v1.SecurityHealthAnalyticsCustomModule security_health_analytics_custom_module = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return The securityHealthAnalyticsCustomModule. */ - public com.google.cloud.securitycentermanagement.v1.SecurityHealthAnalyticsCustomModule getSecurityHealthAnalyticsCustomModule() { + public com.google.cloud.securitycentermanagement.v1.SecurityHealthAnalyticsCustomModule + getSecurityHealthAnalyticsCustomModule() { if (securityHealthAnalyticsCustomModuleBuilder_ == null) { - return securityHealthAnalyticsCustomModule_ == null ? com.google.cloud.securitycentermanagement.v1.SecurityHealthAnalyticsCustomModule.getDefaultInstance() : securityHealthAnalyticsCustomModule_; + return securityHealthAnalyticsCustomModule_ == null + ? com.google.cloud.securitycentermanagement.v1.SecurityHealthAnalyticsCustomModule + .getDefaultInstance() + : securityHealthAnalyticsCustomModule_; } else { return securityHealthAnalyticsCustomModuleBuilder_.getMessage(); } } /** + * + * *
      * Required. The resource being created
      * 
* - * .google.cloud.securitycentermanagement.v1.SecurityHealthAnalyticsCustomModule security_health_analytics_custom_module = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.securitycentermanagement.v1.SecurityHealthAnalyticsCustomModule security_health_analytics_custom_module = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ - public Builder setSecurityHealthAnalyticsCustomModule(com.google.cloud.securitycentermanagement.v1.SecurityHealthAnalyticsCustomModule value) { + public Builder setSecurityHealthAnalyticsCustomModule( + com.google.cloud.securitycentermanagement.v1.SecurityHealthAnalyticsCustomModule value) { if (securityHealthAnalyticsCustomModuleBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -710,14 +885,19 @@ public Builder setSecurityHealthAnalyticsCustomModule(com.google.cloud.securityc return this; } /** + * + * *
      * Required. The resource being created
      * 
* - * .google.cloud.securitycentermanagement.v1.SecurityHealthAnalyticsCustomModule security_health_analytics_custom_module = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.securitycentermanagement.v1.SecurityHealthAnalyticsCustomModule security_health_analytics_custom_module = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder setSecurityHealthAnalyticsCustomModule( - com.google.cloud.securitycentermanagement.v1.SecurityHealthAnalyticsCustomModule.Builder builderForValue) { + com.google.cloud.securitycentermanagement.v1.SecurityHealthAnalyticsCustomModule.Builder + builderForValue) { if (securityHealthAnalyticsCustomModuleBuilder_ == null) { securityHealthAnalyticsCustomModule_ = builderForValue.build(); } else { @@ -728,17 +908,24 @@ public Builder setSecurityHealthAnalyticsCustomModule( return this; } /** + * + * *
      * Required. The resource being created
      * 
* - * .google.cloud.securitycentermanagement.v1.SecurityHealthAnalyticsCustomModule security_health_analytics_custom_module = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.securitycentermanagement.v1.SecurityHealthAnalyticsCustomModule security_health_analytics_custom_module = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ - public Builder mergeSecurityHealthAnalyticsCustomModule(com.google.cloud.securitycentermanagement.v1.SecurityHealthAnalyticsCustomModule value) { + public Builder mergeSecurityHealthAnalyticsCustomModule( + com.google.cloud.securitycentermanagement.v1.SecurityHealthAnalyticsCustomModule value) { if (securityHealthAnalyticsCustomModuleBuilder_ == null) { - if (((bitField0_ & 0x00000002) != 0) && - securityHealthAnalyticsCustomModule_ != null && - securityHealthAnalyticsCustomModule_ != com.google.cloud.securitycentermanagement.v1.SecurityHealthAnalyticsCustomModule.getDefaultInstance()) { + if (((bitField0_ & 0x00000002) != 0) + && securityHealthAnalyticsCustomModule_ != null + && securityHealthAnalyticsCustomModule_ + != com.google.cloud.securitycentermanagement.v1.SecurityHealthAnalyticsCustomModule + .getDefaultInstance()) { getSecurityHealthAnalyticsCustomModuleBuilder().mergeFrom(value); } else { securityHealthAnalyticsCustomModule_ = value; @@ -751,11 +938,15 @@ public Builder mergeSecurityHealthAnalyticsCustomModule(com.google.cloud.securit return this; } /** + * + * *
      * Required. The resource being created
      * 
* - * .google.cloud.securitycentermanagement.v1.SecurityHealthAnalyticsCustomModule security_health_analytics_custom_module = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.securitycentermanagement.v1.SecurityHealthAnalyticsCustomModule security_health_analytics_custom_module = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder clearSecurityHealthAnalyticsCustomModule() { bitField0_ = (bitField0_ & ~0x00000002); @@ -768,55 +959,80 @@ public Builder clearSecurityHealthAnalyticsCustomModule() { return this; } /** + * + * *
      * Required. The resource being created
      * 
* - * .google.cloud.securitycentermanagement.v1.SecurityHealthAnalyticsCustomModule security_health_analytics_custom_module = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.securitycentermanagement.v1.SecurityHealthAnalyticsCustomModule security_health_analytics_custom_module = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ - public com.google.cloud.securitycentermanagement.v1.SecurityHealthAnalyticsCustomModule.Builder getSecurityHealthAnalyticsCustomModuleBuilder() { + public com.google.cloud.securitycentermanagement.v1.SecurityHealthAnalyticsCustomModule.Builder + getSecurityHealthAnalyticsCustomModuleBuilder() { bitField0_ |= 0x00000002; onChanged(); return getSecurityHealthAnalyticsCustomModuleFieldBuilder().getBuilder(); } /** + * + * *
      * Required. The resource being created
      * 
* - * .google.cloud.securitycentermanagement.v1.SecurityHealthAnalyticsCustomModule security_health_analytics_custom_module = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.securitycentermanagement.v1.SecurityHealthAnalyticsCustomModule security_health_analytics_custom_module = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ - public com.google.cloud.securitycentermanagement.v1.SecurityHealthAnalyticsCustomModuleOrBuilder getSecurityHealthAnalyticsCustomModuleOrBuilder() { + public com.google.cloud.securitycentermanagement.v1.SecurityHealthAnalyticsCustomModuleOrBuilder + getSecurityHealthAnalyticsCustomModuleOrBuilder() { if (securityHealthAnalyticsCustomModuleBuilder_ != null) { return securityHealthAnalyticsCustomModuleBuilder_.getMessageOrBuilder(); } else { - return securityHealthAnalyticsCustomModule_ == null ? - com.google.cloud.securitycentermanagement.v1.SecurityHealthAnalyticsCustomModule.getDefaultInstance() : securityHealthAnalyticsCustomModule_; + return securityHealthAnalyticsCustomModule_ == null + ? com.google.cloud.securitycentermanagement.v1.SecurityHealthAnalyticsCustomModule + .getDefaultInstance() + : securityHealthAnalyticsCustomModule_; } } /** + * + * *
      * Required. The resource being created
      * 
* - * .google.cloud.securitycentermanagement.v1.SecurityHealthAnalyticsCustomModule security_health_analytics_custom_module = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.securitycentermanagement.v1.SecurityHealthAnalyticsCustomModule security_health_analytics_custom_module = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.securitycentermanagement.v1.SecurityHealthAnalyticsCustomModule, com.google.cloud.securitycentermanagement.v1.SecurityHealthAnalyticsCustomModule.Builder, com.google.cloud.securitycentermanagement.v1.SecurityHealthAnalyticsCustomModuleOrBuilder> + com.google.cloud.securitycentermanagement.v1.SecurityHealthAnalyticsCustomModule, + com.google.cloud.securitycentermanagement.v1.SecurityHealthAnalyticsCustomModule + .Builder, + com.google.cloud.securitycentermanagement.v1 + .SecurityHealthAnalyticsCustomModuleOrBuilder> getSecurityHealthAnalyticsCustomModuleFieldBuilder() { if (securityHealthAnalyticsCustomModuleBuilder_ == null) { - securityHealthAnalyticsCustomModuleBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.securitycentermanagement.v1.SecurityHealthAnalyticsCustomModule, com.google.cloud.securitycentermanagement.v1.SecurityHealthAnalyticsCustomModule.Builder, com.google.cloud.securitycentermanagement.v1.SecurityHealthAnalyticsCustomModuleOrBuilder>( - getSecurityHealthAnalyticsCustomModule(), - getParentForChildren(), - isClean()); + securityHealthAnalyticsCustomModuleBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.securitycentermanagement.v1.SecurityHealthAnalyticsCustomModule, + com.google.cloud.securitycentermanagement.v1.SecurityHealthAnalyticsCustomModule + .Builder, + com.google.cloud.securitycentermanagement.v1 + .SecurityHealthAnalyticsCustomModuleOrBuilder>( + getSecurityHealthAnalyticsCustomModule(), getParentForChildren(), isClean()); securityHealthAnalyticsCustomModule_ = null; } return securityHealthAnalyticsCustomModuleBuilder_; } - private boolean validateOnly_ ; + private boolean validateOnly_; /** + * + * *
      * Optional. When set to true, only validations (including IAM checks) will
      * done for the request (no module will be created). An OK response indicates
@@ -829,6 +1045,7 @@ public com.google.cloud.securitycentermanagement.v1.SecurityHealthAnalyticsCusto
      * 
* * bool validate_only = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The validateOnly. */ @java.lang.Override @@ -836,6 +1053,8 @@ public boolean getValidateOnly() { return validateOnly_; } /** + * + * *
      * Optional. When set to true, only validations (including IAM checks) will
      * done for the request (no module will be created). An OK response indicates
@@ -848,6 +1067,7 @@ public boolean getValidateOnly() {
      * 
* * bool validate_only = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @param value The validateOnly to set. * @return This builder for chaining. */ @@ -859,6 +1079,8 @@ public Builder setValidateOnly(boolean value) { return this; } /** + * + * *
      * Optional. When set to true, only validations (including IAM checks) will
      * done for the request (no module will be created). An OK response indicates
@@ -871,6 +1093,7 @@ public Builder setValidateOnly(boolean value) {
      * 
* * bool validate_only = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @return This builder for chaining. */ public Builder clearValidateOnly() { @@ -879,9 +1102,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); } @@ -891,55 +1114,66 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.securitycentermanagement.v1.CreateSecurityHealthAnalyticsCustomModuleRequest) } // @@protoc_insertion_point(class_scope:google.cloud.securitycentermanagement.v1.CreateSecurityHealthAnalyticsCustomModuleRequest) - private static final com.google.cloud.securitycentermanagement.v1.CreateSecurityHealthAnalyticsCustomModuleRequest DEFAULT_INSTANCE; + private static final com.google.cloud.securitycentermanagement.v1 + .CreateSecurityHealthAnalyticsCustomModuleRequest + DEFAULT_INSTANCE; + static { - DEFAULT_INSTANCE = new com.google.cloud.securitycentermanagement.v1.CreateSecurityHealthAnalyticsCustomModuleRequest(); + DEFAULT_INSTANCE = + new com.google.cloud.securitycentermanagement.v1 + .CreateSecurityHealthAnalyticsCustomModuleRequest(); } - public static com.google.cloud.securitycentermanagement.v1.CreateSecurityHealthAnalyticsCustomModuleRequest getDefaultInstance() { + public static com.google.cloud.securitycentermanagement.v1 + .CreateSecurityHealthAnalyticsCustomModuleRequest + getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public CreateSecurityHealthAnalyticsCustomModuleRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + PARSER = + new com.google.protobuf.AbstractParser< + CreateSecurityHealthAnalyticsCustomModuleRequest>() { + @java.lang.Override + public CreateSecurityHealthAnalyticsCustomModuleRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException() + .setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; - public static com.google.protobuf.Parser parser() { + public static com.google.protobuf.Parser + parser() { return PARSER; } @java.lang.Override - public com.google.protobuf.Parser getParserForType() { + public com.google.protobuf.Parser + getParserForType() { return PARSER; } @java.lang.Override - public com.google.cloud.securitycentermanagement.v1.CreateSecurityHealthAnalyticsCustomModuleRequest getDefaultInstanceForType() { + public com.google.cloud.securitycentermanagement.v1 + .CreateSecurityHealthAnalyticsCustomModuleRequest + getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/java-securitycentermanagement/v1/proto-google-cloud-securitycentermanagement-v1/src/main/java/com/google/cloud/securitycentermanagement/v1/CreateSecurityHealthAnalyticsCustomModuleRequestOrBuilder.java b/java-securitycentermanagement/proto-google-cloud-securitycentermanagement-v1/src/main/java/com/google/cloud/securitycentermanagement/v1/CreateSecurityHealthAnalyticsCustomModuleRequestOrBuilder.java similarity index 56% rename from owl-bot-staging/java-securitycentermanagement/v1/proto-google-cloud-securitycentermanagement-v1/src/main/java/com/google/cloud/securitycentermanagement/v1/CreateSecurityHealthAnalyticsCustomModuleRequestOrBuilder.java rename to java-securitycentermanagement/proto-google-cloud-securitycentermanagement-v1/src/main/java/com/google/cloud/securitycentermanagement/v1/CreateSecurityHealthAnalyticsCustomModuleRequestOrBuilder.java index a3430718ffb6..6e9f871a7b2e 100644 --- a/owl-bot-staging/java-securitycentermanagement/v1/proto-google-cloud-securitycentermanagement-v1/src/main/java/com/google/cloud/securitycentermanagement/v1/CreateSecurityHealthAnalyticsCustomModuleRequestOrBuilder.java +++ b/java-securitycentermanagement/proto-google-cloud-securitycentermanagement-v1/src/main/java/com/google/cloud/securitycentermanagement/v1/CreateSecurityHealthAnalyticsCustomModuleRequestOrBuilder.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/securitycentermanagement/v1/security_center_management.proto package com.google.cloud.securitycentermanagement.v1; -public interface CreateSecurityHealthAnalyticsCustomModuleRequestOrBuilder extends +public interface CreateSecurityHealthAnalyticsCustomModuleRequestOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.securitycentermanagement.v1.CreateSecurityHealthAnalyticsCustomModuleRequest) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * Required. Name of the parent for the module. Its format is
    * "organizations/{organization}/locations/{location}",
@@ -16,11 +34,16 @@ public interface CreateSecurityHealthAnalyticsCustomModuleRequestOrBuilder exten
    * "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. Name of the parent for the module. Its format is
    * "organizations/{organization}/locations/{location}",
@@ -29,40 +52,60 @@ public interface CreateSecurityHealthAnalyticsCustomModuleRequestOrBuilder exten
    * "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. The resource being created
    * 
* - * .google.cloud.securitycentermanagement.v1.SecurityHealthAnalyticsCustomModule security_health_analytics_custom_module = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.securitycentermanagement.v1.SecurityHealthAnalyticsCustomModule security_health_analytics_custom_module = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return Whether the securityHealthAnalyticsCustomModule field is set. */ boolean hasSecurityHealthAnalyticsCustomModule(); /** + * + * *
    * Required. The resource being created
    * 
* - * .google.cloud.securitycentermanagement.v1.SecurityHealthAnalyticsCustomModule security_health_analytics_custom_module = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.securitycentermanagement.v1.SecurityHealthAnalyticsCustomModule security_health_analytics_custom_module = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return The securityHealthAnalyticsCustomModule. */ - com.google.cloud.securitycentermanagement.v1.SecurityHealthAnalyticsCustomModule getSecurityHealthAnalyticsCustomModule(); + com.google.cloud.securitycentermanagement.v1.SecurityHealthAnalyticsCustomModule + getSecurityHealthAnalyticsCustomModule(); /** + * + * *
    * Required. The resource being created
    * 
* - * .google.cloud.securitycentermanagement.v1.SecurityHealthAnalyticsCustomModule security_health_analytics_custom_module = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.securitycentermanagement.v1.SecurityHealthAnalyticsCustomModule security_health_analytics_custom_module = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ - com.google.cloud.securitycentermanagement.v1.SecurityHealthAnalyticsCustomModuleOrBuilder getSecurityHealthAnalyticsCustomModuleOrBuilder(); + com.google.cloud.securitycentermanagement.v1.SecurityHealthAnalyticsCustomModuleOrBuilder + getSecurityHealthAnalyticsCustomModuleOrBuilder(); /** + * + * *
    * Optional. When set to true, only validations (including IAM checks) will
    * done for the request (no module will be created). An OK response indicates
@@ -75,6 +118,7 @@ public interface CreateSecurityHealthAnalyticsCustomModuleRequestOrBuilder exten
    * 
* * bool validate_only = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The validateOnly. */ boolean getValidateOnly(); diff --git a/owl-bot-staging/java-securitycentermanagement/v1/proto-google-cloud-securitycentermanagement-v1/src/main/java/com/google/cloud/securitycentermanagement/v1/CustomConfig.java b/java-securitycentermanagement/proto-google-cloud-securitycentermanagement-v1/src/main/java/com/google/cloud/securitycentermanagement/v1/CustomConfig.java similarity index 62% rename from owl-bot-staging/java-securitycentermanagement/v1/proto-google-cloud-securitycentermanagement-v1/src/main/java/com/google/cloud/securitycentermanagement/v1/CustomConfig.java rename to java-securitycentermanagement/proto-google-cloud-securitycentermanagement-v1/src/main/java/com/google/cloud/securitycentermanagement/v1/CustomConfig.java index 0e38ce2063fe..4c855702a134 100644 --- a/owl-bot-staging/java-securitycentermanagement/v1/proto-google-cloud-securitycentermanagement-v1/src/main/java/com/google/cloud/securitycentermanagement/v1/CustomConfig.java +++ b/java-securitycentermanagement/proto-google-cloud-securitycentermanagement-v1/src/main/java/com/google/cloud/securitycentermanagement/v1/CustomConfig.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/securitycentermanagement/v1/security_center_management.proto package com.google.cloud.securitycentermanagement.v1; /** + * + * *
  * Defines the properties in a custom module configuration for Security
  * Health Analytics. Use the custom module configuration to create custom
@@ -12,15 +29,16 @@
  *
  * Protobuf type {@code google.cloud.securitycentermanagement.v1.CustomConfig}
  */
-public final class CustomConfig extends
-    com.google.protobuf.GeneratedMessageV3 implements
+public final class CustomConfig extends com.google.protobuf.GeneratedMessageV3
+    implements
     // @@protoc_insertion_point(message_implements:google.cloud.securitycentermanagement.v1.CustomConfig)
     CustomConfigOrBuilder {
-private static final long serialVersionUID = 0L;
+  private static final long serialVersionUID = 0L;
   // Use CustomConfig.newBuilder() to construct.
   private CustomConfig(com.google.protobuf.GeneratedMessageV3.Builder builder) {
     super(builder);
   }
+
   private CustomConfig() {
     severity_ = 0;
     description_ = "";
@@ -29,34 +47,38 @@ private CustomConfig() {
 
   @java.lang.Override
   @SuppressWarnings({"unused"})
-  protected java.lang.Object newInstance(
-      UnusedPrivateParameter unused) {
+  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
     return new CustomConfig();
   }
 
-  public static final com.google.protobuf.Descriptors.Descriptor
-      getDescriptor() {
-    return com.google.cloud.securitycentermanagement.v1.SecurityCenterManagementProto.internal_static_google_cloud_securitycentermanagement_v1_CustomConfig_descriptor;
+  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+    return com.google.cloud.securitycentermanagement.v1.SecurityCenterManagementProto
+        .internal_static_google_cloud_securitycentermanagement_v1_CustomConfig_descriptor;
   }
 
   @java.lang.Override
   protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
       internalGetFieldAccessorTable() {
-    return com.google.cloud.securitycentermanagement.v1.SecurityCenterManagementProto.internal_static_google_cloud_securitycentermanagement_v1_CustomConfig_fieldAccessorTable
+    return com.google.cloud.securitycentermanagement.v1.SecurityCenterManagementProto
+        .internal_static_google_cloud_securitycentermanagement_v1_CustomConfig_fieldAccessorTable
         .ensureFieldAccessorsInitialized(
-            com.google.cloud.securitycentermanagement.v1.CustomConfig.class, com.google.cloud.securitycentermanagement.v1.CustomConfig.Builder.class);
+            com.google.cloud.securitycentermanagement.v1.CustomConfig.class,
+            com.google.cloud.securitycentermanagement.v1.CustomConfig.Builder.class);
   }
 
   /**
+   *
+   *
    * 
    * Defines the valid value options for the severity of a finding.
    * 
* * Protobuf enum {@code google.cloud.securitycentermanagement.v1.CustomConfig.Severity} */ - public enum Severity - implements com.google.protobuf.ProtocolMessageEnum { + public enum Severity implements com.google.protobuf.ProtocolMessageEnum { /** + * + * *
      * Unspecified severity.
      * 
@@ -65,6 +87,8 @@ public enum Severity */ SEVERITY_UNSPECIFIED(0), /** + * + * *
      * Critical severity.
      * 
@@ -73,6 +97,8 @@ public enum Severity */ CRITICAL(1), /** + * + * *
      * High severity.
      * 
@@ -81,6 +107,8 @@ public enum Severity */ HIGH(2), /** + * + * *
      * Medium severity.
      * 
@@ -89,6 +117,8 @@ public enum Severity */ MEDIUM(3), /** + * + * *
      * Low severity.
      * 
@@ -100,6 +130,8 @@ public enum Severity ; /** + * + * *
      * Unspecified severity.
      * 
@@ -108,6 +140,8 @@ public enum Severity */ public static final int SEVERITY_UNSPECIFIED_VALUE = 0; /** + * + * *
      * Critical severity.
      * 
@@ -116,6 +150,8 @@ public enum Severity */ public static final int CRITICAL_VALUE = 1; /** + * + * *
      * High severity.
      * 
@@ -124,6 +160,8 @@ public enum Severity */ public static final int HIGH_VALUE = 2; /** + * + * *
      * Medium severity.
      * 
@@ -132,6 +170,8 @@ public enum Severity */ public static final int MEDIUM_VALUE = 3; /** + * + * *
      * Low severity.
      * 
@@ -140,7 +180,6 @@ public enum Severity */ public static final int LOW_VALUE = 4; - public final int getNumber() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalArgumentException( @@ -165,51 +204,55 @@ 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; - } - } - - public static com.google.protobuf.Internal.EnumLiteMap - internalGetValueMap() { + 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() { 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() { - return com.google.cloud.securitycentermanagement.v1.CustomConfig.getDescriptor().getEnumTypes().get(0); + + public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { + return com.google.cloud.securitycentermanagement.v1.CustomConfig.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; @@ -226,55 +269,83 @@ private Severity(int value) { // @@protoc_insertion_point(enum_scope:google.cloud.securitycentermanagement.v1.CustomConfig.Severity) } - public interface CustomOutputSpecOrBuilder extends + public interface CustomOutputSpecOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.securitycentermanagement.v1.CustomConfig.CustomOutputSpec) com.google.protobuf.MessageOrBuilder { /** + * + * *
      * Optional. A list of custom output properties to add to the finding.
      * 
* - * repeated .google.cloud.securitycentermanagement.v1.CustomConfig.CustomOutputSpec.Property properties = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated .google.cloud.securitycentermanagement.v1.CustomConfig.CustomOutputSpec.Property properties = 1 [(.google.api.field_behavior) = OPTIONAL]; + * */ - java.util.List + java.util.List< + com.google.cloud.securitycentermanagement.v1.CustomConfig.CustomOutputSpec.Property> getPropertiesList(); /** + * + * *
      * Optional. A list of custom output properties to add to the finding.
      * 
* - * repeated .google.cloud.securitycentermanagement.v1.CustomConfig.CustomOutputSpec.Property properties = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated .google.cloud.securitycentermanagement.v1.CustomConfig.CustomOutputSpec.Property properties = 1 [(.google.api.field_behavior) = OPTIONAL]; + * */ - com.google.cloud.securitycentermanagement.v1.CustomConfig.CustomOutputSpec.Property getProperties(int index); + com.google.cloud.securitycentermanagement.v1.CustomConfig.CustomOutputSpec.Property + getProperties(int index); /** + * + * *
      * Optional. A list of custom output properties to add to the finding.
      * 
* - * repeated .google.cloud.securitycentermanagement.v1.CustomConfig.CustomOutputSpec.Property properties = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated .google.cloud.securitycentermanagement.v1.CustomConfig.CustomOutputSpec.Property properties = 1 [(.google.api.field_behavior) = OPTIONAL]; + * */ int getPropertiesCount(); /** + * + * *
      * Optional. A list of custom output properties to add to the finding.
      * 
* - * repeated .google.cloud.securitycentermanagement.v1.CustomConfig.CustomOutputSpec.Property properties = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated .google.cloud.securitycentermanagement.v1.CustomConfig.CustomOutputSpec.Property properties = 1 [(.google.api.field_behavior) = OPTIONAL]; + * */ - java.util.List + java.util.List< + ? extends + com.google.cloud.securitycentermanagement.v1.CustomConfig.CustomOutputSpec + .PropertyOrBuilder> getPropertiesOrBuilderList(); /** + * + * *
      * Optional. A list of custom output properties to add to the finding.
      * 
* - * repeated .google.cloud.securitycentermanagement.v1.CustomConfig.CustomOutputSpec.Property properties = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated .google.cloud.securitycentermanagement.v1.CustomConfig.CustomOutputSpec.Property properties = 1 [(.google.api.field_behavior) = OPTIONAL]; + * */ - com.google.cloud.securitycentermanagement.v1.CustomConfig.CustomOutputSpec.PropertyOrBuilder getPropertiesOrBuilder( - int index); + com.google.cloud.securitycentermanagement.v1.CustomConfig.CustomOutputSpec.PropertyOrBuilder + getPropertiesOrBuilder(int index); } /** + * + * *
    * A set of optional name-value pairs that define custom source properties to
    * return with each finding that is generated by the custom module. The custom
@@ -284,145 +355,176 @@ com.google.cloud.securitycentermanagement.v1.CustomConfig.CustomOutputSpec.Prope
    *
    * Protobuf type {@code google.cloud.securitycentermanagement.v1.CustomConfig.CustomOutputSpec}
    */
-  public static final class CustomOutputSpec extends
-      com.google.protobuf.GeneratedMessageV3 implements
+  public static final class CustomOutputSpec extends com.google.protobuf.GeneratedMessageV3
+      implements
       // @@protoc_insertion_point(message_implements:google.cloud.securitycentermanagement.v1.CustomConfig.CustomOutputSpec)
       CustomOutputSpecOrBuilder {
-  private static final long serialVersionUID = 0L;
+    private static final long serialVersionUID = 0L;
     // Use CustomOutputSpec.newBuilder() to construct.
     private CustomOutputSpec(com.google.protobuf.GeneratedMessageV3.Builder builder) {
       super(builder);
     }
+
     private CustomOutputSpec() {
       properties_ = 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 CustomOutputSpec();
     }
 
-    public static final com.google.protobuf.Descriptors.Descriptor
-        getDescriptor() {
-      return com.google.cloud.securitycentermanagement.v1.SecurityCenterManagementProto.internal_static_google_cloud_securitycentermanagement_v1_CustomConfig_CustomOutputSpec_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+      return com.google.cloud.securitycentermanagement.v1.SecurityCenterManagementProto
+          .internal_static_google_cloud_securitycentermanagement_v1_CustomConfig_CustomOutputSpec_descriptor;
     }
 
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.cloud.securitycentermanagement.v1.SecurityCenterManagementProto.internal_static_google_cloud_securitycentermanagement_v1_CustomConfig_CustomOutputSpec_fieldAccessorTable
+      return com.google.cloud.securitycentermanagement.v1.SecurityCenterManagementProto
+          .internal_static_google_cloud_securitycentermanagement_v1_CustomConfig_CustomOutputSpec_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.cloud.securitycentermanagement.v1.CustomConfig.CustomOutputSpec.class, com.google.cloud.securitycentermanagement.v1.CustomConfig.CustomOutputSpec.Builder.class);
+              com.google.cloud.securitycentermanagement.v1.CustomConfig.CustomOutputSpec.class,
+              com.google.cloud.securitycentermanagement.v1.CustomConfig.CustomOutputSpec.Builder
+                  .class);
     }
 
-    public interface PropertyOrBuilder extends
+    public interface PropertyOrBuilder
+        extends
         // @@protoc_insertion_point(interface_extends:google.cloud.securitycentermanagement.v1.CustomConfig.CustomOutputSpec.Property)
         com.google.protobuf.MessageOrBuilder {
 
       /**
+       *
+       *
        * 
        * Optional. Name of the property for the custom output.
        * 
* * string name = 1 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The name. */ java.lang.String getName(); /** + * + * *
        * Optional. Name of the property for the custom output.
        * 
* * string name = 1 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The bytes for name. */ - com.google.protobuf.ByteString - getNameBytes(); + com.google.protobuf.ByteString getNameBytes(); /** + * + * *
        * Optional. The CEL expression for the custom output. A resource property
        * can be specified to return the value of the property or a text string
        * enclosed in quotation marks.
        * 
* - * .google.type.Expr value_expression = 2 [(.google.api.field_behavior) = OPTIONAL]; + * .google.type.Expr value_expression = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return Whether the valueExpression field is set. */ boolean hasValueExpression(); /** + * + * *
        * Optional. The CEL expression for the custom output. A resource property
        * can be specified to return the value of the property or a text string
        * enclosed in quotation marks.
        * 
* - * .google.type.Expr value_expression = 2 [(.google.api.field_behavior) = OPTIONAL]; + * .google.type.Expr value_expression = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return The valueExpression. */ com.google.type.Expr getValueExpression(); /** + * + * *
        * Optional. The CEL expression for the custom output. A resource property
        * can be specified to return the value of the property or a text string
        * enclosed in quotation marks.
        * 
* - * .google.type.Expr value_expression = 2 [(.google.api.field_behavior) = OPTIONAL]; + * .google.type.Expr value_expression = 2 [(.google.api.field_behavior) = OPTIONAL]; + * */ com.google.type.ExprOrBuilder getValueExpressionOrBuilder(); } /** + * + * *
      * An individual name-value pair that defines a custom source property.
      * 
* - * Protobuf type {@code google.cloud.securitycentermanagement.v1.CustomConfig.CustomOutputSpec.Property} + * Protobuf type {@code + * google.cloud.securitycentermanagement.v1.CustomConfig.CustomOutputSpec.Property} */ - public static final class Property extends - com.google.protobuf.GeneratedMessageV3 implements + public static final class Property extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.securitycentermanagement.v1.CustomConfig.CustomOutputSpec.Property) PropertyOrBuilder { - private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use Property.newBuilder() to construct. private Property(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private Property() { name_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new Property(); } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.securitycentermanagement.v1.SecurityCenterManagementProto.internal_static_google_cloud_securitycentermanagement_v1_CustomConfig_CustomOutputSpec_Property_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.securitycentermanagement.v1.SecurityCenterManagementProto + .internal_static_google_cloud_securitycentermanagement_v1_CustomConfig_CustomOutputSpec_Property_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.securitycentermanagement.v1.SecurityCenterManagementProto.internal_static_google_cloud_securitycentermanagement_v1_CustomConfig_CustomOutputSpec_Property_fieldAccessorTable + return com.google.cloud.securitycentermanagement.v1.SecurityCenterManagementProto + .internal_static_google_cloud_securitycentermanagement_v1_CustomConfig_CustomOutputSpec_Property_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.securitycentermanagement.v1.CustomConfig.CustomOutputSpec.Property.class, com.google.cloud.securitycentermanagement.v1.CustomConfig.CustomOutputSpec.Property.Builder.class); + com.google.cloud.securitycentermanagement.v1.CustomConfig.CustomOutputSpec.Property + .class, + com.google.cloud.securitycentermanagement.v1.CustomConfig.CustomOutputSpec.Property + .Builder.class); } public static final int NAME_FIELD_NUMBER = 1; + @SuppressWarnings("serial") private volatile java.lang.Object name_ = ""; /** + * + * *
        * Optional. Name of the property for the custom output.
        * 
* * string name = 1 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The name. */ @java.lang.Override @@ -431,29 +533,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; } } /** + * + * *
        * Optional. Name of the property for the custom output.
        * 
* * string name = 1 [(.google.api.field_behavior) = OPTIONAL]; + * * @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 { @@ -464,13 +566,17 @@ public java.lang.String getName() { public static final int VALUE_EXPRESSION_FIELD_NUMBER = 2; private com.google.type.Expr valueExpression_; /** + * + * *
        * Optional. The CEL expression for the custom output. A resource property
        * can be specified to return the value of the property or a text string
        * enclosed in quotation marks.
        * 
* - * .google.type.Expr value_expression = 2 [(.google.api.field_behavior) = OPTIONAL]; + * .google.type.Expr value_expression = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return Whether the valueExpression field is set. */ @java.lang.Override @@ -478,34 +584,46 @@ public boolean hasValueExpression() { return valueExpression_ != null; } /** + * + * *
        * Optional. The CEL expression for the custom output. A resource property
        * can be specified to return the value of the property or a text string
        * enclosed in quotation marks.
        * 
* - * .google.type.Expr value_expression = 2 [(.google.api.field_behavior) = OPTIONAL]; + * .google.type.Expr value_expression = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return The valueExpression. */ @java.lang.Override public com.google.type.Expr getValueExpression() { - return valueExpression_ == null ? com.google.type.Expr.getDefaultInstance() : valueExpression_; + return valueExpression_ == null + ? com.google.type.Expr.getDefaultInstance() + : valueExpression_; } /** + * + * *
        * Optional. The CEL expression for the custom output. A resource property
        * can be specified to return the value of the property or a text string
        * enclosed in quotation marks.
        * 
* - * .google.type.Expr value_expression = 2 [(.google.api.field_behavior) = OPTIONAL]; + * .google.type.Expr value_expression = 2 [(.google.api.field_behavior) = OPTIONAL]; + * */ @java.lang.Override public com.google.type.ExprOrBuilder getValueExpressionOrBuilder() { - return valueExpression_ == null ? com.google.type.Expr.getDefaultInstance() : valueExpression_; + return valueExpression_ == null + ? com.google.type.Expr.getDefaultInstance() + : valueExpression_; } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -517,8 +635,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.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_); } @@ -538,8 +655,7 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); } if (valueExpression_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(2, getValueExpression()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getValueExpression()); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -549,19 +665,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.securitycentermanagement.v1.CustomConfig.CustomOutputSpec.Property)) { + if (!(obj + instanceof + com.google.cloud.securitycentermanagement.v1.CustomConfig.CustomOutputSpec.Property)) { return super.equals(obj); } - com.google.cloud.securitycentermanagement.v1.CustomConfig.CustomOutputSpec.Property other = (com.google.cloud.securitycentermanagement.v1.CustomConfig.CustomOutputSpec.Property) obj; + com.google.cloud.securitycentermanagement.v1.CustomConfig.CustomOutputSpec.Property other = + (com.google.cloud.securitycentermanagement.v1.CustomConfig.CustomOutputSpec.Property) + obj; - if (!getName() - .equals(other.getName())) return false; + if (!getName().equals(other.getName())) return false; if (hasValueExpression() != other.hasValueExpression()) return false; if (hasValueExpression()) { - if (!getValueExpression() - .equals(other.getValueExpression())) return false; + if (!getValueExpression().equals(other.getValueExpression())) return false; } if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; @@ -585,90 +703,116 @@ public int hashCode() { return hash; } - public static com.google.cloud.securitycentermanagement.v1.CustomConfig.CustomOutputSpec.Property parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.securitycentermanagement.v1.CustomConfig.CustomOutputSpec + .Property + parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.securitycentermanagement.v1.CustomConfig.CustomOutputSpec.Property parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.cloud.securitycentermanagement.v1.CustomConfig.CustomOutputSpec + .Property + 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.securitycentermanagement.v1.CustomConfig.CustomOutputSpec.Property parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.cloud.securitycentermanagement.v1.CustomConfig.CustomOutputSpec + .Property + parseFrom(com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.securitycentermanagement.v1.CustomConfig.CustomOutputSpec.Property parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.cloud.securitycentermanagement.v1.CustomConfig.CustomOutputSpec + .Property + parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.securitycentermanagement.v1.CustomConfig.CustomOutputSpec.Property parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.cloud.securitycentermanagement.v1.CustomConfig.CustomOutputSpec + .Property + parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.securitycentermanagement.v1.CustomConfig.CustomOutputSpec.Property parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.cloud.securitycentermanagement.v1.CustomConfig.CustomOutputSpec + .Property + parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.securitycentermanagement.v1.CustomConfig.CustomOutputSpec.Property parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.securitycentermanagement.v1.CustomConfig.CustomOutputSpec + .Property + parseFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } - public static com.google.cloud.securitycentermanagement.v1.CustomConfig.CustomOutputSpec.Property 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.securitycentermanagement.v1.CustomConfig.CustomOutputSpec + .Property + 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.securitycentermanagement.v1.CustomConfig.CustomOutputSpec.Property parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.securitycentermanagement.v1.CustomConfig.CustomOutputSpec + .Property + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.securitycentermanagement.v1.CustomConfig.CustomOutputSpec.Property parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + public static com.google.cloud.securitycentermanagement.v1.CustomConfig.CustomOutputSpec + .Property + parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.securitycentermanagement.v1.CustomConfig.CustomOutputSpec.Property parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.securitycentermanagement.v1.CustomConfig.CustomOutputSpec + .Property + parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } - public static com.google.cloud.securitycentermanagement.v1.CustomConfig.CustomOutputSpec.Property 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.securitycentermanagement.v1.CustomConfig.CustomOutputSpec + .Property + 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.securitycentermanagement.v1.CustomConfig.CustomOutputSpec.Property prototype) { + + public static Builder newBuilder( + com.google.cloud.securitycentermanagement.v1.CustomConfig.CustomOutputSpec.Property + prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override @@ -678,39 +822,46 @@ protected Builder newBuilderForType( return builder; } /** + * + * *
        * An individual name-value pair that defines a custom source property.
        * 
* - * Protobuf type {@code google.cloud.securitycentermanagement.v1.CustomConfig.CustomOutputSpec.Property} + * Protobuf type {@code + * google.cloud.securitycentermanagement.v1.CustomConfig.CustomOutputSpec.Property} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder + extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.securitycentermanagement.v1.CustomConfig.CustomOutputSpec.Property) - com.google.cloud.securitycentermanagement.v1.CustomConfig.CustomOutputSpec.PropertyOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.securitycentermanagement.v1.SecurityCenterManagementProto.internal_static_google_cloud_securitycentermanagement_v1_CustomConfig_CustomOutputSpec_Property_descriptor; + com.google.cloud.securitycentermanagement.v1.CustomConfig.CustomOutputSpec + .PropertyOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.securitycentermanagement.v1.SecurityCenterManagementProto + .internal_static_google_cloud_securitycentermanagement_v1_CustomConfig_CustomOutputSpec_Property_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.securitycentermanagement.v1.SecurityCenterManagementProto.internal_static_google_cloud_securitycentermanagement_v1_CustomConfig_CustomOutputSpec_Property_fieldAccessorTable + return com.google.cloud.securitycentermanagement.v1.SecurityCenterManagementProto + .internal_static_google_cloud_securitycentermanagement_v1_CustomConfig_CustomOutputSpec_Property_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.securitycentermanagement.v1.CustomConfig.CustomOutputSpec.Property.class, com.google.cloud.securitycentermanagement.v1.CustomConfig.CustomOutputSpec.Property.Builder.class); + com.google.cloud.securitycentermanagement.v1.CustomConfig.CustomOutputSpec + .Property.class, + com.google.cloud.securitycentermanagement.v1.CustomConfig.CustomOutputSpec + .Property.Builder.class); } - // Construct using com.google.cloud.securitycentermanagement.v1.CustomConfig.CustomOutputSpec.Property.newBuilder() - private Builder() { - - } + // Construct using + // com.google.cloud.securitycentermanagement.v1.CustomConfig.CustomOutputSpec.Property.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(); @@ -725,19 +876,23 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.securitycentermanagement.v1.SecurityCenterManagementProto.internal_static_google_cloud_securitycentermanagement_v1_CustomConfig_CustomOutputSpec_Property_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.securitycentermanagement.v1.SecurityCenterManagementProto + .internal_static_google_cloud_securitycentermanagement_v1_CustomConfig_CustomOutputSpec_Property_descriptor; } @java.lang.Override - public com.google.cloud.securitycentermanagement.v1.CustomConfig.CustomOutputSpec.Property getDefaultInstanceForType() { - return com.google.cloud.securitycentermanagement.v1.CustomConfig.CustomOutputSpec.Property.getDefaultInstance(); + public com.google.cloud.securitycentermanagement.v1.CustomConfig.CustomOutputSpec.Property + getDefaultInstanceForType() { + return com.google.cloud.securitycentermanagement.v1.CustomConfig.CustomOutputSpec.Property + .getDefaultInstance(); } @java.lang.Override - public com.google.cloud.securitycentermanagement.v1.CustomConfig.CustomOutputSpec.Property build() { - com.google.cloud.securitycentermanagement.v1.CustomConfig.CustomOutputSpec.Property result = buildPartial(); + public com.google.cloud.securitycentermanagement.v1.CustomConfig.CustomOutputSpec.Property + build() { + com.google.cloud.securitycentermanagement.v1.CustomConfig.CustomOutputSpec.Property + result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } @@ -745,22 +900,31 @@ public com.google.cloud.securitycentermanagement.v1.CustomConfig.CustomOutputSpe } @java.lang.Override - public com.google.cloud.securitycentermanagement.v1.CustomConfig.CustomOutputSpec.Property buildPartial() { - com.google.cloud.securitycentermanagement.v1.CustomConfig.CustomOutputSpec.Property result = new com.google.cloud.securitycentermanagement.v1.CustomConfig.CustomOutputSpec.Property(this); - if (bitField0_ != 0) { buildPartial0(result); } + public com.google.cloud.securitycentermanagement.v1.CustomConfig.CustomOutputSpec.Property + buildPartial() { + com.google.cloud.securitycentermanagement.v1.CustomConfig.CustomOutputSpec.Property + result = + new com.google.cloud.securitycentermanagement.v1.CustomConfig.CustomOutputSpec + .Property(this); + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } - private void buildPartial0(com.google.cloud.securitycentermanagement.v1.CustomConfig.CustomOutputSpec.Property result) { + private void buildPartial0( + com.google.cloud.securitycentermanagement.v1.CustomConfig.CustomOutputSpec.Property + result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000001) != 0)) { result.name_ = name_; } if (((from_bitField0_ & 0x00000002) != 0)) { - result.valueExpression_ = valueExpressionBuilder_ == null - ? valueExpression_ - : valueExpressionBuilder_.build(); + result.valueExpression_ = + valueExpressionBuilder_ == null + ? valueExpression_ + : valueExpressionBuilder_.build(); } } @@ -768,46 +932,58 @@ private void buildPartial0(com.google.cloud.securitycentermanagement.v1.CustomCo public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.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.securitycentermanagement.v1.CustomConfig.CustomOutputSpec.Property) { - return mergeFrom((com.google.cloud.securitycentermanagement.v1.CustomConfig.CustomOutputSpec.Property)other); + if (other + instanceof + com.google.cloud.securitycentermanagement.v1.CustomConfig.CustomOutputSpec.Property) { + return mergeFrom( + (com.google.cloud.securitycentermanagement.v1.CustomConfig.CustomOutputSpec + .Property) + other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom(com.google.cloud.securitycentermanagement.v1.CustomConfig.CustomOutputSpec.Property other) { - if (other == com.google.cloud.securitycentermanagement.v1.CustomConfig.CustomOutputSpec.Property.getDefaultInstance()) return this; + public Builder mergeFrom( + com.google.cloud.securitycentermanagement.v1.CustomConfig.CustomOutputSpec.Property + other) { + if (other + == com.google.cloud.securitycentermanagement.v1.CustomConfig.CustomOutputSpec.Property + .getDefaultInstance()) return this; if (!other.getName().isEmpty()) { name_ = other.name_; bitField0_ |= 0x00000001; @@ -842,24 +1018,26 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: { - name_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 18: { - input.readMessage( - getValueExpressionFieldBuilder().getBuilder(), - extensionRegistry); - 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: + { + input.readMessage( + getValueExpressionFieldBuilder().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) { @@ -869,22 +1047,25 @@ public Builder mergeFrom( } // finally return this; } + private int bitField0_; private java.lang.Object name_ = ""; /** + * + * *
          * Optional. Name of the property for the custom output.
          * 
* * string name = 1 [(.google.api.field_behavior) = OPTIONAL]; + * * @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; @@ -893,20 +1074,21 @@ public java.lang.String getName() { } } /** + * + * *
          * Optional. Name of the property for the custom output.
          * 
* * string name = 1 [(.google.api.field_behavior) = OPTIONAL]; + * * @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 { @@ -914,28 +1096,35 @@ public java.lang.String getName() { } } /** + * + * *
          * Optional. Name of the property for the custom output.
          * 
* * string name = 1 [(.google.api.field_behavior) = OPTIONAL]; + * * @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; } /** + * + * *
          * Optional. Name of the property for the custom output.
          * 
* * string name = 1 [(.google.api.field_behavior) = OPTIONAL]; + * * @return This builder for chaining. */ public Builder clearName() { @@ -945,17 +1134,21 @@ public Builder clearName() { return this; } /** + * + * *
          * Optional. Name of the property for the custom output.
          * 
* * string name = 1 [(.google.api.field_behavior) = OPTIONAL]; + * * @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; @@ -965,45 +1158,59 @@ public Builder setNameBytes( private com.google.type.Expr valueExpression_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.type.Expr, com.google.type.Expr.Builder, com.google.type.ExprOrBuilder> valueExpressionBuilder_; + com.google.type.Expr, com.google.type.Expr.Builder, com.google.type.ExprOrBuilder> + valueExpressionBuilder_; /** + * + * *
          * Optional. The CEL expression for the custom output. A resource property
          * can be specified to return the value of the property or a text string
          * enclosed in quotation marks.
          * 
* - * .google.type.Expr value_expression = 2 [(.google.api.field_behavior) = OPTIONAL]; + * .google.type.Expr value_expression = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return Whether the valueExpression field is set. */ public boolean hasValueExpression() { return ((bitField0_ & 0x00000002) != 0); } /** + * + * *
          * Optional. The CEL expression for the custom output. A resource property
          * can be specified to return the value of the property or a text string
          * enclosed in quotation marks.
          * 
* - * .google.type.Expr value_expression = 2 [(.google.api.field_behavior) = OPTIONAL]; + * .google.type.Expr value_expression = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return The valueExpression. */ public com.google.type.Expr getValueExpression() { if (valueExpressionBuilder_ == null) { - return valueExpression_ == null ? com.google.type.Expr.getDefaultInstance() : valueExpression_; + return valueExpression_ == null + ? com.google.type.Expr.getDefaultInstance() + : valueExpression_; } else { return valueExpressionBuilder_.getMessage(); } } /** + * + * *
          * Optional. The CEL expression for the custom output. A resource property
          * can be specified to return the value of the property or a text string
          * enclosed in quotation marks.
          * 
* - * .google.type.Expr value_expression = 2 [(.google.api.field_behavior) = OPTIONAL]; + * .google.type.Expr value_expression = 2 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder setValueExpression(com.google.type.Expr value) { if (valueExpressionBuilder_ == null) { @@ -1019,16 +1226,18 @@ public Builder setValueExpression(com.google.type.Expr value) { return this; } /** + * + * *
          * Optional. The CEL expression for the custom output. A resource property
          * can be specified to return the value of the property or a text string
          * enclosed in quotation marks.
          * 
* - * .google.type.Expr value_expression = 2 [(.google.api.field_behavior) = OPTIONAL]; + * .google.type.Expr value_expression = 2 [(.google.api.field_behavior) = OPTIONAL]; + * */ - public Builder setValueExpression( - com.google.type.Expr.Builder builderForValue) { + public Builder setValueExpression(com.google.type.Expr.Builder builderForValue) { if (valueExpressionBuilder_ == null) { valueExpression_ = builderForValue.build(); } else { @@ -1039,19 +1248,22 @@ public Builder setValueExpression( return this; } /** + * + * *
          * Optional. The CEL expression for the custom output. A resource property
          * can be specified to return the value of the property or a text string
          * enclosed in quotation marks.
          * 
* - * .google.type.Expr value_expression = 2 [(.google.api.field_behavior) = OPTIONAL]; + * .google.type.Expr value_expression = 2 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder mergeValueExpression(com.google.type.Expr value) { if (valueExpressionBuilder_ == null) { - if (((bitField0_ & 0x00000002) != 0) && - valueExpression_ != null && - valueExpression_ != com.google.type.Expr.getDefaultInstance()) { + if (((bitField0_ & 0x00000002) != 0) + && valueExpression_ != null + && valueExpression_ != com.google.type.Expr.getDefaultInstance()) { getValueExpressionBuilder().mergeFrom(value); } else { valueExpression_ = value; @@ -1064,13 +1276,16 @@ public Builder mergeValueExpression(com.google.type.Expr value) { return this; } /** + * + * *
          * Optional. The CEL expression for the custom output. A resource property
          * can be specified to return the value of the property or a text string
          * enclosed in quotation marks.
          * 
* - * .google.type.Expr value_expression = 2 [(.google.api.field_behavior) = OPTIONAL]; + * .google.type.Expr value_expression = 2 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder clearValueExpression() { bitField0_ = (bitField0_ & ~0x00000002); @@ -1083,13 +1298,16 @@ public Builder clearValueExpression() { return this; } /** + * + * *
          * Optional. The CEL expression for the custom output. A resource property
          * can be specified to return the value of the property or a text string
          * enclosed in quotation marks.
          * 
* - * .google.type.Expr value_expression = 2 [(.google.api.field_behavior) = OPTIONAL]; + * .google.type.Expr value_expression = 2 [(.google.api.field_behavior) = OPTIONAL]; + * */ public com.google.type.Expr.Builder getValueExpressionBuilder() { bitField0_ |= 0x00000002; @@ -1097,44 +1315,53 @@ public com.google.type.Expr.Builder getValueExpressionBuilder() { return getValueExpressionFieldBuilder().getBuilder(); } /** + * + * *
          * Optional. The CEL expression for the custom output. A resource property
          * can be specified to return the value of the property or a text string
          * enclosed in quotation marks.
          * 
* - * .google.type.Expr value_expression = 2 [(.google.api.field_behavior) = OPTIONAL]; + * .google.type.Expr value_expression = 2 [(.google.api.field_behavior) = OPTIONAL]; + * */ public com.google.type.ExprOrBuilder getValueExpressionOrBuilder() { if (valueExpressionBuilder_ != null) { return valueExpressionBuilder_.getMessageOrBuilder(); } else { - return valueExpression_ == null ? - com.google.type.Expr.getDefaultInstance() : valueExpression_; + return valueExpression_ == null + ? com.google.type.Expr.getDefaultInstance() + : valueExpression_; } } /** + * + * *
          * Optional. The CEL expression for the custom output. A resource property
          * can be specified to return the value of the property or a text string
          * enclosed in quotation marks.
          * 
* - * .google.type.Expr value_expression = 2 [(.google.api.field_behavior) = OPTIONAL]; + * .google.type.Expr value_expression = 2 [(.google.api.field_behavior) = OPTIONAL]; + * */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.type.Expr, com.google.type.Expr.Builder, com.google.type.ExprOrBuilder> + com.google.type.Expr, com.google.type.Expr.Builder, com.google.type.ExprOrBuilder> getValueExpressionFieldBuilder() { if (valueExpressionBuilder_ == null) { - valueExpressionBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.type.Expr, com.google.type.Expr.Builder, com.google.type.ExprOrBuilder>( - getValueExpression(), - getParentForChildren(), - isClean()); + valueExpressionBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.type.Expr, + com.google.type.Expr.Builder, + com.google.type.ExprOrBuilder>( + getValueExpression(), getParentForChildren(), isClean()); valueExpression_ = null; } return valueExpressionBuilder_; } + @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { @@ -1147,41 +1374,48 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.securitycentermanagement.v1.CustomConfig.CustomOutputSpec.Property) } // @@protoc_insertion_point(class_scope:google.cloud.securitycentermanagement.v1.CustomConfig.CustomOutputSpec.Property) - private static final com.google.cloud.securitycentermanagement.v1.CustomConfig.CustomOutputSpec.Property DEFAULT_INSTANCE; + private static final com.google.cloud.securitycentermanagement.v1.CustomConfig + .CustomOutputSpec.Property + DEFAULT_INSTANCE; + static { - DEFAULT_INSTANCE = new com.google.cloud.securitycentermanagement.v1.CustomConfig.CustomOutputSpec.Property(); + DEFAULT_INSTANCE = + new com.google.cloud.securitycentermanagement.v1.CustomConfig.CustomOutputSpec + .Property(); } - public static com.google.cloud.securitycentermanagement.v1.CustomConfig.CustomOutputSpec.Property getDefaultInstance() { + public static com.google.cloud.securitycentermanagement.v1.CustomConfig.CustomOutputSpec + .Property + getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public Property parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public Property parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException() + .setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1193,74 +1427,105 @@ public com.google.protobuf.Parser getParserForType() { } @java.lang.Override - public com.google.cloud.securitycentermanagement.v1.CustomConfig.CustomOutputSpec.Property getDefaultInstanceForType() { + public com.google.cloud.securitycentermanagement.v1.CustomConfig.CustomOutputSpec.Property + getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } public static final int PROPERTIES_FIELD_NUMBER = 1; + @SuppressWarnings("serial") - private java.util.List properties_; + private java.util.List< + com.google.cloud.securitycentermanagement.v1.CustomConfig.CustomOutputSpec.Property> + properties_; /** + * + * *
      * Optional. A list of custom output properties to add to the finding.
      * 
* - * repeated .google.cloud.securitycentermanagement.v1.CustomConfig.CustomOutputSpec.Property properties = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated .google.cloud.securitycentermanagement.v1.CustomConfig.CustomOutputSpec.Property properties = 1 [(.google.api.field_behavior) = OPTIONAL]; + * */ @java.lang.Override - public java.util.List getPropertiesList() { + public java.util.List< + com.google.cloud.securitycentermanagement.v1.CustomConfig.CustomOutputSpec.Property> + getPropertiesList() { return properties_; } /** + * + * *
      * Optional. A list of custom output properties to add to the finding.
      * 
* - * repeated .google.cloud.securitycentermanagement.v1.CustomConfig.CustomOutputSpec.Property properties = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated .google.cloud.securitycentermanagement.v1.CustomConfig.CustomOutputSpec.Property properties = 1 [(.google.api.field_behavior) = OPTIONAL]; + * */ @java.lang.Override - public java.util.List + public java.util.List< + ? extends + com.google.cloud.securitycentermanagement.v1.CustomConfig.CustomOutputSpec + .PropertyOrBuilder> getPropertiesOrBuilderList() { return properties_; } /** + * + * *
      * Optional. A list of custom output properties to add to the finding.
      * 
* - * repeated .google.cloud.securitycentermanagement.v1.CustomConfig.CustomOutputSpec.Property properties = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated .google.cloud.securitycentermanagement.v1.CustomConfig.CustomOutputSpec.Property properties = 1 [(.google.api.field_behavior) = OPTIONAL]; + * */ @java.lang.Override public int getPropertiesCount() { return properties_.size(); } /** + * + * *
      * Optional. A list of custom output properties to add to the finding.
      * 
* - * repeated .google.cloud.securitycentermanagement.v1.CustomConfig.CustomOutputSpec.Property properties = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated .google.cloud.securitycentermanagement.v1.CustomConfig.CustomOutputSpec.Property properties = 1 [(.google.api.field_behavior) = OPTIONAL]; + * */ @java.lang.Override - public com.google.cloud.securitycentermanagement.v1.CustomConfig.CustomOutputSpec.Property getProperties(int index) { + public com.google.cloud.securitycentermanagement.v1.CustomConfig.CustomOutputSpec.Property + getProperties(int index) { return properties_.get(index); } /** + * + * *
      * Optional. A list of custom output properties to add to the finding.
      * 
* - * repeated .google.cloud.securitycentermanagement.v1.CustomConfig.CustomOutputSpec.Property properties = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated .google.cloud.securitycentermanagement.v1.CustomConfig.CustomOutputSpec.Property properties = 1 [(.google.api.field_behavior) = OPTIONAL]; + * */ @java.lang.Override - public com.google.cloud.securitycentermanagement.v1.CustomConfig.CustomOutputSpec.PropertyOrBuilder getPropertiesOrBuilder( - int index) { + public com.google.cloud.securitycentermanagement.v1.CustomConfig.CustomOutputSpec + .PropertyOrBuilder + getPropertiesOrBuilder(int index) { return properties_.get(index); } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -1272,8 +1537,7 @@ public final boolean isInitialized() { } @java.lang.Override - 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 < properties_.size(); i++) { output.writeMessage(1, properties_.get(i)); } @@ -1287,8 +1551,7 @@ public int getSerializedSize() { size = 0; for (int i = 0; i < properties_.size(); i++) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, properties_.get(i)); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, properties_.get(i)); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -1298,15 +1561,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.securitycentermanagement.v1.CustomConfig.CustomOutputSpec)) { + if (!(obj + instanceof com.google.cloud.securitycentermanagement.v1.CustomConfig.CustomOutputSpec)) { return super.equals(obj); } - com.google.cloud.securitycentermanagement.v1.CustomConfig.CustomOutputSpec other = (com.google.cloud.securitycentermanagement.v1.CustomConfig.CustomOutputSpec) obj; + com.google.cloud.securitycentermanagement.v1.CustomConfig.CustomOutputSpec other = + (com.google.cloud.securitycentermanagement.v1.CustomConfig.CustomOutputSpec) obj; - if (!getPropertiesList() - .equals(other.getPropertiesList())) return false; + if (!getPropertiesList().equals(other.getPropertiesList())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -1327,90 +1591,101 @@ public int hashCode() { return hash; } - public static com.google.cloud.securitycentermanagement.v1.CustomConfig.CustomOutputSpec parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.securitycentermanagement.v1.CustomConfig.CustomOutputSpec + parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.securitycentermanagement.v1.CustomConfig.CustomOutputSpec parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.cloud.securitycentermanagement.v1.CustomConfig.CustomOutputSpec + 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.securitycentermanagement.v1.CustomConfig.CustomOutputSpec parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.cloud.securitycentermanagement.v1.CustomConfig.CustomOutputSpec + parseFrom(com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.securitycentermanagement.v1.CustomConfig.CustomOutputSpec parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.cloud.securitycentermanagement.v1.CustomConfig.CustomOutputSpec + parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.securitycentermanagement.v1.CustomConfig.CustomOutputSpec parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.cloud.securitycentermanagement.v1.CustomConfig.CustomOutputSpec + parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.securitycentermanagement.v1.CustomConfig.CustomOutputSpec parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.cloud.securitycentermanagement.v1.CustomConfig.CustomOutputSpec + parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.securitycentermanagement.v1.CustomConfig.CustomOutputSpec parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static com.google.cloud.securitycentermanagement.v1.CustomConfig.CustomOutputSpec 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.securitycentermanagement.v1.CustomConfig.CustomOutputSpec + parseFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } - public static com.google.cloud.securitycentermanagement.v1.CustomConfig.CustomOutputSpec parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.securitycentermanagement.v1.CustomConfig.CustomOutputSpec + 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.securitycentermanagement.v1.CustomConfig.CustomOutputSpec parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + public static com.google.cloud.securitycentermanagement.v1.CustomConfig.CustomOutputSpec + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.securitycentermanagement.v1.CustomConfig.CustomOutputSpec parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.securitycentermanagement.v1.CustomConfig.CustomOutputSpec + parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.securitycentermanagement.v1.CustomConfig.CustomOutputSpec 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.securitycentermanagement.v1.CustomConfig.CustomOutputSpec + parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.securitycentermanagement.v1.CustomConfig.CustomOutputSpec + 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.securitycentermanagement.v1.CustomConfig.CustomOutputSpec prototype) { + + public static Builder newBuilder( + com.google.cloud.securitycentermanagement.v1.CustomConfig.CustomOutputSpec prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override @@ -1420,6 +1695,8 @@ protected Builder newBuilderForType( return builder; } /** + * + * *
      * A set of optional name-value pairs that define custom source properties to
      * return with each finding that is generated by the custom module. The custom
@@ -1429,33 +1706,35 @@ protected Builder newBuilderForType(
      *
      * Protobuf type {@code google.cloud.securitycentermanagement.v1.CustomConfig.CustomOutputSpec}
      */
-    public static final class Builder extends
-        com.google.protobuf.GeneratedMessageV3.Builder implements
+    public static final class Builder
+        extends com.google.protobuf.GeneratedMessageV3.Builder
+        implements
         // @@protoc_insertion_point(builder_implements:google.cloud.securitycentermanagement.v1.CustomConfig.CustomOutputSpec)
         com.google.cloud.securitycentermanagement.v1.CustomConfig.CustomOutputSpecOrBuilder {
-      public static final com.google.protobuf.Descriptors.Descriptor
-          getDescriptor() {
-        return com.google.cloud.securitycentermanagement.v1.SecurityCenterManagementProto.internal_static_google_cloud_securitycentermanagement_v1_CustomConfig_CustomOutputSpec_descriptor;
+      public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+        return com.google.cloud.securitycentermanagement.v1.SecurityCenterManagementProto
+            .internal_static_google_cloud_securitycentermanagement_v1_CustomConfig_CustomOutputSpec_descriptor;
       }
 
       @java.lang.Override
       protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
           internalGetFieldAccessorTable() {
-        return com.google.cloud.securitycentermanagement.v1.SecurityCenterManagementProto.internal_static_google_cloud_securitycentermanagement_v1_CustomConfig_CustomOutputSpec_fieldAccessorTable
+        return com.google.cloud.securitycentermanagement.v1.SecurityCenterManagementProto
+            .internal_static_google_cloud_securitycentermanagement_v1_CustomConfig_CustomOutputSpec_fieldAccessorTable
             .ensureFieldAccessorsInitialized(
-                com.google.cloud.securitycentermanagement.v1.CustomConfig.CustomOutputSpec.class, com.google.cloud.securitycentermanagement.v1.CustomConfig.CustomOutputSpec.Builder.class);
+                com.google.cloud.securitycentermanagement.v1.CustomConfig.CustomOutputSpec.class,
+                com.google.cloud.securitycentermanagement.v1.CustomConfig.CustomOutputSpec.Builder
+                    .class);
       }
 
-      // Construct using com.google.cloud.securitycentermanagement.v1.CustomConfig.CustomOutputSpec.newBuilder()
-      private Builder() {
-
-      }
+      // Construct using
+      // com.google.cloud.securitycentermanagement.v1.CustomConfig.CustomOutputSpec.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();
@@ -1471,19 +1750,22 @@ public Builder clear() {
       }
 
       @java.lang.Override
-      public com.google.protobuf.Descriptors.Descriptor
-          getDescriptorForType() {
-        return com.google.cloud.securitycentermanagement.v1.SecurityCenterManagementProto.internal_static_google_cloud_securitycentermanagement_v1_CustomConfig_CustomOutputSpec_descriptor;
+      public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
+        return com.google.cloud.securitycentermanagement.v1.SecurityCenterManagementProto
+            .internal_static_google_cloud_securitycentermanagement_v1_CustomConfig_CustomOutputSpec_descriptor;
       }
 
       @java.lang.Override
-      public com.google.cloud.securitycentermanagement.v1.CustomConfig.CustomOutputSpec getDefaultInstanceForType() {
-        return com.google.cloud.securitycentermanagement.v1.CustomConfig.CustomOutputSpec.getDefaultInstance();
+      public com.google.cloud.securitycentermanagement.v1.CustomConfig.CustomOutputSpec
+          getDefaultInstanceForType() {
+        return com.google.cloud.securitycentermanagement.v1.CustomConfig.CustomOutputSpec
+            .getDefaultInstance();
       }
 
       @java.lang.Override
       public com.google.cloud.securitycentermanagement.v1.CustomConfig.CustomOutputSpec build() {
-        com.google.cloud.securitycentermanagement.v1.CustomConfig.CustomOutputSpec result = buildPartial();
+        com.google.cloud.securitycentermanagement.v1.CustomConfig.CustomOutputSpec result =
+            buildPartial();
         if (!result.isInitialized()) {
           throw newUninitializedMessageException(result);
         }
@@ -1491,15 +1773,20 @@ public com.google.cloud.securitycentermanagement.v1.CustomConfig.CustomOutputSpe
       }
 
       @java.lang.Override
-      public com.google.cloud.securitycentermanagement.v1.CustomConfig.CustomOutputSpec buildPartial() {
-        com.google.cloud.securitycentermanagement.v1.CustomConfig.CustomOutputSpec result = new com.google.cloud.securitycentermanagement.v1.CustomConfig.CustomOutputSpec(this);
+      public com.google.cloud.securitycentermanagement.v1.CustomConfig.CustomOutputSpec
+          buildPartial() {
+        com.google.cloud.securitycentermanagement.v1.CustomConfig.CustomOutputSpec result =
+            new com.google.cloud.securitycentermanagement.v1.CustomConfig.CustomOutputSpec(this);
         buildPartialRepeatedFields(result);
-        if (bitField0_ != 0) { buildPartial0(result); }
+        if (bitField0_ != 0) {
+          buildPartial0(result);
+        }
         onBuilt();
         return result;
       }
 
-      private void buildPartialRepeatedFields(com.google.cloud.securitycentermanagement.v1.CustomConfig.CustomOutputSpec result) {
+      private void buildPartialRepeatedFields(
+          com.google.cloud.securitycentermanagement.v1.CustomConfig.CustomOutputSpec result) {
         if (propertiesBuilder_ == null) {
           if (((bitField0_ & 0x00000001) != 0)) {
             properties_ = java.util.Collections.unmodifiableList(properties_);
@@ -1511,7 +1798,8 @@ private void buildPartialRepeatedFields(com.google.cloud.securitycentermanagemen
         }
       }
 
-      private void buildPartial0(com.google.cloud.securitycentermanagement.v1.CustomConfig.CustomOutputSpec result) {
+      private void buildPartial0(
+          com.google.cloud.securitycentermanagement.v1.CustomConfig.CustomOutputSpec result) {
         int from_bitField0_ = bitField0_;
       }
 
@@ -1519,46 +1807,54 @@ private void buildPartial0(com.google.cloud.securitycentermanagement.v1.CustomCo
       public Builder clone() {
         return super.clone();
       }
+
       @java.lang.Override
       public Builder setField(
-          com.google.protobuf.Descriptors.FieldDescriptor field,
-          java.lang.Object value) {
+          com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
         return super.setField(field, value);
       }
+
       @java.lang.Override
-      public Builder clearField(
-          com.google.protobuf.Descriptors.FieldDescriptor field) {
+      public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
         return super.clearField(field);
       }
+
       @java.lang.Override
-      public Builder clearOneof(
-          com.google.protobuf.Descriptors.OneofDescriptor oneof) {
+      public Builder clearOneof(com.google.protobuf.Descriptors.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.securitycentermanagement.v1.CustomConfig.CustomOutputSpec) {
-          return mergeFrom((com.google.cloud.securitycentermanagement.v1.CustomConfig.CustomOutputSpec)other);
+        if (other
+            instanceof com.google.cloud.securitycentermanagement.v1.CustomConfig.CustomOutputSpec) {
+          return mergeFrom(
+              (com.google.cloud.securitycentermanagement.v1.CustomConfig.CustomOutputSpec) other);
         } else {
           super.mergeFrom(other);
           return this;
         }
       }
 
-      public Builder mergeFrom(com.google.cloud.securitycentermanagement.v1.CustomConfig.CustomOutputSpec other) {
-        if (other == com.google.cloud.securitycentermanagement.v1.CustomConfig.CustomOutputSpec.getDefaultInstance()) return this;
+      public Builder mergeFrom(
+          com.google.cloud.securitycentermanagement.v1.CustomConfig.CustomOutputSpec other) {
+        if (other
+            == com.google.cloud.securitycentermanagement.v1.CustomConfig.CustomOutputSpec
+                .getDefaultInstance()) return this;
         if (propertiesBuilder_ == null) {
           if (!other.properties_.isEmpty()) {
             if (properties_.isEmpty()) {
@@ -1577,9 +1873,10 @@ public Builder mergeFrom(com.google.cloud.securitycentermanagement.v1.CustomConf
               propertiesBuilder_ = null;
               properties_ = other.properties_;
               bitField0_ = (bitField0_ & ~0x00000001);
-              propertiesBuilder_ = 
-                com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
-                   getPropertiesFieldBuilder() : null;
+              propertiesBuilder_ =
+                  com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders
+                      ? getPropertiesFieldBuilder()
+                      : null;
             } else {
               propertiesBuilder_.addAllMessages(other.properties_);
             }
@@ -1611,25 +1908,30 @@ public Builder mergeFrom(
               case 0:
                 done = true;
                 break;
-              case 10: {
-                com.google.cloud.securitycentermanagement.v1.CustomConfig.CustomOutputSpec.Property m =
-                    input.readMessage(
-                        com.google.cloud.securitycentermanagement.v1.CustomConfig.CustomOutputSpec.Property.parser(),
-                        extensionRegistry);
-                if (propertiesBuilder_ == null) {
-                  ensurePropertiesIsMutable();
-                  properties_.add(m);
-                } else {
-                  propertiesBuilder_.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.securitycentermanagement.v1.CustomConfig.CustomOutputSpec
+                          .Property
+                      m =
+                          input.readMessage(
+                              com.google.cloud.securitycentermanagement.v1.CustomConfig
+                                  .CustomOutputSpec.Property.parser(),
+                              extensionRegistry);
+                  if (propertiesBuilder_ == null) {
+                    ensurePropertiesIsMutable();
+                    properties_.add(m);
+                  } else {
+                    propertiesBuilder_.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) {
@@ -1639,28 +1941,45 @@ public Builder mergeFrom(
         } // finally
         return this;
       }
+
       private int bitField0_;
 
-      private java.util.List properties_ =
-        java.util.Collections.emptyList();
+      private java.util.List<
+              com.google.cloud.securitycentermanagement.v1.CustomConfig.CustomOutputSpec.Property>
+          properties_ = java.util.Collections.emptyList();
+
       private void ensurePropertiesIsMutable() {
         if (!((bitField0_ & 0x00000001) != 0)) {
-          properties_ = new java.util.ArrayList(properties_);
+          properties_ =
+              new java.util.ArrayList<
+                  com.google.cloud.securitycentermanagement.v1.CustomConfig.CustomOutputSpec
+                      .Property>(properties_);
           bitField0_ |= 0x00000001;
-         }
+        }
       }
 
       private com.google.protobuf.RepeatedFieldBuilderV3<
-          com.google.cloud.securitycentermanagement.v1.CustomConfig.CustomOutputSpec.Property, com.google.cloud.securitycentermanagement.v1.CustomConfig.CustomOutputSpec.Property.Builder, com.google.cloud.securitycentermanagement.v1.CustomConfig.CustomOutputSpec.PropertyOrBuilder> propertiesBuilder_;
+              com.google.cloud.securitycentermanagement.v1.CustomConfig.CustomOutputSpec.Property,
+              com.google.cloud.securitycentermanagement.v1.CustomConfig.CustomOutputSpec.Property
+                  .Builder,
+              com.google.cloud.securitycentermanagement.v1.CustomConfig.CustomOutputSpec
+                  .PropertyOrBuilder>
+          propertiesBuilder_;
 
       /**
+       *
+       *
        * 
        * Optional. A list of custom output properties to add to the finding.
        * 
* - * repeated .google.cloud.securitycentermanagement.v1.CustomConfig.CustomOutputSpec.Property properties = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated .google.cloud.securitycentermanagement.v1.CustomConfig.CustomOutputSpec.Property properties = 1 [(.google.api.field_behavior) = OPTIONAL]; + * */ - public java.util.List getPropertiesList() { + public java.util.List< + com.google.cloud.securitycentermanagement.v1.CustomConfig.CustomOutputSpec.Property> + getPropertiesList() { if (propertiesBuilder_ == null) { return java.util.Collections.unmodifiableList(properties_); } else { @@ -1668,11 +1987,15 @@ public java.util.List * Optional. A list of custom output properties to add to the finding. *
* - * repeated .google.cloud.securitycentermanagement.v1.CustomConfig.CustomOutputSpec.Property properties = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated .google.cloud.securitycentermanagement.v1.CustomConfig.CustomOutputSpec.Property properties = 1 [(.google.api.field_behavior) = OPTIONAL]; + * */ public int getPropertiesCount() { if (propertiesBuilder_ == null) { @@ -1682,13 +2005,18 @@ public int getPropertiesCount() { } } /** + * + * *
        * Optional. A list of custom output properties to add to the finding.
        * 
* - * repeated .google.cloud.securitycentermanagement.v1.CustomConfig.CustomOutputSpec.Property properties = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated .google.cloud.securitycentermanagement.v1.CustomConfig.CustomOutputSpec.Property properties = 1 [(.google.api.field_behavior) = OPTIONAL]; + * */ - public com.google.cloud.securitycentermanagement.v1.CustomConfig.CustomOutputSpec.Property getProperties(int index) { + public com.google.cloud.securitycentermanagement.v1.CustomConfig.CustomOutputSpec.Property + getProperties(int index) { if (propertiesBuilder_ == null) { return properties_.get(index); } else { @@ -1696,14 +2024,20 @@ public com.google.cloud.securitycentermanagement.v1.CustomConfig.CustomOutputSpe } } /** + * + * *
        * Optional. A list of custom output properties to add to the finding.
        * 
* - * repeated .google.cloud.securitycentermanagement.v1.CustomConfig.CustomOutputSpec.Property properties = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated .google.cloud.securitycentermanagement.v1.CustomConfig.CustomOutputSpec.Property properties = 1 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder setProperties( - int index, com.google.cloud.securitycentermanagement.v1.CustomConfig.CustomOutputSpec.Property value) { + int index, + com.google.cloud.securitycentermanagement.v1.CustomConfig.CustomOutputSpec.Property + value) { if (propertiesBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -1717,14 +2051,21 @@ public Builder setProperties( return this; } /** + * + * *
        * Optional. A list of custom output properties to add to the finding.
        * 
* - * repeated .google.cloud.securitycentermanagement.v1.CustomConfig.CustomOutputSpec.Property properties = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated .google.cloud.securitycentermanagement.v1.CustomConfig.CustomOutputSpec.Property properties = 1 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder setProperties( - int index, com.google.cloud.securitycentermanagement.v1.CustomConfig.CustomOutputSpec.Property.Builder builderForValue) { + int index, + com.google.cloud.securitycentermanagement.v1.CustomConfig.CustomOutputSpec.Property + .Builder + builderForValue) { if (propertiesBuilder_ == null) { ensurePropertiesIsMutable(); properties_.set(index, builderForValue.build()); @@ -1735,13 +2076,19 @@ public Builder setProperties( return this; } /** + * + * *
        * Optional. A list of custom output properties to add to the finding.
        * 
* - * repeated .google.cloud.securitycentermanagement.v1.CustomConfig.CustomOutputSpec.Property properties = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated .google.cloud.securitycentermanagement.v1.CustomConfig.CustomOutputSpec.Property properties = 1 [(.google.api.field_behavior) = OPTIONAL]; + * */ - public Builder addProperties(com.google.cloud.securitycentermanagement.v1.CustomConfig.CustomOutputSpec.Property value) { + public Builder addProperties( + com.google.cloud.securitycentermanagement.v1.CustomConfig.CustomOutputSpec.Property + value) { if (propertiesBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -1755,14 +2102,20 @@ public Builder addProperties(com.google.cloud.securitycentermanagement.v1.Custom return this; } /** + * + * *
        * Optional. A list of custom output properties to add to the finding.
        * 
* - * repeated .google.cloud.securitycentermanagement.v1.CustomConfig.CustomOutputSpec.Property properties = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated .google.cloud.securitycentermanagement.v1.CustomConfig.CustomOutputSpec.Property properties = 1 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder addProperties( - int index, com.google.cloud.securitycentermanagement.v1.CustomConfig.CustomOutputSpec.Property value) { + int index, + com.google.cloud.securitycentermanagement.v1.CustomConfig.CustomOutputSpec.Property + value) { if (propertiesBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -1776,14 +2129,20 @@ public Builder addProperties( return this; } /** + * + * *
        * Optional. A list of custom output properties to add to the finding.
        * 
* - * repeated .google.cloud.securitycentermanagement.v1.CustomConfig.CustomOutputSpec.Property properties = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated .google.cloud.securitycentermanagement.v1.CustomConfig.CustomOutputSpec.Property properties = 1 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder addProperties( - com.google.cloud.securitycentermanagement.v1.CustomConfig.CustomOutputSpec.Property.Builder builderForValue) { + com.google.cloud.securitycentermanagement.v1.CustomConfig.CustomOutputSpec.Property + .Builder + builderForValue) { if (propertiesBuilder_ == null) { ensurePropertiesIsMutable(); properties_.add(builderForValue.build()); @@ -1794,14 +2153,21 @@ public Builder addProperties( return this; } /** + * + * *
        * Optional. A list of custom output properties to add to the finding.
        * 
* - * repeated .google.cloud.securitycentermanagement.v1.CustomConfig.CustomOutputSpec.Property properties = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated .google.cloud.securitycentermanagement.v1.CustomConfig.CustomOutputSpec.Property properties = 1 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder addProperties( - int index, com.google.cloud.securitycentermanagement.v1.CustomConfig.CustomOutputSpec.Property.Builder builderForValue) { + int index, + com.google.cloud.securitycentermanagement.v1.CustomConfig.CustomOutputSpec.Property + .Builder + builderForValue) { if (propertiesBuilder_ == null) { ensurePropertiesIsMutable(); properties_.add(index, builderForValue.build()); @@ -1812,18 +2178,25 @@ public Builder addProperties( return this; } /** + * + * *
        * Optional. A list of custom output properties to add to the finding.
        * 
* - * repeated .google.cloud.securitycentermanagement.v1.CustomConfig.CustomOutputSpec.Property properties = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated .google.cloud.securitycentermanagement.v1.CustomConfig.CustomOutputSpec.Property properties = 1 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder addAllProperties( - java.lang.Iterable values) { + java.lang.Iterable< + ? extends + com.google.cloud.securitycentermanagement.v1.CustomConfig.CustomOutputSpec + .Property> + values) { if (propertiesBuilder_ == null) { ensurePropertiesIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, properties_); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, properties_); onChanged(); } else { propertiesBuilder_.addAllMessages(values); @@ -1831,11 +2204,15 @@ public Builder addAllProperties( return this; } /** + * + * *
        * Optional. A list of custom output properties to add to the finding.
        * 
* - * repeated .google.cloud.securitycentermanagement.v1.CustomConfig.CustomOutputSpec.Property properties = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated .google.cloud.securitycentermanagement.v1.CustomConfig.CustomOutputSpec.Property properties = 1 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder clearProperties() { if (propertiesBuilder_ == null) { @@ -1848,11 +2225,15 @@ public Builder clearProperties() { return this; } /** + * + * *
        * Optional. A list of custom output properties to add to the finding.
        * 
* - * repeated .google.cloud.securitycentermanagement.v1.CustomConfig.CustomOutputSpec.Property properties = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated .google.cloud.securitycentermanagement.v1.CustomConfig.CustomOutputSpec.Property properties = 1 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder removeProperties(int index) { if (propertiesBuilder_ == null) { @@ -1865,39 +2246,57 @@ public Builder removeProperties(int index) { return this; } /** + * + * *
        * Optional. A list of custom output properties to add to the finding.
        * 
* - * repeated .google.cloud.securitycentermanagement.v1.CustomConfig.CustomOutputSpec.Property properties = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated .google.cloud.securitycentermanagement.v1.CustomConfig.CustomOutputSpec.Property properties = 1 [(.google.api.field_behavior) = OPTIONAL]; + * */ - public com.google.cloud.securitycentermanagement.v1.CustomConfig.CustomOutputSpec.Property.Builder getPropertiesBuilder( - int index) { + public com.google.cloud.securitycentermanagement.v1.CustomConfig.CustomOutputSpec.Property + .Builder + getPropertiesBuilder(int index) { return getPropertiesFieldBuilder().getBuilder(index); } /** + * + * *
        * Optional. A list of custom output properties to add to the finding.
        * 
* - * repeated .google.cloud.securitycentermanagement.v1.CustomConfig.CustomOutputSpec.Property properties = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated .google.cloud.securitycentermanagement.v1.CustomConfig.CustomOutputSpec.Property properties = 1 [(.google.api.field_behavior) = OPTIONAL]; + * */ - public com.google.cloud.securitycentermanagement.v1.CustomConfig.CustomOutputSpec.PropertyOrBuilder getPropertiesOrBuilder( - int index) { + public com.google.cloud.securitycentermanagement.v1.CustomConfig.CustomOutputSpec + .PropertyOrBuilder + getPropertiesOrBuilder(int index) { if (propertiesBuilder_ == null) { - return properties_.get(index); } else { + return properties_.get(index); + } else { return propertiesBuilder_.getMessageOrBuilder(index); } } /** + * + * *
        * Optional. A list of custom output properties to add to the finding.
        * 
* - * repeated .google.cloud.securitycentermanagement.v1.CustomConfig.CustomOutputSpec.Property properties = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated .google.cloud.securitycentermanagement.v1.CustomConfig.CustomOutputSpec.Property properties = 1 [(.google.api.field_behavior) = OPTIONAL]; + * */ - public java.util.List - getPropertiesOrBuilderList() { + public java.util.List< + ? extends + com.google.cloud.securitycentermanagement.v1.CustomConfig.CustomOutputSpec + .PropertyOrBuilder> + getPropertiesOrBuilderList() { if (propertiesBuilder_ != null) { return propertiesBuilder_.getMessageOrBuilderList(); } else { @@ -1905,53 +2304,84 @@ public com.google.cloud.securitycentermanagement.v1.CustomConfig.CustomOutputSpe } } /** + * + * *
        * Optional. A list of custom output properties to add to the finding.
        * 
* - * repeated .google.cloud.securitycentermanagement.v1.CustomConfig.CustomOutputSpec.Property properties = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated .google.cloud.securitycentermanagement.v1.CustomConfig.CustomOutputSpec.Property properties = 1 [(.google.api.field_behavior) = OPTIONAL]; + * */ - public com.google.cloud.securitycentermanagement.v1.CustomConfig.CustomOutputSpec.Property.Builder addPropertiesBuilder() { - return getPropertiesFieldBuilder().addBuilder( - com.google.cloud.securitycentermanagement.v1.CustomConfig.CustomOutputSpec.Property.getDefaultInstance()); + public com.google.cloud.securitycentermanagement.v1.CustomConfig.CustomOutputSpec.Property + .Builder + addPropertiesBuilder() { + return getPropertiesFieldBuilder() + .addBuilder( + com.google.cloud.securitycentermanagement.v1.CustomConfig.CustomOutputSpec.Property + .getDefaultInstance()); } /** + * + * *
        * Optional. A list of custom output properties to add to the finding.
        * 
* - * repeated .google.cloud.securitycentermanagement.v1.CustomConfig.CustomOutputSpec.Property properties = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated .google.cloud.securitycentermanagement.v1.CustomConfig.CustomOutputSpec.Property properties = 1 [(.google.api.field_behavior) = OPTIONAL]; + * */ - public com.google.cloud.securitycentermanagement.v1.CustomConfig.CustomOutputSpec.Property.Builder addPropertiesBuilder( - int index) { - return getPropertiesFieldBuilder().addBuilder( - index, com.google.cloud.securitycentermanagement.v1.CustomConfig.CustomOutputSpec.Property.getDefaultInstance()); + public com.google.cloud.securitycentermanagement.v1.CustomConfig.CustomOutputSpec.Property + .Builder + addPropertiesBuilder(int index) { + return getPropertiesFieldBuilder() + .addBuilder( + index, + com.google.cloud.securitycentermanagement.v1.CustomConfig.CustomOutputSpec.Property + .getDefaultInstance()); } /** + * + * *
        * Optional. A list of custom output properties to add to the finding.
        * 
* - * repeated .google.cloud.securitycentermanagement.v1.CustomConfig.CustomOutputSpec.Property properties = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated .google.cloud.securitycentermanagement.v1.CustomConfig.CustomOutputSpec.Property properties = 1 [(.google.api.field_behavior) = OPTIONAL]; + * */ - public java.util.List - getPropertiesBuilderList() { + public java.util.List< + com.google.cloud.securitycentermanagement.v1.CustomConfig.CustomOutputSpec.Property + .Builder> + getPropertiesBuilderList() { return getPropertiesFieldBuilder().getBuilderList(); } + private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.securitycentermanagement.v1.CustomConfig.CustomOutputSpec.Property, com.google.cloud.securitycentermanagement.v1.CustomConfig.CustomOutputSpec.Property.Builder, com.google.cloud.securitycentermanagement.v1.CustomConfig.CustomOutputSpec.PropertyOrBuilder> + com.google.cloud.securitycentermanagement.v1.CustomConfig.CustomOutputSpec.Property, + com.google.cloud.securitycentermanagement.v1.CustomConfig.CustomOutputSpec.Property + .Builder, + com.google.cloud.securitycentermanagement.v1.CustomConfig.CustomOutputSpec + .PropertyOrBuilder> getPropertiesFieldBuilder() { if (propertiesBuilder_ == null) { - propertiesBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.securitycentermanagement.v1.CustomConfig.CustomOutputSpec.Property, com.google.cloud.securitycentermanagement.v1.CustomConfig.CustomOutputSpec.Property.Builder, com.google.cloud.securitycentermanagement.v1.CustomConfig.CustomOutputSpec.PropertyOrBuilder>( - properties_, - ((bitField0_ & 0x00000001) != 0), - getParentForChildren(), - isClean()); + propertiesBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.securitycentermanagement.v1.CustomConfig.CustomOutputSpec + .Property, + com.google.cloud.securitycentermanagement.v1.CustomConfig.CustomOutputSpec + .Property.Builder, + com.google.cloud.securitycentermanagement.v1.CustomConfig.CustomOutputSpec + .PropertyOrBuilder>( + properties_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean()); properties_ = null; } return propertiesBuilder_; } + @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { @@ -1964,41 +2394,45 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.securitycentermanagement.v1.CustomConfig.CustomOutputSpec) } // @@protoc_insertion_point(class_scope:google.cloud.securitycentermanagement.v1.CustomConfig.CustomOutputSpec) - private static final com.google.cloud.securitycentermanagement.v1.CustomConfig.CustomOutputSpec DEFAULT_INSTANCE; + private static final com.google.cloud.securitycentermanagement.v1.CustomConfig.CustomOutputSpec + DEFAULT_INSTANCE; + static { - DEFAULT_INSTANCE = new com.google.cloud.securitycentermanagement.v1.CustomConfig.CustomOutputSpec(); + DEFAULT_INSTANCE = + new com.google.cloud.securitycentermanagement.v1.CustomConfig.CustomOutputSpec(); } - public static com.google.cloud.securitycentermanagement.v1.CustomConfig.CustomOutputSpec getDefaultInstance() { + public static com.google.cloud.securitycentermanagement.v1.CustomConfig.CustomOutputSpec + getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public CustomOutputSpec parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public CustomOutputSpec parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException() + .setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -2010,131 +2444,155 @@ public com.google.protobuf.Parser getParserForType() { } @java.lang.Override - public com.google.cloud.securitycentermanagement.v1.CustomConfig.CustomOutputSpec getDefaultInstanceForType() { + public com.google.cloud.securitycentermanagement.v1.CustomConfig.CustomOutputSpec + getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - public interface ResourceSelectorOrBuilder extends + public interface ResourceSelectorOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.securitycentermanagement.v1.CustomConfig.ResourceSelector) com.google.protobuf.MessageOrBuilder { /** + * + * *
      * Optional. The resource types to run the detector on.
      * 
* * repeated string resource_types = 1 [(.google.api.field_behavior) = OPTIONAL]; + * * @return A list containing the resourceTypes. */ - java.util.List - getResourceTypesList(); + java.util.List getResourceTypesList(); /** + * + * *
      * Optional. The resource types to run the detector on.
      * 
* * repeated string resource_types = 1 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The count of resourceTypes. */ int getResourceTypesCount(); /** + * + * *
      * Optional. The resource types to run the detector on.
      * 
* * repeated string resource_types = 1 [(.google.api.field_behavior) = OPTIONAL]; + * * @param index The index of the element to return. * @return The resourceTypes at the given index. */ java.lang.String getResourceTypes(int index); /** + * + * *
      * Optional. The resource types to run the detector on.
      * 
* * repeated string resource_types = 1 [(.google.api.field_behavior) = OPTIONAL]; + * * @param index The index of the value to return. * @return The bytes of the resourceTypes at the given index. */ - com.google.protobuf.ByteString - getResourceTypesBytes(int index); + com.google.protobuf.ByteString getResourceTypesBytes(int index); } /** + * + * *
    * Resource for selecting resource type.
    * 
* * Protobuf type {@code google.cloud.securitycentermanagement.v1.CustomConfig.ResourceSelector} */ - public static final class ResourceSelector extends - com.google.protobuf.GeneratedMessageV3 implements + public static final class ResourceSelector extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.securitycentermanagement.v1.CustomConfig.ResourceSelector) ResourceSelectorOrBuilder { - private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use ResourceSelector.newBuilder() to construct. private ResourceSelector(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private ResourceSelector() { - resourceTypes_ = - com.google.protobuf.LazyStringArrayList.emptyList(); + resourceTypes_ = 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 ResourceSelector(); } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.securitycentermanagement.v1.SecurityCenterManagementProto.internal_static_google_cloud_securitycentermanagement_v1_CustomConfig_ResourceSelector_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.securitycentermanagement.v1.SecurityCenterManagementProto + .internal_static_google_cloud_securitycentermanagement_v1_CustomConfig_ResourceSelector_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.securitycentermanagement.v1.SecurityCenterManagementProto.internal_static_google_cloud_securitycentermanagement_v1_CustomConfig_ResourceSelector_fieldAccessorTable + return com.google.cloud.securitycentermanagement.v1.SecurityCenterManagementProto + .internal_static_google_cloud_securitycentermanagement_v1_CustomConfig_ResourceSelector_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.securitycentermanagement.v1.CustomConfig.ResourceSelector.class, com.google.cloud.securitycentermanagement.v1.CustomConfig.ResourceSelector.Builder.class); + com.google.cloud.securitycentermanagement.v1.CustomConfig.ResourceSelector.class, + com.google.cloud.securitycentermanagement.v1.CustomConfig.ResourceSelector.Builder + .class); } public static final int RESOURCE_TYPES_FIELD_NUMBER = 1; + @SuppressWarnings("serial") private com.google.protobuf.LazyStringArrayList resourceTypes_ = com.google.protobuf.LazyStringArrayList.emptyList(); /** + * + * *
      * Optional. The resource types to run the detector on.
      * 
* * repeated string resource_types = 1 [(.google.api.field_behavior) = OPTIONAL]; + * * @return A list containing the resourceTypes. */ - public com.google.protobuf.ProtocolStringList - getResourceTypesList() { + public com.google.protobuf.ProtocolStringList getResourceTypesList() { return resourceTypes_; } /** + * + * *
      * Optional. The resource types to run the detector on.
      * 
* * repeated string resource_types = 1 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The count of resourceTypes. */ public int getResourceTypesCount() { return resourceTypes_.size(); } /** + * + * *
      * Optional. The resource types to run the detector on.
      * 
* * repeated string resource_types = 1 [(.google.api.field_behavior) = OPTIONAL]; + * * @param index The index of the element to return. * @return The resourceTypes at the given index. */ @@ -2142,20 +2600,23 @@ public java.lang.String getResourceTypes(int index) { return resourceTypes_.get(index); } /** + * + * *
      * Optional. The resource types to run the detector on.
      * 
* * repeated string resource_types = 1 [(.google.api.field_behavior) = OPTIONAL]; + * * @param index The index of the value to return. * @return The bytes of the resourceTypes at the given index. */ - public com.google.protobuf.ByteString - getResourceTypesBytes(int index) { + public com.google.protobuf.ByteString getResourceTypesBytes(int index) { return resourceTypes_.getByteString(index); } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -2167,8 +2628,7 @@ public final boolean isInitialized() { } @java.lang.Override - 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 < resourceTypes_.size(); i++) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, resourceTypes_.getRaw(i)); } @@ -2197,15 +2657,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.securitycentermanagement.v1.CustomConfig.ResourceSelector)) { + if (!(obj + instanceof com.google.cloud.securitycentermanagement.v1.CustomConfig.ResourceSelector)) { return super.equals(obj); } - com.google.cloud.securitycentermanagement.v1.CustomConfig.ResourceSelector other = (com.google.cloud.securitycentermanagement.v1.CustomConfig.ResourceSelector) obj; + com.google.cloud.securitycentermanagement.v1.CustomConfig.ResourceSelector other = + (com.google.cloud.securitycentermanagement.v1.CustomConfig.ResourceSelector) obj; - if (!getResourceTypesList() - .equals(other.getResourceTypesList())) return false; + if (!getResourceTypesList().equals(other.getResourceTypesList())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -2226,90 +2687,101 @@ public int hashCode() { return hash; } - public static com.google.cloud.securitycentermanagement.v1.CustomConfig.ResourceSelector parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.securitycentermanagement.v1.CustomConfig.ResourceSelector + parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.securitycentermanagement.v1.CustomConfig.ResourceSelector parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.cloud.securitycentermanagement.v1.CustomConfig.ResourceSelector + 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.securitycentermanagement.v1.CustomConfig.ResourceSelector parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.cloud.securitycentermanagement.v1.CustomConfig.ResourceSelector + parseFrom(com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.securitycentermanagement.v1.CustomConfig.ResourceSelector parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.cloud.securitycentermanagement.v1.CustomConfig.ResourceSelector + parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.securitycentermanagement.v1.CustomConfig.ResourceSelector parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.cloud.securitycentermanagement.v1.CustomConfig.ResourceSelector + parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.securitycentermanagement.v1.CustomConfig.ResourceSelector parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.cloud.securitycentermanagement.v1.CustomConfig.ResourceSelector + parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.securitycentermanagement.v1.CustomConfig.ResourceSelector parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.securitycentermanagement.v1.CustomConfig.ResourceSelector + parseFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } - public static com.google.cloud.securitycentermanagement.v1.CustomConfig.ResourceSelector 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.securitycentermanagement.v1.CustomConfig.ResourceSelector + 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.securitycentermanagement.v1.CustomConfig.ResourceSelector parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.securitycentermanagement.v1.CustomConfig.ResourceSelector + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.securitycentermanagement.v1.CustomConfig.ResourceSelector parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + public static com.google.cloud.securitycentermanagement.v1.CustomConfig.ResourceSelector + parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.securitycentermanagement.v1.CustomConfig.ResourceSelector parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.securitycentermanagement.v1.CustomConfig.ResourceSelector + parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } - public static com.google.cloud.securitycentermanagement.v1.CustomConfig.ResourceSelector 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.securitycentermanagement.v1.CustomConfig.ResourceSelector + 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.securitycentermanagement.v1.CustomConfig.ResourceSelector prototype) { + + public static Builder newBuilder( + com.google.cloud.securitycentermanagement.v1.CustomConfig.ResourceSelector prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override @@ -2319,62 +2791,68 @@ protected Builder newBuilderForType( return builder; } /** + * + * *
      * Resource for selecting resource type.
      * 
* * Protobuf type {@code google.cloud.securitycentermanagement.v1.CustomConfig.ResourceSelector} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder + extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.securitycentermanagement.v1.CustomConfig.ResourceSelector) com.google.cloud.securitycentermanagement.v1.CustomConfig.ResourceSelectorOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.securitycentermanagement.v1.SecurityCenterManagementProto.internal_static_google_cloud_securitycentermanagement_v1_CustomConfig_ResourceSelector_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.securitycentermanagement.v1.SecurityCenterManagementProto + .internal_static_google_cloud_securitycentermanagement_v1_CustomConfig_ResourceSelector_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.securitycentermanagement.v1.SecurityCenterManagementProto.internal_static_google_cloud_securitycentermanagement_v1_CustomConfig_ResourceSelector_fieldAccessorTable + return com.google.cloud.securitycentermanagement.v1.SecurityCenterManagementProto + .internal_static_google_cloud_securitycentermanagement_v1_CustomConfig_ResourceSelector_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.securitycentermanagement.v1.CustomConfig.ResourceSelector.class, com.google.cloud.securitycentermanagement.v1.CustomConfig.ResourceSelector.Builder.class); + com.google.cloud.securitycentermanagement.v1.CustomConfig.ResourceSelector.class, + com.google.cloud.securitycentermanagement.v1.CustomConfig.ResourceSelector.Builder + .class); } - // Construct using com.google.cloud.securitycentermanagement.v1.CustomConfig.ResourceSelector.newBuilder() - private Builder() { - - } + // Construct using + // com.google.cloud.securitycentermanagement.v1.CustomConfig.ResourceSelector.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; - resourceTypes_ = - com.google.protobuf.LazyStringArrayList.emptyList(); + resourceTypes_ = com.google.protobuf.LazyStringArrayList.emptyList(); return this; } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.securitycentermanagement.v1.SecurityCenterManagementProto.internal_static_google_cloud_securitycentermanagement_v1_CustomConfig_ResourceSelector_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.securitycentermanagement.v1.SecurityCenterManagementProto + .internal_static_google_cloud_securitycentermanagement_v1_CustomConfig_ResourceSelector_descriptor; } @java.lang.Override - public com.google.cloud.securitycentermanagement.v1.CustomConfig.ResourceSelector getDefaultInstanceForType() { - return com.google.cloud.securitycentermanagement.v1.CustomConfig.ResourceSelector.getDefaultInstance(); + public com.google.cloud.securitycentermanagement.v1.CustomConfig.ResourceSelector + getDefaultInstanceForType() { + return com.google.cloud.securitycentermanagement.v1.CustomConfig.ResourceSelector + .getDefaultInstance(); } @java.lang.Override public com.google.cloud.securitycentermanagement.v1.CustomConfig.ResourceSelector build() { - com.google.cloud.securitycentermanagement.v1.CustomConfig.ResourceSelector result = buildPartial(); + com.google.cloud.securitycentermanagement.v1.CustomConfig.ResourceSelector result = + buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } @@ -2382,14 +2860,19 @@ public com.google.cloud.securitycentermanagement.v1.CustomConfig.ResourceSelecto } @java.lang.Override - public com.google.cloud.securitycentermanagement.v1.CustomConfig.ResourceSelector buildPartial() { - com.google.cloud.securitycentermanagement.v1.CustomConfig.ResourceSelector result = new com.google.cloud.securitycentermanagement.v1.CustomConfig.ResourceSelector(this); - if (bitField0_ != 0) { buildPartial0(result); } + public com.google.cloud.securitycentermanagement.v1.CustomConfig.ResourceSelector + buildPartial() { + com.google.cloud.securitycentermanagement.v1.CustomConfig.ResourceSelector result = + new com.google.cloud.securitycentermanagement.v1.CustomConfig.ResourceSelector(this); + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } - private void buildPartial0(com.google.cloud.securitycentermanagement.v1.CustomConfig.ResourceSelector result) { + private void buildPartial0( + com.google.cloud.securitycentermanagement.v1.CustomConfig.ResourceSelector result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000001) != 0)) { resourceTypes_.makeImmutable(); @@ -2401,46 +2884,54 @@ private void buildPartial0(com.google.cloud.securitycentermanagement.v1.CustomCo public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.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.securitycentermanagement.v1.CustomConfig.ResourceSelector) { - return mergeFrom((com.google.cloud.securitycentermanagement.v1.CustomConfig.ResourceSelector)other); + if (other + instanceof com.google.cloud.securitycentermanagement.v1.CustomConfig.ResourceSelector) { + return mergeFrom( + (com.google.cloud.securitycentermanagement.v1.CustomConfig.ResourceSelector) other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom(com.google.cloud.securitycentermanagement.v1.CustomConfig.ResourceSelector other) { - if (other == com.google.cloud.securitycentermanagement.v1.CustomConfig.ResourceSelector.getDefaultInstance()) return this; + public Builder mergeFrom( + com.google.cloud.securitycentermanagement.v1.CustomConfig.ResourceSelector other) { + if (other + == com.google.cloud.securitycentermanagement.v1.CustomConfig.ResourceSelector + .getDefaultInstance()) return this; if (!other.resourceTypes_.isEmpty()) { if (resourceTypes_.isEmpty()) { resourceTypes_ = other.resourceTypes_; @@ -2477,18 +2968,20 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: { - java.lang.String s = input.readStringRequireUtf8(); - ensureResourceTypesIsMutable(); - resourceTypes_.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(); + ensureResourceTypesIsMutable(); + resourceTypes_.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) { @@ -2498,10 +2991,12 @@ public Builder mergeFrom( } // finally return this; } + private int bitField0_; private com.google.protobuf.LazyStringArrayList resourceTypes_ = com.google.protobuf.LazyStringArrayList.emptyList(); + private void ensureResourceTypesIsMutable() { if (!resourceTypes_.isModifiable()) { resourceTypes_ = new com.google.protobuf.LazyStringArrayList(resourceTypes_); @@ -2509,35 +3004,43 @@ private void ensureResourceTypesIsMutable() { bitField0_ |= 0x00000001; } /** + * + * *
        * Optional. The resource types to run the detector on.
        * 
* * repeated string resource_types = 1 [(.google.api.field_behavior) = OPTIONAL]; + * * @return A list containing the resourceTypes. */ - public com.google.protobuf.ProtocolStringList - getResourceTypesList() { + public com.google.protobuf.ProtocolStringList getResourceTypesList() { resourceTypes_.makeImmutable(); return resourceTypes_; } /** + * + * *
        * Optional. The resource types to run the detector on.
        * 
* * repeated string resource_types = 1 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The count of resourceTypes. */ public int getResourceTypesCount() { return resourceTypes_.size(); } /** + * + * *
        * Optional. The resource types to run the detector on.
        * 
* * repeated string resource_types = 1 [(.google.api.field_behavior) = OPTIONAL]; + * * @param index The index of the element to return. * @return The resourceTypes at the given index. */ @@ -2545,31 +3048,37 @@ public java.lang.String getResourceTypes(int index) { return resourceTypes_.get(index); } /** + * + * *
        * Optional. The resource types to run the detector on.
        * 
* * repeated string resource_types = 1 [(.google.api.field_behavior) = OPTIONAL]; + * * @param index The index of the value to return. * @return The bytes of the resourceTypes at the given index. */ - public com.google.protobuf.ByteString - getResourceTypesBytes(int index) { + public com.google.protobuf.ByteString getResourceTypesBytes(int index) { return resourceTypes_.getByteString(index); } /** + * + * *
        * Optional. The resource types to run the detector on.
        * 
* * repeated string resource_types = 1 [(.google.api.field_behavior) = OPTIONAL]; + * * @param index The index to set the value at. * @param value The resourceTypes to set. * @return This builder for chaining. */ - public Builder setResourceTypes( - int index, java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setResourceTypes(int index, java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } ensureResourceTypesIsMutable(); resourceTypes_.set(index, value); bitField0_ |= 0x00000001; @@ -2577,17 +3086,21 @@ public Builder setResourceTypes( return this; } /** + * + * *
        * Optional. The resource types to run the detector on.
        * 
* * repeated string resource_types = 1 [(.google.api.field_behavior) = OPTIONAL]; + * * @param value The resourceTypes to add. * @return This builder for chaining. */ - public Builder addResourceTypes( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder addResourceTypes(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } ensureResourceTypesIsMutable(); resourceTypes_.add(value); bitField0_ |= 0x00000001; @@ -2595,50 +3108,58 @@ public Builder addResourceTypes( return this; } /** + * + * *
        * Optional. The resource types to run the detector on.
        * 
* * repeated string resource_types = 1 [(.google.api.field_behavior) = OPTIONAL]; + * * @param values The resourceTypes to add. * @return This builder for chaining. */ - public Builder addAllResourceTypes( - java.lang.Iterable values) { + public Builder addAllResourceTypes(java.lang.Iterable values) { ensureResourceTypesIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, resourceTypes_); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, resourceTypes_); bitField0_ |= 0x00000001; onChanged(); return this; } /** + * + * *
        * Optional. The resource types to run the detector on.
        * 
* * repeated string resource_types = 1 [(.google.api.field_behavior) = OPTIONAL]; + * * @return This builder for chaining. */ public Builder clearResourceTypes() { - resourceTypes_ = - com.google.protobuf.LazyStringArrayList.emptyList(); - bitField0_ = (bitField0_ & ~0x00000001);; + resourceTypes_ = com.google.protobuf.LazyStringArrayList.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + ; onChanged(); return this; } /** + * + * *
        * Optional. The resource types to run the detector on.
        * 
* * repeated string resource_types = 1 [(.google.api.field_behavior) = OPTIONAL]; + * * @param value The bytes of the resourceTypes to add. * @return This builder for chaining. */ - public Builder addResourceTypesBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder addResourceTypesBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); ensureResourceTypesIsMutable(); resourceTypes_.add(value); @@ -2646,6 +3167,7 @@ public Builder addResourceTypesBytes( onChanged(); return this; } + @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { @@ -2658,41 +3180,45 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.securitycentermanagement.v1.CustomConfig.ResourceSelector) } // @@protoc_insertion_point(class_scope:google.cloud.securitycentermanagement.v1.CustomConfig.ResourceSelector) - private static final com.google.cloud.securitycentermanagement.v1.CustomConfig.ResourceSelector DEFAULT_INSTANCE; + private static final com.google.cloud.securitycentermanagement.v1.CustomConfig.ResourceSelector + DEFAULT_INSTANCE; + static { - DEFAULT_INSTANCE = new com.google.cloud.securitycentermanagement.v1.CustomConfig.ResourceSelector(); + DEFAULT_INSTANCE = + new com.google.cloud.securitycentermanagement.v1.CustomConfig.ResourceSelector(); } - public static com.google.cloud.securitycentermanagement.v1.CustomConfig.ResourceSelector getDefaultInstance() { + public static com.google.cloud.securitycentermanagement.v1.CustomConfig.ResourceSelector + getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ResourceSelector parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ResourceSelector parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException() + .setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -2704,21 +3230,24 @@ public com.google.protobuf.Parser getParserForType() { } @java.lang.Override - public com.google.cloud.securitycentermanagement.v1.CustomConfig.ResourceSelector getDefaultInstanceForType() { + public com.google.cloud.securitycentermanagement.v1.CustomConfig.ResourceSelector + getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } public static final int PREDICATE_FIELD_NUMBER = 1; private com.google.type.Expr predicate_; /** + * + * *
    * Optional. The CEL expression to evaluate to produce findings. When the
    * expression evaluates to true against a resource, a finding is generated.
    * 
* * .google.type.Expr predicate = 1 [(.google.api.field_behavior) = OPTIONAL]; + * * @return Whether the predicate field is set. */ @java.lang.Override @@ -2726,12 +3255,15 @@ public boolean hasPredicate() { return predicate_ != null; } /** + * + * *
    * Optional. The CEL expression to evaluate to produce findings. When the
    * expression evaluates to true against a resource, a finding is generated.
    * 
* * .google.type.Expr predicate = 1 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The predicate. */ @java.lang.Override @@ -2739,6 +3271,8 @@ public com.google.type.Expr getPredicate() { return predicate_ == null ? com.google.type.Expr.getDefaultInstance() : predicate_; } /** + * + * *
    * Optional. The CEL expression to evaluate to produce findings. When the
    * expression evaluates to true against a resource, a finding is generated.
@@ -2754,11 +3288,16 @@ public com.google.type.ExprOrBuilder getPredicateOrBuilder() {
   public static final int CUSTOM_OUTPUT_FIELD_NUMBER = 2;
   private com.google.cloud.securitycentermanagement.v1.CustomConfig.CustomOutputSpec customOutput_;
   /**
+   *
+   *
    * 
    * Optional. Custom output properties.
    * 
* - * .google.cloud.securitycentermanagement.v1.CustomConfig.CustomOutputSpec custom_output = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.securitycentermanagement.v1.CustomConfig.CustomOutputSpec custom_output = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return Whether the customOutput field is set. */ @java.lang.Override @@ -2766,39 +3305,62 @@ public boolean hasCustomOutput() { return customOutput_ != null; } /** + * + * *
    * Optional. Custom output properties.
    * 
* - * .google.cloud.securitycentermanagement.v1.CustomConfig.CustomOutputSpec custom_output = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.securitycentermanagement.v1.CustomConfig.CustomOutputSpec custom_output = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return The customOutput. */ @java.lang.Override - public com.google.cloud.securitycentermanagement.v1.CustomConfig.CustomOutputSpec getCustomOutput() { - return customOutput_ == null ? com.google.cloud.securitycentermanagement.v1.CustomConfig.CustomOutputSpec.getDefaultInstance() : customOutput_; + public com.google.cloud.securitycentermanagement.v1.CustomConfig.CustomOutputSpec + getCustomOutput() { + return customOutput_ == null + ? com.google.cloud.securitycentermanagement.v1.CustomConfig.CustomOutputSpec + .getDefaultInstance() + : customOutput_; } /** + * + * *
    * Optional. Custom output properties.
    * 
* - * .google.cloud.securitycentermanagement.v1.CustomConfig.CustomOutputSpec custom_output = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.securitycentermanagement.v1.CustomConfig.CustomOutputSpec custom_output = 2 [(.google.api.field_behavior) = OPTIONAL]; + * */ @java.lang.Override - public com.google.cloud.securitycentermanagement.v1.CustomConfig.CustomOutputSpecOrBuilder getCustomOutputOrBuilder() { - return customOutput_ == null ? com.google.cloud.securitycentermanagement.v1.CustomConfig.CustomOutputSpec.getDefaultInstance() : customOutput_; + public com.google.cloud.securitycentermanagement.v1.CustomConfig.CustomOutputSpecOrBuilder + getCustomOutputOrBuilder() { + return customOutput_ == null + ? com.google.cloud.securitycentermanagement.v1.CustomConfig.CustomOutputSpec + .getDefaultInstance() + : customOutput_; } public static final int RESOURCE_SELECTOR_FIELD_NUMBER = 3; - private com.google.cloud.securitycentermanagement.v1.CustomConfig.ResourceSelector resourceSelector_; + private com.google.cloud.securitycentermanagement.v1.CustomConfig.ResourceSelector + resourceSelector_; /** + * + * *
    * Optional. The CAI resource types that the custom module operates on (see
    * go/gcp-cai-doc/supported-asset-types). Each custom module can specify up to
    * 5 resource types.
    * 
* - * .google.cloud.securitycentermanagement.v1.CustomConfig.ResourceSelector resource_selector = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.securitycentermanagement.v1.CustomConfig.ResourceSelector resource_selector = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return Whether the resourceSelector field is set. */ @java.lang.Override @@ -2806,63 +3368,98 @@ public boolean hasResourceSelector() { return resourceSelector_ != null; } /** + * + * *
    * Optional. The CAI resource types that the custom module operates on (see
    * go/gcp-cai-doc/supported-asset-types). Each custom module can specify up to
    * 5 resource types.
    * 
* - * .google.cloud.securitycentermanagement.v1.CustomConfig.ResourceSelector resource_selector = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.securitycentermanagement.v1.CustomConfig.ResourceSelector resource_selector = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return The resourceSelector. */ @java.lang.Override - public com.google.cloud.securitycentermanagement.v1.CustomConfig.ResourceSelector getResourceSelector() { - return resourceSelector_ == null ? com.google.cloud.securitycentermanagement.v1.CustomConfig.ResourceSelector.getDefaultInstance() : resourceSelector_; + public com.google.cloud.securitycentermanagement.v1.CustomConfig.ResourceSelector + getResourceSelector() { + return resourceSelector_ == null + ? com.google.cloud.securitycentermanagement.v1.CustomConfig.ResourceSelector + .getDefaultInstance() + : resourceSelector_; } /** + * + * *
    * Optional. The CAI resource types that the custom module operates on (see
    * go/gcp-cai-doc/supported-asset-types). Each custom module can specify up to
    * 5 resource types.
    * 
* - * .google.cloud.securitycentermanagement.v1.CustomConfig.ResourceSelector resource_selector = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.securitycentermanagement.v1.CustomConfig.ResourceSelector resource_selector = 3 [(.google.api.field_behavior) = OPTIONAL]; + * */ @java.lang.Override - public com.google.cloud.securitycentermanagement.v1.CustomConfig.ResourceSelectorOrBuilder getResourceSelectorOrBuilder() { - return resourceSelector_ == null ? com.google.cloud.securitycentermanagement.v1.CustomConfig.ResourceSelector.getDefaultInstance() : resourceSelector_; + public com.google.cloud.securitycentermanagement.v1.CustomConfig.ResourceSelectorOrBuilder + getResourceSelectorOrBuilder() { + return resourceSelector_ == null + ? com.google.cloud.securitycentermanagement.v1.CustomConfig.ResourceSelector + .getDefaultInstance() + : resourceSelector_; } public static final int SEVERITY_FIELD_NUMBER = 4; private int severity_ = 0; /** + * + * *
    * Optional. The severity to assign to findings generated by the module.
    * 
* - * .google.cloud.securitycentermanagement.v1.CustomConfig.Severity severity = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.securitycentermanagement.v1.CustomConfig.Severity severity = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return The enum numeric value on the wire for severity. */ - @java.lang.Override public int getSeverityValue() { + @java.lang.Override + public int getSeverityValue() { return severity_; } /** + * + * *
    * Optional. The severity to assign to findings generated by the module.
    * 
* - * .google.cloud.securitycentermanagement.v1.CustomConfig.Severity severity = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.securitycentermanagement.v1.CustomConfig.Severity severity = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return The severity. */ - @java.lang.Override public com.google.cloud.securitycentermanagement.v1.CustomConfig.Severity getSeverity() { - com.google.cloud.securitycentermanagement.v1.CustomConfig.Severity result = com.google.cloud.securitycentermanagement.v1.CustomConfig.Severity.forNumber(severity_); - return result == null ? com.google.cloud.securitycentermanagement.v1.CustomConfig.Severity.UNRECOGNIZED : result; + @java.lang.Override + public com.google.cloud.securitycentermanagement.v1.CustomConfig.Severity getSeverity() { + com.google.cloud.securitycentermanagement.v1.CustomConfig.Severity result = + com.google.cloud.securitycentermanagement.v1.CustomConfig.Severity.forNumber(severity_); + return result == null + ? com.google.cloud.securitycentermanagement.v1.CustomConfig.Severity.UNRECOGNIZED + : result; } public static final int DESCRIPTION_FIELD_NUMBER = 5; + @SuppressWarnings("serial") private volatile java.lang.Object description_ = ""; /** + * + * *
    * Optional. Text that describes the vulnerability or misconfiguration that
    * the custom module detects. This explanation is returned with each finding
@@ -2871,6 +3468,7 @@ public com.google.cloud.securitycentermanagement.v1.CustomConfig.ResourceSelecto
    * 
* * string description = 5 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The description. */ @java.lang.Override @@ -2879,14 +3477,15 @@ 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; } } /** + * + * *
    * Optional. Text that describes the vulnerability or misconfiguration that
    * the custom module detects. This explanation is returned with each finding
@@ -2895,16 +3494,15 @@ public java.lang.String getDescription() {
    * 
* * string description = 5 [(.google.api.field_behavior) = OPTIONAL]; + * * @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 { @@ -2913,9 +3511,12 @@ public java.lang.String getDescription() { } public static final int RECOMMENDATION_FIELD_NUMBER = 6; + @SuppressWarnings("serial") private volatile java.lang.Object recommendation_ = ""; /** + * + * *
    * Optional. An explanation of the recommended steps that security teams can
    * take to resolve the detected issue. This explanation is returned with each
@@ -2924,6 +3525,7 @@ public java.lang.String getDescription() {
    * 
* * string recommendation = 6 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The recommendation. */ @java.lang.Override @@ -2932,14 +3534,15 @@ public java.lang.String getRecommendation() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); recommendation_ = s; return s; } } /** + * + * *
    * Optional. An explanation of the recommended steps that security teams can
    * take to resolve the detected issue. This explanation is returned with each
@@ -2948,16 +3551,15 @@ public java.lang.String getRecommendation() {
    * 
* * string recommendation = 6 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The bytes for recommendation. */ @java.lang.Override - public com.google.protobuf.ByteString - getRecommendationBytes() { + public com.google.protobuf.ByteString getRecommendationBytes() { java.lang.Object ref = recommendation_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); recommendation_ = b; return b; } else { @@ -2966,6 +3568,7 @@ public java.lang.String getRecommendation() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -2977,8 +3580,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (predicate_ != null) { output.writeMessage(1, getPredicate()); } @@ -2988,7 +3590,9 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) if (resourceSelector_ != null) { output.writeMessage(3, getResourceSelector()); } - if (severity_ != com.google.cloud.securitycentermanagement.v1.CustomConfig.Severity.SEVERITY_UNSPECIFIED.getNumber()) { + if (severity_ + != com.google.cloud.securitycentermanagement.v1.CustomConfig.Severity.SEVERITY_UNSPECIFIED + .getNumber()) { output.writeEnum(4, severity_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(description_)) { @@ -3007,20 +3611,18 @@ public int getSerializedSize() { size = 0; if (predicate_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, getPredicate()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getPredicate()); } if (customOutput_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(2, getCustomOutput()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getCustomOutput()); } if (resourceSelector_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(3, getResourceSelector()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, getResourceSelector()); } - if (severity_ != com.google.cloud.securitycentermanagement.v1.CustomConfig.Severity.SEVERITY_UNSPECIFIED.getNumber()) { - size += com.google.protobuf.CodedOutputStream - .computeEnumSize(4, severity_); + if (severity_ + != com.google.cloud.securitycentermanagement.v1.CustomConfig.Severity.SEVERITY_UNSPECIFIED + .getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(4, severity_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(description_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, description_); @@ -3036,33 +3638,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.securitycentermanagement.v1.CustomConfig)) { return super.equals(obj); } - com.google.cloud.securitycentermanagement.v1.CustomConfig other = (com.google.cloud.securitycentermanagement.v1.CustomConfig) obj; + com.google.cloud.securitycentermanagement.v1.CustomConfig other = + (com.google.cloud.securitycentermanagement.v1.CustomConfig) obj; if (hasPredicate() != other.hasPredicate()) return false; if (hasPredicate()) { - if (!getPredicate() - .equals(other.getPredicate())) return false; + if (!getPredicate().equals(other.getPredicate())) return false; } if (hasCustomOutput() != other.hasCustomOutput()) return false; if (hasCustomOutput()) { - if (!getCustomOutput() - .equals(other.getCustomOutput())) return false; + if (!getCustomOutput().equals(other.getCustomOutput())) return false; } if (hasResourceSelector() != other.hasResourceSelector()) return false; if (hasResourceSelector()) { - if (!getResourceSelector() - .equals(other.getResourceSelector())) return false; + if (!getResourceSelector().equals(other.getResourceSelector())) return false; } if (severity_ != other.severity_) return false; - if (!getDescription() - .equals(other.getDescription())) return false; - if (!getRecommendation() - .equals(other.getRecommendation())) return false; + if (!getDescription().equals(other.getDescription())) return false; + if (!getRecommendation().equals(other.getRecommendation())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -3098,98 +3696,104 @@ public int hashCode() { } public static com.google.cloud.securitycentermanagement.v1.CustomConfig parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.securitycentermanagement.v1.CustomConfig parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.securitycentermanagement.v1.CustomConfig parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.securitycentermanagement.v1.CustomConfig parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.securitycentermanagement.v1.CustomConfig parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.securitycentermanagement.v1.CustomConfig parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.securitycentermanagement.v1.CustomConfig parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.securitycentermanagement.v1.CustomConfig parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.securitycentermanagement.v1.CustomConfig parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.securitycentermanagement.v1.CustomConfig parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.securitycentermanagement.v1.CustomConfig parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } public static com.google.cloud.securitycentermanagement.v1.CustomConfig parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.securitycentermanagement.v1.CustomConfig parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.securitycentermanagement.v1.CustomConfig parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.securitycentermanagement.v1.CustomConfig prototype) { + + public static Builder newBuilder( + com.google.cloud.securitycentermanagement.v1.CustomConfig prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected 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 the properties in a custom module configuration for Security
    * Health Analytics. Use the custom module configuration to create custom
@@ -3198,33 +3802,32 @@ protected Builder newBuilderForType(
    *
    * Protobuf type {@code google.cloud.securitycentermanagement.v1.CustomConfig}
    */
-  public static final class Builder extends
-      com.google.protobuf.GeneratedMessageV3.Builder implements
+  public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
+      implements
       // @@protoc_insertion_point(builder_implements:google.cloud.securitycentermanagement.v1.CustomConfig)
       com.google.cloud.securitycentermanagement.v1.CustomConfigOrBuilder {
-    public static final com.google.protobuf.Descriptors.Descriptor
-        getDescriptor() {
-      return com.google.cloud.securitycentermanagement.v1.SecurityCenterManagementProto.internal_static_google_cloud_securitycentermanagement_v1_CustomConfig_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+      return com.google.cloud.securitycentermanagement.v1.SecurityCenterManagementProto
+          .internal_static_google_cloud_securitycentermanagement_v1_CustomConfig_descriptor;
     }
 
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.cloud.securitycentermanagement.v1.SecurityCenterManagementProto.internal_static_google_cloud_securitycentermanagement_v1_CustomConfig_fieldAccessorTable
+      return com.google.cloud.securitycentermanagement.v1.SecurityCenterManagementProto
+          .internal_static_google_cloud_securitycentermanagement_v1_CustomConfig_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.cloud.securitycentermanagement.v1.CustomConfig.class, com.google.cloud.securitycentermanagement.v1.CustomConfig.Builder.class);
+              com.google.cloud.securitycentermanagement.v1.CustomConfig.class,
+              com.google.cloud.securitycentermanagement.v1.CustomConfig.Builder.class);
     }
 
     // Construct using com.google.cloud.securitycentermanagement.v1.CustomConfig.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();
@@ -3251,9 +3854,9 @@ public Builder clear() {
     }
 
     @java.lang.Override
-    public com.google.protobuf.Descriptors.Descriptor
-        getDescriptorForType() {
-      return com.google.cloud.securitycentermanagement.v1.SecurityCenterManagementProto.internal_static_google_cloud_securitycentermanagement_v1_CustomConfig_descriptor;
+    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
+      return com.google.cloud.securitycentermanagement.v1.SecurityCenterManagementProto
+          .internal_static_google_cloud_securitycentermanagement_v1_CustomConfig_descriptor;
     }
 
     @java.lang.Override
@@ -3272,8 +3875,11 @@ public com.google.cloud.securitycentermanagement.v1.CustomConfig build() {
 
     @java.lang.Override
     public com.google.cloud.securitycentermanagement.v1.CustomConfig buildPartial() {
-      com.google.cloud.securitycentermanagement.v1.CustomConfig result = new com.google.cloud.securitycentermanagement.v1.CustomConfig(this);
-      if (bitField0_ != 0) { buildPartial0(result); }
+      com.google.cloud.securitycentermanagement.v1.CustomConfig result =
+          new com.google.cloud.securitycentermanagement.v1.CustomConfig(this);
+      if (bitField0_ != 0) {
+        buildPartial0(result);
+      }
       onBuilt();
       return result;
     }
@@ -3281,19 +3887,15 @@ public com.google.cloud.securitycentermanagement.v1.CustomConfig buildPartial()
     private void buildPartial0(com.google.cloud.securitycentermanagement.v1.CustomConfig result) {
       int from_bitField0_ = bitField0_;
       if (((from_bitField0_ & 0x00000001) != 0)) {
-        result.predicate_ = predicateBuilder_ == null
-            ? predicate_
-            : predicateBuilder_.build();
+        result.predicate_ = predicateBuilder_ == null ? predicate_ : predicateBuilder_.build();
       }
       if (((from_bitField0_ & 0x00000002) != 0)) {
-        result.customOutput_ = customOutputBuilder_ == null
-            ? customOutput_
-            : customOutputBuilder_.build();
+        result.customOutput_ =
+            customOutputBuilder_ == null ? customOutput_ : customOutputBuilder_.build();
       }
       if (((from_bitField0_ & 0x00000004) != 0)) {
-        result.resourceSelector_ = resourceSelectorBuilder_ == null
-            ? resourceSelector_
-            : resourceSelectorBuilder_.build();
+        result.resourceSelector_ =
+            resourceSelectorBuilder_ == null ? resourceSelector_ : resourceSelectorBuilder_.build();
       }
       if (((from_bitField0_ & 0x00000008) != 0)) {
         result.severity_ = severity_;
@@ -3310,38 +3912,39 @@ private void buildPartial0(com.google.cloud.securitycentermanagement.v1.CustomCo
     public Builder clone() {
       return super.clone();
     }
+
     @java.lang.Override
     public Builder setField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
       return super.setField(field, value);
     }
+
     @java.lang.Override
-    public Builder clearField(
-        com.google.protobuf.Descriptors.FieldDescriptor field) {
+    public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
       return super.clearField(field);
     }
+
     @java.lang.Override
-    public Builder clearOneof(
-        com.google.protobuf.Descriptors.OneofDescriptor oneof) {
+    public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
       return super.clearOneof(oneof);
     }
+
     @java.lang.Override
     public Builder setRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        int index, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) {
       return super.setRepeatedField(field, index, value);
     }
+
     @java.lang.Override
     public Builder addRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
       return super.addRepeatedField(field, value);
     }
+
     @java.lang.Override
     public Builder mergeFrom(com.google.protobuf.Message other) {
       if (other instanceof com.google.cloud.securitycentermanagement.v1.CustomConfig) {
-        return mergeFrom((com.google.cloud.securitycentermanagement.v1.CustomConfig)other);
+        return mergeFrom((com.google.cloud.securitycentermanagement.v1.CustomConfig) other);
       } else {
         super.mergeFrom(other);
         return this;
@@ -3349,7 +3952,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) {
     }
 
     public Builder mergeFrom(com.google.cloud.securitycentermanagement.v1.CustomConfig other) {
-      if (other == com.google.cloud.securitycentermanagement.v1.CustomConfig.getDefaultInstance()) return this;
+      if (other == com.google.cloud.securitycentermanagement.v1.CustomConfig.getDefaultInstance())
+        return this;
       if (other.hasPredicate()) {
         mergePredicate(other.getPredicate());
       }
@@ -3398,48 +4002,50 @@ public Builder mergeFrom(
             case 0:
               done = true;
               break;
-            case 10: {
-              input.readMessage(
-                  getPredicateFieldBuilder().getBuilder(),
-                  extensionRegistry);
-              bitField0_ |= 0x00000001;
-              break;
-            } // case 10
-            case 18: {
-              input.readMessage(
-                  getCustomOutputFieldBuilder().getBuilder(),
-                  extensionRegistry);
-              bitField0_ |= 0x00000002;
-              break;
-            } // case 18
-            case 26: {
-              input.readMessage(
-                  getResourceSelectorFieldBuilder().getBuilder(),
-                  extensionRegistry);
-              bitField0_ |= 0x00000004;
-              break;
-            } // case 26
-            case 32: {
-              severity_ = input.readEnum();
-              bitField0_ |= 0x00000008;
-              break;
-            } // case 32
-            case 42: {
-              description_ = input.readStringRequireUtf8();
-              bitField0_ |= 0x00000010;
-              break;
-            } // case 42
-            case 50: {
-              recommendation_ = input.readStringRequireUtf8();
-              bitField0_ |= 0x00000020;
-              break;
-            } // case 50
-            default: {
-              if (!super.parseUnknownField(input, extensionRegistry, tag)) {
-                done = true; // was an endgroup tag
-              }
-              break;
-            } // default:
+            case 10:
+              {
+                input.readMessage(getPredicateFieldBuilder().getBuilder(), extensionRegistry);
+                bitField0_ |= 0x00000001;
+                break;
+              } // case 10
+            case 18:
+              {
+                input.readMessage(getCustomOutputFieldBuilder().getBuilder(), extensionRegistry);
+                bitField0_ |= 0x00000002;
+                break;
+              } // case 18
+            case 26:
+              {
+                input.readMessage(
+                    getResourceSelectorFieldBuilder().getBuilder(), extensionRegistry);
+                bitField0_ |= 0x00000004;
+                break;
+              } // case 26
+            case 32:
+              {
+                severity_ = input.readEnum();
+                bitField0_ |= 0x00000008;
+                break;
+              } // case 32
+            case 42:
+              {
+                description_ = input.readStringRequireUtf8();
+                bitField0_ |= 0x00000010;
+                break;
+              } // case 42
+            case 50:
+              {
+                recommendation_ = 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) {
@@ -3449,30 +4055,38 @@ public Builder mergeFrom(
       } // finally
       return this;
     }
+
     private int bitField0_;
 
     private com.google.type.Expr predicate_;
     private com.google.protobuf.SingleFieldBuilderV3<
-        com.google.type.Expr, com.google.type.Expr.Builder, com.google.type.ExprOrBuilder> predicateBuilder_;
+            com.google.type.Expr, com.google.type.Expr.Builder, com.google.type.ExprOrBuilder>
+        predicateBuilder_;
     /**
+     *
+     *
      * 
      * Optional. The CEL expression to evaluate to produce findings. When the
      * expression evaluates to true against a resource, a finding is generated.
      * 
* * .google.type.Expr predicate = 1 [(.google.api.field_behavior) = OPTIONAL]; + * * @return Whether the predicate field is set. */ public boolean hasPredicate() { return ((bitField0_ & 0x00000001) != 0); } /** + * + * *
      * Optional. The CEL expression to evaluate to produce findings. When the
      * expression evaluates to true against a resource, a finding is generated.
      * 
* * .google.type.Expr predicate = 1 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The predicate. */ public com.google.type.Expr getPredicate() { @@ -3483,6 +4097,8 @@ public com.google.type.Expr getPredicate() { } } /** + * + * *
      * Optional. The CEL expression to evaluate to produce findings. When the
      * expression evaluates to true against a resource, a finding is generated.
@@ -3504,6 +4120,8 @@ public Builder setPredicate(com.google.type.Expr value) {
       return this;
     }
     /**
+     *
+     *
      * 
      * Optional. The CEL expression to evaluate to produce findings. When the
      * expression evaluates to true against a resource, a finding is generated.
@@ -3511,8 +4129,7 @@ public Builder setPredicate(com.google.type.Expr value) {
      *
      * .google.type.Expr predicate = 1 [(.google.api.field_behavior) = OPTIONAL];
      */
-    public Builder setPredicate(
-        com.google.type.Expr.Builder builderForValue) {
+    public Builder setPredicate(com.google.type.Expr.Builder builderForValue) {
       if (predicateBuilder_ == null) {
         predicate_ = builderForValue.build();
       } else {
@@ -3523,6 +4140,8 @@ public Builder setPredicate(
       return this;
     }
     /**
+     *
+     *
      * 
      * Optional. The CEL expression to evaluate to produce findings. When the
      * expression evaluates to true against a resource, a finding is generated.
@@ -3532,9 +4151,9 @@ public Builder setPredicate(
      */
     public Builder mergePredicate(com.google.type.Expr value) {
       if (predicateBuilder_ == null) {
-        if (((bitField0_ & 0x00000001) != 0) &&
-          predicate_ != null &&
-          predicate_ != com.google.type.Expr.getDefaultInstance()) {
+        if (((bitField0_ & 0x00000001) != 0)
+            && predicate_ != null
+            && predicate_ != com.google.type.Expr.getDefaultInstance()) {
           getPredicateBuilder().mergeFrom(value);
         } else {
           predicate_ = value;
@@ -3547,6 +4166,8 @@ public Builder mergePredicate(com.google.type.Expr value) {
       return this;
     }
     /**
+     *
+     *
      * 
      * Optional. The CEL expression to evaluate to produce findings. When the
      * expression evaluates to true against a resource, a finding is generated.
@@ -3565,6 +4186,8 @@ public Builder clearPredicate() {
       return this;
     }
     /**
+     *
+     *
      * 
      * Optional. The CEL expression to evaluate to produce findings. When the
      * expression evaluates to true against a resource, a finding is generated.
@@ -3578,6 +4201,8 @@ public com.google.type.Expr.Builder getPredicateBuilder() {
       return getPredicateFieldBuilder().getBuilder();
     }
     /**
+     *
+     *
      * 
      * Optional. The CEL expression to evaluate to produce findings. When the
      * expression evaluates to true against a resource, a finding is generated.
@@ -3589,11 +4214,12 @@ public com.google.type.ExprOrBuilder getPredicateOrBuilder() {
       if (predicateBuilder_ != null) {
         return predicateBuilder_.getMessageOrBuilder();
       } else {
-        return predicate_ == null ?
-            com.google.type.Expr.getDefaultInstance() : predicate_;
+        return predicate_ == null ? com.google.type.Expr.getDefaultInstance() : predicate_;
       }
     }
     /**
+     *
+     *
      * 
      * Optional. The CEL expression to evaluate to produce findings. When the
      * expression evaluates to true against a resource, a finding is generated.
@@ -3602,56 +4228,78 @@ public com.google.type.ExprOrBuilder getPredicateOrBuilder() {
      * .google.type.Expr predicate = 1 [(.google.api.field_behavior) = OPTIONAL];
      */
     private com.google.protobuf.SingleFieldBuilderV3<
-        com.google.type.Expr, com.google.type.Expr.Builder, com.google.type.ExprOrBuilder> 
+            com.google.type.Expr, com.google.type.Expr.Builder, com.google.type.ExprOrBuilder>
         getPredicateFieldBuilder() {
       if (predicateBuilder_ == null) {
-        predicateBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
-            com.google.type.Expr, com.google.type.Expr.Builder, com.google.type.ExprOrBuilder>(
-                getPredicate(),
-                getParentForChildren(),
-                isClean());
+        predicateBuilder_ =
+            new com.google.protobuf.SingleFieldBuilderV3<
+                com.google.type.Expr, com.google.type.Expr.Builder, com.google.type.ExprOrBuilder>(
+                getPredicate(), getParentForChildren(), isClean());
         predicate_ = null;
       }
       return predicateBuilder_;
     }
 
-    private com.google.cloud.securitycentermanagement.v1.CustomConfig.CustomOutputSpec customOutput_;
+    private com.google.cloud.securitycentermanagement.v1.CustomConfig.CustomOutputSpec
+        customOutput_;
     private com.google.protobuf.SingleFieldBuilderV3<
-        com.google.cloud.securitycentermanagement.v1.CustomConfig.CustomOutputSpec, com.google.cloud.securitycentermanagement.v1.CustomConfig.CustomOutputSpec.Builder, com.google.cloud.securitycentermanagement.v1.CustomConfig.CustomOutputSpecOrBuilder> customOutputBuilder_;
+            com.google.cloud.securitycentermanagement.v1.CustomConfig.CustomOutputSpec,
+            com.google.cloud.securitycentermanagement.v1.CustomConfig.CustomOutputSpec.Builder,
+            com.google.cloud.securitycentermanagement.v1.CustomConfig.CustomOutputSpecOrBuilder>
+        customOutputBuilder_;
     /**
+     *
+     *
      * 
      * Optional. Custom output properties.
      * 
* - * .google.cloud.securitycentermanagement.v1.CustomConfig.CustomOutputSpec custom_output = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.securitycentermanagement.v1.CustomConfig.CustomOutputSpec custom_output = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return Whether the customOutput field is set. */ public boolean hasCustomOutput() { return ((bitField0_ & 0x00000002) != 0); } /** + * + * *
      * Optional. Custom output properties.
      * 
* - * .google.cloud.securitycentermanagement.v1.CustomConfig.CustomOutputSpec custom_output = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.securitycentermanagement.v1.CustomConfig.CustomOutputSpec custom_output = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return The customOutput. */ - public com.google.cloud.securitycentermanagement.v1.CustomConfig.CustomOutputSpec getCustomOutput() { + public com.google.cloud.securitycentermanagement.v1.CustomConfig.CustomOutputSpec + getCustomOutput() { if (customOutputBuilder_ == null) { - return customOutput_ == null ? com.google.cloud.securitycentermanagement.v1.CustomConfig.CustomOutputSpec.getDefaultInstance() : customOutput_; + return customOutput_ == null + ? com.google.cloud.securitycentermanagement.v1.CustomConfig.CustomOutputSpec + .getDefaultInstance() + : customOutput_; } else { return customOutputBuilder_.getMessage(); } } /** + * + * *
      * Optional. Custom output properties.
      * 
* - * .google.cloud.securitycentermanagement.v1.CustomConfig.CustomOutputSpec custom_output = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.securitycentermanagement.v1.CustomConfig.CustomOutputSpec custom_output = 2 [(.google.api.field_behavior) = OPTIONAL]; + * */ - public Builder setCustomOutput(com.google.cloud.securitycentermanagement.v1.CustomConfig.CustomOutputSpec value) { + public Builder setCustomOutput( + com.google.cloud.securitycentermanagement.v1.CustomConfig.CustomOutputSpec value) { if (customOutputBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -3665,14 +4313,19 @@ public Builder setCustomOutput(com.google.cloud.securitycentermanagement.v1.Cust return this; } /** + * + * *
      * Optional. Custom output properties.
      * 
* - * .google.cloud.securitycentermanagement.v1.CustomConfig.CustomOutputSpec custom_output = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.securitycentermanagement.v1.CustomConfig.CustomOutputSpec custom_output = 2 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder setCustomOutput( - com.google.cloud.securitycentermanagement.v1.CustomConfig.CustomOutputSpec.Builder builderForValue) { + com.google.cloud.securitycentermanagement.v1.CustomConfig.CustomOutputSpec.Builder + builderForValue) { if (customOutputBuilder_ == null) { customOutput_ = builderForValue.build(); } else { @@ -3683,17 +4336,24 @@ public Builder setCustomOutput( return this; } /** + * + * *
      * Optional. Custom output properties.
      * 
* - * .google.cloud.securitycentermanagement.v1.CustomConfig.CustomOutputSpec custom_output = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.securitycentermanagement.v1.CustomConfig.CustomOutputSpec custom_output = 2 [(.google.api.field_behavior) = OPTIONAL]; + * */ - public Builder mergeCustomOutput(com.google.cloud.securitycentermanagement.v1.CustomConfig.CustomOutputSpec value) { + public Builder mergeCustomOutput( + com.google.cloud.securitycentermanagement.v1.CustomConfig.CustomOutputSpec value) { if (customOutputBuilder_ == null) { - if (((bitField0_ & 0x00000002) != 0) && - customOutput_ != null && - customOutput_ != com.google.cloud.securitycentermanagement.v1.CustomConfig.CustomOutputSpec.getDefaultInstance()) { + if (((bitField0_ & 0x00000002) != 0) + && customOutput_ != null + && customOutput_ + != com.google.cloud.securitycentermanagement.v1.CustomConfig.CustomOutputSpec + .getDefaultInstance()) { getCustomOutputBuilder().mergeFrom(value); } else { customOutput_ = value; @@ -3706,11 +4366,15 @@ public Builder mergeCustomOutput(com.google.cloud.securitycentermanagement.v1.Cu return this; } /** + * + * *
      * Optional. Custom output properties.
      * 
* - * .google.cloud.securitycentermanagement.v1.CustomConfig.CustomOutputSpec custom_output = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.securitycentermanagement.v1.CustomConfig.CustomOutputSpec custom_output = 2 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder clearCustomOutput() { bitField0_ = (bitField0_ & ~0x00000002); @@ -3723,96 +4387,139 @@ public Builder clearCustomOutput() { return this; } /** + * + * *
      * Optional. Custom output properties.
      * 
* - * .google.cloud.securitycentermanagement.v1.CustomConfig.CustomOutputSpec custom_output = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.securitycentermanagement.v1.CustomConfig.CustomOutputSpec custom_output = 2 [(.google.api.field_behavior) = OPTIONAL]; + * */ - public com.google.cloud.securitycentermanagement.v1.CustomConfig.CustomOutputSpec.Builder getCustomOutputBuilder() { + public com.google.cloud.securitycentermanagement.v1.CustomConfig.CustomOutputSpec.Builder + getCustomOutputBuilder() { bitField0_ |= 0x00000002; onChanged(); return getCustomOutputFieldBuilder().getBuilder(); } /** + * + * *
      * Optional. Custom output properties.
      * 
* - * .google.cloud.securitycentermanagement.v1.CustomConfig.CustomOutputSpec custom_output = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.securitycentermanagement.v1.CustomConfig.CustomOutputSpec custom_output = 2 [(.google.api.field_behavior) = OPTIONAL]; + * */ - public com.google.cloud.securitycentermanagement.v1.CustomConfig.CustomOutputSpecOrBuilder getCustomOutputOrBuilder() { + public com.google.cloud.securitycentermanagement.v1.CustomConfig.CustomOutputSpecOrBuilder + getCustomOutputOrBuilder() { if (customOutputBuilder_ != null) { return customOutputBuilder_.getMessageOrBuilder(); } else { - return customOutput_ == null ? - com.google.cloud.securitycentermanagement.v1.CustomConfig.CustomOutputSpec.getDefaultInstance() : customOutput_; + return customOutput_ == null + ? com.google.cloud.securitycentermanagement.v1.CustomConfig.CustomOutputSpec + .getDefaultInstance() + : customOutput_; } } /** + * + * *
      * Optional. Custom output properties.
      * 
* - * .google.cloud.securitycentermanagement.v1.CustomConfig.CustomOutputSpec custom_output = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.securitycentermanagement.v1.CustomConfig.CustomOutputSpec custom_output = 2 [(.google.api.field_behavior) = OPTIONAL]; + * */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.securitycentermanagement.v1.CustomConfig.CustomOutputSpec, com.google.cloud.securitycentermanagement.v1.CustomConfig.CustomOutputSpec.Builder, com.google.cloud.securitycentermanagement.v1.CustomConfig.CustomOutputSpecOrBuilder> + com.google.cloud.securitycentermanagement.v1.CustomConfig.CustomOutputSpec, + com.google.cloud.securitycentermanagement.v1.CustomConfig.CustomOutputSpec.Builder, + com.google.cloud.securitycentermanagement.v1.CustomConfig.CustomOutputSpecOrBuilder> getCustomOutputFieldBuilder() { if (customOutputBuilder_ == null) { - customOutputBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.securitycentermanagement.v1.CustomConfig.CustomOutputSpec, com.google.cloud.securitycentermanagement.v1.CustomConfig.CustomOutputSpec.Builder, com.google.cloud.securitycentermanagement.v1.CustomConfig.CustomOutputSpecOrBuilder>( - getCustomOutput(), - getParentForChildren(), - isClean()); + customOutputBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.securitycentermanagement.v1.CustomConfig.CustomOutputSpec, + com.google.cloud.securitycentermanagement.v1.CustomConfig.CustomOutputSpec.Builder, + com.google.cloud.securitycentermanagement.v1.CustomConfig + .CustomOutputSpecOrBuilder>( + getCustomOutput(), getParentForChildren(), isClean()); customOutput_ = null; } return customOutputBuilder_; } - private com.google.cloud.securitycentermanagement.v1.CustomConfig.ResourceSelector resourceSelector_; + private com.google.cloud.securitycentermanagement.v1.CustomConfig.ResourceSelector + resourceSelector_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.securitycentermanagement.v1.CustomConfig.ResourceSelector, com.google.cloud.securitycentermanagement.v1.CustomConfig.ResourceSelector.Builder, com.google.cloud.securitycentermanagement.v1.CustomConfig.ResourceSelectorOrBuilder> resourceSelectorBuilder_; + com.google.cloud.securitycentermanagement.v1.CustomConfig.ResourceSelector, + com.google.cloud.securitycentermanagement.v1.CustomConfig.ResourceSelector.Builder, + com.google.cloud.securitycentermanagement.v1.CustomConfig.ResourceSelectorOrBuilder> + resourceSelectorBuilder_; /** + * + * *
      * Optional. The CAI resource types that the custom module operates on (see
      * go/gcp-cai-doc/supported-asset-types). Each custom module can specify up to
      * 5 resource types.
      * 
* - * .google.cloud.securitycentermanagement.v1.CustomConfig.ResourceSelector resource_selector = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.securitycentermanagement.v1.CustomConfig.ResourceSelector resource_selector = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return Whether the resourceSelector field is set. */ public boolean hasResourceSelector() { return ((bitField0_ & 0x00000004) != 0); } /** + * + * *
      * Optional. The CAI resource types that the custom module operates on (see
      * go/gcp-cai-doc/supported-asset-types). Each custom module can specify up to
      * 5 resource types.
      * 
* - * .google.cloud.securitycentermanagement.v1.CustomConfig.ResourceSelector resource_selector = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.securitycentermanagement.v1.CustomConfig.ResourceSelector resource_selector = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return The resourceSelector. */ - public com.google.cloud.securitycentermanagement.v1.CustomConfig.ResourceSelector getResourceSelector() { + public com.google.cloud.securitycentermanagement.v1.CustomConfig.ResourceSelector + getResourceSelector() { if (resourceSelectorBuilder_ == null) { - return resourceSelector_ == null ? com.google.cloud.securitycentermanagement.v1.CustomConfig.ResourceSelector.getDefaultInstance() : resourceSelector_; + return resourceSelector_ == null + ? com.google.cloud.securitycentermanagement.v1.CustomConfig.ResourceSelector + .getDefaultInstance() + : resourceSelector_; } else { return resourceSelectorBuilder_.getMessage(); } } /** + * + * *
      * Optional. The CAI resource types that the custom module operates on (see
      * go/gcp-cai-doc/supported-asset-types). Each custom module can specify up to
      * 5 resource types.
      * 
* - * .google.cloud.securitycentermanagement.v1.CustomConfig.ResourceSelector resource_selector = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.securitycentermanagement.v1.CustomConfig.ResourceSelector resource_selector = 3 [(.google.api.field_behavior) = OPTIONAL]; + * */ - public Builder setResourceSelector(com.google.cloud.securitycentermanagement.v1.CustomConfig.ResourceSelector value) { + public Builder setResourceSelector( + com.google.cloud.securitycentermanagement.v1.CustomConfig.ResourceSelector value) { if (resourceSelectorBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -3826,16 +4533,21 @@ public Builder setResourceSelector(com.google.cloud.securitycentermanagement.v1. return this; } /** + * + * *
      * Optional. The CAI resource types that the custom module operates on (see
      * go/gcp-cai-doc/supported-asset-types). Each custom module can specify up to
      * 5 resource types.
      * 
* - * .google.cloud.securitycentermanagement.v1.CustomConfig.ResourceSelector resource_selector = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.securitycentermanagement.v1.CustomConfig.ResourceSelector resource_selector = 3 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder setResourceSelector( - com.google.cloud.securitycentermanagement.v1.CustomConfig.ResourceSelector.Builder builderForValue) { + com.google.cloud.securitycentermanagement.v1.CustomConfig.ResourceSelector.Builder + builderForValue) { if (resourceSelectorBuilder_ == null) { resourceSelector_ = builderForValue.build(); } else { @@ -3846,19 +4558,26 @@ public Builder setResourceSelector( return this; } /** + * + * *
      * Optional. The CAI resource types that the custom module operates on (see
      * go/gcp-cai-doc/supported-asset-types). Each custom module can specify up to
      * 5 resource types.
      * 
* - * .google.cloud.securitycentermanagement.v1.CustomConfig.ResourceSelector resource_selector = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.securitycentermanagement.v1.CustomConfig.ResourceSelector resource_selector = 3 [(.google.api.field_behavior) = OPTIONAL]; + * */ - public Builder mergeResourceSelector(com.google.cloud.securitycentermanagement.v1.CustomConfig.ResourceSelector value) { + public Builder mergeResourceSelector( + com.google.cloud.securitycentermanagement.v1.CustomConfig.ResourceSelector value) { if (resourceSelectorBuilder_ == null) { - if (((bitField0_ & 0x00000004) != 0) && - resourceSelector_ != null && - resourceSelector_ != com.google.cloud.securitycentermanagement.v1.CustomConfig.ResourceSelector.getDefaultInstance()) { + if (((bitField0_ & 0x00000004) != 0) + && resourceSelector_ != null + && resourceSelector_ + != com.google.cloud.securitycentermanagement.v1.CustomConfig.ResourceSelector + .getDefaultInstance()) { getResourceSelectorBuilder().mergeFrom(value); } else { resourceSelector_ = value; @@ -3871,13 +4590,17 @@ public Builder mergeResourceSelector(com.google.cloud.securitycentermanagement.v return this; } /** + * + * *
      * Optional. The CAI resource types that the custom module operates on (see
      * go/gcp-cai-doc/supported-asset-types). Each custom module can specify up to
      * 5 resource types.
      * 
* - * .google.cloud.securitycentermanagement.v1.CustomConfig.ResourceSelector resource_selector = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.securitycentermanagement.v1.CustomConfig.ResourceSelector resource_selector = 3 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder clearResourceSelector() { bitField0_ = (bitField0_ & ~0x00000004); @@ -3890,54 +4613,74 @@ public Builder clearResourceSelector() { return this; } /** + * + * *
      * Optional. The CAI resource types that the custom module operates on (see
      * go/gcp-cai-doc/supported-asset-types). Each custom module can specify up to
      * 5 resource types.
      * 
* - * .google.cloud.securitycentermanagement.v1.CustomConfig.ResourceSelector resource_selector = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.securitycentermanagement.v1.CustomConfig.ResourceSelector resource_selector = 3 [(.google.api.field_behavior) = OPTIONAL]; + * */ - public com.google.cloud.securitycentermanagement.v1.CustomConfig.ResourceSelector.Builder getResourceSelectorBuilder() { + public com.google.cloud.securitycentermanagement.v1.CustomConfig.ResourceSelector.Builder + getResourceSelectorBuilder() { bitField0_ |= 0x00000004; onChanged(); return getResourceSelectorFieldBuilder().getBuilder(); } /** + * + * *
      * Optional. The CAI resource types that the custom module operates on (see
      * go/gcp-cai-doc/supported-asset-types). Each custom module can specify up to
      * 5 resource types.
      * 
* - * .google.cloud.securitycentermanagement.v1.CustomConfig.ResourceSelector resource_selector = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.securitycentermanagement.v1.CustomConfig.ResourceSelector resource_selector = 3 [(.google.api.field_behavior) = OPTIONAL]; + * */ - public com.google.cloud.securitycentermanagement.v1.CustomConfig.ResourceSelectorOrBuilder getResourceSelectorOrBuilder() { + public com.google.cloud.securitycentermanagement.v1.CustomConfig.ResourceSelectorOrBuilder + getResourceSelectorOrBuilder() { if (resourceSelectorBuilder_ != null) { return resourceSelectorBuilder_.getMessageOrBuilder(); } else { - return resourceSelector_ == null ? - com.google.cloud.securitycentermanagement.v1.CustomConfig.ResourceSelector.getDefaultInstance() : resourceSelector_; + return resourceSelector_ == null + ? com.google.cloud.securitycentermanagement.v1.CustomConfig.ResourceSelector + .getDefaultInstance() + : resourceSelector_; } } /** + * + * *
      * Optional. The CAI resource types that the custom module operates on (see
      * go/gcp-cai-doc/supported-asset-types). Each custom module can specify up to
      * 5 resource types.
      * 
* - * .google.cloud.securitycentermanagement.v1.CustomConfig.ResourceSelector resource_selector = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.securitycentermanagement.v1.CustomConfig.ResourceSelector resource_selector = 3 [(.google.api.field_behavior) = OPTIONAL]; + * */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.securitycentermanagement.v1.CustomConfig.ResourceSelector, com.google.cloud.securitycentermanagement.v1.CustomConfig.ResourceSelector.Builder, com.google.cloud.securitycentermanagement.v1.CustomConfig.ResourceSelectorOrBuilder> + com.google.cloud.securitycentermanagement.v1.CustomConfig.ResourceSelector, + com.google.cloud.securitycentermanagement.v1.CustomConfig.ResourceSelector.Builder, + com.google.cloud.securitycentermanagement.v1.CustomConfig.ResourceSelectorOrBuilder> getResourceSelectorFieldBuilder() { if (resourceSelectorBuilder_ == null) { - resourceSelectorBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.securitycentermanagement.v1.CustomConfig.ResourceSelector, com.google.cloud.securitycentermanagement.v1.CustomConfig.ResourceSelector.Builder, com.google.cloud.securitycentermanagement.v1.CustomConfig.ResourceSelectorOrBuilder>( - getResourceSelector(), - getParentForChildren(), - isClean()); + resourceSelectorBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.securitycentermanagement.v1.CustomConfig.ResourceSelector, + com.google.cloud.securitycentermanagement.v1.CustomConfig.ResourceSelector.Builder, + com.google.cloud.securitycentermanagement.v1.CustomConfig + .ResourceSelectorOrBuilder>( + getResourceSelector(), getParentForChildren(), isClean()); resourceSelector_ = null; } return resourceSelectorBuilder_; @@ -3945,22 +4688,33 @@ public com.google.cloud.securitycentermanagement.v1.CustomConfig.ResourceSelecto private int severity_ = 0; /** + * + * *
      * Optional. The severity to assign to findings generated by the module.
      * 
* - * .google.cloud.securitycentermanagement.v1.CustomConfig.Severity severity = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.securitycentermanagement.v1.CustomConfig.Severity severity = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return The enum numeric value on the wire for severity. */ - @java.lang.Override public int getSeverityValue() { + @java.lang.Override + public int getSeverityValue() { return severity_; } /** + * + * *
      * Optional. The severity to assign to findings generated by the module.
      * 
* - * .google.cloud.securitycentermanagement.v1.CustomConfig.Severity severity = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.securitycentermanagement.v1.CustomConfig.Severity severity = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @param value The enum numeric value on the wire for severity to set. * @return This builder for chaining. */ @@ -3971,28 +4725,42 @@ public Builder setSeverityValue(int value) { return this; } /** + * + * *
      * Optional. The severity to assign to findings generated by the module.
      * 
* - * .google.cloud.securitycentermanagement.v1.CustomConfig.Severity severity = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.securitycentermanagement.v1.CustomConfig.Severity severity = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return The severity. */ @java.lang.Override public com.google.cloud.securitycentermanagement.v1.CustomConfig.Severity getSeverity() { - com.google.cloud.securitycentermanagement.v1.CustomConfig.Severity result = com.google.cloud.securitycentermanagement.v1.CustomConfig.Severity.forNumber(severity_); - return result == null ? com.google.cloud.securitycentermanagement.v1.CustomConfig.Severity.UNRECOGNIZED : result; + com.google.cloud.securitycentermanagement.v1.CustomConfig.Severity result = + com.google.cloud.securitycentermanagement.v1.CustomConfig.Severity.forNumber(severity_); + return result == null + ? com.google.cloud.securitycentermanagement.v1.CustomConfig.Severity.UNRECOGNIZED + : result; } /** + * + * *
      * Optional. The severity to assign to findings generated by the module.
      * 
* - * .google.cloud.securitycentermanagement.v1.CustomConfig.Severity severity = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.securitycentermanagement.v1.CustomConfig.Severity severity = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @param value The severity to set. * @return This builder for chaining. */ - public Builder setSeverity(com.google.cloud.securitycentermanagement.v1.CustomConfig.Severity value) { + public Builder setSeverity( + com.google.cloud.securitycentermanagement.v1.CustomConfig.Severity value) { if (value == null) { throw new NullPointerException(); } @@ -4002,11 +4770,16 @@ public Builder setSeverity(com.google.cloud.securitycentermanagement.v1.CustomCo return this; } /** + * + * *
      * Optional. The severity to assign to findings generated by the module.
      * 
* - * .google.cloud.securitycentermanagement.v1.CustomConfig.Severity severity = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.securitycentermanagement.v1.CustomConfig.Severity severity = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return This builder for chaining. */ public Builder clearSeverity() { @@ -4018,6 +4791,8 @@ public Builder clearSeverity() { private java.lang.Object description_ = ""; /** + * + * *
      * Optional. Text that describes the vulnerability or misconfiguration that
      * the custom module detects. This explanation is returned with each finding
@@ -4026,13 +4801,13 @@ public Builder clearSeverity() {
      * 
* * string description = 5 [(.google.api.field_behavior) = OPTIONAL]; + * * @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; @@ -4041,6 +4816,8 @@ public java.lang.String getDescription() { } } /** + * + * *
      * Optional. Text that describes the vulnerability or misconfiguration that
      * the custom module detects. This explanation is returned with each finding
@@ -4049,15 +4826,14 @@ public java.lang.String getDescription() {
      * 
* * string description = 5 [(.google.api.field_behavior) = OPTIONAL]; + * * @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 { @@ -4065,6 +4841,8 @@ public java.lang.String getDescription() { } } /** + * + * *
      * Optional. Text that describes the vulnerability or misconfiguration that
      * the custom module detects. This explanation is returned with each finding
@@ -4073,18 +4851,22 @@ public java.lang.String getDescription() {
      * 
* * string description = 5 [(.google.api.field_behavior) = OPTIONAL]; + * * @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_ |= 0x00000010; onChanged(); return this; } /** + * + * *
      * Optional. Text that describes the vulnerability or misconfiguration that
      * the custom module detects. This explanation is returned with each finding
@@ -4093,6 +4875,7 @@ public Builder setDescription(
      * 
* * string description = 5 [(.google.api.field_behavior) = OPTIONAL]; + * * @return This builder for chaining. */ public Builder clearDescription() { @@ -4102,6 +4885,8 @@ public Builder clearDescription() { return this; } /** + * + * *
      * Optional. Text that describes the vulnerability or misconfiguration that
      * the custom module detects. This explanation is returned with each finding
@@ -4110,12 +4895,14 @@ public Builder clearDescription() {
      * 
* * string description = 5 [(.google.api.field_behavior) = OPTIONAL]; + * * @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_ |= 0x00000010; @@ -4125,6 +4912,8 @@ public Builder setDescriptionBytes( private java.lang.Object recommendation_ = ""; /** + * + * *
      * Optional. An explanation of the recommended steps that security teams can
      * take to resolve the detected issue. This explanation is returned with each
@@ -4133,13 +4922,13 @@ public Builder setDescriptionBytes(
      * 
* * string recommendation = 6 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The recommendation. */ public java.lang.String getRecommendation() { java.lang.Object ref = recommendation_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); recommendation_ = s; return s; @@ -4148,6 +4937,8 @@ public java.lang.String getRecommendation() { } } /** + * + * *
      * Optional. An explanation of the recommended steps that security teams can
      * take to resolve the detected issue. This explanation is returned with each
@@ -4156,15 +4947,14 @@ public java.lang.String getRecommendation() {
      * 
* * string recommendation = 6 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The bytes for recommendation. */ - public com.google.protobuf.ByteString - getRecommendationBytes() { + public com.google.protobuf.ByteString getRecommendationBytes() { java.lang.Object ref = recommendation_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); recommendation_ = b; return b; } else { @@ -4172,6 +4962,8 @@ public java.lang.String getRecommendation() { } } /** + * + * *
      * Optional. An explanation of the recommended steps that security teams can
      * take to resolve the detected issue. This explanation is returned with each
@@ -4180,18 +4972,22 @@ public java.lang.String getRecommendation() {
      * 
* * string recommendation = 6 [(.google.api.field_behavior) = OPTIONAL]; + * * @param value The recommendation to set. * @return This builder for chaining. */ - public Builder setRecommendation( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setRecommendation(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } recommendation_ = value; bitField0_ |= 0x00000020; onChanged(); return this; } /** + * + * *
      * Optional. An explanation of the recommended steps that security teams can
      * take to resolve the detected issue. This explanation is returned with each
@@ -4200,6 +4996,7 @@ public Builder setRecommendation(
      * 
* * string recommendation = 6 [(.google.api.field_behavior) = OPTIONAL]; + * * @return This builder for chaining. */ public Builder clearRecommendation() { @@ -4209,6 +5006,8 @@ public Builder clearRecommendation() { return this; } /** + * + * *
      * Optional. An explanation of the recommended steps that security teams can
      * take to resolve the detected issue. This explanation is returned with each
@@ -4217,21 +5016,23 @@ public Builder clearRecommendation() {
      * 
* * string recommendation = 6 [(.google.api.field_behavior) = OPTIONAL]; + * * @param value The bytes for recommendation to set. * @return This builder for chaining. */ - public Builder setRecommendationBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder setRecommendationBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); recommendation_ = 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); } @@ -4241,12 +5042,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.securitycentermanagement.v1.CustomConfig) } // @@protoc_insertion_point(class_scope:google.cloud.securitycentermanagement.v1.CustomConfig) private static final com.google.cloud.securitycentermanagement.v1.CustomConfig DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.securitycentermanagement.v1.CustomConfig(); } @@ -4255,27 +5056,27 @@ public static com.google.cloud.securitycentermanagement.v1.CustomConfig getDefau return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public CustomConfig parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public CustomConfig parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -4290,6 +5091,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.securitycentermanagement.v1.CustomConfig getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/java-securitycentermanagement/v1/proto-google-cloud-securitycentermanagement-v1/src/main/java/com/google/cloud/securitycentermanagement/v1/CustomConfigOrBuilder.java b/java-securitycentermanagement/proto-google-cloud-securitycentermanagement-v1/src/main/java/com/google/cloud/securitycentermanagement/v1/CustomConfigOrBuilder.java similarity index 68% rename from owl-bot-staging/java-securitycentermanagement/v1/proto-google-cloud-securitycentermanagement-v1/src/main/java/com/google/cloud/securitycentermanagement/v1/CustomConfigOrBuilder.java rename to java-securitycentermanagement/proto-google-cloud-securitycentermanagement-v1/src/main/java/com/google/cloud/securitycentermanagement/v1/CustomConfigOrBuilder.java index 74a438d7239a..c235628ee30b 100644 --- a/owl-bot-staging/java-securitycentermanagement/v1/proto-google-cloud-securitycentermanagement-v1/src/main/java/com/google/cloud/securitycentermanagement/v1/CustomConfigOrBuilder.java +++ b/java-securitycentermanagement/proto-google-cloud-securitycentermanagement-v1/src/main/java/com/google/cloud/securitycentermanagement/v1/CustomConfigOrBuilder.java @@ -1,33 +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/securitycentermanagement/v1/security_center_management.proto package com.google.cloud.securitycentermanagement.v1; -public interface CustomConfigOrBuilder extends +public interface CustomConfigOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.securitycentermanagement.v1.CustomConfig) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * Optional. The CEL expression to evaluate to produce findings. When the
    * expression evaluates to true against a resource, a finding is generated.
    * 
* * .google.type.Expr predicate = 1 [(.google.api.field_behavior) = OPTIONAL]; + * * @return Whether the predicate field is set. */ boolean hasPredicate(); /** + * + * *
    * Optional. The CEL expression to evaluate to produce findings. When the
    * expression evaluates to true against a resource, a finding is generated.
    * 
* * .google.type.Expr predicate = 1 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The predicate. */ com.google.type.Expr getPredicate(); /** + * + * *
    * Optional. The CEL expression to evaluate to produce findings. When the
    * expression evaluates to true against a resource, a finding is generated.
@@ -38,85 +62,127 @@ public interface CustomConfigOrBuilder extends
   com.google.type.ExprOrBuilder getPredicateOrBuilder();
 
   /**
+   *
+   *
    * 
    * Optional. Custom output properties.
    * 
* - * .google.cloud.securitycentermanagement.v1.CustomConfig.CustomOutputSpec custom_output = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.securitycentermanagement.v1.CustomConfig.CustomOutputSpec custom_output = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return Whether the customOutput field is set. */ boolean hasCustomOutput(); /** + * + * *
    * Optional. Custom output properties.
    * 
* - * .google.cloud.securitycentermanagement.v1.CustomConfig.CustomOutputSpec custom_output = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.securitycentermanagement.v1.CustomConfig.CustomOutputSpec custom_output = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return The customOutput. */ com.google.cloud.securitycentermanagement.v1.CustomConfig.CustomOutputSpec getCustomOutput(); /** + * + * *
    * Optional. Custom output properties.
    * 
* - * .google.cloud.securitycentermanagement.v1.CustomConfig.CustomOutputSpec custom_output = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.securitycentermanagement.v1.CustomConfig.CustomOutputSpec custom_output = 2 [(.google.api.field_behavior) = OPTIONAL]; + * */ - com.google.cloud.securitycentermanagement.v1.CustomConfig.CustomOutputSpecOrBuilder getCustomOutputOrBuilder(); + com.google.cloud.securitycentermanagement.v1.CustomConfig.CustomOutputSpecOrBuilder + getCustomOutputOrBuilder(); /** + * + * *
    * Optional. The CAI resource types that the custom module operates on (see
    * go/gcp-cai-doc/supported-asset-types). Each custom module can specify up to
    * 5 resource types.
    * 
* - * .google.cloud.securitycentermanagement.v1.CustomConfig.ResourceSelector resource_selector = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.securitycentermanagement.v1.CustomConfig.ResourceSelector resource_selector = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return Whether the resourceSelector field is set. */ boolean hasResourceSelector(); /** + * + * *
    * Optional. The CAI resource types that the custom module operates on (see
    * go/gcp-cai-doc/supported-asset-types). Each custom module can specify up to
    * 5 resource types.
    * 
* - * .google.cloud.securitycentermanagement.v1.CustomConfig.ResourceSelector resource_selector = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.securitycentermanagement.v1.CustomConfig.ResourceSelector resource_selector = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return The resourceSelector. */ com.google.cloud.securitycentermanagement.v1.CustomConfig.ResourceSelector getResourceSelector(); /** + * + * *
    * Optional. The CAI resource types that the custom module operates on (see
    * go/gcp-cai-doc/supported-asset-types). Each custom module can specify up to
    * 5 resource types.
    * 
* - * .google.cloud.securitycentermanagement.v1.CustomConfig.ResourceSelector resource_selector = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.securitycentermanagement.v1.CustomConfig.ResourceSelector resource_selector = 3 [(.google.api.field_behavior) = OPTIONAL]; + * */ - com.google.cloud.securitycentermanagement.v1.CustomConfig.ResourceSelectorOrBuilder getResourceSelectorOrBuilder(); + com.google.cloud.securitycentermanagement.v1.CustomConfig.ResourceSelectorOrBuilder + getResourceSelectorOrBuilder(); /** + * + * *
    * Optional. The severity to assign to findings generated by the module.
    * 
* - * .google.cloud.securitycentermanagement.v1.CustomConfig.Severity severity = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.securitycentermanagement.v1.CustomConfig.Severity severity = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return The enum numeric value on the wire for severity. */ int getSeverityValue(); /** + * + * *
    * Optional. The severity to assign to findings generated by the module.
    * 
* - * .google.cloud.securitycentermanagement.v1.CustomConfig.Severity severity = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.securitycentermanagement.v1.CustomConfig.Severity severity = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return The severity. */ com.google.cloud.securitycentermanagement.v1.CustomConfig.Severity getSeverity(); /** + * + * *
    * Optional. Text that describes the vulnerability or misconfiguration that
    * the custom module detects. This explanation is returned with each finding
@@ -125,10 +191,13 @@ public interface CustomConfigOrBuilder extends
    * 
* * string description = 5 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The description. */ java.lang.String getDescription(); /** + * + * *
    * Optional. Text that describes the vulnerability or misconfiguration that
    * the custom module detects. This explanation is returned with each finding
@@ -137,12 +206,14 @@ public interface CustomConfigOrBuilder extends
    * 
* * string description = 5 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The bytes for description. */ - com.google.protobuf.ByteString - getDescriptionBytes(); + com.google.protobuf.ByteString getDescriptionBytes(); /** + * + * *
    * Optional. An explanation of the recommended steps that security teams can
    * take to resolve the detected issue. This explanation is returned with each
@@ -151,10 +222,13 @@ public interface CustomConfigOrBuilder extends
    * 
* * string recommendation = 6 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The recommendation. */ java.lang.String getRecommendation(); /** + * + * *
    * Optional. An explanation of the recommended steps that security teams can
    * take to resolve the detected issue. This explanation is returned with each
@@ -163,8 +237,8 @@ public interface CustomConfigOrBuilder extends
    * 
* * string recommendation = 6 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The bytes for recommendation. */ - com.google.protobuf.ByteString - getRecommendationBytes(); + com.google.protobuf.ByteString getRecommendationBytes(); } diff --git a/owl-bot-staging/java-securitycentermanagement/v1/proto-google-cloud-securitycentermanagement-v1/src/main/java/com/google/cloud/securitycentermanagement/v1/DeleteEventThreatDetectionCustomModuleRequest.java b/java-securitycentermanagement/proto-google-cloud-securitycentermanagement-v1/src/main/java/com/google/cloud/securitycentermanagement/v1/DeleteEventThreatDetectionCustomModuleRequest.java similarity index 54% rename from owl-bot-staging/java-securitycentermanagement/v1/proto-google-cloud-securitycentermanagement-v1/src/main/java/com/google/cloud/securitycentermanagement/v1/DeleteEventThreatDetectionCustomModuleRequest.java rename to java-securitycentermanagement/proto-google-cloud-securitycentermanagement-v1/src/main/java/com/google/cloud/securitycentermanagement/v1/DeleteEventThreatDetectionCustomModuleRequest.java index 347d6baa4612..22111294de65 100644 --- a/owl-bot-staging/java-securitycentermanagement/v1/proto-google-cloud-securitycentermanagement-v1/src/main/java/com/google/cloud/securitycentermanagement/v1/DeleteEventThreatDetectionCustomModuleRequest.java +++ b/java-securitycentermanagement/proto-google-cloud-securitycentermanagement-v1/src/main/java/com/google/cloud/securitycentermanagement/v1/DeleteEventThreatDetectionCustomModuleRequest.java @@ -1,52 +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/securitycentermanagement/v1/security_center_management.proto package com.google.cloud.securitycentermanagement.v1; /** + * + * *
  * Message for deleting a EventThreatDetectionCustomModule
  * 
* - * Protobuf type {@code google.cloud.securitycentermanagement.v1.DeleteEventThreatDetectionCustomModuleRequest} + * Protobuf type {@code + * google.cloud.securitycentermanagement.v1.DeleteEventThreatDetectionCustomModuleRequest} */ -public final class DeleteEventThreatDetectionCustomModuleRequest extends - com.google.protobuf.GeneratedMessageV3 implements +public final class DeleteEventThreatDetectionCustomModuleRequest + extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.securitycentermanagement.v1.DeleteEventThreatDetectionCustomModuleRequest) DeleteEventThreatDetectionCustomModuleRequestOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use DeleteEventThreatDetectionCustomModuleRequest.newBuilder() to construct. - private DeleteEventThreatDetectionCustomModuleRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + private DeleteEventThreatDetectionCustomModuleRequest( + com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private DeleteEventThreatDetectionCustomModuleRequest() { name_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new DeleteEventThreatDetectionCustomModuleRequest(); } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.securitycentermanagement.v1.SecurityCenterManagementProto.internal_static_google_cloud_securitycentermanagement_v1_DeleteEventThreatDetectionCustomModuleRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.securitycentermanagement.v1.SecurityCenterManagementProto + .internal_static_google_cloud_securitycentermanagement_v1_DeleteEventThreatDetectionCustomModuleRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.securitycentermanagement.v1.SecurityCenterManagementProto.internal_static_google_cloud_securitycentermanagement_v1_DeleteEventThreatDetectionCustomModuleRequest_fieldAccessorTable + return com.google.cloud.securitycentermanagement.v1.SecurityCenterManagementProto + .internal_static_google_cloud_securitycentermanagement_v1_DeleteEventThreatDetectionCustomModuleRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.securitycentermanagement.v1.DeleteEventThreatDetectionCustomModuleRequest.class, com.google.cloud.securitycentermanagement.v1.DeleteEventThreatDetectionCustomModuleRequest.Builder.class); + com.google.cloud.securitycentermanagement.v1 + .DeleteEventThreatDetectionCustomModuleRequest.class, + com.google.cloud.securitycentermanagement.v1 + .DeleteEventThreatDetectionCustomModuleRequest.Builder.class); } public static final int NAME_FIELD_NUMBER = 1; + @SuppressWarnings("serial") private volatile java.lang.Object name_ = ""; /** + * + * *
    * Required. The resource name of the ETD custom module.
    *
@@ -57,7 +84,10 @@ protected java.lang.Object newInstance(
    *   * "projects/{project}/locations/{location}/eventThreatDetectionCustomModules/{event_threat_detection_custom_module}".
    * 
* - * string name = 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 @@ -66,14 +96,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 ETD custom module.
    *
@@ -84,17 +115,18 @@ public java.lang.String getName() {
    *   * "projects/{project}/locations/{location}/eventThreatDetectionCustomModules/{event_threat_detection_custom_module}".
    * 
* - * string name = 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 { @@ -105,6 +137,8 @@ public java.lang.String getName() { public static final int VALIDATE_ONLY_FIELD_NUMBER = 2; private boolean validateOnly_ = false; /** + * + * *
    * Optional. When set to true, only validations (including IAM checks) will
    * done for the request (module will not be deleted). An OK response indicates
@@ -116,6 +150,7 @@ public java.lang.String getName() {
    * 
* * bool validate_only = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The validateOnly. */ @java.lang.Override @@ -124,6 +159,7 @@ public boolean getValidateOnly() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -135,8 +171,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.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,8 +191,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_); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -167,17 +201,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.securitycentermanagement.v1.DeleteEventThreatDetectionCustomModuleRequest)) { + if (!(obj + instanceof + com.google.cloud.securitycentermanagement.v1 + .DeleteEventThreatDetectionCustomModuleRequest)) { return super.equals(obj); } - com.google.cloud.securitycentermanagement.v1.DeleteEventThreatDetectionCustomModuleRequest other = (com.google.cloud.securitycentermanagement.v1.DeleteEventThreatDetectionCustomModuleRequest) obj; + com.google.cloud.securitycentermanagement.v1.DeleteEventThreatDetectionCustomModuleRequest + other = + (com.google.cloud.securitycentermanagement.v1 + .DeleteEventThreatDetectionCustomModuleRequest) + obj; - if (!getName() - .equals(other.getName())) return false; - if (getValidateOnly() - != other.getValidateOnly()) return false; + if (!getName().equals(other.getName())) return false; + if (getValidateOnly() != other.getValidateOnly()) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -192,139 +231,167 @@ 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 = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } - public static com.google.cloud.securitycentermanagement.v1.DeleteEventThreatDetectionCustomModuleRequest parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.securitycentermanagement.v1 + .DeleteEventThreatDetectionCustomModuleRequest + parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.securitycentermanagement.v1.DeleteEventThreatDetectionCustomModuleRequest parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.cloud.securitycentermanagement.v1 + .DeleteEventThreatDetectionCustomModuleRequest + 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.securitycentermanagement.v1.DeleteEventThreatDetectionCustomModuleRequest parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.cloud.securitycentermanagement.v1 + .DeleteEventThreatDetectionCustomModuleRequest + parseFrom(com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.securitycentermanagement.v1.DeleteEventThreatDetectionCustomModuleRequest parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.cloud.securitycentermanagement.v1 + .DeleteEventThreatDetectionCustomModuleRequest + parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.securitycentermanagement.v1.DeleteEventThreatDetectionCustomModuleRequest parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.cloud.securitycentermanagement.v1 + .DeleteEventThreatDetectionCustomModuleRequest + parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.securitycentermanagement.v1.DeleteEventThreatDetectionCustomModuleRequest parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.cloud.securitycentermanagement.v1 + .DeleteEventThreatDetectionCustomModuleRequest + parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.securitycentermanagement.v1.DeleteEventThreatDetectionCustomModuleRequest parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.securitycentermanagement.v1 + .DeleteEventThreatDetectionCustomModuleRequest + parseFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } - public static com.google.cloud.securitycentermanagement.v1.DeleteEventThreatDetectionCustomModuleRequest 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.securitycentermanagement.v1 + .DeleteEventThreatDetectionCustomModuleRequest + 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.securitycentermanagement.v1.DeleteEventThreatDetectionCustomModuleRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.securitycentermanagement.v1 + .DeleteEventThreatDetectionCustomModuleRequest + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.securitycentermanagement.v1.DeleteEventThreatDetectionCustomModuleRequest parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + public static com.google.cloud.securitycentermanagement.v1 + .DeleteEventThreatDetectionCustomModuleRequest + parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.securitycentermanagement.v1.DeleteEventThreatDetectionCustomModuleRequest parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.securitycentermanagement.v1 + .DeleteEventThreatDetectionCustomModuleRequest + parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } - public static com.google.cloud.securitycentermanagement.v1.DeleteEventThreatDetectionCustomModuleRequest 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.securitycentermanagement.v1 + .DeleteEventThreatDetectionCustomModuleRequest + 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.securitycentermanagement.v1.DeleteEventThreatDetectionCustomModuleRequest prototype) { + + public static Builder newBuilder( + com.google.cloud.securitycentermanagement.v1.DeleteEventThreatDetectionCustomModuleRequest + prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected 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 EventThreatDetectionCustomModule
    * 
* - * Protobuf type {@code google.cloud.securitycentermanagement.v1.DeleteEventThreatDetectionCustomModuleRequest} + * Protobuf type {@code + * google.cloud.securitycentermanagement.v1.DeleteEventThreatDetectionCustomModuleRequest} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.securitycentermanagement.v1.DeleteEventThreatDetectionCustomModuleRequest) - com.google.cloud.securitycentermanagement.v1.DeleteEventThreatDetectionCustomModuleRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.securitycentermanagement.v1.SecurityCenterManagementProto.internal_static_google_cloud_securitycentermanagement_v1_DeleteEventThreatDetectionCustomModuleRequest_descriptor; + com.google.cloud.securitycentermanagement.v1 + .DeleteEventThreatDetectionCustomModuleRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.securitycentermanagement.v1.SecurityCenterManagementProto + .internal_static_google_cloud_securitycentermanagement_v1_DeleteEventThreatDetectionCustomModuleRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.securitycentermanagement.v1.SecurityCenterManagementProto.internal_static_google_cloud_securitycentermanagement_v1_DeleteEventThreatDetectionCustomModuleRequest_fieldAccessorTable + return com.google.cloud.securitycentermanagement.v1.SecurityCenterManagementProto + .internal_static_google_cloud_securitycentermanagement_v1_DeleteEventThreatDetectionCustomModuleRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.securitycentermanagement.v1.DeleteEventThreatDetectionCustomModuleRequest.class, com.google.cloud.securitycentermanagement.v1.DeleteEventThreatDetectionCustomModuleRequest.Builder.class); + com.google.cloud.securitycentermanagement.v1 + .DeleteEventThreatDetectionCustomModuleRequest.class, + com.google.cloud.securitycentermanagement.v1 + .DeleteEventThreatDetectionCustomModuleRequest.Builder.class); } - // Construct using com.google.cloud.securitycentermanagement.v1.DeleteEventThreatDetectionCustomModuleRequest.newBuilder() - private Builder() { + // Construct using + // com.google.cloud.securitycentermanagement.v1.DeleteEventThreatDetectionCustomModuleRequest.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(); @@ -335,19 +402,25 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.securitycentermanagement.v1.SecurityCenterManagementProto.internal_static_google_cloud_securitycentermanagement_v1_DeleteEventThreatDetectionCustomModuleRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.securitycentermanagement.v1.SecurityCenterManagementProto + .internal_static_google_cloud_securitycentermanagement_v1_DeleteEventThreatDetectionCustomModuleRequest_descriptor; } @java.lang.Override - public com.google.cloud.securitycentermanagement.v1.DeleteEventThreatDetectionCustomModuleRequest getDefaultInstanceForType() { - return com.google.cloud.securitycentermanagement.v1.DeleteEventThreatDetectionCustomModuleRequest.getDefaultInstance(); + public com.google.cloud.securitycentermanagement.v1 + .DeleteEventThreatDetectionCustomModuleRequest + getDefaultInstanceForType() { + return com.google.cloud.securitycentermanagement.v1 + .DeleteEventThreatDetectionCustomModuleRequest.getDefaultInstance(); } @java.lang.Override - public com.google.cloud.securitycentermanagement.v1.DeleteEventThreatDetectionCustomModuleRequest build() { - com.google.cloud.securitycentermanagement.v1.DeleteEventThreatDetectionCustomModuleRequest result = buildPartial(); + public com.google.cloud.securitycentermanagement.v1 + .DeleteEventThreatDetectionCustomModuleRequest + build() { + com.google.cloud.securitycentermanagement.v1.DeleteEventThreatDetectionCustomModuleRequest + result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } @@ -355,14 +428,23 @@ public com.google.cloud.securitycentermanagement.v1.DeleteEventThreatDetectionCu } @java.lang.Override - public com.google.cloud.securitycentermanagement.v1.DeleteEventThreatDetectionCustomModuleRequest buildPartial() { - com.google.cloud.securitycentermanagement.v1.DeleteEventThreatDetectionCustomModuleRequest result = new com.google.cloud.securitycentermanagement.v1.DeleteEventThreatDetectionCustomModuleRequest(this); - if (bitField0_ != 0) { buildPartial0(result); } + public com.google.cloud.securitycentermanagement.v1 + .DeleteEventThreatDetectionCustomModuleRequest + buildPartial() { + com.google.cloud.securitycentermanagement.v1.DeleteEventThreatDetectionCustomModuleRequest + result = + new com.google.cloud.securitycentermanagement.v1 + .DeleteEventThreatDetectionCustomModuleRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } - private void buildPartial0(com.google.cloud.securitycentermanagement.v1.DeleteEventThreatDetectionCustomModuleRequest result) { + private void buildPartial0( + com.google.cloud.securitycentermanagement.v1.DeleteEventThreatDetectionCustomModuleRequest + result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000001) != 0)) { result.name_ = name_; @@ -376,46 +458,57 @@ private void buildPartial0(com.google.cloud.securitycentermanagement.v1.DeleteEv public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.cloud.securitycentermanagement.v1.DeleteEventThreatDetectionCustomModuleRequest) { - return mergeFrom((com.google.cloud.securitycentermanagement.v1.DeleteEventThreatDetectionCustomModuleRequest)other); + if (other + instanceof + com.google.cloud.securitycentermanagement.v1 + .DeleteEventThreatDetectionCustomModuleRequest) { + return mergeFrom( + (com.google.cloud.securitycentermanagement.v1 + .DeleteEventThreatDetectionCustomModuleRequest) + other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom(com.google.cloud.securitycentermanagement.v1.DeleteEventThreatDetectionCustomModuleRequest other) { - if (other == com.google.cloud.securitycentermanagement.v1.DeleteEventThreatDetectionCustomModuleRequest.getDefaultInstance()) return this; + public Builder mergeFrom( + com.google.cloud.securitycentermanagement.v1.DeleteEventThreatDetectionCustomModuleRequest + other) { + if (other + == com.google.cloud.securitycentermanagement.v1 + .DeleteEventThreatDetectionCustomModuleRequest.getDefaultInstance()) return this; if (!other.getName().isEmpty()) { name_ = other.name_; bitField0_ |= 0x00000001; @@ -450,22 +543,25 @@ 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 - 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 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -475,10 +571,13 @@ public Builder mergeFrom( } // finally return this; } + private int bitField0_; private java.lang.Object name_ = ""; /** + * + * *
      * Required. The resource name of the ETD custom module.
      *
@@ -489,14 +588,16 @@ public Builder mergeFrom(
      *   * "projects/{project}/locations/{location}/eventThreatDetectionCustomModules/{event_threat_detection_custom_module}".
      * 
* - * string name = 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; @@ -505,6 +606,8 @@ public java.lang.String getName() { } } /** + * + * *
      * Required. The resource name of the ETD custom module.
      *
@@ -515,16 +618,17 @@ public java.lang.String getName() {
      *   * "projects/{project}/locations/{location}/eventThreatDetectionCustomModules/{event_threat_detection_custom_module}".
      * 
* - * string name = 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 { @@ -532,6 +636,8 @@ public java.lang.String getName() { } } /** + * + * *
      * Required. The resource name of the ETD custom module.
      *
@@ -542,19 +648,25 @@ public java.lang.String getName() {
      *   * "projects/{project}/locations/{location}/eventThreatDetectionCustomModules/{event_threat_detection_custom_module}".
      * 
* - * 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 ETD custom module.
      *
@@ -565,7 +677,10 @@ public Builder setName(
      *   * "projects/{project}/locations/{location}/eventThreatDetectionCustomModules/{event_threat_detection_custom_module}".
      * 
* - * string 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() { @@ -575,6 +690,8 @@ public Builder clearName() { return this; } /** + * + * *
      * Required. The resource name of the ETD custom module.
      *
@@ -585,13 +702,17 @@ public Builder clearName() {
      *   * "projects/{project}/locations/{location}/eventThreatDetectionCustomModules/{event_threat_detection_custom_module}".
      * 
* - * 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; @@ -599,8 +720,10 @@ public Builder setNameBytes( return this; } - private boolean validateOnly_ ; + private boolean validateOnly_; /** + * + * *
      * Optional. When set to true, only validations (including IAM checks) will
      * done for the request (module will not be deleted). An OK response indicates
@@ -612,6 +735,7 @@ public Builder setNameBytes(
      * 
* * bool validate_only = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The validateOnly. */ @java.lang.Override @@ -619,6 +743,8 @@ public boolean getValidateOnly() { return validateOnly_; } /** + * + * *
      * Optional. When set to true, only validations (including IAM checks) will
      * done for the request (module will not be deleted). An OK response indicates
@@ -630,6 +756,7 @@ public boolean getValidateOnly() {
      * 
* * bool validate_only = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @param value The validateOnly to set. * @return This builder for chaining. */ @@ -641,6 +768,8 @@ public Builder setValidateOnly(boolean value) { return this; } /** + * + * *
      * Optional. When set to true, only validations (including IAM checks) will
      * done for the request (module will not be deleted). An OK response indicates
@@ -652,6 +781,7 @@ public Builder setValidateOnly(boolean value) {
      * 
* * bool validate_only = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @return This builder for chaining. */ public Builder clearValidateOnly() { @@ -660,9 +790,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); } @@ -672,55 +802,63 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.securitycentermanagement.v1.DeleteEventThreatDetectionCustomModuleRequest) } // @@protoc_insertion_point(class_scope:google.cloud.securitycentermanagement.v1.DeleteEventThreatDetectionCustomModuleRequest) - private static final com.google.cloud.securitycentermanagement.v1.DeleteEventThreatDetectionCustomModuleRequest DEFAULT_INSTANCE; + private static final com.google.cloud.securitycentermanagement.v1 + .DeleteEventThreatDetectionCustomModuleRequest + DEFAULT_INSTANCE; + static { - DEFAULT_INSTANCE = new com.google.cloud.securitycentermanagement.v1.DeleteEventThreatDetectionCustomModuleRequest(); + DEFAULT_INSTANCE = + new com.google.cloud.securitycentermanagement.v1 + .DeleteEventThreatDetectionCustomModuleRequest(); } - public static com.google.cloud.securitycentermanagement.v1.DeleteEventThreatDetectionCustomModuleRequest getDefaultInstance() { + public static com.google.cloud.securitycentermanagement.v1 + .DeleteEventThreatDetectionCustomModuleRequest + getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public DeleteEventThreatDetectionCustomModuleRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public DeleteEventThreatDetectionCustomModuleRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException() + .setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; } @java.lang.Override - public com.google.protobuf.Parser getParserForType() { + public com.google.protobuf.Parser + getParserForType() { return PARSER; } @java.lang.Override - public com.google.cloud.securitycentermanagement.v1.DeleteEventThreatDetectionCustomModuleRequest getDefaultInstanceForType() { + public com.google.cloud.securitycentermanagement.v1.DeleteEventThreatDetectionCustomModuleRequest + getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/java-securitycentermanagement/v1/proto-google-cloud-securitycentermanagement-v1/src/main/java/com/google/cloud/securitycentermanagement/v1/DeleteEventThreatDetectionCustomModuleRequestOrBuilder.java b/java-securitycentermanagement/proto-google-cloud-securitycentermanagement-v1/src/main/java/com/google/cloud/securitycentermanagement/v1/DeleteEventThreatDetectionCustomModuleRequestOrBuilder.java similarity index 69% rename from owl-bot-staging/java-securitycentermanagement/v1/proto-google-cloud-securitycentermanagement-v1/src/main/java/com/google/cloud/securitycentermanagement/v1/DeleteEventThreatDetectionCustomModuleRequestOrBuilder.java rename to java-securitycentermanagement/proto-google-cloud-securitycentermanagement-v1/src/main/java/com/google/cloud/securitycentermanagement/v1/DeleteEventThreatDetectionCustomModuleRequestOrBuilder.java index 0745fbfbfadf..be9d605cad27 100644 --- a/owl-bot-staging/java-securitycentermanagement/v1/proto-google-cloud-securitycentermanagement-v1/src/main/java/com/google/cloud/securitycentermanagement/v1/DeleteEventThreatDetectionCustomModuleRequestOrBuilder.java +++ b/java-securitycentermanagement/proto-google-cloud-securitycentermanagement-v1/src/main/java/com/google/cloud/securitycentermanagement/v1/DeleteEventThreatDetectionCustomModuleRequestOrBuilder.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/securitycentermanagement/v1/security_center_management.proto package com.google.cloud.securitycentermanagement.v1; -public interface DeleteEventThreatDetectionCustomModuleRequestOrBuilder extends +public interface DeleteEventThreatDetectionCustomModuleRequestOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.securitycentermanagement.v1.DeleteEventThreatDetectionCustomModuleRequest) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * Required. The resource name of the ETD custom module.
    *
@@ -18,11 +36,16 @@ public interface DeleteEventThreatDetectionCustomModuleRequestOrBuilder extends
    *   * "projects/{project}/locations/{location}/eventThreatDetectionCustomModules/{event_threat_detection_custom_module}".
    * 
* - * string name = 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. The resource name of the ETD custom module.
    *
@@ -33,13 +56,17 @@ public interface DeleteEventThreatDetectionCustomModuleRequestOrBuilder extends
    *   * "projects/{project}/locations/{location}/eventThreatDetectionCustomModules/{event_threat_detection_custom_module}".
    * 
* - * string name = 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. When set to true, only validations (including IAM checks) will
    * done for the request (module will not be deleted). An OK response indicates
@@ -51,6 +78,7 @@ public interface DeleteEventThreatDetectionCustomModuleRequestOrBuilder extends
    * 
* * bool validate_only = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The validateOnly. */ boolean getValidateOnly(); diff --git a/owl-bot-staging/java-securitycentermanagement/v1/proto-google-cloud-securitycentermanagement-v1/src/main/java/com/google/cloud/securitycentermanagement/v1/DeleteSecurityHealthAnalyticsCustomModuleRequest.java b/java-securitycentermanagement/proto-google-cloud-securitycentermanagement-v1/src/main/java/com/google/cloud/securitycentermanagement/v1/DeleteSecurityHealthAnalyticsCustomModuleRequest.java similarity index 54% rename from owl-bot-staging/java-securitycentermanagement/v1/proto-google-cloud-securitycentermanagement-v1/src/main/java/com/google/cloud/securitycentermanagement/v1/DeleteSecurityHealthAnalyticsCustomModuleRequest.java rename to java-securitycentermanagement/proto-google-cloud-securitycentermanagement-v1/src/main/java/com/google/cloud/securitycentermanagement/v1/DeleteSecurityHealthAnalyticsCustomModuleRequest.java index 260a072412fc..d1a5dc64cc0e 100644 --- a/owl-bot-staging/java-securitycentermanagement/v1/proto-google-cloud-securitycentermanagement-v1/src/main/java/com/google/cloud/securitycentermanagement/v1/DeleteSecurityHealthAnalyticsCustomModuleRequest.java +++ b/java-securitycentermanagement/proto-google-cloud-securitycentermanagement-v1/src/main/java/com/google/cloud/securitycentermanagement/v1/DeleteSecurityHealthAnalyticsCustomModuleRequest.java @@ -1,52 +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/securitycentermanagement/v1/security_center_management.proto package com.google.cloud.securitycentermanagement.v1; /** + * + * *
  * Message for deleting a SecurityHealthAnalyticsCustomModule
  * 
* - * Protobuf type {@code google.cloud.securitycentermanagement.v1.DeleteSecurityHealthAnalyticsCustomModuleRequest} + * Protobuf type {@code + * google.cloud.securitycentermanagement.v1.DeleteSecurityHealthAnalyticsCustomModuleRequest} */ -public final class DeleteSecurityHealthAnalyticsCustomModuleRequest extends - com.google.protobuf.GeneratedMessageV3 implements +public final class DeleteSecurityHealthAnalyticsCustomModuleRequest + extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.securitycentermanagement.v1.DeleteSecurityHealthAnalyticsCustomModuleRequest) DeleteSecurityHealthAnalyticsCustomModuleRequestOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use DeleteSecurityHealthAnalyticsCustomModuleRequest.newBuilder() to construct. - private DeleteSecurityHealthAnalyticsCustomModuleRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + private DeleteSecurityHealthAnalyticsCustomModuleRequest( + com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private DeleteSecurityHealthAnalyticsCustomModuleRequest() { name_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new DeleteSecurityHealthAnalyticsCustomModuleRequest(); } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.securitycentermanagement.v1.SecurityCenterManagementProto.internal_static_google_cloud_securitycentermanagement_v1_DeleteSecurityHealthAnalyticsCustomModuleRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.securitycentermanagement.v1.SecurityCenterManagementProto + .internal_static_google_cloud_securitycentermanagement_v1_DeleteSecurityHealthAnalyticsCustomModuleRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.securitycentermanagement.v1.SecurityCenterManagementProto.internal_static_google_cloud_securitycentermanagement_v1_DeleteSecurityHealthAnalyticsCustomModuleRequest_fieldAccessorTable + return com.google.cloud.securitycentermanagement.v1.SecurityCenterManagementProto + .internal_static_google_cloud_securitycentermanagement_v1_DeleteSecurityHealthAnalyticsCustomModuleRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.securitycentermanagement.v1.DeleteSecurityHealthAnalyticsCustomModuleRequest.class, com.google.cloud.securitycentermanagement.v1.DeleteSecurityHealthAnalyticsCustomModuleRequest.Builder.class); + com.google.cloud.securitycentermanagement.v1 + .DeleteSecurityHealthAnalyticsCustomModuleRequest.class, + com.google.cloud.securitycentermanagement.v1 + .DeleteSecurityHealthAnalyticsCustomModuleRequest.Builder.class); } public static final int NAME_FIELD_NUMBER = 1; + @SuppressWarnings("serial") private volatile java.lang.Object name_ = ""; /** + * + * *
    * Required. The resource name of the SHA custom module.
    *
@@ -57,7 +84,10 @@ protected java.lang.Object newInstance(
    *   * "projects/{project}/locations/{location}/securityHealthAnalyticsCustomModules/{security_health_analytics_custom_module}".
    * 
* - * string name = 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 @@ -66,14 +96,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 SHA custom module.
    *
@@ -84,17 +115,18 @@ public java.lang.String getName() {
    *   * "projects/{project}/locations/{location}/securityHealthAnalyticsCustomModules/{security_health_analytics_custom_module}".
    * 
* - * string name = 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 { @@ -105,6 +137,8 @@ public java.lang.String getName() { public static final int VALIDATE_ONLY_FIELD_NUMBER = 2; private boolean validateOnly_ = false; /** + * + * *
    * Optional. When set to true, only validations (including IAM checks) will
    * done for the request (module will not be deleted). An OK response indicates
@@ -116,6 +150,7 @@ public java.lang.String getName() {
    * 
* * bool validate_only = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The validateOnly. */ @java.lang.Override @@ -124,6 +159,7 @@ public boolean getValidateOnly() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -135,8 +171,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.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,8 +191,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_); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -167,17 +201,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.securitycentermanagement.v1.DeleteSecurityHealthAnalyticsCustomModuleRequest)) { + if (!(obj + instanceof + com.google.cloud.securitycentermanagement.v1 + .DeleteSecurityHealthAnalyticsCustomModuleRequest)) { return super.equals(obj); } - com.google.cloud.securitycentermanagement.v1.DeleteSecurityHealthAnalyticsCustomModuleRequest other = (com.google.cloud.securitycentermanagement.v1.DeleteSecurityHealthAnalyticsCustomModuleRequest) obj; + com.google.cloud.securitycentermanagement.v1.DeleteSecurityHealthAnalyticsCustomModuleRequest + other = + (com.google.cloud.securitycentermanagement.v1 + .DeleteSecurityHealthAnalyticsCustomModuleRequest) + obj; - if (!getName() - .equals(other.getName())) return false; - if (getValidateOnly() - != other.getValidateOnly()) return false; + if (!getName().equals(other.getName())) return false; + if (getValidateOnly() != other.getValidateOnly()) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -192,139 +231,167 @@ 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 = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } - public static com.google.cloud.securitycentermanagement.v1.DeleteSecurityHealthAnalyticsCustomModuleRequest parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.securitycentermanagement.v1 + .DeleteSecurityHealthAnalyticsCustomModuleRequest + parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.securitycentermanagement.v1.DeleteSecurityHealthAnalyticsCustomModuleRequest parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.cloud.securitycentermanagement.v1 + .DeleteSecurityHealthAnalyticsCustomModuleRequest + 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.securitycentermanagement.v1.DeleteSecurityHealthAnalyticsCustomModuleRequest parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.cloud.securitycentermanagement.v1 + .DeleteSecurityHealthAnalyticsCustomModuleRequest + parseFrom(com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.securitycentermanagement.v1.DeleteSecurityHealthAnalyticsCustomModuleRequest parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.cloud.securitycentermanagement.v1 + .DeleteSecurityHealthAnalyticsCustomModuleRequest + parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.securitycentermanagement.v1.DeleteSecurityHealthAnalyticsCustomModuleRequest parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.cloud.securitycentermanagement.v1 + .DeleteSecurityHealthAnalyticsCustomModuleRequest + parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.securitycentermanagement.v1.DeleteSecurityHealthAnalyticsCustomModuleRequest parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.cloud.securitycentermanagement.v1 + .DeleteSecurityHealthAnalyticsCustomModuleRequest + parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.securitycentermanagement.v1.DeleteSecurityHealthAnalyticsCustomModuleRequest parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.securitycentermanagement.v1 + .DeleteSecurityHealthAnalyticsCustomModuleRequest + parseFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } - public static com.google.cloud.securitycentermanagement.v1.DeleteSecurityHealthAnalyticsCustomModuleRequest 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.securitycentermanagement.v1 + .DeleteSecurityHealthAnalyticsCustomModuleRequest + 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.securitycentermanagement.v1.DeleteSecurityHealthAnalyticsCustomModuleRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.securitycentermanagement.v1 + .DeleteSecurityHealthAnalyticsCustomModuleRequest + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.securitycentermanagement.v1.DeleteSecurityHealthAnalyticsCustomModuleRequest parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + public static com.google.cloud.securitycentermanagement.v1 + .DeleteSecurityHealthAnalyticsCustomModuleRequest + parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.securitycentermanagement.v1.DeleteSecurityHealthAnalyticsCustomModuleRequest parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.securitycentermanagement.v1 + .DeleteSecurityHealthAnalyticsCustomModuleRequest + parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } - public static com.google.cloud.securitycentermanagement.v1.DeleteSecurityHealthAnalyticsCustomModuleRequest 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.securitycentermanagement.v1 + .DeleteSecurityHealthAnalyticsCustomModuleRequest + 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.securitycentermanagement.v1.DeleteSecurityHealthAnalyticsCustomModuleRequest prototype) { + + public static Builder newBuilder( + com.google.cloud.securitycentermanagement.v1.DeleteSecurityHealthAnalyticsCustomModuleRequest + prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected 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 SecurityHealthAnalyticsCustomModule
    * 
* - * Protobuf type {@code google.cloud.securitycentermanagement.v1.DeleteSecurityHealthAnalyticsCustomModuleRequest} + * Protobuf type {@code + * google.cloud.securitycentermanagement.v1.DeleteSecurityHealthAnalyticsCustomModuleRequest} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.securitycentermanagement.v1.DeleteSecurityHealthAnalyticsCustomModuleRequest) - com.google.cloud.securitycentermanagement.v1.DeleteSecurityHealthAnalyticsCustomModuleRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.securitycentermanagement.v1.SecurityCenterManagementProto.internal_static_google_cloud_securitycentermanagement_v1_DeleteSecurityHealthAnalyticsCustomModuleRequest_descriptor; + com.google.cloud.securitycentermanagement.v1 + .DeleteSecurityHealthAnalyticsCustomModuleRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.securitycentermanagement.v1.SecurityCenterManagementProto + .internal_static_google_cloud_securitycentermanagement_v1_DeleteSecurityHealthAnalyticsCustomModuleRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.securitycentermanagement.v1.SecurityCenterManagementProto.internal_static_google_cloud_securitycentermanagement_v1_DeleteSecurityHealthAnalyticsCustomModuleRequest_fieldAccessorTable + return com.google.cloud.securitycentermanagement.v1.SecurityCenterManagementProto + .internal_static_google_cloud_securitycentermanagement_v1_DeleteSecurityHealthAnalyticsCustomModuleRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.securitycentermanagement.v1.DeleteSecurityHealthAnalyticsCustomModuleRequest.class, com.google.cloud.securitycentermanagement.v1.DeleteSecurityHealthAnalyticsCustomModuleRequest.Builder.class); + com.google.cloud.securitycentermanagement.v1 + .DeleteSecurityHealthAnalyticsCustomModuleRequest.class, + com.google.cloud.securitycentermanagement.v1 + .DeleteSecurityHealthAnalyticsCustomModuleRequest.Builder.class); } - // Construct using com.google.cloud.securitycentermanagement.v1.DeleteSecurityHealthAnalyticsCustomModuleRequest.newBuilder() - private Builder() { + // Construct using + // com.google.cloud.securitycentermanagement.v1.DeleteSecurityHealthAnalyticsCustomModuleRequest.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(); @@ -335,19 +402,25 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.securitycentermanagement.v1.SecurityCenterManagementProto.internal_static_google_cloud_securitycentermanagement_v1_DeleteSecurityHealthAnalyticsCustomModuleRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.securitycentermanagement.v1.SecurityCenterManagementProto + .internal_static_google_cloud_securitycentermanagement_v1_DeleteSecurityHealthAnalyticsCustomModuleRequest_descriptor; } @java.lang.Override - public com.google.cloud.securitycentermanagement.v1.DeleteSecurityHealthAnalyticsCustomModuleRequest getDefaultInstanceForType() { - return com.google.cloud.securitycentermanagement.v1.DeleteSecurityHealthAnalyticsCustomModuleRequest.getDefaultInstance(); + public com.google.cloud.securitycentermanagement.v1 + .DeleteSecurityHealthAnalyticsCustomModuleRequest + getDefaultInstanceForType() { + return com.google.cloud.securitycentermanagement.v1 + .DeleteSecurityHealthAnalyticsCustomModuleRequest.getDefaultInstance(); } @java.lang.Override - public com.google.cloud.securitycentermanagement.v1.DeleteSecurityHealthAnalyticsCustomModuleRequest build() { - com.google.cloud.securitycentermanagement.v1.DeleteSecurityHealthAnalyticsCustomModuleRequest result = buildPartial(); + public com.google.cloud.securitycentermanagement.v1 + .DeleteSecurityHealthAnalyticsCustomModuleRequest + build() { + com.google.cloud.securitycentermanagement.v1.DeleteSecurityHealthAnalyticsCustomModuleRequest + result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } @@ -355,14 +428,24 @@ public com.google.cloud.securitycentermanagement.v1.DeleteSecurityHealthAnalytic } @java.lang.Override - public com.google.cloud.securitycentermanagement.v1.DeleteSecurityHealthAnalyticsCustomModuleRequest buildPartial() { - com.google.cloud.securitycentermanagement.v1.DeleteSecurityHealthAnalyticsCustomModuleRequest result = new com.google.cloud.securitycentermanagement.v1.DeleteSecurityHealthAnalyticsCustomModuleRequest(this); - if (bitField0_ != 0) { buildPartial0(result); } + public com.google.cloud.securitycentermanagement.v1 + .DeleteSecurityHealthAnalyticsCustomModuleRequest + buildPartial() { + com.google.cloud.securitycentermanagement.v1.DeleteSecurityHealthAnalyticsCustomModuleRequest + result = + new com.google.cloud.securitycentermanagement.v1 + .DeleteSecurityHealthAnalyticsCustomModuleRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } - private void buildPartial0(com.google.cloud.securitycentermanagement.v1.DeleteSecurityHealthAnalyticsCustomModuleRequest result) { + private void buildPartial0( + com.google.cloud.securitycentermanagement.v1 + .DeleteSecurityHealthAnalyticsCustomModuleRequest + result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000001) != 0)) { result.name_ = name_; @@ -376,46 +459,58 @@ private void buildPartial0(com.google.cloud.securitycentermanagement.v1.DeleteSe public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.cloud.securitycentermanagement.v1.DeleteSecurityHealthAnalyticsCustomModuleRequest) { - return mergeFrom((com.google.cloud.securitycentermanagement.v1.DeleteSecurityHealthAnalyticsCustomModuleRequest)other); + if (other + instanceof + com.google.cloud.securitycentermanagement.v1 + .DeleteSecurityHealthAnalyticsCustomModuleRequest) { + return mergeFrom( + (com.google.cloud.securitycentermanagement.v1 + .DeleteSecurityHealthAnalyticsCustomModuleRequest) + other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom(com.google.cloud.securitycentermanagement.v1.DeleteSecurityHealthAnalyticsCustomModuleRequest other) { - if (other == com.google.cloud.securitycentermanagement.v1.DeleteSecurityHealthAnalyticsCustomModuleRequest.getDefaultInstance()) return this; + public Builder mergeFrom( + com.google.cloud.securitycentermanagement.v1 + .DeleteSecurityHealthAnalyticsCustomModuleRequest + other) { + if (other + == com.google.cloud.securitycentermanagement.v1 + .DeleteSecurityHealthAnalyticsCustomModuleRequest.getDefaultInstance()) return this; if (!other.getName().isEmpty()) { name_ = other.name_; bitField0_ |= 0x00000001; @@ -450,22 +545,25 @@ 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 - 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 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -475,10 +573,13 @@ public Builder mergeFrom( } // finally return this; } + private int bitField0_; private java.lang.Object name_ = ""; /** + * + * *
      * Required. The resource name of the SHA custom module.
      *
@@ -489,14 +590,16 @@ public Builder mergeFrom(
      *   * "projects/{project}/locations/{location}/securityHealthAnalyticsCustomModules/{security_health_analytics_custom_module}".
      * 
* - * string name = 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; @@ -505,6 +608,8 @@ public java.lang.String getName() { } } /** + * + * *
      * Required. The resource name of the SHA custom module.
      *
@@ -515,16 +620,17 @@ public java.lang.String getName() {
      *   * "projects/{project}/locations/{location}/securityHealthAnalyticsCustomModules/{security_health_analytics_custom_module}".
      * 
* - * string name = 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 { @@ -532,6 +638,8 @@ public java.lang.String getName() { } } /** + * + * *
      * Required. The resource name of the SHA custom module.
      *
@@ -542,19 +650,25 @@ public java.lang.String getName() {
      *   * "projects/{project}/locations/{location}/securityHealthAnalyticsCustomModules/{security_health_analytics_custom_module}".
      * 
* - * 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 SHA custom module.
      *
@@ -565,7 +679,10 @@ public Builder setName(
      *   * "projects/{project}/locations/{location}/securityHealthAnalyticsCustomModules/{security_health_analytics_custom_module}".
      * 
* - * string 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() { @@ -575,6 +692,8 @@ public Builder clearName() { return this; } /** + * + * *
      * Required. The resource name of the SHA custom module.
      *
@@ -585,13 +704,17 @@ public Builder clearName() {
      *   * "projects/{project}/locations/{location}/securityHealthAnalyticsCustomModules/{security_health_analytics_custom_module}".
      * 
* - * 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; @@ -599,8 +722,10 @@ public Builder setNameBytes( return this; } - private boolean validateOnly_ ; + private boolean validateOnly_; /** + * + * *
      * Optional. When set to true, only validations (including IAM checks) will
      * done for the request (module will not be deleted). An OK response indicates
@@ -612,6 +737,7 @@ public Builder setNameBytes(
      * 
* * bool validate_only = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The validateOnly. */ @java.lang.Override @@ -619,6 +745,8 @@ public boolean getValidateOnly() { return validateOnly_; } /** + * + * *
      * Optional. When set to true, only validations (including IAM checks) will
      * done for the request (module will not be deleted). An OK response indicates
@@ -630,6 +758,7 @@ public boolean getValidateOnly() {
      * 
* * bool validate_only = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @param value The validateOnly to set. * @return This builder for chaining. */ @@ -641,6 +770,8 @@ public Builder setValidateOnly(boolean value) { return this; } /** + * + * *
      * Optional. When set to true, only validations (including IAM checks) will
      * done for the request (module will not be deleted). An OK response indicates
@@ -652,6 +783,7 @@ public Builder setValidateOnly(boolean value) {
      * 
* * bool validate_only = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @return This builder for chaining. */ public Builder clearValidateOnly() { @@ -660,9 +792,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); } @@ -672,55 +804,66 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.securitycentermanagement.v1.DeleteSecurityHealthAnalyticsCustomModuleRequest) } // @@protoc_insertion_point(class_scope:google.cloud.securitycentermanagement.v1.DeleteSecurityHealthAnalyticsCustomModuleRequest) - private static final com.google.cloud.securitycentermanagement.v1.DeleteSecurityHealthAnalyticsCustomModuleRequest DEFAULT_INSTANCE; + private static final com.google.cloud.securitycentermanagement.v1 + .DeleteSecurityHealthAnalyticsCustomModuleRequest + DEFAULT_INSTANCE; + static { - DEFAULT_INSTANCE = new com.google.cloud.securitycentermanagement.v1.DeleteSecurityHealthAnalyticsCustomModuleRequest(); + DEFAULT_INSTANCE = + new com.google.cloud.securitycentermanagement.v1 + .DeleteSecurityHealthAnalyticsCustomModuleRequest(); } - public static com.google.cloud.securitycentermanagement.v1.DeleteSecurityHealthAnalyticsCustomModuleRequest getDefaultInstance() { + public static com.google.cloud.securitycentermanagement.v1 + .DeleteSecurityHealthAnalyticsCustomModuleRequest + getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public DeleteSecurityHealthAnalyticsCustomModuleRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + PARSER = + new com.google.protobuf.AbstractParser< + DeleteSecurityHealthAnalyticsCustomModuleRequest>() { + @java.lang.Override + public DeleteSecurityHealthAnalyticsCustomModuleRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException() + .setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; - public static com.google.protobuf.Parser parser() { + public static com.google.protobuf.Parser + parser() { return PARSER; } @java.lang.Override - public com.google.protobuf.Parser getParserForType() { + public com.google.protobuf.Parser + getParserForType() { return PARSER; } @java.lang.Override - public com.google.cloud.securitycentermanagement.v1.DeleteSecurityHealthAnalyticsCustomModuleRequest getDefaultInstanceForType() { + public com.google.cloud.securitycentermanagement.v1 + .DeleteSecurityHealthAnalyticsCustomModuleRequest + getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/java-securitycentermanagement/v1/proto-google-cloud-securitycentermanagement-v1/src/main/java/com/google/cloud/securitycentermanagement/v1/DeleteSecurityHealthAnalyticsCustomModuleRequestOrBuilder.java b/java-securitycentermanagement/proto-google-cloud-securitycentermanagement-v1/src/main/java/com/google/cloud/securitycentermanagement/v1/DeleteSecurityHealthAnalyticsCustomModuleRequestOrBuilder.java similarity index 69% rename from owl-bot-staging/java-securitycentermanagement/v1/proto-google-cloud-securitycentermanagement-v1/src/main/java/com/google/cloud/securitycentermanagement/v1/DeleteSecurityHealthAnalyticsCustomModuleRequestOrBuilder.java rename to java-securitycentermanagement/proto-google-cloud-securitycentermanagement-v1/src/main/java/com/google/cloud/securitycentermanagement/v1/DeleteSecurityHealthAnalyticsCustomModuleRequestOrBuilder.java index b045b68e7be9..6894285d4201 100644 --- a/owl-bot-staging/java-securitycentermanagement/v1/proto-google-cloud-securitycentermanagement-v1/src/main/java/com/google/cloud/securitycentermanagement/v1/DeleteSecurityHealthAnalyticsCustomModuleRequestOrBuilder.java +++ b/java-securitycentermanagement/proto-google-cloud-securitycentermanagement-v1/src/main/java/com/google/cloud/securitycentermanagement/v1/DeleteSecurityHealthAnalyticsCustomModuleRequestOrBuilder.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/securitycentermanagement/v1/security_center_management.proto package com.google.cloud.securitycentermanagement.v1; -public interface DeleteSecurityHealthAnalyticsCustomModuleRequestOrBuilder extends +public interface DeleteSecurityHealthAnalyticsCustomModuleRequestOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.securitycentermanagement.v1.DeleteSecurityHealthAnalyticsCustomModuleRequest) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * Required. The resource name of the SHA custom module.
    *
@@ -18,11 +36,16 @@ public interface DeleteSecurityHealthAnalyticsCustomModuleRequestOrBuilder exten
    *   * "projects/{project}/locations/{location}/securityHealthAnalyticsCustomModules/{security_health_analytics_custom_module}".
    * 
* - * string name = 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. The resource name of the SHA custom module.
    *
@@ -33,13 +56,17 @@ public interface DeleteSecurityHealthAnalyticsCustomModuleRequestOrBuilder exten
    *   * "projects/{project}/locations/{location}/securityHealthAnalyticsCustomModules/{security_health_analytics_custom_module}".
    * 
* - * string name = 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. When set to true, only validations (including IAM checks) will
    * done for the request (module will not be deleted). An OK response indicates
@@ -51,6 +78,7 @@ public interface DeleteSecurityHealthAnalyticsCustomModuleRequestOrBuilder exten
    * 
* * bool validate_only = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The validateOnly. */ boolean getValidateOnly(); diff --git a/owl-bot-staging/java-securitycentermanagement/v1/proto-google-cloud-securitycentermanagement-v1/src/main/java/com/google/cloud/securitycentermanagement/v1/EffectiveEventThreatDetectionCustomModule.java b/java-securitycentermanagement/proto-google-cloud-securitycentermanagement-v1/src/main/java/com/google/cloud/securitycentermanagement/v1/EffectiveEventThreatDetectionCustomModule.java similarity index 64% rename from owl-bot-staging/java-securitycentermanagement/v1/proto-google-cloud-securitycentermanagement-v1/src/main/java/com/google/cloud/securitycentermanagement/v1/EffectiveEventThreatDetectionCustomModule.java rename to java-securitycentermanagement/proto-google-cloud-securitycentermanagement-v1/src/main/java/com/google/cloud/securitycentermanagement/v1/EffectiveEventThreatDetectionCustomModule.java index e7e8cf1fe7e8..fde570134f3d 100644 --- a/owl-bot-staging/java-securitycentermanagement/v1/proto-google-cloud-securitycentermanagement-v1/src/main/java/com/google/cloud/securitycentermanagement/v1/EffectiveEventThreatDetectionCustomModule.java +++ b/java-securitycentermanagement/proto-google-cloud-securitycentermanagement-v1/src/main/java/com/google/cloud/securitycentermanagement/v1/EffectiveEventThreatDetectionCustomModule.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/securitycentermanagement/v1/security_center_management.proto package com.google.cloud.securitycentermanagement.v1; /** + * + * *
  * An EffectiveEventThreatDetectionCustomModule is the representation of
  * EventThreatDetectionCustomModule at a given level taking hierarchy into
@@ -14,17 +31,21 @@
  * details. EffectiveEventThreatDetectionCustomModule is read-only.
  * 
* - * Protobuf type {@code google.cloud.securitycentermanagement.v1.EffectiveEventThreatDetectionCustomModule} + * Protobuf type {@code + * google.cloud.securitycentermanagement.v1.EffectiveEventThreatDetectionCustomModule} */ -public final class EffectiveEventThreatDetectionCustomModule extends - com.google.protobuf.GeneratedMessageV3 implements +public final class EffectiveEventThreatDetectionCustomModule + extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.securitycentermanagement.v1.EffectiveEventThreatDetectionCustomModule) EffectiveEventThreatDetectionCustomModuleOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use EffectiveEventThreatDetectionCustomModule.newBuilder() to construct. - private EffectiveEventThreatDetectionCustomModule(com.google.protobuf.GeneratedMessageV3.Builder builder) { + private EffectiveEventThreatDetectionCustomModule( + com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private EffectiveEventThreatDetectionCustomModule() { name_ = ""; enablementState_ = 0; @@ -35,34 +56,41 @@ private EffectiveEventThreatDetectionCustomModule() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new EffectiveEventThreatDetectionCustomModule(); } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.securitycentermanagement.v1.SecurityCenterManagementProto.internal_static_google_cloud_securitycentermanagement_v1_EffectiveEventThreatDetectionCustomModule_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.securitycentermanagement.v1.SecurityCenterManagementProto + .internal_static_google_cloud_securitycentermanagement_v1_EffectiveEventThreatDetectionCustomModule_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.securitycentermanagement.v1.SecurityCenterManagementProto.internal_static_google_cloud_securitycentermanagement_v1_EffectiveEventThreatDetectionCustomModule_fieldAccessorTable + return com.google.cloud.securitycentermanagement.v1.SecurityCenterManagementProto + .internal_static_google_cloud_securitycentermanagement_v1_EffectiveEventThreatDetectionCustomModule_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.securitycentermanagement.v1.EffectiveEventThreatDetectionCustomModule.class, com.google.cloud.securitycentermanagement.v1.EffectiveEventThreatDetectionCustomModule.Builder.class); + com.google.cloud.securitycentermanagement.v1.EffectiveEventThreatDetectionCustomModule + .class, + com.google.cloud.securitycentermanagement.v1.EffectiveEventThreatDetectionCustomModule + .Builder.class); } /** + * + * *
    * The enablement state of the module.
    * 
* - * Protobuf enum {@code google.cloud.securitycentermanagement.v1.EffectiveEventThreatDetectionCustomModule.EnablementState} + * Protobuf enum {@code + * google.cloud.securitycentermanagement.v1.EffectiveEventThreatDetectionCustomModule.EnablementState} */ - public enum EnablementState - implements com.google.protobuf.ProtocolMessageEnum { + public enum EnablementState implements com.google.protobuf.ProtocolMessageEnum { /** + * + * *
      * Unspecified enablement state.
      * 
@@ -71,6 +99,8 @@ public enum EnablementState */ ENABLEMENT_STATE_UNSPECIFIED(0), /** + * + * *
      * The module is enabled at the given level.
      * 
@@ -79,6 +109,8 @@ public enum EnablementState */ ENABLED(1), /** + * + * *
      * The module is disabled at the given level.
      * 
@@ -90,6 +122,8 @@ public enum EnablementState ; /** + * + * *
      * Unspecified enablement state.
      * 
@@ -98,6 +132,8 @@ public enum EnablementState */ public static final int ENABLEMENT_STATE_UNSPECIFIED_VALUE = 0; /** + * + * *
      * The module is enabled at the given level.
      * 
@@ -106,6 +142,8 @@ public enum EnablementState */ public static final int ENABLED_VALUE = 1; /** + * + * *
      * The module is disabled at the given level.
      * 
@@ -114,7 +152,6 @@ public enum EnablementState */ public static final int DISABLED_VALUE = 2; - public final int getNumber() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalArgumentException( @@ -139,40 +176,46 @@ public static EnablementState valueOf(int value) { */ public static EnablementState forNumber(int value) { switch (value) { - case 0: return ENABLEMENT_STATE_UNSPECIFIED; - case 1: return ENABLED; - case 2: return DISABLED; - default: return null; + case 0: + return ENABLEMENT_STATE_UNSPECIFIED; + case 1: + return ENABLED; + case 2: + return DISABLED; + 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< - EnablementState> internalValueMap = - new com.google.protobuf.Internal.EnumLiteMap() { - public EnablementState findValueByNumber(int number) { - return EnablementState.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 EnablementState findValueByNumber(int number) { + return EnablementState.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.securitycentermanagement.v1.EffectiveEventThreatDetectionCustomModule.getDescriptor().getEnumTypes().get(0); + + public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { + return com.google.cloud.securitycentermanagement.v1.EffectiveEventThreatDetectionCustomModule + .getDescriptor() + .getEnumTypes() + .get(0); } private static final EnablementState[] VALUES = values(); @@ -180,8 +223,7 @@ public EnablementState findValueByNumber(int number) { public static EnablementState 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,9 +241,12 @@ private EnablementState(int value) { } public static final int NAME_FIELD_NUMBER = 1; + @SuppressWarnings("serial") private volatile java.lang.Object name_ = ""; /** + * + * *
    * Immutable. The resource name of the ETD custom module.
    *
@@ -213,6 +258,7 @@ private EnablementState(int value) {
    * 
* * string name = 1 [(.google.api.field_behavior) = IMMUTABLE]; + * * @return The name. */ @java.lang.Override @@ -221,14 +267,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; } } /** + * + * *
    * Immutable. The resource name of the ETD custom module.
    *
@@ -240,16 +287,15 @@ public java.lang.String getName() {
    * 
* * string name = 1 [(.google.api.field_behavior) = IMMUTABLE]; + * * @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 { @@ -260,11 +306,14 @@ public java.lang.String getName() { public static final int CONFIG_FIELD_NUMBER = 2; private com.google.protobuf.Struct config_; /** + * + * *
    * Output only. Config for the effective module.
    * 
* * .google.protobuf.Struct config = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return Whether the config field is set. */ @java.lang.Override @@ -272,11 +321,14 @@ public boolean hasConfig() { return config_ != null; } /** + * + * *
    * Output only. Config for the effective module.
    * 
* * .google.protobuf.Struct config = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The config. */ @java.lang.Override @@ -284,6 +336,8 @@ public com.google.protobuf.Struct getConfig() { return config_ == null ? com.google.protobuf.Struct.getDefaultInstance() : config_; } /** + * + * *
    * Output only. Config for the effective module.
    * 
@@ -298,40 +352,65 @@ public com.google.protobuf.StructOrBuilder getConfigOrBuilder() { public static final int ENABLEMENT_STATE_FIELD_NUMBER = 3; private int enablementState_ = 0; /** + * + * *
    * Output only. The effective state of enablement for the module at the given
    * level of the hierarchy.
    * 
* - * .google.cloud.securitycentermanagement.v1.EffectiveEventThreatDetectionCustomModule.EnablementState enablement_state = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.securitycentermanagement.v1.EffectiveEventThreatDetectionCustomModule.EnablementState enablement_state = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The enum numeric value on the wire for enablementState. */ - @java.lang.Override public int getEnablementStateValue() { + @java.lang.Override + public int getEnablementStateValue() { return enablementState_; } /** + * + * *
    * Output only. The effective state of enablement for the module at the given
    * level of the hierarchy.
    * 
* - * .google.cloud.securitycentermanagement.v1.EffectiveEventThreatDetectionCustomModule.EnablementState enablement_state = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.securitycentermanagement.v1.EffectiveEventThreatDetectionCustomModule.EnablementState enablement_state = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The enablementState. */ - @java.lang.Override public com.google.cloud.securitycentermanagement.v1.EffectiveEventThreatDetectionCustomModule.EnablementState getEnablementState() { - com.google.cloud.securitycentermanagement.v1.EffectiveEventThreatDetectionCustomModule.EnablementState result = com.google.cloud.securitycentermanagement.v1.EffectiveEventThreatDetectionCustomModule.EnablementState.forNumber(enablementState_); - return result == null ? com.google.cloud.securitycentermanagement.v1.EffectiveEventThreatDetectionCustomModule.EnablementState.UNRECOGNIZED : result; + @java.lang.Override + public com.google.cloud.securitycentermanagement.v1.EffectiveEventThreatDetectionCustomModule + .EnablementState + getEnablementState() { + com.google.cloud.securitycentermanagement.v1.EffectiveEventThreatDetectionCustomModule + .EnablementState + result = + com.google.cloud.securitycentermanagement.v1.EffectiveEventThreatDetectionCustomModule + .EnablementState.forNumber(enablementState_); + return result == null + ? com.google.cloud.securitycentermanagement.v1.EffectiveEventThreatDetectionCustomModule + .EnablementState.UNRECOGNIZED + : result; } public static final int TYPE_FIELD_NUMBER = 4; + @SuppressWarnings("serial") private volatile java.lang.Object type_ = ""; /** + * + * *
    * Output only. Type for the module. e.g. CONFIGURABLE_BAD_IP.
    * 
* * string type = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The type. */ @java.lang.Override @@ -340,29 +419,29 @@ 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; } } /** + * + * *
    * Output only. Type for the module. e.g. CONFIGURABLE_BAD_IP.
    * 
* * string type = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @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 { @@ -371,14 +450,18 @@ public java.lang.String getType() { } public static final int DISPLAY_NAME_FIELD_NUMBER = 5; + @SuppressWarnings("serial") private volatile java.lang.Object displayName_ = ""; /** + * + * *
    * Output only. The human readable name to be displayed for the module.
    * 
* * string display_name = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The displayName. */ @java.lang.Override @@ -387,29 +470,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; } } /** + * + * *
    * Output only. The human readable name to be displayed for the module.
    * 
* * string display_name = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @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 { @@ -418,14 +501,18 @@ public java.lang.String getDisplayName() { } public static final int DESCRIPTION_FIELD_NUMBER = 6; + @SuppressWarnings("serial") private volatile java.lang.Object description_ = ""; /** + * + * *
    * Output only. The description for the module.
    * 
* * string description = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The description. */ @java.lang.Override @@ -434,29 +521,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 for the module.
    * 
* * string description = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @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 { @@ -465,6 +552,7 @@ public java.lang.String getDescription() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -476,15 +564,17 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.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 (config_ != null) { output.writeMessage(2, getConfig()); } - if (enablementState_ != com.google.cloud.securitycentermanagement.v1.EffectiveEventThreatDetectionCustomModule.EnablementState.ENABLEMENT_STATE_UNSPECIFIED.getNumber()) { + if (enablementState_ + != com.google.cloud.securitycentermanagement.v1.EffectiveEventThreatDetectionCustomModule + .EnablementState.ENABLEMENT_STATE_UNSPECIFIED + .getNumber()) { output.writeEnum(3, enablementState_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(type_)) { @@ -509,12 +599,13 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); } if (config_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(2, getConfig()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getConfig()); } - if (enablementState_ != com.google.cloud.securitycentermanagement.v1.EffectiveEventThreatDetectionCustomModule.EnablementState.ENABLEMENT_STATE_UNSPECIFIED.getNumber()) { - size += com.google.protobuf.CodedOutputStream - .computeEnumSize(3, enablementState_); + if (enablementState_ + != com.google.cloud.securitycentermanagement.v1.EffectiveEventThreatDetectionCustomModule + .EnablementState.ENABLEMENT_STATE_UNSPECIFIED + .getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(3, enablementState_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(type_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, type_); @@ -533,27 +624,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.securitycentermanagement.v1.EffectiveEventThreatDetectionCustomModule)) { + if (!(obj + instanceof + com.google.cloud.securitycentermanagement.v1.EffectiveEventThreatDetectionCustomModule)) { return super.equals(obj); } - com.google.cloud.securitycentermanagement.v1.EffectiveEventThreatDetectionCustomModule other = (com.google.cloud.securitycentermanagement.v1.EffectiveEventThreatDetectionCustomModule) obj; + com.google.cloud.securitycentermanagement.v1.EffectiveEventThreatDetectionCustomModule other = + (com.google.cloud.securitycentermanagement.v1.EffectiveEventThreatDetectionCustomModule) + obj; - if (!getName() - .equals(other.getName())) return false; + if (!getName().equals(other.getName())) return false; if (hasConfig() != other.hasConfig()) return false; if (hasConfig()) { - if (!getConfig() - .equals(other.getConfig())) return false; + if (!getConfig().equals(other.getConfig())) return false; } if (enablementState_ != other.enablementState_) return false; - if (!getType() - .equals(other.getType())) return false; - if (!getDisplayName() - .equals(other.getDisplayName())) return false; - if (!getDescription() - .equals(other.getDescription())) return false; + if (!getType().equals(other.getType())) return false; + if (!getDisplayName().equals(other.getDisplayName())) return false; + if (!getDescription().equals(other.getDescription())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -584,99 +674,124 @@ public int hashCode() { return hash; } - public static com.google.cloud.securitycentermanagement.v1.EffectiveEventThreatDetectionCustomModule parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.securitycentermanagement.v1 + .EffectiveEventThreatDetectionCustomModule + parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.securitycentermanagement.v1.EffectiveEventThreatDetectionCustomModule parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.cloud.securitycentermanagement.v1 + .EffectiveEventThreatDetectionCustomModule + 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.securitycentermanagement.v1.EffectiveEventThreatDetectionCustomModule parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.cloud.securitycentermanagement.v1 + .EffectiveEventThreatDetectionCustomModule + parseFrom(com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.securitycentermanagement.v1.EffectiveEventThreatDetectionCustomModule parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.cloud.securitycentermanagement.v1 + .EffectiveEventThreatDetectionCustomModule + parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.securitycentermanagement.v1.EffectiveEventThreatDetectionCustomModule parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.cloud.securitycentermanagement.v1 + .EffectiveEventThreatDetectionCustomModule + parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.securitycentermanagement.v1.EffectiveEventThreatDetectionCustomModule parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.cloud.securitycentermanagement.v1 + .EffectiveEventThreatDetectionCustomModule + parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.securitycentermanagement.v1.EffectiveEventThreatDetectionCustomModule parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.securitycentermanagement.v1 + .EffectiveEventThreatDetectionCustomModule + parseFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } - public static com.google.cloud.securitycentermanagement.v1.EffectiveEventThreatDetectionCustomModule 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.securitycentermanagement.v1 + .EffectiveEventThreatDetectionCustomModule + 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.securitycentermanagement.v1.EffectiveEventThreatDetectionCustomModule parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.securitycentermanagement.v1 + .EffectiveEventThreatDetectionCustomModule + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.securitycentermanagement.v1.EffectiveEventThreatDetectionCustomModule parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + public static com.google.cloud.securitycentermanagement.v1 + .EffectiveEventThreatDetectionCustomModule + parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.securitycentermanagement.v1.EffectiveEventThreatDetectionCustomModule parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.securitycentermanagement.v1 + .EffectiveEventThreatDetectionCustomModule + parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } - public static com.google.cloud.securitycentermanagement.v1.EffectiveEventThreatDetectionCustomModule 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.securitycentermanagement.v1 + .EffectiveEventThreatDetectionCustomModule + 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.securitycentermanagement.v1.EffectiveEventThreatDetectionCustomModule prototype) { + + public static Builder newBuilder( + com.google.cloud.securitycentermanagement.v1.EffectiveEventThreatDetectionCustomModule + prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * An EffectiveEventThreatDetectionCustomModule is the representation of
    * EventThreatDetectionCustomModule at a given level taking hierarchy into
@@ -687,35 +802,39 @@ protected Builder newBuilderForType(
    * details. EffectiveEventThreatDetectionCustomModule is read-only.
    * 
* - * Protobuf type {@code google.cloud.securitycentermanagement.v1.EffectiveEventThreatDetectionCustomModule} + * Protobuf type {@code + * google.cloud.securitycentermanagement.v1.EffectiveEventThreatDetectionCustomModule} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.securitycentermanagement.v1.EffectiveEventThreatDetectionCustomModule) - com.google.cloud.securitycentermanagement.v1.EffectiveEventThreatDetectionCustomModuleOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.securitycentermanagement.v1.SecurityCenterManagementProto.internal_static_google_cloud_securitycentermanagement_v1_EffectiveEventThreatDetectionCustomModule_descriptor; + com.google.cloud.securitycentermanagement.v1 + .EffectiveEventThreatDetectionCustomModuleOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.securitycentermanagement.v1.SecurityCenterManagementProto + .internal_static_google_cloud_securitycentermanagement_v1_EffectiveEventThreatDetectionCustomModule_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.securitycentermanagement.v1.SecurityCenterManagementProto.internal_static_google_cloud_securitycentermanagement_v1_EffectiveEventThreatDetectionCustomModule_fieldAccessorTable + return com.google.cloud.securitycentermanagement.v1.SecurityCenterManagementProto + .internal_static_google_cloud_securitycentermanagement_v1_EffectiveEventThreatDetectionCustomModule_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.securitycentermanagement.v1.EffectiveEventThreatDetectionCustomModule.class, com.google.cloud.securitycentermanagement.v1.EffectiveEventThreatDetectionCustomModule.Builder.class); + com.google.cloud.securitycentermanagement.v1.EffectiveEventThreatDetectionCustomModule + .class, + com.google.cloud.securitycentermanagement.v1.EffectiveEventThreatDetectionCustomModule + .Builder.class); } - // Construct using com.google.cloud.securitycentermanagement.v1.EffectiveEventThreatDetectionCustomModule.newBuilder() - private Builder() { + // Construct using + // com.google.cloud.securitycentermanagement.v1.EffectiveEventThreatDetectionCustomModule.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(); @@ -734,19 +853,23 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.securitycentermanagement.v1.SecurityCenterManagementProto.internal_static_google_cloud_securitycentermanagement_v1_EffectiveEventThreatDetectionCustomModule_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.securitycentermanagement.v1.SecurityCenterManagementProto + .internal_static_google_cloud_securitycentermanagement_v1_EffectiveEventThreatDetectionCustomModule_descriptor; } @java.lang.Override - public com.google.cloud.securitycentermanagement.v1.EffectiveEventThreatDetectionCustomModule getDefaultInstanceForType() { - return com.google.cloud.securitycentermanagement.v1.EffectiveEventThreatDetectionCustomModule.getDefaultInstance(); + public com.google.cloud.securitycentermanagement.v1.EffectiveEventThreatDetectionCustomModule + getDefaultInstanceForType() { + return com.google.cloud.securitycentermanagement.v1.EffectiveEventThreatDetectionCustomModule + .getDefaultInstance(); } @java.lang.Override - public com.google.cloud.securitycentermanagement.v1.EffectiveEventThreatDetectionCustomModule build() { - com.google.cloud.securitycentermanagement.v1.EffectiveEventThreatDetectionCustomModule result = buildPartial(); + public com.google.cloud.securitycentermanagement.v1.EffectiveEventThreatDetectionCustomModule + build() { + com.google.cloud.securitycentermanagement.v1.EffectiveEventThreatDetectionCustomModule + result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } @@ -754,22 +877,28 @@ public com.google.cloud.securitycentermanagement.v1.EffectiveEventThreatDetectio } @java.lang.Override - public com.google.cloud.securitycentermanagement.v1.EffectiveEventThreatDetectionCustomModule buildPartial() { - com.google.cloud.securitycentermanagement.v1.EffectiveEventThreatDetectionCustomModule result = new com.google.cloud.securitycentermanagement.v1.EffectiveEventThreatDetectionCustomModule(this); - if (bitField0_ != 0) { buildPartial0(result); } + public com.google.cloud.securitycentermanagement.v1.EffectiveEventThreatDetectionCustomModule + buildPartial() { + com.google.cloud.securitycentermanagement.v1.EffectiveEventThreatDetectionCustomModule + result = + new com.google.cloud.securitycentermanagement.v1 + .EffectiveEventThreatDetectionCustomModule(this); + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } - private void buildPartial0(com.google.cloud.securitycentermanagement.v1.EffectiveEventThreatDetectionCustomModule result) { + private void buildPartial0( + com.google.cloud.securitycentermanagement.v1.EffectiveEventThreatDetectionCustomModule + result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000001) != 0)) { result.name_ = name_; } if (((from_bitField0_ & 0x00000002) != 0)) { - result.config_ = configBuilder_ == null - ? config_ - : configBuilder_.build(); + result.config_ = configBuilder_ == null ? config_ : configBuilder_.build(); } if (((from_bitField0_ & 0x00000004) != 0)) { result.enablementState_ = enablementState_; @@ -789,46 +918,55 @@ private void buildPartial0(com.google.cloud.securitycentermanagement.v1.Effectiv public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.cloud.securitycentermanagement.v1.EffectiveEventThreatDetectionCustomModule) { - return mergeFrom((com.google.cloud.securitycentermanagement.v1.EffectiveEventThreatDetectionCustomModule)other); + if (other + instanceof + com.google.cloud.securitycentermanagement.v1.EffectiveEventThreatDetectionCustomModule) { + return mergeFrom( + (com.google.cloud.securitycentermanagement.v1.EffectiveEventThreatDetectionCustomModule) + other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom(com.google.cloud.securitycentermanagement.v1.EffectiveEventThreatDetectionCustomModule other) { - if (other == com.google.cloud.securitycentermanagement.v1.EffectiveEventThreatDetectionCustomModule.getDefaultInstance()) return this; + public Builder mergeFrom( + com.google.cloud.securitycentermanagement.v1.EffectiveEventThreatDetectionCustomModule + other) { + if (other + == com.google.cloud.securitycentermanagement.v1.EffectiveEventThreatDetectionCustomModule + .getDefaultInstance()) return this; if (!other.getName().isEmpty()) { name_ = other.name_; bitField0_ |= 0x00000001; @@ -881,44 +1019,49 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: { - name_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 18: { - input.readMessage( - getConfigFieldBuilder().getBuilder(), - extensionRegistry); - bitField0_ |= 0x00000002; - break; - } // case 18 - case 24: { - enablementState_ = input.readEnum(); - bitField0_ |= 0x00000004; - break; - } // case 24 - case 34: { - type_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000008; - break; - } // case 34 - case 42: { - displayName_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000010; - break; - } // case 42 - case 50: { - description_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000020; - break; - } // case 50 - 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(getConfigFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 24: + { + enablementState_ = input.readEnum(); + bitField0_ |= 0x00000004; + break; + } // case 24 + case 34: + { + type_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000008; + break; + } // case 34 + case 42: + { + displayName_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000010; + break; + } // case 42 + case 50: + { + description_ = 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) { @@ -928,10 +1071,13 @@ public Builder mergeFrom( } // finally return this; } + private int bitField0_; private java.lang.Object name_ = ""; /** + * + * *
      * Immutable. The resource name of the ETD custom module.
      *
@@ -943,13 +1089,13 @@ public Builder mergeFrom(
      * 
* * string name = 1 [(.google.api.field_behavior) = IMMUTABLE]; + * * @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; @@ -958,6 +1104,8 @@ public java.lang.String getName() { } } /** + * + * *
      * Immutable. The resource name of the ETD custom module.
      *
@@ -969,15 +1117,14 @@ public java.lang.String getName() {
      * 
* * string name = 1 [(.google.api.field_behavior) = IMMUTABLE]; + * * @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 { @@ -985,6 +1132,8 @@ public java.lang.String getName() { } } /** + * + * *
      * Immutable. The resource name of the ETD custom module.
      *
@@ -996,18 +1145,22 @@ public java.lang.String getName() {
      * 
* * string name = 1 [(.google.api.field_behavior) = IMMUTABLE]; + * * @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; } /** + * + * *
      * Immutable. The resource name of the ETD custom module.
      *
@@ -1019,6 +1172,7 @@ public Builder setName(
      * 
* * string name = 1 [(.google.api.field_behavior) = IMMUTABLE]; + * * @return This builder for chaining. */ public Builder clearName() { @@ -1028,6 +1182,8 @@ public Builder clearName() { return this; } /** + * + * *
      * Immutable. The resource name of the ETD custom module.
      *
@@ -1039,12 +1195,14 @@ public Builder clearName() {
      * 
* * string name = 1 [(.google.api.field_behavior) = IMMUTABLE]; + * * @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; @@ -1054,24 +1212,33 @@ public Builder setNameBytes( private com.google.protobuf.Struct config_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Struct, com.google.protobuf.Struct.Builder, com.google.protobuf.StructOrBuilder> configBuilder_; + com.google.protobuf.Struct, + com.google.protobuf.Struct.Builder, + com.google.protobuf.StructOrBuilder> + configBuilder_; /** + * + * *
      * Output only. Config for the effective module.
      * 
* * .google.protobuf.Struct config = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return Whether the config field is set. */ public boolean hasConfig() { return ((bitField0_ & 0x00000002) != 0); } /** + * + * *
      * Output only. Config for the effective module.
      * 
* * .google.protobuf.Struct config = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The config. */ public com.google.protobuf.Struct getConfig() { @@ -1082,6 +1249,8 @@ public com.google.protobuf.Struct getConfig() { } } /** + * + * *
      * Output only. Config for the effective module.
      * 
@@ -1102,14 +1271,15 @@ public Builder setConfig(com.google.protobuf.Struct value) { return this; } /** + * + * *
      * Output only. Config for the effective module.
      * 
* * .google.protobuf.Struct config = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ - public Builder setConfig( - com.google.protobuf.Struct.Builder builderForValue) { + public Builder setConfig(com.google.protobuf.Struct.Builder builderForValue) { if (configBuilder_ == null) { config_ = builderForValue.build(); } else { @@ -1120,6 +1290,8 @@ public Builder setConfig( return this; } /** + * + * *
      * Output only. Config for the effective module.
      * 
@@ -1128,9 +1300,9 @@ public Builder setConfig( */ public Builder mergeConfig(com.google.protobuf.Struct value) { if (configBuilder_ == null) { - if (((bitField0_ & 0x00000002) != 0) && - config_ != null && - config_ != com.google.protobuf.Struct.getDefaultInstance()) { + if (((bitField0_ & 0x00000002) != 0) + && config_ != null + && config_ != com.google.protobuf.Struct.getDefaultInstance()) { getConfigBuilder().mergeFrom(value); } else { config_ = value; @@ -1143,6 +1315,8 @@ public Builder mergeConfig(com.google.protobuf.Struct value) { return this; } /** + * + * *
      * Output only. Config for the effective module.
      * 
@@ -1160,6 +1334,8 @@ public Builder clearConfig() { return this; } /** + * + * *
      * Output only. Config for the effective module.
      * 
@@ -1172,6 +1348,8 @@ public com.google.protobuf.Struct.Builder getConfigBuilder() { return getConfigFieldBuilder().getBuilder(); } /** + * + * *
      * Output only. Config for the effective module.
      * 
@@ -1182,11 +1360,12 @@ public com.google.protobuf.StructOrBuilder getConfigOrBuilder() { if (configBuilder_ != null) { return configBuilder_.getMessageOrBuilder(); } else { - return config_ == null ? - com.google.protobuf.Struct.getDefaultInstance() : config_; + return config_ == null ? com.google.protobuf.Struct.getDefaultInstance() : config_; } } /** + * + * *
      * Output only. Config for the effective module.
      * 
@@ -1194,14 +1373,17 @@ public com.google.protobuf.StructOrBuilder getConfigOrBuilder() { * .google.protobuf.Struct config = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Struct, com.google.protobuf.Struct.Builder, com.google.protobuf.StructOrBuilder> + com.google.protobuf.Struct, + com.google.protobuf.Struct.Builder, + com.google.protobuf.StructOrBuilder> getConfigFieldBuilder() { if (configBuilder_ == null) { - configBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Struct, com.google.protobuf.Struct.Builder, com.google.protobuf.StructOrBuilder>( - getConfig(), - getParentForChildren(), - isClean()); + configBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Struct, + com.google.protobuf.Struct.Builder, + com.google.protobuf.StructOrBuilder>( + getConfig(), getParentForChildren(), isClean()); config_ = null; } return configBuilder_; @@ -1209,24 +1391,35 @@ public com.google.protobuf.StructOrBuilder getConfigOrBuilder() { private int enablementState_ = 0; /** + * + * *
      * Output only. The effective state of enablement for the module at the given
      * level of the hierarchy.
      * 
* - * .google.cloud.securitycentermanagement.v1.EffectiveEventThreatDetectionCustomModule.EnablementState enablement_state = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.securitycentermanagement.v1.EffectiveEventThreatDetectionCustomModule.EnablementState enablement_state = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The enum numeric value on the wire for enablementState. */ - @java.lang.Override public int getEnablementStateValue() { + @java.lang.Override + public int getEnablementStateValue() { return enablementState_; } /** + * + * *
      * Output only. The effective state of enablement for the module at the given
      * level of the hierarchy.
      * 
* - * .google.cloud.securitycentermanagement.v1.EffectiveEventThreatDetectionCustomModule.EnablementState enablement_state = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.securitycentermanagement.v1.EffectiveEventThreatDetectionCustomModule.EnablementState enablement_state = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @param value The enum numeric value on the wire for enablementState to set. * @return This builder for chaining. */ @@ -1237,30 +1430,52 @@ public Builder setEnablementStateValue(int value) { return this; } /** + * + * *
      * Output only. The effective state of enablement for the module at the given
      * level of the hierarchy.
      * 
* - * .google.cloud.securitycentermanagement.v1.EffectiveEventThreatDetectionCustomModule.EnablementState enablement_state = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.securitycentermanagement.v1.EffectiveEventThreatDetectionCustomModule.EnablementState enablement_state = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The enablementState. */ @java.lang.Override - public com.google.cloud.securitycentermanagement.v1.EffectiveEventThreatDetectionCustomModule.EnablementState getEnablementState() { - com.google.cloud.securitycentermanagement.v1.EffectiveEventThreatDetectionCustomModule.EnablementState result = com.google.cloud.securitycentermanagement.v1.EffectiveEventThreatDetectionCustomModule.EnablementState.forNumber(enablementState_); - return result == null ? com.google.cloud.securitycentermanagement.v1.EffectiveEventThreatDetectionCustomModule.EnablementState.UNRECOGNIZED : result; + public com.google.cloud.securitycentermanagement.v1.EffectiveEventThreatDetectionCustomModule + .EnablementState + getEnablementState() { + com.google.cloud.securitycentermanagement.v1.EffectiveEventThreatDetectionCustomModule + .EnablementState + result = + com.google.cloud.securitycentermanagement.v1.EffectiveEventThreatDetectionCustomModule + .EnablementState.forNumber(enablementState_); + return result == null + ? com.google.cloud.securitycentermanagement.v1.EffectiveEventThreatDetectionCustomModule + .EnablementState.UNRECOGNIZED + : result; } /** + * + * *
      * Output only. The effective state of enablement for the module at the given
      * level of the hierarchy.
      * 
* - * .google.cloud.securitycentermanagement.v1.EffectiveEventThreatDetectionCustomModule.EnablementState enablement_state = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.securitycentermanagement.v1.EffectiveEventThreatDetectionCustomModule.EnablementState enablement_state = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @param value The enablementState to set. * @return This builder for chaining. */ - public Builder setEnablementState(com.google.cloud.securitycentermanagement.v1.EffectiveEventThreatDetectionCustomModule.EnablementState value) { + public Builder setEnablementState( + com.google.cloud.securitycentermanagement.v1.EffectiveEventThreatDetectionCustomModule + .EnablementState + value) { if (value == null) { throw new NullPointerException(); } @@ -1270,12 +1485,17 @@ public Builder setEnablementState(com.google.cloud.securitycentermanagement.v1.E return this; } /** + * + * *
      * Output only. The effective state of enablement for the module at the given
      * level of the hierarchy.
      * 
* - * .google.cloud.securitycentermanagement.v1.EffectiveEventThreatDetectionCustomModule.EnablementState enablement_state = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.securitycentermanagement.v1.EffectiveEventThreatDetectionCustomModule.EnablementState enablement_state = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return This builder for chaining. */ public Builder clearEnablementState() { @@ -1287,18 +1507,20 @@ public Builder clearEnablementState() { private java.lang.Object type_ = ""; /** + * + * *
      * Output only. Type for the module. e.g. CONFIGURABLE_BAD_IP.
      * 
* * string type = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @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; @@ -1307,20 +1529,21 @@ public java.lang.String getType() { } } /** + * + * *
      * Output only. Type for the module. e.g. CONFIGURABLE_BAD_IP.
      * 
* * string type = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @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 { @@ -1328,28 +1551,35 @@ public java.lang.String getType() { } } /** + * + * *
      * Output only. Type for the module. e.g. CONFIGURABLE_BAD_IP.
      * 
* * string type = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @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_ |= 0x00000008; onChanged(); return this; } /** + * + * *
      * Output only. Type for the module. e.g. CONFIGURABLE_BAD_IP.
      * 
* * string type = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return This builder for chaining. */ public Builder clearType() { @@ -1359,17 +1589,21 @@ public Builder clearType() { return this; } /** + * + * *
      * Output only. Type for the module. e.g. CONFIGURABLE_BAD_IP.
      * 
* * string type = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @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_ |= 0x00000008; @@ -1379,18 +1613,20 @@ public Builder setTypeBytes( private java.lang.Object displayName_ = ""; /** + * + * *
      * Output only. The human readable name to be displayed for the module.
      * 
* * string display_name = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @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; @@ -1399,20 +1635,21 @@ public java.lang.String getDisplayName() { } } /** + * + * *
      * Output only. The human readable name to be displayed for the module.
      * 
* * string display_name = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @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 { @@ -1420,28 +1657,35 @@ public java.lang.String getDisplayName() { } } /** + * + * *
      * Output only. The human readable name to be displayed for the module.
      * 
* * string display_name = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @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_ |= 0x00000010; onChanged(); return this; } /** + * + * *
      * Output only. The human readable name to be displayed for the module.
      * 
* * string display_name = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return This builder for chaining. */ public Builder clearDisplayName() { @@ -1451,17 +1695,21 @@ public Builder clearDisplayName() { return this; } /** + * + * *
      * Output only. The human readable name to be displayed for the module.
      * 
* * string display_name = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @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_ |= 0x00000010; @@ -1471,18 +1719,20 @@ public Builder setDisplayNameBytes( private java.lang.Object description_ = ""; /** + * + * *
      * Output only. The description for the module.
      * 
* * string description = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @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; @@ -1491,20 +1741,21 @@ public java.lang.String getDescription() { } } /** + * + * *
      * Output only. The description for the module.
      * 
* * string description = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @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 { @@ -1512,28 +1763,35 @@ public java.lang.String getDescription() { } } /** + * + * *
      * Output only. The description for the module.
      * 
* * string description = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @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; } /** + * + * *
      * Output only. The description for the module.
      * 
* * string description = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return This builder for chaining. */ public Builder clearDescription() { @@ -1543,26 +1801,30 @@ public Builder clearDescription() { return this; } /** + * + * *
      * Output only. The description for the module.
      * 
* * string description = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @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; onChanged(); return this; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1572,41 +1834,49 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.securitycentermanagement.v1.EffectiveEventThreatDetectionCustomModule) } // @@protoc_insertion_point(class_scope:google.cloud.securitycentermanagement.v1.EffectiveEventThreatDetectionCustomModule) - private static final com.google.cloud.securitycentermanagement.v1.EffectiveEventThreatDetectionCustomModule DEFAULT_INSTANCE; + private static final com.google.cloud.securitycentermanagement.v1 + .EffectiveEventThreatDetectionCustomModule + DEFAULT_INSTANCE; + static { - DEFAULT_INSTANCE = new com.google.cloud.securitycentermanagement.v1.EffectiveEventThreatDetectionCustomModule(); + DEFAULT_INSTANCE = + new com.google.cloud.securitycentermanagement.v1 + .EffectiveEventThreatDetectionCustomModule(); } - public static com.google.cloud.securitycentermanagement.v1.EffectiveEventThreatDetectionCustomModule getDefaultInstance() { + public static com.google.cloud.securitycentermanagement.v1 + .EffectiveEventThreatDetectionCustomModule + getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public EffectiveEventThreatDetectionCustomModule parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public EffectiveEventThreatDetectionCustomModule parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException() + .setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1618,9 +1888,8 @@ public com.google.protobuf.Parser get } @java.lang.Override - public com.google.cloud.securitycentermanagement.v1.EffectiveEventThreatDetectionCustomModule getDefaultInstanceForType() { + public com.google.cloud.securitycentermanagement.v1.EffectiveEventThreatDetectionCustomModule + getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/java-securitycentermanagement/v1/proto-google-cloud-securitycentermanagement-v1/src/main/java/com/google/cloud/securitycentermanagement/v1/EffectiveEventThreatDetectionCustomModuleName.java b/java-securitycentermanagement/proto-google-cloud-securitycentermanagement-v1/src/main/java/com/google/cloud/securitycentermanagement/v1/EffectiveEventThreatDetectionCustomModuleName.java similarity index 100% rename from owl-bot-staging/java-securitycentermanagement/v1/proto-google-cloud-securitycentermanagement-v1/src/main/java/com/google/cloud/securitycentermanagement/v1/EffectiveEventThreatDetectionCustomModuleName.java rename to java-securitycentermanagement/proto-google-cloud-securitycentermanagement-v1/src/main/java/com/google/cloud/securitycentermanagement/v1/EffectiveEventThreatDetectionCustomModuleName.java diff --git a/owl-bot-staging/java-securitycentermanagement/v1/proto-google-cloud-securitycentermanagement-v1/src/main/java/com/google/cloud/securitycentermanagement/v1/EffectiveEventThreatDetectionCustomModuleOrBuilder.java b/java-securitycentermanagement/proto-google-cloud-securitycentermanagement-v1/src/main/java/com/google/cloud/securitycentermanagement/v1/EffectiveEventThreatDetectionCustomModuleOrBuilder.java similarity index 75% rename from owl-bot-staging/java-securitycentermanagement/v1/proto-google-cloud-securitycentermanagement-v1/src/main/java/com/google/cloud/securitycentermanagement/v1/EffectiveEventThreatDetectionCustomModuleOrBuilder.java rename to java-securitycentermanagement/proto-google-cloud-securitycentermanagement-v1/src/main/java/com/google/cloud/securitycentermanagement/v1/EffectiveEventThreatDetectionCustomModuleOrBuilder.java index 2cd77e696f44..aeaf210ff76c 100644 --- a/owl-bot-staging/java-securitycentermanagement/v1/proto-google-cloud-securitycentermanagement-v1/src/main/java/com/google/cloud/securitycentermanagement/v1/EffectiveEventThreatDetectionCustomModuleOrBuilder.java +++ b/java-securitycentermanagement/proto-google-cloud-securitycentermanagement-v1/src/main/java/com/google/cloud/securitycentermanagement/v1/EffectiveEventThreatDetectionCustomModuleOrBuilder.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/securitycentermanagement/v1/security_center_management.proto package com.google.cloud.securitycentermanagement.v1; -public interface EffectiveEventThreatDetectionCustomModuleOrBuilder extends +public interface EffectiveEventThreatDetectionCustomModuleOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.securitycentermanagement.v1.EffectiveEventThreatDetectionCustomModule) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * Immutable. The resource name of the ETD custom module.
    *
@@ -19,10 +37,13 @@ public interface EffectiveEventThreatDetectionCustomModuleOrBuilder extends
    * 
* * string name = 1 [(.google.api.field_behavior) = IMMUTABLE]; + * * @return The name. */ java.lang.String getName(); /** + * + * *
    * Immutable. The resource name of the ETD custom module.
    *
@@ -34,30 +55,38 @@ public interface EffectiveEventThreatDetectionCustomModuleOrBuilder extends
    * 
* * string name = 1 [(.google.api.field_behavior) = IMMUTABLE]; + * * @return The bytes for name. */ - com.google.protobuf.ByteString - getNameBytes(); + com.google.protobuf.ByteString getNameBytes(); /** + * + * *
    * Output only. Config for the effective module.
    * 
* * .google.protobuf.Struct config = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return Whether the config field is set. */ boolean hasConfig(); /** + * + * *
    * Output only. Config for the effective module.
    * 
* * .google.protobuf.Struct config = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The config. */ com.google.protobuf.Struct getConfig(); /** + * + * *
    * Output only. Config for the effective module.
    * 
@@ -67,83 +96,110 @@ public interface EffectiveEventThreatDetectionCustomModuleOrBuilder extends com.google.protobuf.StructOrBuilder getConfigOrBuilder(); /** + * + * *
    * Output only. The effective state of enablement for the module at the given
    * level of the hierarchy.
    * 
* - * .google.cloud.securitycentermanagement.v1.EffectiveEventThreatDetectionCustomModule.EnablementState enablement_state = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.securitycentermanagement.v1.EffectiveEventThreatDetectionCustomModule.EnablementState enablement_state = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The enum numeric value on the wire for enablementState. */ int getEnablementStateValue(); /** + * + * *
    * Output only. The effective state of enablement for the module at the given
    * level of the hierarchy.
    * 
* - * .google.cloud.securitycentermanagement.v1.EffectiveEventThreatDetectionCustomModule.EnablementState enablement_state = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.securitycentermanagement.v1.EffectiveEventThreatDetectionCustomModule.EnablementState enablement_state = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The enablementState. */ - com.google.cloud.securitycentermanagement.v1.EffectiveEventThreatDetectionCustomModule.EnablementState getEnablementState(); + com.google.cloud.securitycentermanagement.v1.EffectiveEventThreatDetectionCustomModule + .EnablementState + getEnablementState(); /** + * + * *
    * Output only. Type for the module. e.g. CONFIGURABLE_BAD_IP.
    * 
* * string type = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The type. */ java.lang.String getType(); /** + * + * *
    * Output only. Type for the module. e.g. CONFIGURABLE_BAD_IP.
    * 
* * string type = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The bytes for type. */ - com.google.protobuf.ByteString - getTypeBytes(); + com.google.protobuf.ByteString getTypeBytes(); /** + * + * *
    * Output only. The human readable name to be displayed for the module.
    * 
* * string display_name = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The displayName. */ java.lang.String getDisplayName(); /** + * + * *
    * Output only. The human readable name to be displayed for the module.
    * 
* * string display_name = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The bytes for displayName. */ - com.google.protobuf.ByteString - getDisplayNameBytes(); + com.google.protobuf.ByteString getDisplayNameBytes(); /** + * + * *
    * Output only. The description for the module.
    * 
* * string description = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The description. */ java.lang.String getDescription(); /** + * + * *
    * Output only. The description for the module.
    * 
* * string description = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The bytes for description. */ - com.google.protobuf.ByteString - getDescriptionBytes(); + com.google.protobuf.ByteString getDescriptionBytes(); } diff --git a/owl-bot-staging/java-securitycentermanagement/v1/proto-google-cloud-securitycentermanagement-v1/src/main/java/com/google/cloud/securitycentermanagement/v1/EffectiveSecurityHealthAnalyticsCustomModule.java b/java-securitycentermanagement/proto-google-cloud-securitycentermanagement-v1/src/main/java/com/google/cloud/securitycentermanagement/v1/EffectiveSecurityHealthAnalyticsCustomModule.java similarity index 58% rename from owl-bot-staging/java-securitycentermanagement/v1/proto-google-cloud-securitycentermanagement-v1/src/main/java/com/google/cloud/securitycentermanagement/v1/EffectiveSecurityHealthAnalyticsCustomModule.java rename to java-securitycentermanagement/proto-google-cloud-securitycentermanagement-v1/src/main/java/com/google/cloud/securitycentermanagement/v1/EffectiveSecurityHealthAnalyticsCustomModule.java index cfd5f22aedf0..79725cca8c22 100644 --- a/owl-bot-staging/java-securitycentermanagement/v1/proto-google-cloud-securitycentermanagement-v1/src/main/java/com/google/cloud/securitycentermanagement/v1/EffectiveSecurityHealthAnalyticsCustomModule.java +++ b/java-securitycentermanagement/proto-google-cloud-securitycentermanagement-v1/src/main/java/com/google/cloud/securitycentermanagement/v1/EffectiveSecurityHealthAnalyticsCustomModule.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/securitycentermanagement/v1/security_center_management.proto package com.google.cloud.securitycentermanagement.v1; /** + * + * *
  * An EffectiveSecurityHealthAnalyticsCustomModule is the representation of
  * a Security Health Analytics custom module at a specified level of the
@@ -16,17 +33,21 @@
  * also `enabled`. EffectiveSecurityHealthAnalyticsCustomModule is read-only.
  * 
* - * Protobuf type {@code google.cloud.securitycentermanagement.v1.EffectiveSecurityHealthAnalyticsCustomModule} + * Protobuf type {@code + * google.cloud.securitycentermanagement.v1.EffectiveSecurityHealthAnalyticsCustomModule} */ -public final class EffectiveSecurityHealthAnalyticsCustomModule extends - com.google.protobuf.GeneratedMessageV3 implements +public final class EffectiveSecurityHealthAnalyticsCustomModule + extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.securitycentermanagement.v1.EffectiveSecurityHealthAnalyticsCustomModule) EffectiveSecurityHealthAnalyticsCustomModuleOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use EffectiveSecurityHealthAnalyticsCustomModule.newBuilder() to construct. - private EffectiveSecurityHealthAnalyticsCustomModule(com.google.protobuf.GeneratedMessageV3.Builder builder) { + private EffectiveSecurityHealthAnalyticsCustomModule( + com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private EffectiveSecurityHealthAnalyticsCustomModule() { name_ = ""; enablementState_ = 0; @@ -35,34 +56,41 @@ private EffectiveSecurityHealthAnalyticsCustomModule() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new EffectiveSecurityHealthAnalyticsCustomModule(); } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.securitycentermanagement.v1.SecurityCenterManagementProto.internal_static_google_cloud_securitycentermanagement_v1_EffectiveSecurityHealthAnalyticsCustomModule_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.securitycentermanagement.v1.SecurityCenterManagementProto + .internal_static_google_cloud_securitycentermanagement_v1_EffectiveSecurityHealthAnalyticsCustomModule_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.securitycentermanagement.v1.SecurityCenterManagementProto.internal_static_google_cloud_securitycentermanagement_v1_EffectiveSecurityHealthAnalyticsCustomModule_fieldAccessorTable + return com.google.cloud.securitycentermanagement.v1.SecurityCenterManagementProto + .internal_static_google_cloud_securitycentermanagement_v1_EffectiveSecurityHealthAnalyticsCustomModule_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.securitycentermanagement.v1.EffectiveSecurityHealthAnalyticsCustomModule.class, com.google.cloud.securitycentermanagement.v1.EffectiveSecurityHealthAnalyticsCustomModule.Builder.class); + com.google.cloud.securitycentermanagement.v1 + .EffectiveSecurityHealthAnalyticsCustomModule.class, + com.google.cloud.securitycentermanagement.v1 + .EffectiveSecurityHealthAnalyticsCustomModule.Builder.class); } /** + * + * *
    * The enablement state of the module.
    * 
* - * Protobuf enum {@code google.cloud.securitycentermanagement.v1.EffectiveSecurityHealthAnalyticsCustomModule.EnablementState} + * Protobuf enum {@code + * google.cloud.securitycentermanagement.v1.EffectiveSecurityHealthAnalyticsCustomModule.EnablementState} */ - public enum EnablementState - implements com.google.protobuf.ProtocolMessageEnum { + public enum EnablementState implements com.google.protobuf.ProtocolMessageEnum { /** + * + * *
      * Unspecified enablement state.
      * 
@@ -71,6 +99,8 @@ public enum EnablementState */ ENABLEMENT_STATE_UNSPECIFIED(0), /** + * + * *
      * The module is enabled at the given level.
      * 
@@ -79,6 +109,8 @@ public enum EnablementState */ ENABLED(1), /** + * + * *
      * The module is disabled at the given level.
      * 
@@ -90,6 +122,8 @@ public enum EnablementState ; /** + * + * *
      * Unspecified enablement state.
      * 
@@ -98,6 +132,8 @@ public enum EnablementState */ public static final int ENABLEMENT_STATE_UNSPECIFIED_VALUE = 0; /** + * + * *
      * The module is enabled at the given level.
      * 
@@ -106,6 +142,8 @@ public enum EnablementState */ public static final int ENABLED_VALUE = 1; /** + * + * *
      * The module is disabled at the given level.
      * 
@@ -114,7 +152,6 @@ public enum EnablementState */ public static final int DISABLED_VALUE = 2; - public final int getNumber() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalArgumentException( @@ -139,40 +176,46 @@ public static EnablementState valueOf(int value) { */ public static EnablementState forNumber(int value) { switch (value) { - case 0: return ENABLEMENT_STATE_UNSPECIFIED; - case 1: return ENABLED; - case 2: return DISABLED; - default: return null; + case 0: + return ENABLEMENT_STATE_UNSPECIFIED; + case 1: + return ENABLED; + case 2: + return DISABLED; + 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< - EnablementState> internalValueMap = - new com.google.protobuf.Internal.EnumLiteMap() { - public EnablementState findValueByNumber(int number) { - return EnablementState.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 EnablementState findValueByNumber(int number) { + return EnablementState.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.securitycentermanagement.v1.EffectiveSecurityHealthAnalyticsCustomModule.getDescriptor().getEnumTypes().get(0); + + public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { + return com.google.cloud.securitycentermanagement.v1 + .EffectiveSecurityHealthAnalyticsCustomModule.getDescriptor() + .getEnumTypes() + .get(0); } private static final EnablementState[] VALUES = values(); @@ -180,8 +223,7 @@ public EnablementState findValueByNumber(int number) { public static EnablementState 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,9 +241,12 @@ private EnablementState(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 custom module.
    * Its format is
@@ -213,6 +258,7 @@ private EnablementState(int value) {
    * 
* * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The name. */ @java.lang.Override @@ -221,14 +267,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 custom module.
    * Its format is
@@ -240,16 +287,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 { @@ -260,11 +306,16 @@ public java.lang.String getName() { public static final int CUSTOM_CONFIG_FIELD_NUMBER = 2; private com.google.cloud.securitycentermanagement.v1.CustomConfig customConfig_; /** + * + * *
    * Output only. The user-specified configuration for the module.
    * 
* - * .google.cloud.securitycentermanagement.v1.CustomConfig custom_config = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.securitycentermanagement.v1.CustomConfig custom_config = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return Whether the customConfig field is set. */ @java.lang.Override @@ -272,61 +323,100 @@ public boolean hasCustomConfig() { return customConfig_ != null; } /** + * + * *
    * Output only. The user-specified configuration for the module.
    * 
* - * .google.cloud.securitycentermanagement.v1.CustomConfig custom_config = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.securitycentermanagement.v1.CustomConfig custom_config = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The customConfig. */ @java.lang.Override public com.google.cloud.securitycentermanagement.v1.CustomConfig getCustomConfig() { - return customConfig_ == null ? com.google.cloud.securitycentermanagement.v1.CustomConfig.getDefaultInstance() : customConfig_; + return customConfig_ == null + ? com.google.cloud.securitycentermanagement.v1.CustomConfig.getDefaultInstance() + : customConfig_; } /** + * + * *
    * Output only. The user-specified configuration for the module.
    * 
* - * .google.cloud.securitycentermanagement.v1.CustomConfig custom_config = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.securitycentermanagement.v1.CustomConfig custom_config = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ @java.lang.Override - public com.google.cloud.securitycentermanagement.v1.CustomConfigOrBuilder getCustomConfigOrBuilder() { - return customConfig_ == null ? com.google.cloud.securitycentermanagement.v1.CustomConfig.getDefaultInstance() : customConfig_; + public com.google.cloud.securitycentermanagement.v1.CustomConfigOrBuilder + getCustomConfigOrBuilder() { + return customConfig_ == null + ? com.google.cloud.securitycentermanagement.v1.CustomConfig.getDefaultInstance() + : customConfig_; } public static final int ENABLEMENT_STATE_FIELD_NUMBER = 3; private int enablementState_ = 0; /** + * + * *
    * Output only. The effective state of enablement for the module at the given
    * level of the hierarchy.
    * 
* - * .google.cloud.securitycentermanagement.v1.EffectiveSecurityHealthAnalyticsCustomModule.EnablementState enablement_state = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.securitycentermanagement.v1.EffectiveSecurityHealthAnalyticsCustomModule.EnablementState enablement_state = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The enum numeric value on the wire for enablementState. */ - @java.lang.Override public int getEnablementStateValue() { + @java.lang.Override + public int getEnablementStateValue() { return enablementState_; } /** + * + * *
    * Output only. The effective state of enablement for the module at the given
    * level of the hierarchy.
    * 
* - * .google.cloud.securitycentermanagement.v1.EffectiveSecurityHealthAnalyticsCustomModule.EnablementState enablement_state = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.securitycentermanagement.v1.EffectiveSecurityHealthAnalyticsCustomModule.EnablementState enablement_state = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The enablementState. */ - @java.lang.Override public com.google.cloud.securitycentermanagement.v1.EffectiveSecurityHealthAnalyticsCustomModule.EnablementState getEnablementState() { - com.google.cloud.securitycentermanagement.v1.EffectiveSecurityHealthAnalyticsCustomModule.EnablementState result = com.google.cloud.securitycentermanagement.v1.EffectiveSecurityHealthAnalyticsCustomModule.EnablementState.forNumber(enablementState_); - return result == null ? com.google.cloud.securitycentermanagement.v1.EffectiveSecurityHealthAnalyticsCustomModule.EnablementState.UNRECOGNIZED : result; + @java.lang.Override + public com.google.cloud.securitycentermanagement.v1.EffectiveSecurityHealthAnalyticsCustomModule + .EnablementState + getEnablementState() { + com.google.cloud.securitycentermanagement.v1.EffectiveSecurityHealthAnalyticsCustomModule + .EnablementState + result = + com.google.cloud.securitycentermanagement.v1 + .EffectiveSecurityHealthAnalyticsCustomModule.EnablementState.forNumber( + enablementState_); + return result == null + ? com.google.cloud.securitycentermanagement.v1.EffectiveSecurityHealthAnalyticsCustomModule + .EnablementState.UNRECOGNIZED + : result; } public static final int DISPLAY_NAME_FIELD_NUMBER = 4; + @SuppressWarnings("serial") private volatile java.lang.Object displayName_ = ""; /** + * + * *
    * Output only. The display name for the custom module. The name must be
    * between 1 and 128 characters, start with a lowercase letter, and contain
@@ -334,6 +424,7 @@ public com.google.cloud.securitycentermanagement.v1.CustomConfigOrBuilder getCus
    * 
* * string display_name = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The displayName. */ @java.lang.Override @@ -342,14 +433,15 @@ 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; } } /** + * + * *
    * Output only. The display name for the custom module. The name must be
    * between 1 and 128 characters, start with a lowercase letter, and contain
@@ -357,16 +449,15 @@ public java.lang.String getDisplayName() {
    * 
* * string display_name = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @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 { @@ -375,6 +466,7 @@ public java.lang.String getDisplayName() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -386,15 +478,17 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.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 (customConfig_ != null) { output.writeMessage(2, getCustomConfig()); } - if (enablementState_ != com.google.cloud.securitycentermanagement.v1.EffectiveSecurityHealthAnalyticsCustomModule.EnablementState.ENABLEMENT_STATE_UNSPECIFIED.getNumber()) { + if (enablementState_ + != com.google.cloud.securitycentermanagement.v1.EffectiveSecurityHealthAnalyticsCustomModule + .EnablementState.ENABLEMENT_STATE_UNSPECIFIED + .getNumber()) { output.writeEnum(3, enablementState_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(displayName_)) { @@ -413,12 +507,13 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); } if (customConfig_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(2, getCustomConfig()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getCustomConfig()); } - if (enablementState_ != com.google.cloud.securitycentermanagement.v1.EffectiveSecurityHealthAnalyticsCustomModule.EnablementState.ENABLEMENT_STATE_UNSPECIFIED.getNumber()) { - size += com.google.protobuf.CodedOutputStream - .computeEnumSize(3, enablementState_); + if (enablementState_ + != com.google.cloud.securitycentermanagement.v1.EffectiveSecurityHealthAnalyticsCustomModule + .EnablementState.ENABLEMENT_STATE_UNSPECIFIED + .getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(3, enablementState_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(displayName_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, displayName_); @@ -431,23 +526,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.securitycentermanagement.v1.EffectiveSecurityHealthAnalyticsCustomModule)) { + if (!(obj + instanceof + com.google.cloud.securitycentermanagement.v1 + .EffectiveSecurityHealthAnalyticsCustomModule)) { return super.equals(obj); } - com.google.cloud.securitycentermanagement.v1.EffectiveSecurityHealthAnalyticsCustomModule other = (com.google.cloud.securitycentermanagement.v1.EffectiveSecurityHealthAnalyticsCustomModule) obj; + com.google.cloud.securitycentermanagement.v1.EffectiveSecurityHealthAnalyticsCustomModule + other = + (com.google.cloud.securitycentermanagement.v1 + .EffectiveSecurityHealthAnalyticsCustomModule) + obj; - if (!getName() - .equals(other.getName())) return false; + if (!getName().equals(other.getName())) return false; if (hasCustomConfig() != other.hasCustomConfig()) return false; if (hasCustomConfig()) { - if (!getCustomConfig() - .equals(other.getCustomConfig())) return false; + if (!getCustomConfig().equals(other.getCustomConfig())) return false; } if (enablementState_ != other.enablementState_) return false; - if (!getDisplayName() - .equals(other.getDisplayName())) return false; + if (!getDisplayName().equals(other.getDisplayName())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -474,99 +573,124 @@ public int hashCode() { return hash; } - public static com.google.cloud.securitycentermanagement.v1.EffectiveSecurityHealthAnalyticsCustomModule parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.securitycentermanagement.v1 + .EffectiveSecurityHealthAnalyticsCustomModule + parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.securitycentermanagement.v1.EffectiveSecurityHealthAnalyticsCustomModule parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.cloud.securitycentermanagement.v1 + .EffectiveSecurityHealthAnalyticsCustomModule + 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.securitycentermanagement.v1.EffectiveSecurityHealthAnalyticsCustomModule parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.cloud.securitycentermanagement.v1 + .EffectiveSecurityHealthAnalyticsCustomModule + parseFrom(com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.securitycentermanagement.v1.EffectiveSecurityHealthAnalyticsCustomModule parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.cloud.securitycentermanagement.v1 + .EffectiveSecurityHealthAnalyticsCustomModule + parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.securitycentermanagement.v1.EffectiveSecurityHealthAnalyticsCustomModule parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.cloud.securitycentermanagement.v1 + .EffectiveSecurityHealthAnalyticsCustomModule + parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.securitycentermanagement.v1.EffectiveSecurityHealthAnalyticsCustomModule parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.cloud.securitycentermanagement.v1 + .EffectiveSecurityHealthAnalyticsCustomModule + parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.securitycentermanagement.v1.EffectiveSecurityHealthAnalyticsCustomModule parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.securitycentermanagement.v1 + .EffectiveSecurityHealthAnalyticsCustomModule + parseFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } - public static com.google.cloud.securitycentermanagement.v1.EffectiveSecurityHealthAnalyticsCustomModule 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.securitycentermanagement.v1 + .EffectiveSecurityHealthAnalyticsCustomModule + 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.securitycentermanagement.v1.EffectiveSecurityHealthAnalyticsCustomModule parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.securitycentermanagement.v1 + .EffectiveSecurityHealthAnalyticsCustomModule + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.securitycentermanagement.v1.EffectiveSecurityHealthAnalyticsCustomModule parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + public static com.google.cloud.securitycentermanagement.v1 + .EffectiveSecurityHealthAnalyticsCustomModule + parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.securitycentermanagement.v1.EffectiveSecurityHealthAnalyticsCustomModule parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.securitycentermanagement.v1 + .EffectiveSecurityHealthAnalyticsCustomModule + parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } - public static com.google.cloud.securitycentermanagement.v1.EffectiveSecurityHealthAnalyticsCustomModule 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.securitycentermanagement.v1 + .EffectiveSecurityHealthAnalyticsCustomModule + 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.securitycentermanagement.v1.EffectiveSecurityHealthAnalyticsCustomModule prototype) { + + public static Builder newBuilder( + com.google.cloud.securitycentermanagement.v1.EffectiveSecurityHealthAnalyticsCustomModule + prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * An EffectiveSecurityHealthAnalyticsCustomModule is the representation of
    * a Security Health Analytics custom module at a specified level of the
@@ -579,35 +703,39 @@ protected Builder newBuilderForType(
    * also `enabled`. EffectiveSecurityHealthAnalyticsCustomModule is read-only.
    * 
* - * Protobuf type {@code google.cloud.securitycentermanagement.v1.EffectiveSecurityHealthAnalyticsCustomModule} + * Protobuf type {@code + * google.cloud.securitycentermanagement.v1.EffectiveSecurityHealthAnalyticsCustomModule} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.securitycentermanagement.v1.EffectiveSecurityHealthAnalyticsCustomModule) - com.google.cloud.securitycentermanagement.v1.EffectiveSecurityHealthAnalyticsCustomModuleOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.securitycentermanagement.v1.SecurityCenterManagementProto.internal_static_google_cloud_securitycentermanagement_v1_EffectiveSecurityHealthAnalyticsCustomModule_descriptor; + com.google.cloud.securitycentermanagement.v1 + .EffectiveSecurityHealthAnalyticsCustomModuleOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.securitycentermanagement.v1.SecurityCenterManagementProto + .internal_static_google_cloud_securitycentermanagement_v1_EffectiveSecurityHealthAnalyticsCustomModule_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.securitycentermanagement.v1.SecurityCenterManagementProto.internal_static_google_cloud_securitycentermanagement_v1_EffectiveSecurityHealthAnalyticsCustomModule_fieldAccessorTable + return com.google.cloud.securitycentermanagement.v1.SecurityCenterManagementProto + .internal_static_google_cloud_securitycentermanagement_v1_EffectiveSecurityHealthAnalyticsCustomModule_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.securitycentermanagement.v1.EffectiveSecurityHealthAnalyticsCustomModule.class, com.google.cloud.securitycentermanagement.v1.EffectiveSecurityHealthAnalyticsCustomModule.Builder.class); + com.google.cloud.securitycentermanagement.v1 + .EffectiveSecurityHealthAnalyticsCustomModule.class, + com.google.cloud.securitycentermanagement.v1 + .EffectiveSecurityHealthAnalyticsCustomModule.Builder.class); } - // Construct using com.google.cloud.securitycentermanagement.v1.EffectiveSecurityHealthAnalyticsCustomModule.newBuilder() - private Builder() { - - } + // Construct using + // com.google.cloud.securitycentermanagement.v1.EffectiveSecurityHealthAnalyticsCustomModule.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(); @@ -624,19 +752,23 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.securitycentermanagement.v1.SecurityCenterManagementProto.internal_static_google_cloud_securitycentermanagement_v1_EffectiveSecurityHealthAnalyticsCustomModule_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.securitycentermanagement.v1.SecurityCenterManagementProto + .internal_static_google_cloud_securitycentermanagement_v1_EffectiveSecurityHealthAnalyticsCustomModule_descriptor; } @java.lang.Override - public com.google.cloud.securitycentermanagement.v1.EffectiveSecurityHealthAnalyticsCustomModule getDefaultInstanceForType() { - return com.google.cloud.securitycentermanagement.v1.EffectiveSecurityHealthAnalyticsCustomModule.getDefaultInstance(); + public com.google.cloud.securitycentermanagement.v1.EffectiveSecurityHealthAnalyticsCustomModule + getDefaultInstanceForType() { + return com.google.cloud.securitycentermanagement.v1 + .EffectiveSecurityHealthAnalyticsCustomModule.getDefaultInstance(); } @java.lang.Override - public com.google.cloud.securitycentermanagement.v1.EffectiveSecurityHealthAnalyticsCustomModule build() { - com.google.cloud.securitycentermanagement.v1.EffectiveSecurityHealthAnalyticsCustomModule result = buildPartial(); + public com.google.cloud.securitycentermanagement.v1.EffectiveSecurityHealthAnalyticsCustomModule + build() { + com.google.cloud.securitycentermanagement.v1.EffectiveSecurityHealthAnalyticsCustomModule + result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } @@ -644,22 +776,29 @@ public com.google.cloud.securitycentermanagement.v1.EffectiveSecurityHealthAnaly } @java.lang.Override - public com.google.cloud.securitycentermanagement.v1.EffectiveSecurityHealthAnalyticsCustomModule buildPartial() { - com.google.cloud.securitycentermanagement.v1.EffectiveSecurityHealthAnalyticsCustomModule result = new com.google.cloud.securitycentermanagement.v1.EffectiveSecurityHealthAnalyticsCustomModule(this); - if (bitField0_ != 0) { buildPartial0(result); } + public com.google.cloud.securitycentermanagement.v1.EffectiveSecurityHealthAnalyticsCustomModule + buildPartial() { + com.google.cloud.securitycentermanagement.v1.EffectiveSecurityHealthAnalyticsCustomModule + result = + new com.google.cloud.securitycentermanagement.v1 + .EffectiveSecurityHealthAnalyticsCustomModule(this); + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } - private void buildPartial0(com.google.cloud.securitycentermanagement.v1.EffectiveSecurityHealthAnalyticsCustomModule result) { + private void buildPartial0( + com.google.cloud.securitycentermanagement.v1.EffectiveSecurityHealthAnalyticsCustomModule + result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000001) != 0)) { result.name_ = name_; } if (((from_bitField0_ & 0x00000002) != 0)) { - result.customConfig_ = customConfigBuilder_ == null - ? customConfig_ - : customConfigBuilder_.build(); + result.customConfig_ = + customConfigBuilder_ == null ? customConfig_ : customConfigBuilder_.build(); } if (((from_bitField0_ & 0x00000004) != 0)) { result.enablementState_ = enablementState_; @@ -673,46 +812,57 @@ private void buildPartial0(com.google.cloud.securitycentermanagement.v1.Effectiv public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.cloud.securitycentermanagement.v1.EffectiveSecurityHealthAnalyticsCustomModule) { - return mergeFrom((com.google.cloud.securitycentermanagement.v1.EffectiveSecurityHealthAnalyticsCustomModule)other); + if (other + instanceof + com.google.cloud.securitycentermanagement.v1 + .EffectiveSecurityHealthAnalyticsCustomModule) { + return mergeFrom( + (com.google.cloud.securitycentermanagement.v1 + .EffectiveSecurityHealthAnalyticsCustomModule) + other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom(com.google.cloud.securitycentermanagement.v1.EffectiveSecurityHealthAnalyticsCustomModule other) { - if (other == com.google.cloud.securitycentermanagement.v1.EffectiveSecurityHealthAnalyticsCustomModule.getDefaultInstance()) return this; + public Builder mergeFrom( + com.google.cloud.securitycentermanagement.v1.EffectiveSecurityHealthAnalyticsCustomModule + other) { + if (other + == com.google.cloud.securitycentermanagement.v1 + .EffectiveSecurityHealthAnalyticsCustomModule.getDefaultInstance()) return this; if (!other.getName().isEmpty()) { name_ = other.name_; bitField0_ |= 0x00000001; @@ -755,34 +905,37 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: { - name_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 18: { - input.readMessage( - getCustomConfigFieldBuilder().getBuilder(), - extensionRegistry); - bitField0_ |= 0x00000002; - break; - } // case 18 - case 24: { - enablementState_ = input.readEnum(); - bitField0_ |= 0x00000004; - break; - } // case 24 - case 34: { - displayName_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000008; - break; - } // case 34 - 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(getCustomConfigFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 24: + { + enablementState_ = input.readEnum(); + bitField0_ |= 0x00000004; + break; + } // case 24 + case 34: + { + displayName_ = 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) { @@ -792,10 +945,13 @@ public Builder mergeFrom( } // finally return this; } + private int bitField0_; private java.lang.Object name_ = ""; /** + * + * *
      * Output only. The resource name of the custom module.
      * Its format is
@@ -807,13 +963,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; @@ -822,6 +978,8 @@ public java.lang.String getName() { } } /** + * + * *
      * Output only. The resource name of the custom module.
      * Its format is
@@ -833,15 +991,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 { @@ -849,6 +1006,8 @@ public java.lang.String getName() { } } /** + * + * *
      * Output only. The resource name of the custom module.
      * Its format is
@@ -860,18 +1019,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 custom module.
      * Its format is
@@ -883,6 +1046,7 @@ public Builder setName(
      * 
* * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return This builder for chaining. */ public Builder clearName() { @@ -892,6 +1056,8 @@ public Builder clearName() { return this; } /** + * + * *
      * Output only. The resource name of the custom module.
      * Its format is
@@ -903,12 +1069,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; @@ -918,41 +1086,61 @@ public Builder setNameBytes( private com.google.cloud.securitycentermanagement.v1.CustomConfig customConfig_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.securitycentermanagement.v1.CustomConfig, com.google.cloud.securitycentermanagement.v1.CustomConfig.Builder, com.google.cloud.securitycentermanagement.v1.CustomConfigOrBuilder> customConfigBuilder_; + com.google.cloud.securitycentermanagement.v1.CustomConfig, + com.google.cloud.securitycentermanagement.v1.CustomConfig.Builder, + com.google.cloud.securitycentermanagement.v1.CustomConfigOrBuilder> + customConfigBuilder_; /** + * + * *
      * Output only. The user-specified configuration for the module.
      * 
* - * .google.cloud.securitycentermanagement.v1.CustomConfig custom_config = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.securitycentermanagement.v1.CustomConfig custom_config = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return Whether the customConfig field is set. */ public boolean hasCustomConfig() { return ((bitField0_ & 0x00000002) != 0); } /** + * + * *
      * Output only. The user-specified configuration for the module.
      * 
* - * .google.cloud.securitycentermanagement.v1.CustomConfig custom_config = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.securitycentermanagement.v1.CustomConfig custom_config = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The customConfig. */ public com.google.cloud.securitycentermanagement.v1.CustomConfig getCustomConfig() { if (customConfigBuilder_ == null) { - return customConfig_ == null ? com.google.cloud.securitycentermanagement.v1.CustomConfig.getDefaultInstance() : customConfig_; + return customConfig_ == null + ? com.google.cloud.securitycentermanagement.v1.CustomConfig.getDefaultInstance() + : customConfig_; } else { return customConfigBuilder_.getMessage(); } } /** + * + * *
      * Output only. The user-specified configuration for the module.
      * 
* - * .google.cloud.securitycentermanagement.v1.CustomConfig custom_config = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.securitycentermanagement.v1.CustomConfig custom_config = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ - public Builder setCustomConfig(com.google.cloud.securitycentermanagement.v1.CustomConfig value) { + public Builder setCustomConfig( + com.google.cloud.securitycentermanagement.v1.CustomConfig value) { if (customConfigBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -966,11 +1154,15 @@ public Builder setCustomConfig(com.google.cloud.securitycentermanagement.v1.Cust return this; } /** + * + * *
      * Output only. The user-specified configuration for the module.
      * 
* - * .google.cloud.securitycentermanagement.v1.CustomConfig custom_config = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.securitycentermanagement.v1.CustomConfig custom_config = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder setCustomConfig( com.google.cloud.securitycentermanagement.v1.CustomConfig.Builder builderForValue) { @@ -984,17 +1176,23 @@ public Builder setCustomConfig( return this; } /** + * + * *
      * Output only. The user-specified configuration for the module.
      * 
* - * .google.cloud.securitycentermanagement.v1.CustomConfig custom_config = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.securitycentermanagement.v1.CustomConfig custom_config = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ - public Builder mergeCustomConfig(com.google.cloud.securitycentermanagement.v1.CustomConfig value) { + public Builder mergeCustomConfig( + com.google.cloud.securitycentermanagement.v1.CustomConfig value) { if (customConfigBuilder_ == null) { - if (((bitField0_ & 0x00000002) != 0) && - customConfig_ != null && - customConfig_ != com.google.cloud.securitycentermanagement.v1.CustomConfig.getDefaultInstance()) { + if (((bitField0_ & 0x00000002) != 0) + && customConfig_ != null + && customConfig_ + != com.google.cloud.securitycentermanagement.v1.CustomConfig.getDefaultInstance()) { getCustomConfigBuilder().mergeFrom(value); } else { customConfig_ = value; @@ -1007,11 +1205,15 @@ public Builder mergeCustomConfig(com.google.cloud.securitycentermanagement.v1.Cu return this; } /** + * + * *
      * Output only. The user-specified configuration for the module.
      * 
* - * .google.cloud.securitycentermanagement.v1.CustomConfig custom_config = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.securitycentermanagement.v1.CustomConfig custom_config = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder clearCustomConfig() { bitField0_ = (bitField0_ & ~0x00000002); @@ -1024,48 +1226,66 @@ public Builder clearCustomConfig() { return this; } /** + * + * *
      * Output only. The user-specified configuration for the module.
      * 
* - * .google.cloud.securitycentermanagement.v1.CustomConfig custom_config = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.securitycentermanagement.v1.CustomConfig custom_config = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ - public com.google.cloud.securitycentermanagement.v1.CustomConfig.Builder getCustomConfigBuilder() { + public com.google.cloud.securitycentermanagement.v1.CustomConfig.Builder + getCustomConfigBuilder() { bitField0_ |= 0x00000002; onChanged(); return getCustomConfigFieldBuilder().getBuilder(); } /** + * + * *
      * Output only. The user-specified configuration for the module.
      * 
* - * .google.cloud.securitycentermanagement.v1.CustomConfig custom_config = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.securitycentermanagement.v1.CustomConfig custom_config = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ - public com.google.cloud.securitycentermanagement.v1.CustomConfigOrBuilder getCustomConfigOrBuilder() { + public com.google.cloud.securitycentermanagement.v1.CustomConfigOrBuilder + getCustomConfigOrBuilder() { if (customConfigBuilder_ != null) { return customConfigBuilder_.getMessageOrBuilder(); } else { - return customConfig_ == null ? - com.google.cloud.securitycentermanagement.v1.CustomConfig.getDefaultInstance() : customConfig_; + return customConfig_ == null + ? com.google.cloud.securitycentermanagement.v1.CustomConfig.getDefaultInstance() + : customConfig_; } } /** + * + * *
      * Output only. The user-specified configuration for the module.
      * 
* - * .google.cloud.securitycentermanagement.v1.CustomConfig custom_config = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.securitycentermanagement.v1.CustomConfig custom_config = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.securitycentermanagement.v1.CustomConfig, com.google.cloud.securitycentermanagement.v1.CustomConfig.Builder, com.google.cloud.securitycentermanagement.v1.CustomConfigOrBuilder> + com.google.cloud.securitycentermanagement.v1.CustomConfig, + com.google.cloud.securitycentermanagement.v1.CustomConfig.Builder, + com.google.cloud.securitycentermanagement.v1.CustomConfigOrBuilder> getCustomConfigFieldBuilder() { if (customConfigBuilder_ == null) { - customConfigBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.securitycentermanagement.v1.CustomConfig, com.google.cloud.securitycentermanagement.v1.CustomConfig.Builder, com.google.cloud.securitycentermanagement.v1.CustomConfigOrBuilder>( - getCustomConfig(), - getParentForChildren(), - isClean()); + customConfigBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.securitycentermanagement.v1.CustomConfig, + com.google.cloud.securitycentermanagement.v1.CustomConfig.Builder, + com.google.cloud.securitycentermanagement.v1.CustomConfigOrBuilder>( + getCustomConfig(), getParentForChildren(), isClean()); customConfig_ = null; } return customConfigBuilder_; @@ -1073,24 +1293,35 @@ public com.google.cloud.securitycentermanagement.v1.CustomConfigOrBuilder getCus private int enablementState_ = 0; /** + * + * *
      * Output only. The effective state of enablement for the module at the given
      * level of the hierarchy.
      * 
* - * .google.cloud.securitycentermanagement.v1.EffectiveSecurityHealthAnalyticsCustomModule.EnablementState enablement_state = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.securitycentermanagement.v1.EffectiveSecurityHealthAnalyticsCustomModule.EnablementState enablement_state = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The enum numeric value on the wire for enablementState. */ - @java.lang.Override public int getEnablementStateValue() { + @java.lang.Override + public int getEnablementStateValue() { return enablementState_; } /** + * + * *
      * Output only. The effective state of enablement for the module at the given
      * level of the hierarchy.
      * 
* - * .google.cloud.securitycentermanagement.v1.EffectiveSecurityHealthAnalyticsCustomModule.EnablementState enablement_state = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.securitycentermanagement.v1.EffectiveSecurityHealthAnalyticsCustomModule.EnablementState enablement_state = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @param value The enum numeric value on the wire for enablementState to set. * @return This builder for chaining. */ @@ -1101,30 +1332,53 @@ public Builder setEnablementStateValue(int value) { return this; } /** + * + * *
      * Output only. The effective state of enablement for the module at the given
      * level of the hierarchy.
      * 
* - * .google.cloud.securitycentermanagement.v1.EffectiveSecurityHealthAnalyticsCustomModule.EnablementState enablement_state = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.securitycentermanagement.v1.EffectiveSecurityHealthAnalyticsCustomModule.EnablementState enablement_state = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The enablementState. */ @java.lang.Override - public com.google.cloud.securitycentermanagement.v1.EffectiveSecurityHealthAnalyticsCustomModule.EnablementState getEnablementState() { - com.google.cloud.securitycentermanagement.v1.EffectiveSecurityHealthAnalyticsCustomModule.EnablementState result = com.google.cloud.securitycentermanagement.v1.EffectiveSecurityHealthAnalyticsCustomModule.EnablementState.forNumber(enablementState_); - return result == null ? com.google.cloud.securitycentermanagement.v1.EffectiveSecurityHealthAnalyticsCustomModule.EnablementState.UNRECOGNIZED : result; + public com.google.cloud.securitycentermanagement.v1.EffectiveSecurityHealthAnalyticsCustomModule + .EnablementState + getEnablementState() { + com.google.cloud.securitycentermanagement.v1.EffectiveSecurityHealthAnalyticsCustomModule + .EnablementState + result = + com.google.cloud.securitycentermanagement.v1 + .EffectiveSecurityHealthAnalyticsCustomModule.EnablementState.forNumber( + enablementState_); + return result == null + ? com.google.cloud.securitycentermanagement.v1 + .EffectiveSecurityHealthAnalyticsCustomModule.EnablementState.UNRECOGNIZED + : result; } /** + * + * *
      * Output only. The effective state of enablement for the module at the given
      * level of the hierarchy.
      * 
* - * .google.cloud.securitycentermanagement.v1.EffectiveSecurityHealthAnalyticsCustomModule.EnablementState enablement_state = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.securitycentermanagement.v1.EffectiveSecurityHealthAnalyticsCustomModule.EnablementState enablement_state = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @param value The enablementState to set. * @return This builder for chaining. */ - public Builder setEnablementState(com.google.cloud.securitycentermanagement.v1.EffectiveSecurityHealthAnalyticsCustomModule.EnablementState value) { + public Builder setEnablementState( + com.google.cloud.securitycentermanagement.v1.EffectiveSecurityHealthAnalyticsCustomModule + .EnablementState + value) { if (value == null) { throw new NullPointerException(); } @@ -1134,12 +1388,17 @@ public Builder setEnablementState(com.google.cloud.securitycentermanagement.v1.E return this; } /** + * + * *
      * Output only. The effective state of enablement for the module at the given
      * level of the hierarchy.
      * 
* - * .google.cloud.securitycentermanagement.v1.EffectiveSecurityHealthAnalyticsCustomModule.EnablementState enablement_state = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.securitycentermanagement.v1.EffectiveSecurityHealthAnalyticsCustomModule.EnablementState enablement_state = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return This builder for chaining. */ public Builder clearEnablementState() { @@ -1151,6 +1410,8 @@ public Builder clearEnablementState() { private java.lang.Object displayName_ = ""; /** + * + * *
      * Output only. The display name for the custom module. The name must be
      * between 1 and 128 characters, start with a lowercase letter, and contain
@@ -1158,13 +1419,13 @@ public Builder clearEnablementState() {
      * 
* * string display_name = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @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; @@ -1173,6 +1434,8 @@ public java.lang.String getDisplayName() { } } /** + * + * *
      * Output only. The display name for the custom module. The name must be
      * between 1 and 128 characters, start with a lowercase letter, and contain
@@ -1180,15 +1443,14 @@ public java.lang.String getDisplayName() {
      * 
* * string display_name = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @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 { @@ -1196,6 +1458,8 @@ public java.lang.String getDisplayName() { } } /** + * + * *
      * Output only. The display name for the custom module. The name must be
      * between 1 and 128 characters, start with a lowercase letter, and contain
@@ -1203,18 +1467,22 @@ public java.lang.String getDisplayName() {
      * 
* * string display_name = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @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_ |= 0x00000008; onChanged(); return this; } /** + * + * *
      * Output only. The display name for the custom module. The name must be
      * between 1 and 128 characters, start with a lowercase letter, and contain
@@ -1222,6 +1490,7 @@ public Builder setDisplayName(
      * 
* * string display_name = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return This builder for chaining. */ public Builder clearDisplayName() { @@ -1231,6 +1500,8 @@ public Builder clearDisplayName() { return this; } /** + * + * *
      * Output only. The display name for the custom module. The name must be
      * between 1 and 128 characters, start with a lowercase letter, and contain
@@ -1238,21 +1509,23 @@ public Builder clearDisplayName() {
      * 
* * string display_name = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @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_ |= 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); } @@ -1262,55 +1535,63 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.securitycentermanagement.v1.EffectiveSecurityHealthAnalyticsCustomModule) } // @@protoc_insertion_point(class_scope:google.cloud.securitycentermanagement.v1.EffectiveSecurityHealthAnalyticsCustomModule) - private static final com.google.cloud.securitycentermanagement.v1.EffectiveSecurityHealthAnalyticsCustomModule DEFAULT_INSTANCE; + private static final com.google.cloud.securitycentermanagement.v1 + .EffectiveSecurityHealthAnalyticsCustomModule + DEFAULT_INSTANCE; + static { - DEFAULT_INSTANCE = new com.google.cloud.securitycentermanagement.v1.EffectiveSecurityHealthAnalyticsCustomModule(); + DEFAULT_INSTANCE = + new com.google.cloud.securitycentermanagement.v1 + .EffectiveSecurityHealthAnalyticsCustomModule(); } - public static com.google.cloud.securitycentermanagement.v1.EffectiveSecurityHealthAnalyticsCustomModule getDefaultInstance() { + public static com.google.cloud.securitycentermanagement.v1 + .EffectiveSecurityHealthAnalyticsCustomModule + getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public EffectiveSecurityHealthAnalyticsCustomModule parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public EffectiveSecurityHealthAnalyticsCustomModule parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException() + .setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; } @java.lang.Override - public com.google.protobuf.Parser getParserForType() { + public com.google.protobuf.Parser + getParserForType() { return PARSER; } @java.lang.Override - public com.google.cloud.securitycentermanagement.v1.EffectiveSecurityHealthAnalyticsCustomModule getDefaultInstanceForType() { + public com.google.cloud.securitycentermanagement.v1.EffectiveSecurityHealthAnalyticsCustomModule + getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/java-securitycentermanagement/v1/proto-google-cloud-securitycentermanagement-v1/src/main/java/com/google/cloud/securitycentermanagement/v1/EffectiveSecurityHealthAnalyticsCustomModuleName.java b/java-securitycentermanagement/proto-google-cloud-securitycentermanagement-v1/src/main/java/com/google/cloud/securitycentermanagement/v1/EffectiveSecurityHealthAnalyticsCustomModuleName.java similarity index 100% rename from owl-bot-staging/java-securitycentermanagement/v1/proto-google-cloud-securitycentermanagement-v1/src/main/java/com/google/cloud/securitycentermanagement/v1/EffectiveSecurityHealthAnalyticsCustomModuleName.java rename to java-securitycentermanagement/proto-google-cloud-securitycentermanagement-v1/src/main/java/com/google/cloud/securitycentermanagement/v1/EffectiveSecurityHealthAnalyticsCustomModuleName.java diff --git a/owl-bot-staging/java-securitycentermanagement/v1/proto-google-cloud-securitycentermanagement-v1/src/main/java/com/google/cloud/securitycentermanagement/v1/EffectiveSecurityHealthAnalyticsCustomModuleOrBuilder.java b/java-securitycentermanagement/proto-google-cloud-securitycentermanagement-v1/src/main/java/com/google/cloud/securitycentermanagement/v1/EffectiveSecurityHealthAnalyticsCustomModuleOrBuilder.java similarity index 67% rename from owl-bot-staging/java-securitycentermanagement/v1/proto-google-cloud-securitycentermanagement-v1/src/main/java/com/google/cloud/securitycentermanagement/v1/EffectiveSecurityHealthAnalyticsCustomModuleOrBuilder.java rename to java-securitycentermanagement/proto-google-cloud-securitycentermanagement-v1/src/main/java/com/google/cloud/securitycentermanagement/v1/EffectiveSecurityHealthAnalyticsCustomModuleOrBuilder.java index 315dba7f7c90..bf6a162d1fbb 100644 --- a/owl-bot-staging/java-securitycentermanagement/v1/proto-google-cloud-securitycentermanagement-v1/src/main/java/com/google/cloud/securitycentermanagement/v1/EffectiveSecurityHealthAnalyticsCustomModuleOrBuilder.java +++ b/java-securitycentermanagement/proto-google-cloud-securitycentermanagement-v1/src/main/java/com/google/cloud/securitycentermanagement/v1/EffectiveSecurityHealthAnalyticsCustomModuleOrBuilder.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/securitycentermanagement/v1/security_center_management.proto package com.google.cloud.securitycentermanagement.v1; -public interface EffectiveSecurityHealthAnalyticsCustomModuleOrBuilder extends +public interface EffectiveSecurityHealthAnalyticsCustomModuleOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.securitycentermanagement.v1.EffectiveSecurityHealthAnalyticsCustomModule) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * Output only. The resource name of the custom module.
    * Its format is
@@ -19,10 +37,13 @@ public interface EffectiveSecurityHealthAnalyticsCustomModuleOrBuilder extends
    * 
* * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The name. */ java.lang.String getName(); /** + * + * *
    * Output only. The resource name of the custom module.
    * Its format is
@@ -34,60 +55,88 @@ public interface EffectiveSecurityHealthAnalyticsCustomModuleOrBuilder 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. The user-specified configuration for the module.
    * 
* - * .google.cloud.securitycentermanagement.v1.CustomConfig custom_config = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.securitycentermanagement.v1.CustomConfig custom_config = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return Whether the customConfig field is set. */ boolean hasCustomConfig(); /** + * + * *
    * Output only. The user-specified configuration for the module.
    * 
* - * .google.cloud.securitycentermanagement.v1.CustomConfig custom_config = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.securitycentermanagement.v1.CustomConfig custom_config = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The customConfig. */ com.google.cloud.securitycentermanagement.v1.CustomConfig getCustomConfig(); /** + * + * *
    * Output only. The user-specified configuration for the module.
    * 
* - * .google.cloud.securitycentermanagement.v1.CustomConfig custom_config = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.securitycentermanagement.v1.CustomConfig custom_config = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ com.google.cloud.securitycentermanagement.v1.CustomConfigOrBuilder getCustomConfigOrBuilder(); /** + * + * *
    * Output only. The effective state of enablement for the module at the given
    * level of the hierarchy.
    * 
* - * .google.cloud.securitycentermanagement.v1.EffectiveSecurityHealthAnalyticsCustomModule.EnablementState enablement_state = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.securitycentermanagement.v1.EffectiveSecurityHealthAnalyticsCustomModule.EnablementState enablement_state = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The enum numeric value on the wire for enablementState. */ int getEnablementStateValue(); /** + * + * *
    * Output only. The effective state of enablement for the module at the given
    * level of the hierarchy.
    * 
* - * .google.cloud.securitycentermanagement.v1.EffectiveSecurityHealthAnalyticsCustomModule.EnablementState enablement_state = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.securitycentermanagement.v1.EffectiveSecurityHealthAnalyticsCustomModule.EnablementState enablement_state = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The enablementState. */ - com.google.cloud.securitycentermanagement.v1.EffectiveSecurityHealthAnalyticsCustomModule.EnablementState getEnablementState(); + com.google.cloud.securitycentermanagement.v1.EffectiveSecurityHealthAnalyticsCustomModule + .EnablementState + getEnablementState(); /** + * + * *
    * Output only. The display name for the custom module. The name must be
    * between 1 and 128 characters, start with a lowercase letter, and contain
@@ -95,10 +144,13 @@ public interface EffectiveSecurityHealthAnalyticsCustomModuleOrBuilder extends
    * 
* * string display_name = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The displayName. */ java.lang.String getDisplayName(); /** + * + * *
    * Output only. The display name for the custom module. The name must be
    * between 1 and 128 characters, start with a lowercase letter, and contain
@@ -106,8 +158,8 @@ public interface EffectiveSecurityHealthAnalyticsCustomModuleOrBuilder extends
    * 
* * string display_name = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The bytes for displayName. */ - com.google.protobuf.ByteString - getDisplayNameBytes(); + com.google.protobuf.ByteString getDisplayNameBytes(); } diff --git a/owl-bot-staging/java-securitycentermanagement/v1/proto-google-cloud-securitycentermanagement-v1/src/main/java/com/google/cloud/securitycentermanagement/v1/EventThreatDetectionCustomModule.java b/java-securitycentermanagement/proto-google-cloud-securitycentermanagement-v1/src/main/java/com/google/cloud/securitycentermanagement/v1/EventThreatDetectionCustomModule.java similarity index 68% rename from owl-bot-staging/java-securitycentermanagement/v1/proto-google-cloud-securitycentermanagement-v1/src/main/java/com/google/cloud/securitycentermanagement/v1/EventThreatDetectionCustomModule.java rename to java-securitycentermanagement/proto-google-cloud-securitycentermanagement-v1/src/main/java/com/google/cloud/securitycentermanagement/v1/EventThreatDetectionCustomModule.java index 850d84c5a966..9db2f8b86196 100644 --- a/owl-bot-staging/java-securitycentermanagement/v1/proto-google-cloud-securitycentermanagement-v1/src/main/java/com/google/cloud/securitycentermanagement/v1/EventThreatDetectionCustomModule.java +++ b/java-securitycentermanagement/proto-google-cloud-securitycentermanagement-v1/src/main/java/com/google/cloud/securitycentermanagement/v1/EventThreatDetectionCustomModule.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/securitycentermanagement/v1/security_center_management.proto package com.google.cloud.securitycentermanagement.v1; /** + * + * *
  * An event threat detection custom module is a Cloud SCC resource that contains
  * the configuration and enablement state of a custom module, which enables ETD
@@ -12,15 +29,17 @@
  *
  * Protobuf type {@code google.cloud.securitycentermanagement.v1.EventThreatDetectionCustomModule}
  */
-public final class EventThreatDetectionCustomModule extends
-    com.google.protobuf.GeneratedMessageV3 implements
+public final class EventThreatDetectionCustomModule extends com.google.protobuf.GeneratedMessageV3
+    implements
     // @@protoc_insertion_point(message_implements:google.cloud.securitycentermanagement.v1.EventThreatDetectionCustomModule)
     EventThreatDetectionCustomModuleOrBuilder {
-private static final long serialVersionUID = 0L;
+  private static final long serialVersionUID = 0L;
   // Use EventThreatDetectionCustomModule.newBuilder() to construct.
-  private EventThreatDetectionCustomModule(com.google.protobuf.GeneratedMessageV3.Builder builder) {
+  private EventThreatDetectionCustomModule(
+      com.google.protobuf.GeneratedMessageV3.Builder builder) {
     super(builder);
   }
+
   private EventThreatDetectionCustomModule() {
     name_ = "";
     ancestorModule_ = "";
@@ -33,34 +52,40 @@ private EventThreatDetectionCustomModule() {
 
   @java.lang.Override
   @SuppressWarnings({"unused"})
-  protected java.lang.Object newInstance(
-      UnusedPrivateParameter unused) {
+  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
     return new EventThreatDetectionCustomModule();
   }
 
-  public static final com.google.protobuf.Descriptors.Descriptor
-      getDescriptor() {
-    return com.google.cloud.securitycentermanagement.v1.SecurityCenterManagementProto.internal_static_google_cloud_securitycentermanagement_v1_EventThreatDetectionCustomModule_descriptor;
+  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+    return com.google.cloud.securitycentermanagement.v1.SecurityCenterManagementProto
+        .internal_static_google_cloud_securitycentermanagement_v1_EventThreatDetectionCustomModule_descriptor;
   }
 
   @java.lang.Override
   protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
       internalGetFieldAccessorTable() {
-    return com.google.cloud.securitycentermanagement.v1.SecurityCenterManagementProto.internal_static_google_cloud_securitycentermanagement_v1_EventThreatDetectionCustomModule_fieldAccessorTable
+    return com.google.cloud.securitycentermanagement.v1.SecurityCenterManagementProto
+        .internal_static_google_cloud_securitycentermanagement_v1_EventThreatDetectionCustomModule_fieldAccessorTable
         .ensureFieldAccessorsInitialized(
-            com.google.cloud.securitycentermanagement.v1.EventThreatDetectionCustomModule.class, com.google.cloud.securitycentermanagement.v1.EventThreatDetectionCustomModule.Builder.class);
+            com.google.cloud.securitycentermanagement.v1.EventThreatDetectionCustomModule.class,
+            com.google.cloud.securitycentermanagement.v1.EventThreatDetectionCustomModule.Builder
+                .class);
   }
 
   /**
+   *
+   *
    * 
    * The enablement state of the module.
    * 
* - * Protobuf enum {@code google.cloud.securitycentermanagement.v1.EventThreatDetectionCustomModule.EnablementState} + * Protobuf enum {@code + * google.cloud.securitycentermanagement.v1.EventThreatDetectionCustomModule.EnablementState} */ - public enum EnablementState - implements com.google.protobuf.ProtocolMessageEnum { + public enum EnablementState implements com.google.protobuf.ProtocolMessageEnum { /** + * + * *
      * Unspecified enablement state.
      * 
@@ -69,6 +94,8 @@ public enum EnablementState */ ENABLEMENT_STATE_UNSPECIFIED(0), /** + * + * *
      * The module is enabled at the given level.
      * 
@@ -77,6 +104,8 @@ public enum EnablementState */ ENABLED(1), /** + * + * *
      * The module is disabled at the given level.
      * 
@@ -85,6 +114,8 @@ public enum EnablementState */ DISABLED(2), /** + * + * *
      * State is inherited from an ancestor module. The module will either
      * be effectively ENABLED or DISABLED based on its closest non-inherited
@@ -100,6 +131,8 @@ public enum EnablementState
     ;
 
     /**
+     *
+     *
      * 
      * Unspecified enablement state.
      * 
@@ -108,6 +141,8 @@ public enum EnablementState */ public static final int ENABLEMENT_STATE_UNSPECIFIED_VALUE = 0; /** + * + * *
      * The module is enabled at the given level.
      * 
@@ -116,6 +151,8 @@ public enum EnablementState */ public static final int ENABLED_VALUE = 1; /** + * + * *
      * The module is disabled at the given level.
      * 
@@ -124,6 +161,8 @@ public enum EnablementState */ public static final int DISABLED_VALUE = 2; /** + * + * *
      * State is inherited from an ancestor module. The module will either
      * be effectively ENABLED or DISABLED based on its closest non-inherited
@@ -136,7 +175,6 @@ public enum EnablementState
      */
     public static final int INHERITED_VALUE = 3;
 
-
     public final int getNumber() {
       if (this == UNRECOGNIZED) {
         throw new java.lang.IllegalArgumentException(
@@ -161,41 +199,48 @@ public static EnablementState valueOf(int value) {
      */
     public static EnablementState forNumber(int value) {
       switch (value) {
-        case 0: return ENABLEMENT_STATE_UNSPECIFIED;
-        case 1: return ENABLED;
-        case 2: return DISABLED;
-        case 3: return INHERITED;
-        default: return null;
+        case 0:
+          return ENABLEMENT_STATE_UNSPECIFIED;
+        case 1:
+          return ENABLED;
+        case 2:
+          return DISABLED;
+        case 3:
+          return INHERITED;
+        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<
-        EnablementState> internalValueMap =
-          new com.google.protobuf.Internal.EnumLiteMap() {
-            public EnablementState findValueByNumber(int number) {
-              return EnablementState.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 EnablementState findValueByNumber(int number) {
+                return EnablementState.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.securitycentermanagement.v1.EventThreatDetectionCustomModule.getDescriptor().getEnumTypes().get(0);
+
+    public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() {
+      return com.google.cloud.securitycentermanagement.v1.EventThreatDetectionCustomModule
+          .getDescriptor()
+          .getEnumTypes()
+          .get(0);
     }
 
     private static final EnablementState[] VALUES = values();
@@ -203,8 +248,7 @@ public EnablementState findValueByNumber(int number) {
     public static EnablementState 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;
@@ -222,9 +266,12 @@ private EnablementState(int value) {
   }
 
   public static final int NAME_FIELD_NUMBER = 1;
+
   @SuppressWarnings("serial")
   private volatile java.lang.Object name_ = "";
   /**
+   *
+   *
    * 
    * Immutable. The resource name of the ETD custom module.
    *
@@ -236,6 +283,7 @@ private EnablementState(int value) {
    * 
* * string name = 1 [(.google.api.field_behavior) = IMMUTABLE]; + * * @return The name. */ @java.lang.Override @@ -244,14 +292,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; } } /** + * + * *
    * Immutable. The resource name of the ETD custom module.
    *
@@ -263,16 +312,15 @@ public java.lang.String getName() {
    * 
* * string name = 1 [(.google.api.field_behavior) = IMMUTABLE]; + * * @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 { @@ -283,6 +331,8 @@ public java.lang.String getName() { public static final int CONFIG_FIELD_NUMBER = 2; private com.google.protobuf.Struct config_; /** + * + * *
    * Optional. Config for the module. For the resident module, its config value
    * is defined at this level. For the inherited module, its config value is
@@ -290,6 +340,7 @@ public java.lang.String getName() {
    * 
* * .google.protobuf.Struct config = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @return Whether the config field is set. */ @java.lang.Override @@ -297,6 +348,8 @@ public boolean hasConfig() { return config_ != null; } /** + * + * *
    * Optional. Config for the module. For the resident module, its config value
    * is defined at this level. For the inherited module, its config value is
@@ -304,6 +357,7 @@ public boolean hasConfig() {
    * 
* * .google.protobuf.Struct config = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The config. */ @java.lang.Override @@ -311,6 +365,8 @@ public com.google.protobuf.Struct getConfig() { return config_ == null ? com.google.protobuf.Struct.getDefaultInstance() : config_; } /** + * + * *
    * Optional. Config for the module. For the resident module, its config value
    * is defined at this level. For the inherited module, its config value is
@@ -325,9 +381,12 @@ public com.google.protobuf.StructOrBuilder getConfigOrBuilder() {
   }
 
   public static final int ANCESTOR_MODULE_FIELD_NUMBER = 3;
+
   @SuppressWarnings("serial")
   private volatile java.lang.Object ancestorModule_ = "";
   /**
+   *
+   *
    * 
    * Output only. The closest ancestor module that this module inherits the
    * enablement state from. If empty, indicates that the custom module was
@@ -335,7 +394,10 @@ public com.google.protobuf.StructOrBuilder getConfigOrBuilder() {
    * format is the same as the EventThreatDetectionCustomModule resource name.
    * 
* - * string ancestor_module = 3 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * string ancestor_module = 3 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * * @return The ancestorModule. */ @java.lang.Override @@ -344,14 +406,15 @@ public java.lang.String getAncestorModule() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); ancestorModule_ = s; return s; } } /** + * + * *
    * Output only. The closest ancestor module that this module inherits the
    * enablement state from. If empty, indicates that the custom module was
@@ -359,17 +422,18 @@ public java.lang.String getAncestorModule() {
    * format is the same as the EventThreatDetectionCustomModule resource name.
    * 
* - * string ancestor_module = 3 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * string ancestor_module = 3 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * * @return The bytes for ancestorModule. */ @java.lang.Override - public com.google.protobuf.ByteString - getAncestorModuleBytes() { + public com.google.protobuf.ByteString getAncestorModuleBytes() { java.lang.Object ref = ancestorModule_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); ancestorModule_ = b; return b; } else { @@ -380,40 +444,64 @@ public java.lang.String getAncestorModule() { public static final int ENABLEMENT_STATE_FIELD_NUMBER = 4; private int enablementState_ = 0; /** + * + * *
    * Optional. The state of enablement for the module at the given level of the
    * hierarchy.
    * 
* - * .google.cloud.securitycentermanagement.v1.EventThreatDetectionCustomModule.EnablementState enablement_state = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.securitycentermanagement.v1.EventThreatDetectionCustomModule.EnablementState enablement_state = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return The enum numeric value on the wire for enablementState. */ - @java.lang.Override public int getEnablementStateValue() { + @java.lang.Override + public int getEnablementStateValue() { return enablementState_; } /** + * + * *
    * Optional. The state of enablement for the module at the given level of the
    * hierarchy.
    * 
* - * .google.cloud.securitycentermanagement.v1.EventThreatDetectionCustomModule.EnablementState enablement_state = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.securitycentermanagement.v1.EventThreatDetectionCustomModule.EnablementState enablement_state = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return The enablementState. */ - @java.lang.Override public com.google.cloud.securitycentermanagement.v1.EventThreatDetectionCustomModule.EnablementState getEnablementState() { - com.google.cloud.securitycentermanagement.v1.EventThreatDetectionCustomModule.EnablementState result = com.google.cloud.securitycentermanagement.v1.EventThreatDetectionCustomModule.EnablementState.forNumber(enablementState_); - return result == null ? com.google.cloud.securitycentermanagement.v1.EventThreatDetectionCustomModule.EnablementState.UNRECOGNIZED : result; + @java.lang.Override + public com.google.cloud.securitycentermanagement.v1.EventThreatDetectionCustomModule + .EnablementState + getEnablementState() { + com.google.cloud.securitycentermanagement.v1.EventThreatDetectionCustomModule.EnablementState + result = + com.google.cloud.securitycentermanagement.v1.EventThreatDetectionCustomModule + .EnablementState.forNumber(enablementState_); + return result == null + ? com.google.cloud.securitycentermanagement.v1.EventThreatDetectionCustomModule + .EnablementState.UNRECOGNIZED + : result; } public static final int TYPE_FIELD_NUMBER = 5; + @SuppressWarnings("serial") private volatile java.lang.Object type_ = ""; /** + * + * *
    * Optional. Type for the module. e.g. CONFIGURABLE_BAD_IP.
    * 
* * string type = 5 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The type. */ @java.lang.Override @@ -422,29 +510,29 @@ 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 for the module. e.g. CONFIGURABLE_BAD_IP.
    * 
* * string type = 5 [(.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 { @@ -453,14 +541,18 @@ public java.lang.String getType() { } public static final int DISPLAY_NAME_FIELD_NUMBER = 6; + @SuppressWarnings("serial") private volatile java.lang.Object displayName_ = ""; /** + * + * *
    * Optional. The human readable name to be displayed for the module.
    * 
* * string display_name = 6 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The displayName. */ @java.lang.Override @@ -469,29 +561,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. The human readable name to be displayed for the module.
    * 
* * string display_name = 6 [(.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 { @@ -500,14 +592,18 @@ public java.lang.String getDisplayName() { } public static final int DESCRIPTION_FIELD_NUMBER = 7; + @SuppressWarnings("serial") private volatile java.lang.Object description_ = ""; /** + * + * *
    * Optional. The description for the module.
    * 
* * string description = 7 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The description. */ @java.lang.Override @@ -516,29 +612,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; } } /** + * + * *
    * Optional. The description for the module.
    * 
* * string description = 7 [(.google.api.field_behavior) = OPTIONAL]; + * * @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 { @@ -549,11 +645,15 @@ public java.lang.String getDescription() { public static final int UPDATE_TIME_FIELD_NUMBER = 8; private com.google.protobuf.Timestamp updateTime_; /** + * + * *
    * Output only. The time the module was last updated.
    * 
* - * .google.protobuf.Timestamp update_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp update_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return Whether the updateTime field is set. */ @java.lang.Override @@ -561,11 +661,15 @@ public boolean hasUpdateTime() { return updateTime_ != null; } /** + * + * *
    * Output only. The time the module was last updated.
    * 
* - * .google.protobuf.Timestamp update_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp update_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The updateTime. */ @java.lang.Override @@ -573,11 +677,14 @@ public com.google.protobuf.Timestamp getUpdateTime() { return updateTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : updateTime_; } /** + * + * *
    * Output only. The time the module was last updated.
    * 
* - * .google.protobuf.Timestamp update_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp update_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ @java.lang.Override public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() { @@ -585,14 +692,18 @@ public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() { } public static final int LAST_EDITOR_FIELD_NUMBER = 9; + @SuppressWarnings("serial") private volatile java.lang.Object lastEditor_ = ""; /** + * + * *
    * Output only. The editor the module was last updated by.
    * 
* * string last_editor = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The lastEditor. */ @java.lang.Override @@ -601,29 +712,29 @@ public java.lang.String getLastEditor() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); lastEditor_ = s; return s; } } /** + * + * *
    * Output only. The editor the module was last updated by.
    * 
* * string last_editor = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The bytes for lastEditor. */ @java.lang.Override - public com.google.protobuf.ByteString - getLastEditorBytes() { + public com.google.protobuf.ByteString getLastEditorBytes() { java.lang.Object ref = lastEditor_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); lastEditor_ = b; return b; } else { @@ -632,6 +743,7 @@ public java.lang.String getLastEditor() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -643,8 +755,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.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_); } @@ -654,7 +765,10 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(ancestorModule_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 3, ancestorModule_); } - if (enablementState_ != com.google.cloud.securitycentermanagement.v1.EventThreatDetectionCustomModule.EnablementState.ENABLEMENT_STATE_UNSPECIFIED.getNumber()) { + if (enablementState_ + != com.google.cloud.securitycentermanagement.v1.EventThreatDetectionCustomModule + .EnablementState.ENABLEMENT_STATE_UNSPECIFIED + .getNumber()) { output.writeEnum(4, enablementState_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(type_)) { @@ -685,15 +799,16 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); } if (config_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(2, getConfig()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getConfig()); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(ancestorModule_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, ancestorModule_); } - if (enablementState_ != com.google.cloud.securitycentermanagement.v1.EventThreatDetectionCustomModule.EnablementState.ENABLEMENT_STATE_UNSPECIFIED.getNumber()) { - size += com.google.protobuf.CodedOutputStream - .computeEnumSize(4, enablementState_); + if (enablementState_ + != com.google.cloud.securitycentermanagement.v1.EventThreatDetectionCustomModule + .EnablementState.ENABLEMENT_STATE_UNSPECIFIED + .getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(4, enablementState_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(type_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, type_); @@ -705,8 +820,7 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(7, description_); } if (updateTime_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(8, getUpdateTime()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(8, getUpdateTime()); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(lastEditor_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(9, lastEditor_); @@ -719,36 +833,30 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } - if (!(obj instanceof com.google.cloud.securitycentermanagement.v1.EventThreatDetectionCustomModule)) { + if (!(obj + instanceof com.google.cloud.securitycentermanagement.v1.EventThreatDetectionCustomModule)) { return super.equals(obj); } - com.google.cloud.securitycentermanagement.v1.EventThreatDetectionCustomModule other = (com.google.cloud.securitycentermanagement.v1.EventThreatDetectionCustomModule) obj; + com.google.cloud.securitycentermanagement.v1.EventThreatDetectionCustomModule other = + (com.google.cloud.securitycentermanagement.v1.EventThreatDetectionCustomModule) obj; - if (!getName() - .equals(other.getName())) return false; + if (!getName().equals(other.getName())) return false; if (hasConfig() != other.hasConfig()) return false; if (hasConfig()) { - if (!getConfig() - .equals(other.getConfig())) return false; + if (!getConfig().equals(other.getConfig())) return false; } - if (!getAncestorModule() - .equals(other.getAncestorModule())) return false; + if (!getAncestorModule().equals(other.getAncestorModule())) return false; if (enablementState_ != other.enablementState_) return false; - if (!getType() - .equals(other.getType())) return false; - if (!getDisplayName() - .equals(other.getDisplayName())) return false; - if (!getDescription() - .equals(other.getDescription())) return false; + if (!getType().equals(other.getType())) return false; + if (!getDisplayName().equals(other.getDisplayName())) return false; + if (!getDescription().equals(other.getDescription())) 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 (!getLastEditor() - .equals(other.getLastEditor())) return false; + if (!getLastEditor().equals(other.getLastEditor())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -787,99 +895,111 @@ public int hashCode() { return hash; } - public static com.google.cloud.securitycentermanagement.v1.EventThreatDetectionCustomModule parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.securitycentermanagement.v1.EventThreatDetectionCustomModule + parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.securitycentermanagement.v1.EventThreatDetectionCustomModule parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.cloud.securitycentermanagement.v1.EventThreatDetectionCustomModule + 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.securitycentermanagement.v1.EventThreatDetectionCustomModule parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.cloud.securitycentermanagement.v1.EventThreatDetectionCustomModule + parseFrom(com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.securitycentermanagement.v1.EventThreatDetectionCustomModule parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.cloud.securitycentermanagement.v1.EventThreatDetectionCustomModule + parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.securitycentermanagement.v1.EventThreatDetectionCustomModule parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.cloud.securitycentermanagement.v1.EventThreatDetectionCustomModule + parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.securitycentermanagement.v1.EventThreatDetectionCustomModule parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.cloud.securitycentermanagement.v1.EventThreatDetectionCustomModule + parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.securitycentermanagement.v1.EventThreatDetectionCustomModule parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.securitycentermanagement.v1.EventThreatDetectionCustomModule + parseFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } - public static com.google.cloud.securitycentermanagement.v1.EventThreatDetectionCustomModule 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.securitycentermanagement.v1.EventThreatDetectionCustomModule + 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.securitycentermanagement.v1.EventThreatDetectionCustomModule parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.securitycentermanagement.v1.EventThreatDetectionCustomModule + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.securitycentermanagement.v1.EventThreatDetectionCustomModule parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + public static com.google.cloud.securitycentermanagement.v1.EventThreatDetectionCustomModule + parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.securitycentermanagement.v1.EventThreatDetectionCustomModule parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.securitycentermanagement.v1.EventThreatDetectionCustomModule + parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } - public static com.google.cloud.securitycentermanagement.v1.EventThreatDetectionCustomModule 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.securitycentermanagement.v1.EventThreatDetectionCustomModule + 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.securitycentermanagement.v1.EventThreatDetectionCustomModule prototype) { + + public static Builder newBuilder( + com.google.cloud.securitycentermanagement.v1.EventThreatDetectionCustomModule prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * An event threat detection custom module is a Cloud SCC resource that contains
    * the configuration and enablement state of a custom module, which enables ETD
@@ -888,33 +1008,34 @@ protected Builder newBuilderForType(
    *
    * Protobuf type {@code google.cloud.securitycentermanagement.v1.EventThreatDetectionCustomModule}
    */
-  public static final class Builder extends
-      com.google.protobuf.GeneratedMessageV3.Builder implements
+  public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
+      implements
       // @@protoc_insertion_point(builder_implements:google.cloud.securitycentermanagement.v1.EventThreatDetectionCustomModule)
       com.google.cloud.securitycentermanagement.v1.EventThreatDetectionCustomModuleOrBuilder {
-    public static final com.google.protobuf.Descriptors.Descriptor
-        getDescriptor() {
-      return com.google.cloud.securitycentermanagement.v1.SecurityCenterManagementProto.internal_static_google_cloud_securitycentermanagement_v1_EventThreatDetectionCustomModule_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+      return com.google.cloud.securitycentermanagement.v1.SecurityCenterManagementProto
+          .internal_static_google_cloud_securitycentermanagement_v1_EventThreatDetectionCustomModule_descriptor;
     }
 
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.cloud.securitycentermanagement.v1.SecurityCenterManagementProto.internal_static_google_cloud_securitycentermanagement_v1_EventThreatDetectionCustomModule_fieldAccessorTable
+      return com.google.cloud.securitycentermanagement.v1.SecurityCenterManagementProto
+          .internal_static_google_cloud_securitycentermanagement_v1_EventThreatDetectionCustomModule_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.cloud.securitycentermanagement.v1.EventThreatDetectionCustomModule.class, com.google.cloud.securitycentermanagement.v1.EventThreatDetectionCustomModule.Builder.class);
+              com.google.cloud.securitycentermanagement.v1.EventThreatDetectionCustomModule.class,
+              com.google.cloud.securitycentermanagement.v1.EventThreatDetectionCustomModule.Builder
+                  .class);
     }
 
-    // Construct using com.google.cloud.securitycentermanagement.v1.EventThreatDetectionCustomModule.newBuilder()
-    private Builder() {
-
-    }
+    // Construct using
+    // com.google.cloud.securitycentermanagement.v1.EventThreatDetectionCustomModule.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();
@@ -940,19 +1061,22 @@ public Builder clear() {
     }
 
     @java.lang.Override
-    public com.google.protobuf.Descriptors.Descriptor
-        getDescriptorForType() {
-      return com.google.cloud.securitycentermanagement.v1.SecurityCenterManagementProto.internal_static_google_cloud_securitycentermanagement_v1_EventThreatDetectionCustomModule_descriptor;
+    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
+      return com.google.cloud.securitycentermanagement.v1.SecurityCenterManagementProto
+          .internal_static_google_cloud_securitycentermanagement_v1_EventThreatDetectionCustomModule_descriptor;
     }
 
     @java.lang.Override
-    public com.google.cloud.securitycentermanagement.v1.EventThreatDetectionCustomModule getDefaultInstanceForType() {
-      return com.google.cloud.securitycentermanagement.v1.EventThreatDetectionCustomModule.getDefaultInstance();
+    public com.google.cloud.securitycentermanagement.v1.EventThreatDetectionCustomModule
+        getDefaultInstanceForType() {
+      return com.google.cloud.securitycentermanagement.v1.EventThreatDetectionCustomModule
+          .getDefaultInstance();
     }
 
     @java.lang.Override
     public com.google.cloud.securitycentermanagement.v1.EventThreatDetectionCustomModule build() {
-      com.google.cloud.securitycentermanagement.v1.EventThreatDetectionCustomModule result = buildPartial();
+      com.google.cloud.securitycentermanagement.v1.EventThreatDetectionCustomModule result =
+          buildPartial();
       if (!result.isInitialized()) {
         throw newUninitializedMessageException(result);
       }
@@ -960,22 +1084,25 @@ public com.google.cloud.securitycentermanagement.v1.EventThreatDetectionCustomMo
     }
 
     @java.lang.Override
-    public com.google.cloud.securitycentermanagement.v1.EventThreatDetectionCustomModule buildPartial() {
-      com.google.cloud.securitycentermanagement.v1.EventThreatDetectionCustomModule result = new com.google.cloud.securitycentermanagement.v1.EventThreatDetectionCustomModule(this);
-      if (bitField0_ != 0) { buildPartial0(result); }
+    public com.google.cloud.securitycentermanagement.v1.EventThreatDetectionCustomModule
+        buildPartial() {
+      com.google.cloud.securitycentermanagement.v1.EventThreatDetectionCustomModule result =
+          new com.google.cloud.securitycentermanagement.v1.EventThreatDetectionCustomModule(this);
+      if (bitField0_ != 0) {
+        buildPartial0(result);
+      }
       onBuilt();
       return result;
     }
 
-    private void buildPartial0(com.google.cloud.securitycentermanagement.v1.EventThreatDetectionCustomModule result) {
+    private void buildPartial0(
+        com.google.cloud.securitycentermanagement.v1.EventThreatDetectionCustomModule result) {
       int from_bitField0_ = bitField0_;
       if (((from_bitField0_ & 0x00000001) != 0)) {
         result.name_ = name_;
       }
       if (((from_bitField0_ & 0x00000002) != 0)) {
-        result.config_ = configBuilder_ == null
-            ? config_
-            : configBuilder_.build();
+        result.config_ = configBuilder_ == null ? config_ : configBuilder_.build();
       }
       if (((from_bitField0_ & 0x00000004) != 0)) {
         result.ancestorModule_ = ancestorModule_;
@@ -993,9 +1120,7 @@ private void buildPartial0(com.google.cloud.securitycentermanagement.v1.EventThr
         result.description_ = description_;
       }
       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.lastEditor_ = lastEditor_;
@@ -1006,46 +1131,53 @@ private void buildPartial0(com.google.cloud.securitycentermanagement.v1.EventThr
     public Builder clone() {
       return super.clone();
     }
+
     @java.lang.Override
     public Builder setField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
       return super.setField(field, value);
     }
+
     @java.lang.Override
-    public Builder clearField(
-        com.google.protobuf.Descriptors.FieldDescriptor field) {
+    public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
       return super.clearField(field);
     }
+
     @java.lang.Override
-    public Builder clearOneof(
-        com.google.protobuf.Descriptors.OneofDescriptor oneof) {
+    public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
       return super.clearOneof(oneof);
     }
+
     @java.lang.Override
     public Builder setRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        int index, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) {
       return super.setRepeatedField(field, index, value);
     }
+
     @java.lang.Override
     public Builder addRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
       return super.addRepeatedField(field, value);
     }
+
     @java.lang.Override
     public Builder mergeFrom(com.google.protobuf.Message other) {
-      if (other instanceof com.google.cloud.securitycentermanagement.v1.EventThreatDetectionCustomModule) {
-        return mergeFrom((com.google.cloud.securitycentermanagement.v1.EventThreatDetectionCustomModule)other);
+      if (other
+          instanceof
+          com.google.cloud.securitycentermanagement.v1.EventThreatDetectionCustomModule) {
+        return mergeFrom(
+            (com.google.cloud.securitycentermanagement.v1.EventThreatDetectionCustomModule) other);
       } else {
         super.mergeFrom(other);
         return this;
       }
     }
 
-    public Builder mergeFrom(com.google.cloud.securitycentermanagement.v1.EventThreatDetectionCustomModule other) {
-      if (other == com.google.cloud.securitycentermanagement.v1.EventThreatDetectionCustomModule.getDefaultInstance()) return this;
+    public Builder mergeFrom(
+        com.google.cloud.securitycentermanagement.v1.EventThreatDetectionCustomModule other) {
+      if (other
+          == com.google.cloud.securitycentermanagement.v1.EventThreatDetectionCustomModule
+              .getDefaultInstance()) return this;
       if (!other.getName().isEmpty()) {
         name_ = other.name_;
         bitField0_ |= 0x00000001;
@@ -1111,61 +1243,67 @@ public Builder mergeFrom(
             case 0:
               done = true;
               break;
-            case 10: {
-              name_ = input.readStringRequireUtf8();
-              bitField0_ |= 0x00000001;
-              break;
-            } // case 10
-            case 18: {
-              input.readMessage(
-                  getConfigFieldBuilder().getBuilder(),
-                  extensionRegistry);
-              bitField0_ |= 0x00000002;
-              break;
-            } // case 18
-            case 26: {
-              ancestorModule_ = input.readStringRequireUtf8();
-              bitField0_ |= 0x00000004;
-              break;
-            } // case 26
-            case 32: {
-              enablementState_ = input.readEnum();
-              bitField0_ |= 0x00000008;
-              break;
-            } // case 32
-            case 42: {
-              type_ = input.readStringRequireUtf8();
-              bitField0_ |= 0x00000010;
-              break;
-            } // case 42
-            case 50: {
-              displayName_ = input.readStringRequireUtf8();
-              bitField0_ |= 0x00000020;
-              break;
-            } // case 50
-            case 58: {
-              description_ = input.readStringRequireUtf8();
-              bitField0_ |= 0x00000040;
-              break;
-            } // case 58
-            case 66: {
-              input.readMessage(
-                  getUpdateTimeFieldBuilder().getBuilder(),
-                  extensionRegistry);
-              bitField0_ |= 0x00000080;
-              break;
-            } // case 66
-            case 74: {
-              lastEditor_ = input.readStringRequireUtf8();
-              bitField0_ |= 0x00000100;
-              break;
-            } // case 74
-            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(getConfigFieldBuilder().getBuilder(), extensionRegistry);
+                bitField0_ |= 0x00000002;
+                break;
+              } // case 18
+            case 26:
+              {
+                ancestorModule_ = input.readStringRequireUtf8();
+                bitField0_ |= 0x00000004;
+                break;
+              } // case 26
+            case 32:
+              {
+                enablementState_ = input.readEnum();
+                bitField0_ |= 0x00000008;
+                break;
+              } // case 32
+            case 42:
+              {
+                type_ = input.readStringRequireUtf8();
+                bitField0_ |= 0x00000010;
+                break;
+              } // case 42
+            case 50:
+              {
+                displayName_ = input.readStringRequireUtf8();
+                bitField0_ |= 0x00000020;
+                break;
+              } // case 50
+            case 58:
+              {
+                description_ = input.readStringRequireUtf8();
+                bitField0_ |= 0x00000040;
+                break;
+              } // case 58
+            case 66:
+              {
+                input.readMessage(getUpdateTimeFieldBuilder().getBuilder(), extensionRegistry);
+                bitField0_ |= 0x00000080;
+                break;
+              } // case 66
+            case 74:
+              {
+                lastEditor_ = input.readStringRequireUtf8();
+                bitField0_ |= 0x00000100;
+                break;
+              } // case 74
+            default:
+              {
+                if (!super.parseUnknownField(input, extensionRegistry, tag)) {
+                  done = true; // was an endgroup tag
+                }
+                break;
+              } // default:
           } // switch (tag)
         } // while (!done)
       } catch (com.google.protobuf.InvalidProtocolBufferException e) {
@@ -1175,10 +1313,13 @@ public Builder mergeFrom(
       } // finally
       return this;
     }
+
     private int bitField0_;
 
     private java.lang.Object name_ = "";
     /**
+     *
+     *
      * 
      * Immutable. The resource name of the ETD custom module.
      *
@@ -1190,13 +1331,13 @@ public Builder mergeFrom(
      * 
* * string name = 1 [(.google.api.field_behavior) = IMMUTABLE]; + * * @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; @@ -1205,6 +1346,8 @@ public java.lang.String getName() { } } /** + * + * *
      * Immutable. The resource name of the ETD custom module.
      *
@@ -1216,15 +1359,14 @@ public java.lang.String getName() {
      * 
* * string name = 1 [(.google.api.field_behavior) = IMMUTABLE]; + * * @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 { @@ -1232,6 +1374,8 @@ public java.lang.String getName() { } } /** + * + * *
      * Immutable. The resource name of the ETD custom module.
      *
@@ -1243,18 +1387,22 @@ public java.lang.String getName() {
      * 
* * string name = 1 [(.google.api.field_behavior) = IMMUTABLE]; + * * @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; } /** + * + * *
      * Immutable. The resource name of the ETD custom module.
      *
@@ -1266,6 +1414,7 @@ public Builder setName(
      * 
* * string name = 1 [(.google.api.field_behavior) = IMMUTABLE]; + * * @return This builder for chaining. */ public Builder clearName() { @@ -1275,6 +1424,8 @@ public Builder clearName() { return this; } /** + * + * *
      * Immutable. The resource name of the ETD custom module.
      *
@@ -1286,12 +1437,14 @@ public Builder clearName() {
      * 
* * string name = 1 [(.google.api.field_behavior) = IMMUTABLE]; + * * @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; @@ -1301,8 +1454,13 @@ public Builder setNameBytes( private com.google.protobuf.Struct config_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Struct, com.google.protobuf.Struct.Builder, com.google.protobuf.StructOrBuilder> configBuilder_; + com.google.protobuf.Struct, + com.google.protobuf.Struct.Builder, + com.google.protobuf.StructOrBuilder> + configBuilder_; /** + * + * *
      * Optional. Config for the module. For the resident module, its config value
      * is defined at this level. For the inherited module, its config value is
@@ -1310,12 +1468,15 @@ public Builder setNameBytes(
      * 
* * .google.protobuf.Struct config = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @return Whether the config field is set. */ public boolean hasConfig() { return ((bitField0_ & 0x00000002) != 0); } /** + * + * *
      * Optional. Config for the module. For the resident module, its config value
      * is defined at this level. For the inherited module, its config value is
@@ -1323,6 +1484,7 @@ public boolean hasConfig() {
      * 
* * .google.protobuf.Struct config = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The config. */ public com.google.protobuf.Struct getConfig() { @@ -1333,6 +1495,8 @@ public com.google.protobuf.Struct getConfig() { } } /** + * + * *
      * Optional. Config for the module. For the resident module, its config value
      * is defined at this level. For the inherited module, its config value is
@@ -1355,6 +1519,8 @@ public Builder setConfig(com.google.protobuf.Struct value) {
       return this;
     }
     /**
+     *
+     *
      * 
      * Optional. Config for the module. For the resident module, its config value
      * is defined at this level. For the inherited module, its config value is
@@ -1363,8 +1529,7 @@ public Builder setConfig(com.google.protobuf.Struct value) {
      *
      * .google.protobuf.Struct config = 2 [(.google.api.field_behavior) = OPTIONAL];
      */
-    public Builder setConfig(
-        com.google.protobuf.Struct.Builder builderForValue) {
+    public Builder setConfig(com.google.protobuf.Struct.Builder builderForValue) {
       if (configBuilder_ == null) {
         config_ = builderForValue.build();
       } else {
@@ -1375,6 +1540,8 @@ public Builder setConfig(
       return this;
     }
     /**
+     *
+     *
      * 
      * Optional. Config for the module. For the resident module, its config value
      * is defined at this level. For the inherited module, its config value is
@@ -1385,9 +1552,9 @@ public Builder setConfig(
      */
     public Builder mergeConfig(com.google.protobuf.Struct value) {
       if (configBuilder_ == null) {
-        if (((bitField0_ & 0x00000002) != 0) &&
-          config_ != null &&
-          config_ != com.google.protobuf.Struct.getDefaultInstance()) {
+        if (((bitField0_ & 0x00000002) != 0)
+            && config_ != null
+            && config_ != com.google.protobuf.Struct.getDefaultInstance()) {
           getConfigBuilder().mergeFrom(value);
         } else {
           config_ = value;
@@ -1400,6 +1567,8 @@ public Builder mergeConfig(com.google.protobuf.Struct value) {
       return this;
     }
     /**
+     *
+     *
      * 
      * Optional. Config for the module. For the resident module, its config value
      * is defined at this level. For the inherited module, its config value is
@@ -1419,6 +1588,8 @@ public Builder clearConfig() {
       return this;
     }
     /**
+     *
+     *
      * 
      * Optional. Config for the module. For the resident module, its config value
      * is defined at this level. For the inherited module, its config value is
@@ -1433,6 +1604,8 @@ public com.google.protobuf.Struct.Builder getConfigBuilder() {
       return getConfigFieldBuilder().getBuilder();
     }
     /**
+     *
+     *
      * 
      * Optional. Config for the module. For the resident module, its config value
      * is defined at this level. For the inherited module, its config value is
@@ -1445,11 +1618,12 @@ public com.google.protobuf.StructOrBuilder getConfigOrBuilder() {
       if (configBuilder_ != null) {
         return configBuilder_.getMessageOrBuilder();
       } else {
-        return config_ == null ?
-            com.google.protobuf.Struct.getDefaultInstance() : config_;
+        return config_ == null ? com.google.protobuf.Struct.getDefaultInstance() : config_;
       }
     }
     /**
+     *
+     *
      * 
      * Optional. Config for the module. For the resident module, its config value
      * is defined at this level. For the inherited module, its config value is
@@ -1459,14 +1633,17 @@ public com.google.protobuf.StructOrBuilder getConfigOrBuilder() {
      * .google.protobuf.Struct config = 2 [(.google.api.field_behavior) = OPTIONAL];
      */
     private com.google.protobuf.SingleFieldBuilderV3<
-        com.google.protobuf.Struct, com.google.protobuf.Struct.Builder, com.google.protobuf.StructOrBuilder> 
+            com.google.protobuf.Struct,
+            com.google.protobuf.Struct.Builder,
+            com.google.protobuf.StructOrBuilder>
         getConfigFieldBuilder() {
       if (configBuilder_ == null) {
-        configBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
-            com.google.protobuf.Struct, com.google.protobuf.Struct.Builder, com.google.protobuf.StructOrBuilder>(
-                getConfig(),
-                getParentForChildren(),
-                isClean());
+        configBuilder_ =
+            new com.google.protobuf.SingleFieldBuilderV3<
+                com.google.protobuf.Struct,
+                com.google.protobuf.Struct.Builder,
+                com.google.protobuf.StructOrBuilder>(
+                getConfig(), getParentForChildren(), isClean());
         config_ = null;
       }
       return configBuilder_;
@@ -1474,6 +1651,8 @@ public com.google.protobuf.StructOrBuilder getConfigOrBuilder() {
 
     private java.lang.Object ancestorModule_ = "";
     /**
+     *
+     *
      * 
      * Output only. The closest ancestor module that this module inherits the
      * enablement state from. If empty, indicates that the custom module was
@@ -1481,14 +1660,16 @@ public com.google.protobuf.StructOrBuilder getConfigOrBuilder() {
      * format is the same as the EventThreatDetectionCustomModule resource name.
      * 
* - * string ancestor_module = 3 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * string ancestor_module = 3 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * * @return The ancestorModule. */ public java.lang.String getAncestorModule() { java.lang.Object ref = ancestorModule_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); ancestorModule_ = s; return s; @@ -1497,6 +1678,8 @@ public java.lang.String getAncestorModule() { } } /** + * + * *
      * Output only. The closest ancestor module that this module inherits the
      * enablement state from. If empty, indicates that the custom module was
@@ -1504,16 +1687,17 @@ public java.lang.String getAncestorModule() {
      * format is the same as the EventThreatDetectionCustomModule resource name.
      * 
* - * string ancestor_module = 3 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * string ancestor_module = 3 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * * @return The bytes for ancestorModule. */ - public com.google.protobuf.ByteString - getAncestorModuleBytes() { + public com.google.protobuf.ByteString getAncestorModuleBytes() { java.lang.Object ref = ancestorModule_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); ancestorModule_ = b; return b; } else { @@ -1521,6 +1705,8 @@ public java.lang.String getAncestorModule() { } } /** + * + * *
      * Output only. The closest ancestor module that this module inherits the
      * enablement state from. If empty, indicates that the custom module was
@@ -1528,19 +1714,25 @@ public java.lang.String getAncestorModule() {
      * format is the same as the EventThreatDetectionCustomModule resource name.
      * 
* - * string ancestor_module = 3 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * string ancestor_module = 3 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * * @param value The ancestorModule to set. * @return This builder for chaining. */ - public Builder setAncestorModule( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setAncestorModule(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } ancestorModule_ = value; bitField0_ |= 0x00000004; onChanged(); return this; } /** + * + * *
      * Output only. The closest ancestor module that this module inherits the
      * enablement state from. If empty, indicates that the custom module was
@@ -1548,7 +1740,10 @@ public Builder setAncestorModule(
      * format is the same as the EventThreatDetectionCustomModule resource name.
      * 
* - * string ancestor_module = 3 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * string ancestor_module = 3 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * * @return This builder for chaining. */ public Builder clearAncestorModule() { @@ -1558,6 +1753,8 @@ public Builder clearAncestorModule() { return this; } /** + * + * *
      * Output only. The closest ancestor module that this module inherits the
      * enablement state from. If empty, indicates that the custom module was
@@ -1565,13 +1762,17 @@ public Builder clearAncestorModule() {
      * format is the same as the EventThreatDetectionCustomModule resource name.
      * 
* - * string ancestor_module = 3 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * string ancestor_module = 3 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * * @param value The bytes for ancestorModule to set. * @return This builder for chaining. */ - public Builder setAncestorModuleBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder setAncestorModuleBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); ancestorModule_ = value; bitField0_ |= 0x00000004; @@ -1581,24 +1782,35 @@ public Builder setAncestorModuleBytes( private int enablementState_ = 0; /** + * + * *
      * Optional. The state of enablement for the module at the given level of the
      * hierarchy.
      * 
* - * .google.cloud.securitycentermanagement.v1.EventThreatDetectionCustomModule.EnablementState enablement_state = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.securitycentermanagement.v1.EventThreatDetectionCustomModule.EnablementState enablement_state = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return The enum numeric value on the wire for enablementState. */ - @java.lang.Override public int getEnablementStateValue() { + @java.lang.Override + public int getEnablementStateValue() { return enablementState_; } /** + * + * *
      * Optional. The state of enablement for the module at the given level of the
      * hierarchy.
      * 
* - * .google.cloud.securitycentermanagement.v1.EventThreatDetectionCustomModule.EnablementState enablement_state = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.securitycentermanagement.v1.EventThreatDetectionCustomModule.EnablementState enablement_state = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @param value The enum numeric value on the wire for enablementState to set. * @return This builder for chaining. */ @@ -1609,30 +1821,51 @@ public Builder setEnablementStateValue(int value) { return this; } /** + * + * *
      * Optional. The state of enablement for the module at the given level of the
      * hierarchy.
      * 
* - * .google.cloud.securitycentermanagement.v1.EventThreatDetectionCustomModule.EnablementState enablement_state = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.securitycentermanagement.v1.EventThreatDetectionCustomModule.EnablementState enablement_state = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return The enablementState. */ @java.lang.Override - public com.google.cloud.securitycentermanagement.v1.EventThreatDetectionCustomModule.EnablementState getEnablementState() { - com.google.cloud.securitycentermanagement.v1.EventThreatDetectionCustomModule.EnablementState result = com.google.cloud.securitycentermanagement.v1.EventThreatDetectionCustomModule.EnablementState.forNumber(enablementState_); - return result == null ? com.google.cloud.securitycentermanagement.v1.EventThreatDetectionCustomModule.EnablementState.UNRECOGNIZED : result; + public com.google.cloud.securitycentermanagement.v1.EventThreatDetectionCustomModule + .EnablementState + getEnablementState() { + com.google.cloud.securitycentermanagement.v1.EventThreatDetectionCustomModule.EnablementState + result = + com.google.cloud.securitycentermanagement.v1.EventThreatDetectionCustomModule + .EnablementState.forNumber(enablementState_); + return result == null + ? com.google.cloud.securitycentermanagement.v1.EventThreatDetectionCustomModule + .EnablementState.UNRECOGNIZED + : result; } /** + * + * *
      * Optional. The state of enablement for the module at the given level of the
      * hierarchy.
      * 
* - * .google.cloud.securitycentermanagement.v1.EventThreatDetectionCustomModule.EnablementState enablement_state = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.securitycentermanagement.v1.EventThreatDetectionCustomModule.EnablementState enablement_state = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @param value The enablementState to set. * @return This builder for chaining. */ - public Builder setEnablementState(com.google.cloud.securitycentermanagement.v1.EventThreatDetectionCustomModule.EnablementState value) { + public Builder setEnablementState( + com.google.cloud.securitycentermanagement.v1.EventThreatDetectionCustomModule + .EnablementState + value) { if (value == null) { throw new NullPointerException(); } @@ -1642,12 +1875,17 @@ public Builder setEnablementState(com.google.cloud.securitycentermanagement.v1.E return this; } /** + * + * *
      * Optional. The state of enablement for the module at the given level of the
      * hierarchy.
      * 
* - * .google.cloud.securitycentermanagement.v1.EventThreatDetectionCustomModule.EnablementState enablement_state = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.securitycentermanagement.v1.EventThreatDetectionCustomModule.EnablementState enablement_state = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return This builder for chaining. */ public Builder clearEnablementState() { @@ -1659,18 +1897,20 @@ public Builder clearEnablementState() { private java.lang.Object type_ = ""; /** + * + * *
      * Optional. Type for the module. e.g. CONFIGURABLE_BAD_IP.
      * 
* * string type = 5 [(.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; @@ -1679,20 +1919,21 @@ public java.lang.String getType() { } } /** + * + * *
      * Optional. Type for the module. e.g. CONFIGURABLE_BAD_IP.
      * 
* * string type = 5 [(.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 { @@ -1700,28 +1941,35 @@ public java.lang.String getType() { } } /** + * + * *
      * Optional. Type for the module. e.g. CONFIGURABLE_BAD_IP.
      * 
* * string type = 5 [(.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_ |= 0x00000010; onChanged(); return this; } /** + * + * *
      * Optional. Type for the module. e.g. CONFIGURABLE_BAD_IP.
      * 
* * string type = 5 [(.google.api.field_behavior) = OPTIONAL]; + * * @return This builder for chaining. */ public Builder clearType() { @@ -1731,17 +1979,21 @@ public Builder clearType() { return this; } /** + * + * *
      * Optional. Type for the module. e.g. CONFIGURABLE_BAD_IP.
      * 
* * string type = 5 [(.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_ |= 0x00000010; @@ -1751,18 +2003,20 @@ public Builder setTypeBytes( private java.lang.Object displayName_ = ""; /** + * + * *
      * Optional. The human readable name to be displayed for the module.
      * 
* * string display_name = 6 [(.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; @@ -1771,20 +2025,21 @@ public java.lang.String getDisplayName() { } } /** + * + * *
      * Optional. The human readable name to be displayed for the module.
      * 
* * string display_name = 6 [(.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 { @@ -1792,28 +2047,35 @@ public java.lang.String getDisplayName() { } } /** + * + * *
      * Optional. The human readable name to be displayed for the module.
      * 
* * string display_name = 6 [(.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_ |= 0x00000020; onChanged(); return this; } /** + * + * *
      * Optional. The human readable name to be displayed for the module.
      * 
* * string display_name = 6 [(.google.api.field_behavior) = OPTIONAL]; + * * @return This builder for chaining. */ public Builder clearDisplayName() { @@ -1823,17 +2085,21 @@ public Builder clearDisplayName() { return this; } /** + * + * *
      * Optional. The human readable name to be displayed for the module.
      * 
* * string display_name = 6 [(.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_ |= 0x00000020; @@ -1843,18 +2109,20 @@ public Builder setDisplayNameBytes( private java.lang.Object description_ = ""; /** + * + * *
      * Optional. The description for the module.
      * 
* * string description = 7 [(.google.api.field_behavior) = OPTIONAL]; + * * @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; @@ -1863,20 +2131,21 @@ public java.lang.String getDescription() { } } /** + * + * *
      * Optional. The description for the module.
      * 
* * string description = 7 [(.google.api.field_behavior) = OPTIONAL]; + * * @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 { @@ -1884,28 +2153,35 @@ public java.lang.String getDescription() { } } /** + * + * *
      * Optional. The description for the module.
      * 
* * string description = 7 [(.google.api.field_behavior) = OPTIONAL]; + * * @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; } /** + * + * *
      * Optional. The description for the module.
      * 
* * string description = 7 [(.google.api.field_behavior) = OPTIONAL]; + * * @return This builder for chaining. */ public Builder clearDescription() { @@ -1915,17 +2191,21 @@ public Builder clearDescription() { return this; } /** + * + * *
      * Optional. The description for the module.
      * 
* * string description = 7 [(.google.api.field_behavior) = OPTIONAL]; + * * @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; @@ -1935,39 +2215,58 @@ public Builder setDescriptionBytes( 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 time the module was last updated.
      * 
* - * .google.protobuf.Timestamp update_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp update_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return Whether the updateTime field is set. */ public boolean hasUpdateTime() { return ((bitField0_ & 0x00000080) != 0); } /** + * + * *
      * Output only. The time the module was last updated.
      * 
* - * .google.protobuf.Timestamp update_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp update_time = 8 [(.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 time the module was last updated.
      * 
* - * .google.protobuf.Timestamp update_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp update_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder setUpdateTime(com.google.protobuf.Timestamp value) { if (updateTimeBuilder_ == null) { @@ -1983,14 +2282,17 @@ public Builder setUpdateTime(com.google.protobuf.Timestamp value) { return this; } /** + * + * *
      * Output only. The time the module was last updated.
      * 
* - * .google.protobuf.Timestamp update_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp update_time = 8 [(.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 { @@ -2001,17 +2303,21 @@ public Builder setUpdateTime( return this; } /** + * + * *
      * Output only. The time the module was last updated.
      * 
* - * .google.protobuf.Timestamp update_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp update_time = 8 [(.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; @@ -2024,11 +2330,15 @@ public Builder mergeUpdateTime(com.google.protobuf.Timestamp value) { return this; } /** + * + * *
      * Output only. The time the module was last updated.
      * 
* - * .google.protobuf.Timestamp update_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp update_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder clearUpdateTime() { bitField0_ = (bitField0_ & ~0x00000080); @@ -2041,11 +2351,15 @@ public Builder clearUpdateTime() { return this; } /** + * + * *
      * Output only. The time the module was last updated.
      * 
* - * .google.protobuf.Timestamp update_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp update_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public com.google.protobuf.Timestamp.Builder getUpdateTimeBuilder() { bitField0_ |= 0x00000080; @@ -2053,36 +2367,48 @@ public com.google.protobuf.Timestamp.Builder getUpdateTimeBuilder() { return getUpdateTimeFieldBuilder().getBuilder(); } /** + * + * *
      * Output only. The time the module was last updated.
      * 
* - * .google.protobuf.Timestamp update_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp update_time = 8 [(.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 time the module was last updated.
      * 
* - * .google.protobuf.Timestamp update_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp update_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> 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_; @@ -2090,18 +2416,20 @@ public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() { private java.lang.Object lastEditor_ = ""; /** + * + * *
      * Output only. The editor the module was last updated by.
      * 
* * string last_editor = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The lastEditor. */ public java.lang.String getLastEditor() { java.lang.Object ref = lastEditor_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); lastEditor_ = s; return s; @@ -2110,20 +2438,21 @@ public java.lang.String getLastEditor() { } } /** + * + * *
      * Output only. The editor the module was last updated by.
      * 
* * string last_editor = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The bytes for lastEditor. */ - public com.google.protobuf.ByteString - getLastEditorBytes() { + public com.google.protobuf.ByteString getLastEditorBytes() { java.lang.Object ref = lastEditor_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); lastEditor_ = b; return b; } else { @@ -2131,28 +2460,35 @@ public java.lang.String getLastEditor() { } } /** + * + * *
      * Output only. The editor the module was last updated by.
      * 
* * string last_editor = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @param value The lastEditor to set. * @return This builder for chaining. */ - public Builder setLastEditor( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setLastEditor(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } lastEditor_ = value; bitField0_ |= 0x00000100; onChanged(); return this; } /** + * + * *
      * Output only. The editor the module was last updated by.
      * 
* * string last_editor = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return This builder for chaining. */ public Builder clearLastEditor() { @@ -2162,26 +2498,30 @@ public Builder clearLastEditor() { return this; } /** + * + * *
      * Output only. The editor the module was last updated by.
      * 
* * string last_editor = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @param value The bytes for lastEditor to set. * @return This builder for chaining. */ - public Builder setLastEditorBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder setLastEditorBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); lastEditor_ = value; bitField0_ |= 0x00000100; onChanged(); return this; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -2191,41 +2531,44 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.securitycentermanagement.v1.EventThreatDetectionCustomModule) } // @@protoc_insertion_point(class_scope:google.cloud.securitycentermanagement.v1.EventThreatDetectionCustomModule) - private static final com.google.cloud.securitycentermanagement.v1.EventThreatDetectionCustomModule DEFAULT_INSTANCE; + private static final com.google.cloud.securitycentermanagement.v1.EventThreatDetectionCustomModule + DEFAULT_INSTANCE; + static { - DEFAULT_INSTANCE = new com.google.cloud.securitycentermanagement.v1.EventThreatDetectionCustomModule(); + DEFAULT_INSTANCE = + new com.google.cloud.securitycentermanagement.v1.EventThreatDetectionCustomModule(); } - public static com.google.cloud.securitycentermanagement.v1.EventThreatDetectionCustomModule getDefaultInstance() { + public static com.google.cloud.securitycentermanagement.v1.EventThreatDetectionCustomModule + getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public EventThreatDetectionCustomModule parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public EventThreatDetectionCustomModule parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -2237,9 +2580,8 @@ public com.google.protobuf.Parser getParserFor } @java.lang.Override - public com.google.cloud.securitycentermanagement.v1.EventThreatDetectionCustomModule getDefaultInstanceForType() { + public com.google.cloud.securitycentermanagement.v1.EventThreatDetectionCustomModule + getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/java-securitycentermanagement/v1/proto-google-cloud-securitycentermanagement-v1/src/main/java/com/google/cloud/securitycentermanagement/v1/EventThreatDetectionCustomModuleName.java b/java-securitycentermanagement/proto-google-cloud-securitycentermanagement-v1/src/main/java/com/google/cloud/securitycentermanagement/v1/EventThreatDetectionCustomModuleName.java similarity index 100% rename from owl-bot-staging/java-securitycentermanagement/v1/proto-google-cloud-securitycentermanagement-v1/src/main/java/com/google/cloud/securitycentermanagement/v1/EventThreatDetectionCustomModuleName.java rename to java-securitycentermanagement/proto-google-cloud-securitycentermanagement-v1/src/main/java/com/google/cloud/securitycentermanagement/v1/EventThreatDetectionCustomModuleName.java diff --git a/owl-bot-staging/java-securitycentermanagement/v1/proto-google-cloud-securitycentermanagement-v1/src/main/java/com/google/cloud/securitycentermanagement/v1/EventThreatDetectionCustomModuleOrBuilder.java b/java-securitycentermanagement/proto-google-cloud-securitycentermanagement-v1/src/main/java/com/google/cloud/securitycentermanagement/v1/EventThreatDetectionCustomModuleOrBuilder.java similarity index 75% rename from owl-bot-staging/java-securitycentermanagement/v1/proto-google-cloud-securitycentermanagement-v1/src/main/java/com/google/cloud/securitycentermanagement/v1/EventThreatDetectionCustomModuleOrBuilder.java rename to java-securitycentermanagement/proto-google-cloud-securitycentermanagement-v1/src/main/java/com/google/cloud/securitycentermanagement/v1/EventThreatDetectionCustomModuleOrBuilder.java index 0be8afd3e02d..ef5d6363e91f 100644 --- a/owl-bot-staging/java-securitycentermanagement/v1/proto-google-cloud-securitycentermanagement-v1/src/main/java/com/google/cloud/securitycentermanagement/v1/EventThreatDetectionCustomModuleOrBuilder.java +++ b/java-securitycentermanagement/proto-google-cloud-securitycentermanagement-v1/src/main/java/com/google/cloud/securitycentermanagement/v1/EventThreatDetectionCustomModuleOrBuilder.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/securitycentermanagement/v1/security_center_management.proto package com.google.cloud.securitycentermanagement.v1; -public interface EventThreatDetectionCustomModuleOrBuilder extends +public interface EventThreatDetectionCustomModuleOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.securitycentermanagement.v1.EventThreatDetectionCustomModule) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * Immutable. The resource name of the ETD custom module.
    *
@@ -19,10 +37,13 @@ public interface EventThreatDetectionCustomModuleOrBuilder extends
    * 
* * string name = 1 [(.google.api.field_behavior) = IMMUTABLE]; + * * @return The name. */ java.lang.String getName(); /** + * + * *
    * Immutable. The resource name of the ETD custom module.
    *
@@ -34,12 +55,14 @@ public interface EventThreatDetectionCustomModuleOrBuilder extends
    * 
* * string name = 1 [(.google.api.field_behavior) = IMMUTABLE]; + * * @return The bytes for name. */ - com.google.protobuf.ByteString - getNameBytes(); + com.google.protobuf.ByteString getNameBytes(); /** + * + * *
    * Optional. Config for the module. For the resident module, its config value
    * is defined at this level. For the inherited module, its config value is
@@ -47,10 +70,13 @@ public interface EventThreatDetectionCustomModuleOrBuilder extends
    * 
* * .google.protobuf.Struct config = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @return Whether the config field is set. */ boolean hasConfig(); /** + * + * *
    * Optional. Config for the module. For the resident module, its config value
    * is defined at this level. For the inherited module, its config value is
@@ -58,10 +84,13 @@ public interface EventThreatDetectionCustomModuleOrBuilder extends
    * 
* * .google.protobuf.Struct config = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The config. */ com.google.protobuf.Struct getConfig(); /** + * + * *
    * Optional. Config for the module. For the resident module, its config value
    * is defined at this level. For the inherited module, its config value is
@@ -73,6 +102,8 @@ public interface EventThreatDetectionCustomModuleOrBuilder extends
   com.google.protobuf.StructOrBuilder getConfigOrBuilder();
 
   /**
+   *
+   *
    * 
    * Output only. The closest ancestor module that this module inherits the
    * enablement state from. If empty, indicates that the custom module was
@@ -80,11 +111,16 @@ public interface EventThreatDetectionCustomModuleOrBuilder extends
    * format is the same as the EventThreatDetectionCustomModule resource name.
    * 
* - * string ancestor_module = 3 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * string ancestor_module = 3 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * * @return The ancestorModule. */ java.lang.String getAncestorModule(); /** + * + * *
    * Output only. The closest ancestor module that this module inherits the
    * enablement state from. If empty, indicates that the custom module was
@@ -92,137 +128,181 @@ public interface EventThreatDetectionCustomModuleOrBuilder extends
    * format is the same as the EventThreatDetectionCustomModule resource name.
    * 
* - * string ancestor_module = 3 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * string ancestor_module = 3 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * * @return The bytes for ancestorModule. */ - com.google.protobuf.ByteString - getAncestorModuleBytes(); + com.google.protobuf.ByteString getAncestorModuleBytes(); /** + * + * *
    * Optional. The state of enablement for the module at the given level of the
    * hierarchy.
    * 
* - * .google.cloud.securitycentermanagement.v1.EventThreatDetectionCustomModule.EnablementState enablement_state = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.securitycentermanagement.v1.EventThreatDetectionCustomModule.EnablementState enablement_state = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return The enum numeric value on the wire for enablementState. */ int getEnablementStateValue(); /** + * + * *
    * Optional. The state of enablement for the module at the given level of the
    * hierarchy.
    * 
* - * .google.cloud.securitycentermanagement.v1.EventThreatDetectionCustomModule.EnablementState enablement_state = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.securitycentermanagement.v1.EventThreatDetectionCustomModule.EnablementState enablement_state = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return The enablementState. */ - com.google.cloud.securitycentermanagement.v1.EventThreatDetectionCustomModule.EnablementState getEnablementState(); + com.google.cloud.securitycentermanagement.v1.EventThreatDetectionCustomModule.EnablementState + getEnablementState(); /** + * + * *
    * Optional. Type for the module. e.g. CONFIGURABLE_BAD_IP.
    * 
* * string type = 5 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The type. */ java.lang.String getType(); /** + * + * *
    * Optional. Type for the module. e.g. CONFIGURABLE_BAD_IP.
    * 
* * string type = 5 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The bytes for type. */ - com.google.protobuf.ByteString - getTypeBytes(); + com.google.protobuf.ByteString getTypeBytes(); /** + * + * *
    * Optional. The human readable name to be displayed for the module.
    * 
* * string display_name = 6 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The displayName. */ java.lang.String getDisplayName(); /** + * + * *
    * Optional. The human readable name to be displayed for the module.
    * 
* * string display_name = 6 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The bytes for displayName. */ - com.google.protobuf.ByteString - getDisplayNameBytes(); + com.google.protobuf.ByteString getDisplayNameBytes(); /** + * + * *
    * Optional. The description for the module.
    * 
* * string description = 7 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The description. */ java.lang.String getDescription(); /** + * + * *
    * Optional. The description for the module.
    * 
* * string description = 7 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The bytes for description. */ - com.google.protobuf.ByteString - getDescriptionBytes(); + com.google.protobuf.ByteString getDescriptionBytes(); /** + * + * *
    * Output only. The time the module was last updated.
    * 
* - * .google.protobuf.Timestamp update_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp update_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return Whether the updateTime field is set. */ boolean hasUpdateTime(); /** + * + * *
    * Output only. The time the module was last updated.
    * 
* - * .google.protobuf.Timestamp update_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp update_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The updateTime. */ com.google.protobuf.Timestamp getUpdateTime(); /** + * + * *
    * Output only. The time the module was last updated.
    * 
* - * .google.protobuf.Timestamp update_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp update_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder(); /** + * + * *
    * Output only. The editor the module was last updated by.
    * 
* * string last_editor = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The lastEditor. */ java.lang.String getLastEditor(); /** + * + * *
    * Output only. The editor the module was last updated by.
    * 
* * string last_editor = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The bytes for lastEditor. */ - com.google.protobuf.ByteString - getLastEditorBytes(); + com.google.protobuf.ByteString getLastEditorBytes(); } diff --git a/owl-bot-staging/java-securitycentermanagement/v1/proto-google-cloud-securitycentermanagement-v1/src/main/java/com/google/cloud/securitycentermanagement/v1/FolderLocationName.java b/java-securitycentermanagement/proto-google-cloud-securitycentermanagement-v1/src/main/java/com/google/cloud/securitycentermanagement/v1/FolderLocationName.java similarity index 100% rename from owl-bot-staging/java-securitycentermanagement/v1/proto-google-cloud-securitycentermanagement-v1/src/main/java/com/google/cloud/securitycentermanagement/v1/FolderLocationName.java rename to java-securitycentermanagement/proto-google-cloud-securitycentermanagement-v1/src/main/java/com/google/cloud/securitycentermanagement/v1/FolderLocationName.java diff --git a/java-securitycentermanagement/proto-google-cloud-securitycentermanagement-v1/src/main/java/com/google/cloud/securitycentermanagement/v1/GetEffectiveEventThreatDetectionCustomModuleRequest.java b/java-securitycentermanagement/proto-google-cloud-securitycentermanagement-v1/src/main/java/com/google/cloud/securitycentermanagement/v1/GetEffectiveEventThreatDetectionCustomModuleRequest.java new file mode 100644 index 000000000000..d69e5cbadd8a --- /dev/null +++ b/java-securitycentermanagement/proto-google-cloud-securitycentermanagement-v1/src/main/java/com/google/cloud/securitycentermanagement/v1/GetEffectiveEventThreatDetectionCustomModuleRequest.java @@ -0,0 +1,757 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/securitycentermanagement/v1/security_center_management.proto + +package com.google.cloud.securitycentermanagement.v1; + +/** + * + * + *
+ * Message for getting a EffectiveEventThreatDetectionCustomModule
+ * 
+ * + * Protobuf type {@code + * google.cloud.securitycentermanagement.v1.GetEffectiveEventThreatDetectionCustomModuleRequest} + */ +public final class GetEffectiveEventThreatDetectionCustomModuleRequest + extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.securitycentermanagement.v1.GetEffectiveEventThreatDetectionCustomModuleRequest) + GetEffectiveEventThreatDetectionCustomModuleRequestOrBuilder { + private static final long serialVersionUID = 0L; + // Use GetEffectiveEventThreatDetectionCustomModuleRequest.newBuilder() to construct. + private GetEffectiveEventThreatDetectionCustomModuleRequest( + com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private GetEffectiveEventThreatDetectionCustomModuleRequest() { + name_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new GetEffectiveEventThreatDetectionCustomModuleRequest(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.securitycentermanagement.v1.SecurityCenterManagementProto + .internal_static_google_cloud_securitycentermanagement_v1_GetEffectiveEventThreatDetectionCustomModuleRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.securitycentermanagement.v1.SecurityCenterManagementProto + .internal_static_google_cloud_securitycentermanagement_v1_GetEffectiveEventThreatDetectionCustomModuleRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.securitycentermanagement.v1 + .GetEffectiveEventThreatDetectionCustomModuleRequest.class, + com.google.cloud.securitycentermanagement.v1 + .GetEffectiveEventThreatDetectionCustomModuleRequest.Builder.class); + } + + public static final int NAME_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object name_ = ""; + /** + * + * + *
+   * Required. The resource name of the ETD custom module.
+   *
+   * Its format is:
+   *
+   *   * "organizations/{organization}/locations/{location}/effectiveEventThreatDetectionCustomModules/{effective_event_threat_detection_custom_module}".
+   *   * "folders/{folder}/locations/{location}/effectiveEventThreatDetectionCustomModules/{effective_event_threat_detection_custom_module}".
+   *   * "projects/{project}/locations/{location}/effectiveEventThreatDetectionCustomModules/{effective_event_threat_detection_custom_module}".
+   * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + @java.lang.Override + public java.lang.String getName() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } + } + /** + * + * + *
+   * Required. The resource name of the ETD custom module.
+   *
+   * Its format is:
+   *
+   *   * "organizations/{organization}/locations/{location}/effectiveEventThreatDetectionCustomModules/{effective_event_threat_detection_custom_module}".
+   *   * "folders/{folder}/locations/{location}/effectiveEventThreatDetectionCustomModules/{effective_event_threat_detection_custom_module}".
+   *   * "projects/{project}/locations/{location}/effectiveEventThreatDetectionCustomModules/{effective_event_threat_detection_custom_module}".
+   * 
+ * + * + * 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() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj + instanceof + com.google.cloud.securitycentermanagement.v1 + .GetEffectiveEventThreatDetectionCustomModuleRequest)) { + return super.equals(obj); + } + com.google.cloud.securitycentermanagement.v1.GetEffectiveEventThreatDetectionCustomModuleRequest + other = + (com.google.cloud.securitycentermanagement.v1 + .GetEffectiveEventThreatDetectionCustomModuleRequest) + obj; + + if (!getName().equals(other.getName())) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + NAME_FIELD_NUMBER; + hash = (53 * hash) + getName().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.securitycentermanagement.v1 + .GetEffectiveEventThreatDetectionCustomModuleRequest + parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.securitycentermanagement.v1 + .GetEffectiveEventThreatDetectionCustomModuleRequest + 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.securitycentermanagement.v1 + .GetEffectiveEventThreatDetectionCustomModuleRequest + parseFrom(com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.securitycentermanagement.v1 + .GetEffectiveEventThreatDetectionCustomModuleRequest + parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.securitycentermanagement.v1 + .GetEffectiveEventThreatDetectionCustomModuleRequest + parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.securitycentermanagement.v1 + .GetEffectiveEventThreatDetectionCustomModuleRequest + parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.securitycentermanagement.v1 + .GetEffectiveEventThreatDetectionCustomModuleRequest + parseFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.securitycentermanagement.v1 + .GetEffectiveEventThreatDetectionCustomModuleRequest + 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.securitycentermanagement.v1 + .GetEffectiveEventThreatDetectionCustomModuleRequest + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.securitycentermanagement.v1 + .GetEffectiveEventThreatDetectionCustomModuleRequest + parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.securitycentermanagement.v1 + .GetEffectiveEventThreatDetectionCustomModuleRequest + parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.securitycentermanagement.v1 + .GetEffectiveEventThreatDetectionCustomModuleRequest + 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.securitycentermanagement.v1 + .GetEffectiveEventThreatDetectionCustomModuleRequest + prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
+   * Message for getting a EffectiveEventThreatDetectionCustomModule
+   * 
+ * + * Protobuf type {@code + * google.cloud.securitycentermanagement.v1.GetEffectiveEventThreatDetectionCustomModuleRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.securitycentermanagement.v1.GetEffectiveEventThreatDetectionCustomModuleRequest) + com.google.cloud.securitycentermanagement.v1 + .GetEffectiveEventThreatDetectionCustomModuleRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.securitycentermanagement.v1.SecurityCenterManagementProto + .internal_static_google_cloud_securitycentermanagement_v1_GetEffectiveEventThreatDetectionCustomModuleRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.securitycentermanagement.v1.SecurityCenterManagementProto + .internal_static_google_cloud_securitycentermanagement_v1_GetEffectiveEventThreatDetectionCustomModuleRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.securitycentermanagement.v1 + .GetEffectiveEventThreatDetectionCustomModuleRequest.class, + com.google.cloud.securitycentermanagement.v1 + .GetEffectiveEventThreatDetectionCustomModuleRequest.Builder.class); + } + + // Construct using + // com.google.cloud.securitycentermanagement.v1.GetEffectiveEventThreatDetectionCustomModuleRequest.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + name_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.securitycentermanagement.v1.SecurityCenterManagementProto + .internal_static_google_cloud_securitycentermanagement_v1_GetEffectiveEventThreatDetectionCustomModuleRequest_descriptor; + } + + @java.lang.Override + public com.google.cloud.securitycentermanagement.v1 + .GetEffectiveEventThreatDetectionCustomModuleRequest + getDefaultInstanceForType() { + return com.google.cloud.securitycentermanagement.v1 + .GetEffectiveEventThreatDetectionCustomModuleRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.securitycentermanagement.v1 + .GetEffectiveEventThreatDetectionCustomModuleRequest + build() { + com.google.cloud.securitycentermanagement.v1 + .GetEffectiveEventThreatDetectionCustomModuleRequest + result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.securitycentermanagement.v1 + .GetEffectiveEventThreatDetectionCustomModuleRequest + buildPartial() { + com.google.cloud.securitycentermanagement.v1 + .GetEffectiveEventThreatDetectionCustomModuleRequest + result = + new com.google.cloud.securitycentermanagement.v1 + .GetEffectiveEventThreatDetectionCustomModuleRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.cloud.securitycentermanagement.v1 + .GetEffectiveEventThreatDetectionCustomModuleRequest + result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.name_ = name_; + } + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other + instanceof + com.google.cloud.securitycentermanagement.v1 + .GetEffectiveEventThreatDetectionCustomModuleRequest) { + return mergeFrom( + (com.google.cloud.securitycentermanagement.v1 + .GetEffectiveEventThreatDetectionCustomModuleRequest) + other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.securitycentermanagement.v1 + .GetEffectiveEventThreatDetectionCustomModuleRequest + other) { + if (other + == com.google.cloud.securitycentermanagement.v1 + .GetEffectiveEventThreatDetectionCustomModuleRequest.getDefaultInstance()) + return this; + if (!other.getName().isEmpty()) { + name_ = other.name_; + bitField0_ |= 0x00000001; + onChanged(); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + 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: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private java.lang.Object name_ = ""; + /** + * + * + *
+     * Required. The resource name of the ETD custom module.
+     *
+     * Its format is:
+     *
+     *   * "organizations/{organization}/locations/{location}/effectiveEventThreatDetectionCustomModules/{effective_event_threat_detection_custom_module}".
+     *   * "folders/{folder}/locations/{location}/effectiveEventThreatDetectionCustomModules/{effective_event_threat_detection_custom_module}".
+     *   * "projects/{project}/locations/{location}/effectiveEventThreatDetectionCustomModules/{effective_event_threat_detection_custom_module}".
+     * 
+ * + * + * 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; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Required. The resource name of the ETD custom module.
+     *
+     * Its format is:
+     *
+     *   * "organizations/{organization}/locations/{location}/effectiveEventThreatDetectionCustomModules/{effective_event_threat_detection_custom_module}".
+     *   * "folders/{folder}/locations/{location}/effectiveEventThreatDetectionCustomModules/{effective_event_threat_detection_custom_module}".
+     *   * "projects/{project}/locations/{location}/effectiveEventThreatDetectionCustomModules/{effective_event_threat_detection_custom_module}".
+     * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for name. + */ + public com.google.protobuf.ByteString getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Required. The resource name of the ETD custom module.
+     *
+     * Its format is:
+     *
+     *   * "organizations/{organization}/locations/{location}/effectiveEventThreatDetectionCustomModules/{effective_event_threat_detection_custom_module}".
+     *   * "folders/{folder}/locations/{location}/effectiveEventThreatDetectionCustomModules/{effective_event_threat_detection_custom_module}".
+     *   * "projects/{project}/locations/{location}/effectiveEventThreatDetectionCustomModules/{effective_event_threat_detection_custom_module}".
+     * 
+ * + * + * 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(); + } + name_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * + * + *
+     * Required. The resource name of the ETD custom module.
+     *
+     * Its format is:
+     *
+     *   * "organizations/{organization}/locations/{location}/effectiveEventThreatDetectionCustomModules/{effective_event_threat_detection_custom_module}".
+     *   * "folders/{folder}/locations/{location}/effectiveEventThreatDetectionCustomModules/{effective_event_threat_detection_custom_module}".
+     *   * "projects/{project}/locations/{location}/effectiveEventThreatDetectionCustomModules/{effective_event_threat_detection_custom_module}".
+     * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return This builder for chaining. + */ + public Builder clearName() { + name_ = getDefaultInstance().getName(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + /** + * + * + *
+     * Required. The resource name of the ETD custom module.
+     *
+     * Its format is:
+     *
+     *   * "organizations/{organization}/locations/{location}/effectiveEventThreatDetectionCustomModules/{effective_event_threat_detection_custom_module}".
+     *   * "folders/{folder}/locations/{location}/effectiveEventThreatDetectionCustomModules/{effective_event_threat_detection_custom_module}".
+     *   * "projects/{project}/locations/{location}/effectiveEventThreatDetectionCustomModules/{effective_event_threat_detection_custom_module}".
+     * 
+ * + * + * 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(); + } + checkByteStringIsUtf8(value); + name_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.securitycentermanagement.v1.GetEffectiveEventThreatDetectionCustomModuleRequest) + } + + // @@protoc_insertion_point(class_scope:google.cloud.securitycentermanagement.v1.GetEffectiveEventThreatDetectionCustomModuleRequest) + private static final com.google.cloud.securitycentermanagement.v1 + .GetEffectiveEventThreatDetectionCustomModuleRequest + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = + new com.google.cloud.securitycentermanagement.v1 + .GetEffectiveEventThreatDetectionCustomModuleRequest(); + } + + public static com.google.cloud.securitycentermanagement.v1 + .GetEffectiveEventThreatDetectionCustomModuleRequest + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser< + GetEffectiveEventThreatDetectionCustomModuleRequest> + PARSER = + new com.google.protobuf.AbstractParser< + GetEffectiveEventThreatDetectionCustomModuleRequest>() { + @java.lang.Override + public GetEffectiveEventThreatDetectionCustomModuleRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException() + .setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser + parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser + getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.securitycentermanagement.v1 + .GetEffectiveEventThreatDetectionCustomModuleRequest + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/owl-bot-staging/java-securitycentermanagement/v1/proto-google-cloud-securitycentermanagement-v1/src/main/java/com/google/cloud/securitycentermanagement/v1/GetEffectiveEventThreatDetectionCustomModuleRequestOrBuilder.java b/java-securitycentermanagement/proto-google-cloud-securitycentermanagement-v1/src/main/java/com/google/cloud/securitycentermanagement/v1/GetEffectiveEventThreatDetectionCustomModuleRequestOrBuilder.java similarity index 63% rename from owl-bot-staging/java-securitycentermanagement/v1/proto-google-cloud-securitycentermanagement-v1/src/main/java/com/google/cloud/securitycentermanagement/v1/GetEffectiveEventThreatDetectionCustomModuleRequestOrBuilder.java rename to java-securitycentermanagement/proto-google-cloud-securitycentermanagement-v1/src/main/java/com/google/cloud/securitycentermanagement/v1/GetEffectiveEventThreatDetectionCustomModuleRequestOrBuilder.java index 702c7203ebf3..5ddfbd8795c6 100644 --- a/owl-bot-staging/java-securitycentermanagement/v1/proto-google-cloud-securitycentermanagement-v1/src/main/java/com/google/cloud/securitycentermanagement/v1/GetEffectiveEventThreatDetectionCustomModuleRequestOrBuilder.java +++ b/java-securitycentermanagement/proto-google-cloud-securitycentermanagement-v1/src/main/java/com/google/cloud/securitycentermanagement/v1/GetEffectiveEventThreatDetectionCustomModuleRequestOrBuilder.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/securitycentermanagement/v1/security_center_management.proto package com.google.cloud.securitycentermanagement.v1; -public interface GetEffectiveEventThreatDetectionCustomModuleRequestOrBuilder extends +public interface GetEffectiveEventThreatDetectionCustomModuleRequestOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.securitycentermanagement.v1.GetEffectiveEventThreatDetectionCustomModuleRequest) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * Required. The resource name of the ETD custom module.
    *
@@ -18,11 +36,16 @@ public interface GetEffectiveEventThreatDetectionCustomModuleRequestOrBuilder ex
    *   * "projects/{project}/locations/{location}/effectiveEventThreatDetectionCustomModules/{effective_event_threat_detection_custom_module}".
    * 
* - * string name = 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. The resource name of the ETD custom module.
    *
@@ -33,9 +56,11 @@ public interface GetEffectiveEventThreatDetectionCustomModuleRequestOrBuilder ex
    *   * "projects/{project}/locations/{location}/effectiveEventThreatDetectionCustomModules/{effective_event_threat_detection_custom_module}".
    * 
* - * string name = 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(); } diff --git a/java-securitycentermanagement/proto-google-cloud-securitycentermanagement-v1/src/main/java/com/google/cloud/securitycentermanagement/v1/GetEffectiveSecurityHealthAnalyticsCustomModuleRequest.java b/java-securitycentermanagement/proto-google-cloud-securitycentermanagement-v1/src/main/java/com/google/cloud/securitycentermanagement/v1/GetEffectiveSecurityHealthAnalyticsCustomModuleRequest.java new file mode 100644 index 000000000000..fca12b099919 --- /dev/null +++ b/java-securitycentermanagement/proto-google-cloud-securitycentermanagement-v1/src/main/java/com/google/cloud/securitycentermanagement/v1/GetEffectiveSecurityHealthAnalyticsCustomModuleRequest.java @@ -0,0 +1,758 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/securitycentermanagement/v1/security_center_management.proto + +package com.google.cloud.securitycentermanagement.v1; + +/** + * + * + *
+ * Message for getting a EffectiveSecurityHealthAnalyticsCustomModule
+ * 
+ * + * Protobuf type {@code + * google.cloud.securitycentermanagement.v1.GetEffectiveSecurityHealthAnalyticsCustomModuleRequest} + */ +public final class GetEffectiveSecurityHealthAnalyticsCustomModuleRequest + extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.securitycentermanagement.v1.GetEffectiveSecurityHealthAnalyticsCustomModuleRequest) + GetEffectiveSecurityHealthAnalyticsCustomModuleRequestOrBuilder { + private static final long serialVersionUID = 0L; + // Use GetEffectiveSecurityHealthAnalyticsCustomModuleRequest.newBuilder() to construct. + private GetEffectiveSecurityHealthAnalyticsCustomModuleRequest( + com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private GetEffectiveSecurityHealthAnalyticsCustomModuleRequest() { + name_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new GetEffectiveSecurityHealthAnalyticsCustomModuleRequest(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.securitycentermanagement.v1.SecurityCenterManagementProto + .internal_static_google_cloud_securitycentermanagement_v1_GetEffectiveSecurityHealthAnalyticsCustomModuleRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.securitycentermanagement.v1.SecurityCenterManagementProto + .internal_static_google_cloud_securitycentermanagement_v1_GetEffectiveSecurityHealthAnalyticsCustomModuleRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.securitycentermanagement.v1 + .GetEffectiveSecurityHealthAnalyticsCustomModuleRequest.class, + com.google.cloud.securitycentermanagement.v1 + .GetEffectiveSecurityHealthAnalyticsCustomModuleRequest.Builder.class); + } + + public static final int NAME_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object name_ = ""; + /** + * + * + *
+   * Required. The resource name of the SHA custom module.
+   *
+   * Its format is:
+   *
+   *   * "organizations/{organization}/locations/{location}/effectiveSecurityHealthAnalyticsCustomModules/{module_id}".
+   *   * "folders/{folder}/locations/{location}/effectiveSecurityHealthAnalyticsCustomModules/{module_id}".
+   *   * "projects/{project}/locations/{location}/effectiveSecurityHealthAnalyticsCustomModules/{module_id}".
+   * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + @java.lang.Override + public java.lang.String getName() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } + } + /** + * + * + *
+   * Required. The resource name of the SHA custom module.
+   *
+   * Its format is:
+   *
+   *   * "organizations/{organization}/locations/{location}/effectiveSecurityHealthAnalyticsCustomModules/{module_id}".
+   *   * "folders/{folder}/locations/{location}/effectiveSecurityHealthAnalyticsCustomModules/{module_id}".
+   *   * "projects/{project}/locations/{location}/effectiveSecurityHealthAnalyticsCustomModules/{module_id}".
+   * 
+ * + * + * 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() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj + instanceof + com.google.cloud.securitycentermanagement.v1 + .GetEffectiveSecurityHealthAnalyticsCustomModuleRequest)) { + return super.equals(obj); + } + com.google.cloud.securitycentermanagement.v1 + .GetEffectiveSecurityHealthAnalyticsCustomModuleRequest + other = + (com.google.cloud.securitycentermanagement.v1 + .GetEffectiveSecurityHealthAnalyticsCustomModuleRequest) + obj; + + if (!getName().equals(other.getName())) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + NAME_FIELD_NUMBER; + hash = (53 * hash) + getName().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.securitycentermanagement.v1 + .GetEffectiveSecurityHealthAnalyticsCustomModuleRequest + parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.securitycentermanagement.v1 + .GetEffectiveSecurityHealthAnalyticsCustomModuleRequest + 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.securitycentermanagement.v1 + .GetEffectiveSecurityHealthAnalyticsCustomModuleRequest + parseFrom(com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.securitycentermanagement.v1 + .GetEffectiveSecurityHealthAnalyticsCustomModuleRequest + parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.securitycentermanagement.v1 + .GetEffectiveSecurityHealthAnalyticsCustomModuleRequest + parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.securitycentermanagement.v1 + .GetEffectiveSecurityHealthAnalyticsCustomModuleRequest + parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.securitycentermanagement.v1 + .GetEffectiveSecurityHealthAnalyticsCustomModuleRequest + parseFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.securitycentermanagement.v1 + .GetEffectiveSecurityHealthAnalyticsCustomModuleRequest + 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.securitycentermanagement.v1 + .GetEffectiveSecurityHealthAnalyticsCustomModuleRequest + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.securitycentermanagement.v1 + .GetEffectiveSecurityHealthAnalyticsCustomModuleRequest + parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.securitycentermanagement.v1 + .GetEffectiveSecurityHealthAnalyticsCustomModuleRequest + parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.securitycentermanagement.v1 + .GetEffectiveSecurityHealthAnalyticsCustomModuleRequest + 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.securitycentermanagement.v1 + .GetEffectiveSecurityHealthAnalyticsCustomModuleRequest + prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
+   * Message for getting a EffectiveSecurityHealthAnalyticsCustomModule
+   * 
+ * + * Protobuf type {@code + * google.cloud.securitycentermanagement.v1.GetEffectiveSecurityHealthAnalyticsCustomModuleRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.securitycentermanagement.v1.GetEffectiveSecurityHealthAnalyticsCustomModuleRequest) + com.google.cloud.securitycentermanagement.v1 + .GetEffectiveSecurityHealthAnalyticsCustomModuleRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.securitycentermanagement.v1.SecurityCenterManagementProto + .internal_static_google_cloud_securitycentermanagement_v1_GetEffectiveSecurityHealthAnalyticsCustomModuleRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.securitycentermanagement.v1.SecurityCenterManagementProto + .internal_static_google_cloud_securitycentermanagement_v1_GetEffectiveSecurityHealthAnalyticsCustomModuleRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.securitycentermanagement.v1 + .GetEffectiveSecurityHealthAnalyticsCustomModuleRequest.class, + com.google.cloud.securitycentermanagement.v1 + .GetEffectiveSecurityHealthAnalyticsCustomModuleRequest.Builder.class); + } + + // Construct using + // com.google.cloud.securitycentermanagement.v1.GetEffectiveSecurityHealthAnalyticsCustomModuleRequest.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + name_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.securitycentermanagement.v1.SecurityCenterManagementProto + .internal_static_google_cloud_securitycentermanagement_v1_GetEffectiveSecurityHealthAnalyticsCustomModuleRequest_descriptor; + } + + @java.lang.Override + public com.google.cloud.securitycentermanagement.v1 + .GetEffectiveSecurityHealthAnalyticsCustomModuleRequest + getDefaultInstanceForType() { + return com.google.cloud.securitycentermanagement.v1 + .GetEffectiveSecurityHealthAnalyticsCustomModuleRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.securitycentermanagement.v1 + .GetEffectiveSecurityHealthAnalyticsCustomModuleRequest + build() { + com.google.cloud.securitycentermanagement.v1 + .GetEffectiveSecurityHealthAnalyticsCustomModuleRequest + result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.securitycentermanagement.v1 + .GetEffectiveSecurityHealthAnalyticsCustomModuleRequest + buildPartial() { + com.google.cloud.securitycentermanagement.v1 + .GetEffectiveSecurityHealthAnalyticsCustomModuleRequest + result = + new com.google.cloud.securitycentermanagement.v1 + .GetEffectiveSecurityHealthAnalyticsCustomModuleRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.cloud.securitycentermanagement.v1 + .GetEffectiveSecurityHealthAnalyticsCustomModuleRequest + result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.name_ = name_; + } + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other + instanceof + com.google.cloud.securitycentermanagement.v1 + .GetEffectiveSecurityHealthAnalyticsCustomModuleRequest) { + return mergeFrom( + (com.google.cloud.securitycentermanagement.v1 + .GetEffectiveSecurityHealthAnalyticsCustomModuleRequest) + other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.securitycentermanagement.v1 + .GetEffectiveSecurityHealthAnalyticsCustomModuleRequest + other) { + if (other + == com.google.cloud.securitycentermanagement.v1 + .GetEffectiveSecurityHealthAnalyticsCustomModuleRequest.getDefaultInstance()) + return this; + if (!other.getName().isEmpty()) { + name_ = other.name_; + bitField0_ |= 0x00000001; + onChanged(); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + 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: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private java.lang.Object name_ = ""; + /** + * + * + *
+     * Required. The resource name of the SHA custom module.
+     *
+     * Its format is:
+     *
+     *   * "organizations/{organization}/locations/{location}/effectiveSecurityHealthAnalyticsCustomModules/{module_id}".
+     *   * "folders/{folder}/locations/{location}/effectiveSecurityHealthAnalyticsCustomModules/{module_id}".
+     *   * "projects/{project}/locations/{location}/effectiveSecurityHealthAnalyticsCustomModules/{module_id}".
+     * 
+ * + * + * 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; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Required. The resource name of the SHA custom module.
+     *
+     * Its format is:
+     *
+     *   * "organizations/{organization}/locations/{location}/effectiveSecurityHealthAnalyticsCustomModules/{module_id}".
+     *   * "folders/{folder}/locations/{location}/effectiveSecurityHealthAnalyticsCustomModules/{module_id}".
+     *   * "projects/{project}/locations/{location}/effectiveSecurityHealthAnalyticsCustomModules/{module_id}".
+     * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for name. + */ + public com.google.protobuf.ByteString getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Required. The resource name of the SHA custom module.
+     *
+     * Its format is:
+     *
+     *   * "organizations/{organization}/locations/{location}/effectiveSecurityHealthAnalyticsCustomModules/{module_id}".
+     *   * "folders/{folder}/locations/{location}/effectiveSecurityHealthAnalyticsCustomModules/{module_id}".
+     *   * "projects/{project}/locations/{location}/effectiveSecurityHealthAnalyticsCustomModules/{module_id}".
+     * 
+ * + * + * 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(); + } + name_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * + * + *
+     * Required. The resource name of the SHA custom module.
+     *
+     * Its format is:
+     *
+     *   * "organizations/{organization}/locations/{location}/effectiveSecurityHealthAnalyticsCustomModules/{module_id}".
+     *   * "folders/{folder}/locations/{location}/effectiveSecurityHealthAnalyticsCustomModules/{module_id}".
+     *   * "projects/{project}/locations/{location}/effectiveSecurityHealthAnalyticsCustomModules/{module_id}".
+     * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return This builder for chaining. + */ + public Builder clearName() { + name_ = getDefaultInstance().getName(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + /** + * + * + *
+     * Required. The resource name of the SHA custom module.
+     *
+     * Its format is:
+     *
+     *   * "organizations/{organization}/locations/{location}/effectiveSecurityHealthAnalyticsCustomModules/{module_id}".
+     *   * "folders/{folder}/locations/{location}/effectiveSecurityHealthAnalyticsCustomModules/{module_id}".
+     *   * "projects/{project}/locations/{location}/effectiveSecurityHealthAnalyticsCustomModules/{module_id}".
+     * 
+ * + * + * 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(); + } + checkByteStringIsUtf8(value); + name_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.securitycentermanagement.v1.GetEffectiveSecurityHealthAnalyticsCustomModuleRequest) + } + + // @@protoc_insertion_point(class_scope:google.cloud.securitycentermanagement.v1.GetEffectiveSecurityHealthAnalyticsCustomModuleRequest) + private static final com.google.cloud.securitycentermanagement.v1 + .GetEffectiveSecurityHealthAnalyticsCustomModuleRequest + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = + new com.google.cloud.securitycentermanagement.v1 + .GetEffectiveSecurityHealthAnalyticsCustomModuleRequest(); + } + + public static com.google.cloud.securitycentermanagement.v1 + .GetEffectiveSecurityHealthAnalyticsCustomModuleRequest + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser< + GetEffectiveSecurityHealthAnalyticsCustomModuleRequest> + PARSER = + new com.google.protobuf.AbstractParser< + GetEffectiveSecurityHealthAnalyticsCustomModuleRequest>() { + @java.lang.Override + public GetEffectiveSecurityHealthAnalyticsCustomModuleRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException() + .setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser + parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser + getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.securitycentermanagement.v1 + .GetEffectiveSecurityHealthAnalyticsCustomModuleRequest + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/owl-bot-staging/java-securitycentermanagement/v1/proto-google-cloud-securitycentermanagement-v1/src/main/java/com/google/cloud/securitycentermanagement/v1/GetEffectiveSecurityHealthAnalyticsCustomModuleRequestOrBuilder.java b/java-securitycentermanagement/proto-google-cloud-securitycentermanagement-v1/src/main/java/com/google/cloud/securitycentermanagement/v1/GetEffectiveSecurityHealthAnalyticsCustomModuleRequestOrBuilder.java similarity index 60% rename from owl-bot-staging/java-securitycentermanagement/v1/proto-google-cloud-securitycentermanagement-v1/src/main/java/com/google/cloud/securitycentermanagement/v1/GetEffectiveSecurityHealthAnalyticsCustomModuleRequestOrBuilder.java rename to java-securitycentermanagement/proto-google-cloud-securitycentermanagement-v1/src/main/java/com/google/cloud/securitycentermanagement/v1/GetEffectiveSecurityHealthAnalyticsCustomModuleRequestOrBuilder.java index 0c4e7e8119ce..02cc4640db0b 100644 --- a/owl-bot-staging/java-securitycentermanagement/v1/proto-google-cloud-securitycentermanagement-v1/src/main/java/com/google/cloud/securitycentermanagement/v1/GetEffectiveSecurityHealthAnalyticsCustomModuleRequestOrBuilder.java +++ b/java-securitycentermanagement/proto-google-cloud-securitycentermanagement-v1/src/main/java/com/google/cloud/securitycentermanagement/v1/GetEffectiveSecurityHealthAnalyticsCustomModuleRequestOrBuilder.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/securitycentermanagement/v1/security_center_management.proto package com.google.cloud.securitycentermanagement.v1; -public interface GetEffectiveSecurityHealthAnalyticsCustomModuleRequestOrBuilder extends +public interface GetEffectiveSecurityHealthAnalyticsCustomModuleRequestOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.securitycentermanagement.v1.GetEffectiveSecurityHealthAnalyticsCustomModuleRequest) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * Required. The resource name of the SHA custom module.
    *
@@ -18,11 +36,16 @@ public interface GetEffectiveSecurityHealthAnalyticsCustomModuleRequestOrBuilder
    *   * "projects/{project}/locations/{location}/effectiveSecurityHealthAnalyticsCustomModules/{module_id}".
    * 
* - * string name = 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. The resource name of the SHA custom module.
    *
@@ -33,9 +56,11 @@ public interface GetEffectiveSecurityHealthAnalyticsCustomModuleRequestOrBuilder
    *   * "projects/{project}/locations/{location}/effectiveSecurityHealthAnalyticsCustomModules/{module_id}".
    * 
* - * string name = 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(); } diff --git a/owl-bot-staging/java-securitycentermanagement/v1/proto-google-cloud-securitycentermanagement-v1/src/main/java/com/google/cloud/securitycentermanagement/v1/GetEventThreatDetectionCustomModuleRequest.java b/java-securitycentermanagement/proto-google-cloud-securitycentermanagement-v1/src/main/java/com/google/cloud/securitycentermanagement/v1/GetEventThreatDetectionCustomModuleRequest.java similarity index 51% rename from owl-bot-staging/java-securitycentermanagement/v1/proto-google-cloud-securitycentermanagement-v1/src/main/java/com/google/cloud/securitycentermanagement/v1/GetEventThreatDetectionCustomModuleRequest.java rename to java-securitycentermanagement/proto-google-cloud-securitycentermanagement-v1/src/main/java/com/google/cloud/securitycentermanagement/v1/GetEventThreatDetectionCustomModuleRequest.java index 31189d85e56e..7a9caef52942 100644 --- a/owl-bot-staging/java-securitycentermanagement/v1/proto-google-cloud-securitycentermanagement-v1/src/main/java/com/google/cloud/securitycentermanagement/v1/GetEventThreatDetectionCustomModuleRequest.java +++ b/java-securitycentermanagement/proto-google-cloud-securitycentermanagement-v1/src/main/java/com/google/cloud/securitycentermanagement/v1/GetEventThreatDetectionCustomModuleRequest.java @@ -1,52 +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/securitycentermanagement/v1/security_center_management.proto package com.google.cloud.securitycentermanagement.v1; /** + * + * *
  * Message for getting a EventThreatDetectionCustomModule
  * 
* - * Protobuf type {@code google.cloud.securitycentermanagement.v1.GetEventThreatDetectionCustomModuleRequest} + * Protobuf type {@code + * google.cloud.securitycentermanagement.v1.GetEventThreatDetectionCustomModuleRequest} */ -public final class GetEventThreatDetectionCustomModuleRequest extends - com.google.protobuf.GeneratedMessageV3 implements +public final class GetEventThreatDetectionCustomModuleRequest + extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.securitycentermanagement.v1.GetEventThreatDetectionCustomModuleRequest) GetEventThreatDetectionCustomModuleRequestOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use GetEventThreatDetectionCustomModuleRequest.newBuilder() to construct. - private GetEventThreatDetectionCustomModuleRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + private GetEventThreatDetectionCustomModuleRequest( + com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private GetEventThreatDetectionCustomModuleRequest() { name_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new GetEventThreatDetectionCustomModuleRequest(); } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.securitycentermanagement.v1.SecurityCenterManagementProto.internal_static_google_cloud_securitycentermanagement_v1_GetEventThreatDetectionCustomModuleRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.securitycentermanagement.v1.SecurityCenterManagementProto + .internal_static_google_cloud_securitycentermanagement_v1_GetEventThreatDetectionCustomModuleRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.securitycentermanagement.v1.SecurityCenterManagementProto.internal_static_google_cloud_securitycentermanagement_v1_GetEventThreatDetectionCustomModuleRequest_fieldAccessorTable + return com.google.cloud.securitycentermanagement.v1.SecurityCenterManagementProto + .internal_static_google_cloud_securitycentermanagement_v1_GetEventThreatDetectionCustomModuleRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.securitycentermanagement.v1.GetEventThreatDetectionCustomModuleRequest.class, com.google.cloud.securitycentermanagement.v1.GetEventThreatDetectionCustomModuleRequest.Builder.class); + com.google.cloud.securitycentermanagement.v1.GetEventThreatDetectionCustomModuleRequest + .class, + com.google.cloud.securitycentermanagement.v1.GetEventThreatDetectionCustomModuleRequest + .Builder.class); } public static final int NAME_FIELD_NUMBER = 1; + @SuppressWarnings("serial") private volatile java.lang.Object name_ = ""; /** + * + * *
    * Required. The resource name of the ETD custom module.
    *
@@ -57,7 +84,10 @@ protected java.lang.Object newInstance(
    *   * "projects/{project}/locations/{location}/eventThreatDetectionCustomModules/{event_threat_detection_custom_module}".
    * 
* - * string name = 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 @@ -66,14 +96,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 ETD custom module.
    *
@@ -84,17 +115,18 @@ public java.lang.String getName() {
    *   * "projects/{project}/locations/{location}/eventThreatDetectionCustomModules/{event_threat_detection_custom_module}".
    * 
* - * string name = 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 { @@ -103,6 +135,7 @@ public java.lang.String getName() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -114,8 +147,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.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_); } @@ -139,15 +171,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.securitycentermanagement.v1.GetEventThreatDetectionCustomModuleRequest)) { + if (!(obj + instanceof + com.google.cloud.securitycentermanagement.v1.GetEventThreatDetectionCustomModuleRequest)) { return super.equals(obj); } - com.google.cloud.securitycentermanagement.v1.GetEventThreatDetectionCustomModuleRequest other = (com.google.cloud.securitycentermanagement.v1.GetEventThreatDetectionCustomModuleRequest) obj; + com.google.cloud.securitycentermanagement.v1.GetEventThreatDetectionCustomModuleRequest other = + (com.google.cloud.securitycentermanagement.v1.GetEventThreatDetectionCustomModuleRequest) + obj; - if (!getName() - .equals(other.getName())) return false; + if (!getName().equals(other.getName())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -166,132 +201,161 @@ public int hashCode() { return hash; } - public static com.google.cloud.securitycentermanagement.v1.GetEventThreatDetectionCustomModuleRequest parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.securitycentermanagement.v1 + .GetEventThreatDetectionCustomModuleRequest + parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.securitycentermanagement.v1.GetEventThreatDetectionCustomModuleRequest parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.cloud.securitycentermanagement.v1 + .GetEventThreatDetectionCustomModuleRequest + 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.securitycentermanagement.v1.GetEventThreatDetectionCustomModuleRequest parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.cloud.securitycentermanagement.v1 + .GetEventThreatDetectionCustomModuleRequest + parseFrom(com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.securitycentermanagement.v1.GetEventThreatDetectionCustomModuleRequest parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.cloud.securitycentermanagement.v1 + .GetEventThreatDetectionCustomModuleRequest + parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.securitycentermanagement.v1.GetEventThreatDetectionCustomModuleRequest parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.cloud.securitycentermanagement.v1 + .GetEventThreatDetectionCustomModuleRequest + parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.securitycentermanagement.v1.GetEventThreatDetectionCustomModuleRequest parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.cloud.securitycentermanagement.v1 + .GetEventThreatDetectionCustomModuleRequest + parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.securitycentermanagement.v1.GetEventThreatDetectionCustomModuleRequest parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.securitycentermanagement.v1 + .GetEventThreatDetectionCustomModuleRequest + parseFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } - public static com.google.cloud.securitycentermanagement.v1.GetEventThreatDetectionCustomModuleRequest 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.securitycentermanagement.v1 + .GetEventThreatDetectionCustomModuleRequest + 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.securitycentermanagement.v1.GetEventThreatDetectionCustomModuleRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.securitycentermanagement.v1 + .GetEventThreatDetectionCustomModuleRequest + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.securitycentermanagement.v1.GetEventThreatDetectionCustomModuleRequest parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + public static com.google.cloud.securitycentermanagement.v1 + .GetEventThreatDetectionCustomModuleRequest + parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.securitycentermanagement.v1.GetEventThreatDetectionCustomModuleRequest parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.securitycentermanagement.v1 + .GetEventThreatDetectionCustomModuleRequest + parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } - public static com.google.cloud.securitycentermanagement.v1.GetEventThreatDetectionCustomModuleRequest 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.securitycentermanagement.v1 + .GetEventThreatDetectionCustomModuleRequest + 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.securitycentermanagement.v1.GetEventThreatDetectionCustomModuleRequest prototype) { + + public static Builder newBuilder( + com.google.cloud.securitycentermanagement.v1.GetEventThreatDetectionCustomModuleRequest + prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected 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 getting a EventThreatDetectionCustomModule
    * 
* - * Protobuf type {@code google.cloud.securitycentermanagement.v1.GetEventThreatDetectionCustomModuleRequest} + * Protobuf type {@code + * google.cloud.securitycentermanagement.v1.GetEventThreatDetectionCustomModuleRequest} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.securitycentermanagement.v1.GetEventThreatDetectionCustomModuleRequest) - com.google.cloud.securitycentermanagement.v1.GetEventThreatDetectionCustomModuleRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.securitycentermanagement.v1.SecurityCenterManagementProto.internal_static_google_cloud_securitycentermanagement_v1_GetEventThreatDetectionCustomModuleRequest_descriptor; + com.google.cloud.securitycentermanagement.v1 + .GetEventThreatDetectionCustomModuleRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.securitycentermanagement.v1.SecurityCenterManagementProto + .internal_static_google_cloud_securitycentermanagement_v1_GetEventThreatDetectionCustomModuleRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.securitycentermanagement.v1.SecurityCenterManagementProto.internal_static_google_cloud_securitycentermanagement_v1_GetEventThreatDetectionCustomModuleRequest_fieldAccessorTable + return com.google.cloud.securitycentermanagement.v1.SecurityCenterManagementProto + .internal_static_google_cloud_securitycentermanagement_v1_GetEventThreatDetectionCustomModuleRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.securitycentermanagement.v1.GetEventThreatDetectionCustomModuleRequest.class, com.google.cloud.securitycentermanagement.v1.GetEventThreatDetectionCustomModuleRequest.Builder.class); + com.google.cloud.securitycentermanagement.v1 + .GetEventThreatDetectionCustomModuleRequest.class, + com.google.cloud.securitycentermanagement.v1 + .GetEventThreatDetectionCustomModuleRequest.Builder.class); } - // Construct using com.google.cloud.securitycentermanagement.v1.GetEventThreatDetectionCustomModuleRequest.newBuilder() - private Builder() { - - } + // Construct using + // com.google.cloud.securitycentermanagement.v1.GetEventThreatDetectionCustomModuleRequest.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(); @@ -301,19 +365,23 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.securitycentermanagement.v1.SecurityCenterManagementProto.internal_static_google_cloud_securitycentermanagement_v1_GetEventThreatDetectionCustomModuleRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.securitycentermanagement.v1.SecurityCenterManagementProto + .internal_static_google_cloud_securitycentermanagement_v1_GetEventThreatDetectionCustomModuleRequest_descriptor; } @java.lang.Override - public com.google.cloud.securitycentermanagement.v1.GetEventThreatDetectionCustomModuleRequest getDefaultInstanceForType() { - return com.google.cloud.securitycentermanagement.v1.GetEventThreatDetectionCustomModuleRequest.getDefaultInstance(); + public com.google.cloud.securitycentermanagement.v1.GetEventThreatDetectionCustomModuleRequest + getDefaultInstanceForType() { + return com.google.cloud.securitycentermanagement.v1.GetEventThreatDetectionCustomModuleRequest + .getDefaultInstance(); } @java.lang.Override - public com.google.cloud.securitycentermanagement.v1.GetEventThreatDetectionCustomModuleRequest build() { - com.google.cloud.securitycentermanagement.v1.GetEventThreatDetectionCustomModuleRequest result = buildPartial(); + public com.google.cloud.securitycentermanagement.v1.GetEventThreatDetectionCustomModuleRequest + build() { + com.google.cloud.securitycentermanagement.v1.GetEventThreatDetectionCustomModuleRequest + result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } @@ -321,14 +389,22 @@ public com.google.cloud.securitycentermanagement.v1.GetEventThreatDetectionCusto } @java.lang.Override - public com.google.cloud.securitycentermanagement.v1.GetEventThreatDetectionCustomModuleRequest buildPartial() { - com.google.cloud.securitycentermanagement.v1.GetEventThreatDetectionCustomModuleRequest result = new com.google.cloud.securitycentermanagement.v1.GetEventThreatDetectionCustomModuleRequest(this); - if (bitField0_ != 0) { buildPartial0(result); } + public com.google.cloud.securitycentermanagement.v1.GetEventThreatDetectionCustomModuleRequest + buildPartial() { + com.google.cloud.securitycentermanagement.v1.GetEventThreatDetectionCustomModuleRequest + result = + new com.google.cloud.securitycentermanagement.v1 + .GetEventThreatDetectionCustomModuleRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } - private void buildPartial0(com.google.cloud.securitycentermanagement.v1.GetEventThreatDetectionCustomModuleRequest result) { + private void buildPartial0( + com.google.cloud.securitycentermanagement.v1.GetEventThreatDetectionCustomModuleRequest + result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000001) != 0)) { result.name_ = name_; @@ -339,46 +415,56 @@ private void buildPartial0(com.google.cloud.securitycentermanagement.v1.GetEvent public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.cloud.securitycentermanagement.v1.GetEventThreatDetectionCustomModuleRequest) { - return mergeFrom((com.google.cloud.securitycentermanagement.v1.GetEventThreatDetectionCustomModuleRequest)other); + if (other + instanceof + com.google.cloud.securitycentermanagement.v1.GetEventThreatDetectionCustomModuleRequest) { + return mergeFrom( + (com.google.cloud.securitycentermanagement.v1 + .GetEventThreatDetectionCustomModuleRequest) + other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom(com.google.cloud.securitycentermanagement.v1.GetEventThreatDetectionCustomModuleRequest other) { - if (other == com.google.cloud.securitycentermanagement.v1.GetEventThreatDetectionCustomModuleRequest.getDefaultInstance()) return this; + public Builder mergeFrom( + com.google.cloud.securitycentermanagement.v1.GetEventThreatDetectionCustomModuleRequest + other) { + if (other + == com.google.cloud.securitycentermanagement.v1.GetEventThreatDetectionCustomModuleRequest + .getDefaultInstance()) return this; if (!other.getName().isEmpty()) { name_ = other.name_; bitField0_ |= 0x00000001; @@ -410,17 +496,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) { @@ -430,10 +518,13 @@ public Builder mergeFrom( } // finally return this; } + private int bitField0_; private java.lang.Object name_ = ""; /** + * + * *
      * Required. The resource name of the ETD custom module.
      *
@@ -444,14 +535,16 @@ public Builder mergeFrom(
      *   * "projects/{project}/locations/{location}/eventThreatDetectionCustomModules/{event_threat_detection_custom_module}".
      * 
* - * string name = 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; @@ -460,6 +553,8 @@ public java.lang.String getName() { } } /** + * + * *
      * Required. The resource name of the ETD custom module.
      *
@@ -470,16 +565,17 @@ public java.lang.String getName() {
      *   * "projects/{project}/locations/{location}/eventThreatDetectionCustomModules/{event_threat_detection_custom_module}".
      * 
* - * string name = 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 { @@ -487,6 +583,8 @@ public java.lang.String getName() { } } /** + * + * *
      * Required. The resource name of the ETD custom module.
      *
@@ -497,19 +595,25 @@ public java.lang.String getName() {
      *   * "projects/{project}/locations/{location}/eventThreatDetectionCustomModules/{event_threat_detection_custom_module}".
      * 
* - * 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 ETD custom module.
      *
@@ -520,7 +624,10 @@ public Builder setName(
      *   * "projects/{project}/locations/{location}/eventThreatDetectionCustomModules/{event_threat_detection_custom_module}".
      * 
* - * string 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() { @@ -530,6 +637,8 @@ public Builder clearName() { return this; } /** + * + * *
      * Required. The resource name of the ETD custom module.
      *
@@ -540,22 +649,26 @@ public Builder clearName() {
      *   * "projects/{project}/locations/{location}/eventThreatDetectionCustomModules/{event_threat_detection_custom_module}".
      * 
* - * 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); } @@ -565,41 +678,49 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.securitycentermanagement.v1.GetEventThreatDetectionCustomModuleRequest) } // @@protoc_insertion_point(class_scope:google.cloud.securitycentermanagement.v1.GetEventThreatDetectionCustomModuleRequest) - private static final com.google.cloud.securitycentermanagement.v1.GetEventThreatDetectionCustomModuleRequest DEFAULT_INSTANCE; + private static final com.google.cloud.securitycentermanagement.v1 + .GetEventThreatDetectionCustomModuleRequest + DEFAULT_INSTANCE; + static { - DEFAULT_INSTANCE = new com.google.cloud.securitycentermanagement.v1.GetEventThreatDetectionCustomModuleRequest(); + DEFAULT_INSTANCE = + new com.google.cloud.securitycentermanagement.v1 + .GetEventThreatDetectionCustomModuleRequest(); } - public static com.google.cloud.securitycentermanagement.v1.GetEventThreatDetectionCustomModuleRequest getDefaultInstance() { + public static com.google.cloud.securitycentermanagement.v1 + .GetEventThreatDetectionCustomModuleRequest + getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public GetEventThreatDetectionCustomModuleRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public GetEventThreatDetectionCustomModuleRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException() + .setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -611,9 +732,8 @@ public com.google.protobuf.Parser ge } @java.lang.Override - public com.google.cloud.securitycentermanagement.v1.GetEventThreatDetectionCustomModuleRequest getDefaultInstanceForType() { + public com.google.cloud.securitycentermanagement.v1.GetEventThreatDetectionCustomModuleRequest + getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/java-securitycentermanagement/v1/proto-google-cloud-securitycentermanagement-v1/src/main/java/com/google/cloud/securitycentermanagement/v1/GetEventThreatDetectionCustomModuleRequestOrBuilder.java b/java-securitycentermanagement/proto-google-cloud-securitycentermanagement-v1/src/main/java/com/google/cloud/securitycentermanagement/v1/GetEventThreatDetectionCustomModuleRequestOrBuilder.java similarity index 62% rename from owl-bot-staging/java-securitycentermanagement/v1/proto-google-cloud-securitycentermanagement-v1/src/main/java/com/google/cloud/securitycentermanagement/v1/GetEventThreatDetectionCustomModuleRequestOrBuilder.java rename to java-securitycentermanagement/proto-google-cloud-securitycentermanagement-v1/src/main/java/com/google/cloud/securitycentermanagement/v1/GetEventThreatDetectionCustomModuleRequestOrBuilder.java index f59887586521..44f5d64fffd0 100644 --- a/owl-bot-staging/java-securitycentermanagement/v1/proto-google-cloud-securitycentermanagement-v1/src/main/java/com/google/cloud/securitycentermanagement/v1/GetEventThreatDetectionCustomModuleRequestOrBuilder.java +++ b/java-securitycentermanagement/proto-google-cloud-securitycentermanagement-v1/src/main/java/com/google/cloud/securitycentermanagement/v1/GetEventThreatDetectionCustomModuleRequestOrBuilder.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/securitycentermanagement/v1/security_center_management.proto package com.google.cloud.securitycentermanagement.v1; -public interface GetEventThreatDetectionCustomModuleRequestOrBuilder extends +public interface GetEventThreatDetectionCustomModuleRequestOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.securitycentermanagement.v1.GetEventThreatDetectionCustomModuleRequest) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * Required. The resource name of the ETD custom module.
    *
@@ -18,11 +36,16 @@ public interface GetEventThreatDetectionCustomModuleRequestOrBuilder extends
    *   * "projects/{project}/locations/{location}/eventThreatDetectionCustomModules/{event_threat_detection_custom_module}".
    * 
* - * string name = 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. The resource name of the ETD custom module.
    *
@@ -33,9 +56,11 @@ public interface GetEventThreatDetectionCustomModuleRequestOrBuilder extends
    *   * "projects/{project}/locations/{location}/eventThreatDetectionCustomModules/{event_threat_detection_custom_module}".
    * 
* - * string name = 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(); } diff --git a/java-securitycentermanagement/proto-google-cloud-securitycentermanagement-v1/src/main/java/com/google/cloud/securitycentermanagement/v1/GetSecurityHealthAnalyticsCustomModuleRequest.java b/java-securitycentermanagement/proto-google-cloud-securitycentermanagement-v1/src/main/java/com/google/cloud/securitycentermanagement/v1/GetSecurityHealthAnalyticsCustomModuleRequest.java new file mode 100644 index 000000000000..a17e500bffe7 --- /dev/null +++ b/java-securitycentermanagement/proto-google-cloud-securitycentermanagement-v1/src/main/java/com/google/cloud/securitycentermanagement/v1/GetSecurityHealthAnalyticsCustomModuleRequest.java @@ -0,0 +1,705 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/securitycentermanagement/v1/security_center_management.proto + +package com.google.cloud.securitycentermanagement.v1; + +/** + * + * + *
+ * Message for getting a SecurityHealthAnalyticsCustomModule
+ * 
+ * + * Protobuf type {@code + * google.cloud.securitycentermanagement.v1.GetSecurityHealthAnalyticsCustomModuleRequest} + */ +public final class GetSecurityHealthAnalyticsCustomModuleRequest + extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.securitycentermanagement.v1.GetSecurityHealthAnalyticsCustomModuleRequest) + GetSecurityHealthAnalyticsCustomModuleRequestOrBuilder { + private static final long serialVersionUID = 0L; + // Use GetSecurityHealthAnalyticsCustomModuleRequest.newBuilder() to construct. + private GetSecurityHealthAnalyticsCustomModuleRequest( + com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private GetSecurityHealthAnalyticsCustomModuleRequest() { + name_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new GetSecurityHealthAnalyticsCustomModuleRequest(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.securitycentermanagement.v1.SecurityCenterManagementProto + .internal_static_google_cloud_securitycentermanagement_v1_GetSecurityHealthAnalyticsCustomModuleRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.securitycentermanagement.v1.SecurityCenterManagementProto + .internal_static_google_cloud_securitycentermanagement_v1_GetSecurityHealthAnalyticsCustomModuleRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.securitycentermanagement.v1 + .GetSecurityHealthAnalyticsCustomModuleRequest.class, + com.google.cloud.securitycentermanagement.v1 + .GetSecurityHealthAnalyticsCustomModuleRequest.Builder.class); + } + + public static final int NAME_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object name_ = ""; + /** + * + * + *
+   * Required. Name of the resource
+   * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + @java.lang.Override + public java.lang.String getName() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } + } + /** + * + * + *
+   * Required. Name of the resource
+   * 
+ * + * + * 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() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj + instanceof + com.google.cloud.securitycentermanagement.v1 + .GetSecurityHealthAnalyticsCustomModuleRequest)) { + return super.equals(obj); + } + com.google.cloud.securitycentermanagement.v1.GetSecurityHealthAnalyticsCustomModuleRequest + other = + (com.google.cloud.securitycentermanagement.v1 + .GetSecurityHealthAnalyticsCustomModuleRequest) + obj; + + if (!getName().equals(other.getName())) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + NAME_FIELD_NUMBER; + hash = (53 * hash) + getName().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.securitycentermanagement.v1 + .GetSecurityHealthAnalyticsCustomModuleRequest + parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.securitycentermanagement.v1 + .GetSecurityHealthAnalyticsCustomModuleRequest + 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.securitycentermanagement.v1 + .GetSecurityHealthAnalyticsCustomModuleRequest + parseFrom(com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.securitycentermanagement.v1 + .GetSecurityHealthAnalyticsCustomModuleRequest + parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.securitycentermanagement.v1 + .GetSecurityHealthAnalyticsCustomModuleRequest + parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.securitycentermanagement.v1 + .GetSecurityHealthAnalyticsCustomModuleRequest + parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.securitycentermanagement.v1 + .GetSecurityHealthAnalyticsCustomModuleRequest + parseFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.securitycentermanagement.v1 + .GetSecurityHealthAnalyticsCustomModuleRequest + 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.securitycentermanagement.v1 + .GetSecurityHealthAnalyticsCustomModuleRequest + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.securitycentermanagement.v1 + .GetSecurityHealthAnalyticsCustomModuleRequest + parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.securitycentermanagement.v1 + .GetSecurityHealthAnalyticsCustomModuleRequest + parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.securitycentermanagement.v1 + .GetSecurityHealthAnalyticsCustomModuleRequest + 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.securitycentermanagement.v1.GetSecurityHealthAnalyticsCustomModuleRequest + prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
+   * Message for getting a SecurityHealthAnalyticsCustomModule
+   * 
+ * + * Protobuf type {@code + * google.cloud.securitycentermanagement.v1.GetSecurityHealthAnalyticsCustomModuleRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.securitycentermanagement.v1.GetSecurityHealthAnalyticsCustomModuleRequest) + com.google.cloud.securitycentermanagement.v1 + .GetSecurityHealthAnalyticsCustomModuleRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.securitycentermanagement.v1.SecurityCenterManagementProto + .internal_static_google_cloud_securitycentermanagement_v1_GetSecurityHealthAnalyticsCustomModuleRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.securitycentermanagement.v1.SecurityCenterManagementProto + .internal_static_google_cloud_securitycentermanagement_v1_GetSecurityHealthAnalyticsCustomModuleRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.securitycentermanagement.v1 + .GetSecurityHealthAnalyticsCustomModuleRequest.class, + com.google.cloud.securitycentermanagement.v1 + .GetSecurityHealthAnalyticsCustomModuleRequest.Builder.class); + } + + // Construct using + // com.google.cloud.securitycentermanagement.v1.GetSecurityHealthAnalyticsCustomModuleRequest.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + name_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.securitycentermanagement.v1.SecurityCenterManagementProto + .internal_static_google_cloud_securitycentermanagement_v1_GetSecurityHealthAnalyticsCustomModuleRequest_descriptor; + } + + @java.lang.Override + public com.google.cloud.securitycentermanagement.v1 + .GetSecurityHealthAnalyticsCustomModuleRequest + getDefaultInstanceForType() { + return com.google.cloud.securitycentermanagement.v1 + .GetSecurityHealthAnalyticsCustomModuleRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.securitycentermanagement.v1 + .GetSecurityHealthAnalyticsCustomModuleRequest + build() { + com.google.cloud.securitycentermanagement.v1.GetSecurityHealthAnalyticsCustomModuleRequest + result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.securitycentermanagement.v1 + .GetSecurityHealthAnalyticsCustomModuleRequest + buildPartial() { + com.google.cloud.securitycentermanagement.v1.GetSecurityHealthAnalyticsCustomModuleRequest + result = + new com.google.cloud.securitycentermanagement.v1 + .GetSecurityHealthAnalyticsCustomModuleRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.cloud.securitycentermanagement.v1.GetSecurityHealthAnalyticsCustomModuleRequest + result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.name_ = name_; + } + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other + instanceof + com.google.cloud.securitycentermanagement.v1 + .GetSecurityHealthAnalyticsCustomModuleRequest) { + return mergeFrom( + (com.google.cloud.securitycentermanagement.v1 + .GetSecurityHealthAnalyticsCustomModuleRequest) + other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.securitycentermanagement.v1.GetSecurityHealthAnalyticsCustomModuleRequest + other) { + if (other + == com.google.cloud.securitycentermanagement.v1 + .GetSecurityHealthAnalyticsCustomModuleRequest.getDefaultInstance()) return this; + if (!other.getName().isEmpty()) { + name_ = other.name_; + bitField0_ |= 0x00000001; + onChanged(); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + 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: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private java.lang.Object name_ = ""; + /** + * + * + *
+     * Required. Name of the resource
+     * 
+ * + * + * 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; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Required. Name of the resource
+     * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for name. + */ + public com.google.protobuf.ByteString getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Required. Name of the resource
+     * 
+ * + * + * 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(); + } + name_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * + * + *
+     * Required. Name of the resource
+     * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return This builder for chaining. + */ + public Builder clearName() { + name_ = getDefaultInstance().getName(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + /** + * + * + *
+     * Required. Name of the resource
+     * 
+ * + * + * 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(); + } + checkByteStringIsUtf8(value); + name_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.securitycentermanagement.v1.GetSecurityHealthAnalyticsCustomModuleRequest) + } + + // @@protoc_insertion_point(class_scope:google.cloud.securitycentermanagement.v1.GetSecurityHealthAnalyticsCustomModuleRequest) + private static final com.google.cloud.securitycentermanagement.v1 + .GetSecurityHealthAnalyticsCustomModuleRequest + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = + new com.google.cloud.securitycentermanagement.v1 + .GetSecurityHealthAnalyticsCustomModuleRequest(); + } + + public static com.google.cloud.securitycentermanagement.v1 + .GetSecurityHealthAnalyticsCustomModuleRequest + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public GetSecurityHealthAnalyticsCustomModuleRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException() + .setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser + getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.securitycentermanagement.v1.GetSecurityHealthAnalyticsCustomModuleRequest + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-securitycentermanagement/proto-google-cloud-securitycentermanagement-v1/src/main/java/com/google/cloud/securitycentermanagement/v1/GetSecurityHealthAnalyticsCustomModuleRequestOrBuilder.java b/java-securitycentermanagement/proto-google-cloud-securitycentermanagement-v1/src/main/java/com/google/cloud/securitycentermanagement/v1/GetSecurityHealthAnalyticsCustomModuleRequestOrBuilder.java new file mode 100644 index 000000000000..d9b648bf90ab --- /dev/null +++ b/java-securitycentermanagement/proto-google-cloud-securitycentermanagement-v1/src/main/java/com/google/cloud/securitycentermanagement/v1/GetSecurityHealthAnalyticsCustomModuleRequestOrBuilder.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/securitycentermanagement/v1/security_center_management.proto + +package com.google.cloud.securitycentermanagement.v1; + +public interface GetSecurityHealthAnalyticsCustomModuleRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.securitycentermanagement.v1.GetSecurityHealthAnalyticsCustomModuleRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Required. Name of the resource
+   * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + java.lang.String getName(); + /** + * + * + *
+   * Required. Name of the 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-securitycentermanagement/v1/proto-google-cloud-securitycentermanagement-v1/src/main/java/com/google/cloud/securitycentermanagement/v1/ListDescendantEventThreatDetectionCustomModulesRequest.java b/java-securitycentermanagement/proto-google-cloud-securitycentermanagement-v1/src/main/java/com/google/cloud/securitycentermanagement/v1/ListDescendantEventThreatDetectionCustomModulesRequest.java similarity index 52% rename from owl-bot-staging/java-securitycentermanagement/v1/proto-google-cloud-securitycentermanagement-v1/src/main/java/com/google/cloud/securitycentermanagement/v1/ListDescendantEventThreatDetectionCustomModulesRequest.java rename to java-securitycentermanagement/proto-google-cloud-securitycentermanagement-v1/src/main/java/com/google/cloud/securitycentermanagement/v1/ListDescendantEventThreatDetectionCustomModulesRequest.java index f90af8952b75..a96d0f67d26c 100644 --- a/owl-bot-staging/java-securitycentermanagement/v1/proto-google-cloud-securitycentermanagement-v1/src/main/java/com/google/cloud/securitycentermanagement/v1/ListDescendantEventThreatDetectionCustomModulesRequest.java +++ b/java-securitycentermanagement/proto-google-cloud-securitycentermanagement-v1/src/main/java/com/google/cloud/securitycentermanagement/v1/ListDescendantEventThreatDetectionCustomModulesRequest.java @@ -1,25 +1,46 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/securitycentermanagement/v1/security_center_management.proto package com.google.cloud.securitycentermanagement.v1; /** + * + * *
  * Request message for listing descendant Event Threat Detection custom
  * modules.
  * 
* - * Protobuf type {@code google.cloud.securitycentermanagement.v1.ListDescendantEventThreatDetectionCustomModulesRequest} + * Protobuf type {@code + * google.cloud.securitycentermanagement.v1.ListDescendantEventThreatDetectionCustomModulesRequest} */ -public final class ListDescendantEventThreatDetectionCustomModulesRequest extends - com.google.protobuf.GeneratedMessageV3 implements +public final class ListDescendantEventThreatDetectionCustomModulesRequest + extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.securitycentermanagement.v1.ListDescendantEventThreatDetectionCustomModulesRequest) ListDescendantEventThreatDetectionCustomModulesRequestOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use ListDescendantEventThreatDetectionCustomModulesRequest.newBuilder() to construct. - private ListDescendantEventThreatDetectionCustomModulesRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + private ListDescendantEventThreatDetectionCustomModulesRequest( + com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private ListDescendantEventThreatDetectionCustomModulesRequest() { parent_ = ""; pageToken_ = ""; @@ -27,28 +48,34 @@ private ListDescendantEventThreatDetectionCustomModulesRequest() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new ListDescendantEventThreatDetectionCustomModulesRequest(); } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.securitycentermanagement.v1.SecurityCenterManagementProto.internal_static_google_cloud_securitycentermanagement_v1_ListDescendantEventThreatDetectionCustomModulesRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.securitycentermanagement.v1.SecurityCenterManagementProto + .internal_static_google_cloud_securitycentermanagement_v1_ListDescendantEventThreatDetectionCustomModulesRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.securitycentermanagement.v1.SecurityCenterManagementProto.internal_static_google_cloud_securitycentermanagement_v1_ListDescendantEventThreatDetectionCustomModulesRequest_fieldAccessorTable + return com.google.cloud.securitycentermanagement.v1.SecurityCenterManagementProto + .internal_static_google_cloud_securitycentermanagement_v1_ListDescendantEventThreatDetectionCustomModulesRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.securitycentermanagement.v1.ListDescendantEventThreatDetectionCustomModulesRequest.class, com.google.cloud.securitycentermanagement.v1.ListDescendantEventThreatDetectionCustomModulesRequest.Builder.class); + com.google.cloud.securitycentermanagement.v1 + .ListDescendantEventThreatDetectionCustomModulesRequest.class, + com.google.cloud.securitycentermanagement.v1 + .ListDescendantEventThreatDetectionCustomModulesRequest.Builder.class); } public static final int PARENT_FIELD_NUMBER = 1; + @SuppressWarnings("serial") private volatile java.lang.Object parent_ = ""; /** + * + * *
    * Required. Name of parent to list custom modules. Its format is
    * "organizations/{organization}/locations/{location}",
@@ -57,7 +84,10 @@ protected java.lang.Object newInstance(
    * "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,14 +96,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. Name of parent to list custom modules. Its format is
    * "organizations/{organization}/locations/{location}",
@@ -82,17 +113,18 @@ public java.lang.String getParent() {
    * "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 { @@ -103,6 +135,8 @@ public java.lang.String getParent() { public static final int PAGE_SIZE_FIELD_NUMBER = 2; private int pageSize_ = 0; /** + * + * *
    * Optional. The maximum number of modules to return. The service may return
    * fewer than this value. If unspecified, at most 10 configs will be returned.
@@ -110,6 +144,7 @@ public java.lang.String getParent() {
    * 
* * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The pageSize. */ @java.lang.Override @@ -118,14 +153,18 @@ public int getPageSize() { } public static final int PAGE_TOKEN_FIELD_NUMBER = 3; + @SuppressWarnings("serial") private volatile java.lang.Object pageToken_ = ""; /** + * + * *
    * Optional. A token identifying a page of results the server should return.
    * 
* * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The pageToken. */ @java.lang.Override @@ -134,29 +173,29 @@ 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. A token identifying a page of results the server should return.
    * 
* * 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 { @@ -165,6 +204,7 @@ public java.lang.String getPageToken() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -176,8 +216,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, parent_); } @@ -200,8 +239,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_); @@ -214,19 +252,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.securitycentermanagement.v1.ListDescendantEventThreatDetectionCustomModulesRequest)) { + if (!(obj + instanceof + com.google.cloud.securitycentermanagement.v1 + .ListDescendantEventThreatDetectionCustomModulesRequest)) { return super.equals(obj); } - com.google.cloud.securitycentermanagement.v1.ListDescendantEventThreatDetectionCustomModulesRequest other = (com.google.cloud.securitycentermanagement.v1.ListDescendantEventThreatDetectionCustomModulesRequest) obj; + com.google.cloud.securitycentermanagement.v1 + .ListDescendantEventThreatDetectionCustomModulesRequest + other = + (com.google.cloud.securitycentermanagement.v1 + .ListDescendantEventThreatDetectionCustomModulesRequest) + 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; } @@ -249,133 +292,163 @@ public int hashCode() { return hash; } - public static com.google.cloud.securitycentermanagement.v1.ListDescendantEventThreatDetectionCustomModulesRequest parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.securitycentermanagement.v1 + .ListDescendantEventThreatDetectionCustomModulesRequest + parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.securitycentermanagement.v1.ListDescendantEventThreatDetectionCustomModulesRequest parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.cloud.securitycentermanagement.v1 + .ListDescendantEventThreatDetectionCustomModulesRequest + 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.securitycentermanagement.v1.ListDescendantEventThreatDetectionCustomModulesRequest parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.cloud.securitycentermanagement.v1 + .ListDescendantEventThreatDetectionCustomModulesRequest + parseFrom(com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.securitycentermanagement.v1.ListDescendantEventThreatDetectionCustomModulesRequest parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.cloud.securitycentermanagement.v1 + .ListDescendantEventThreatDetectionCustomModulesRequest + parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.securitycentermanagement.v1.ListDescendantEventThreatDetectionCustomModulesRequest parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.cloud.securitycentermanagement.v1 + .ListDescendantEventThreatDetectionCustomModulesRequest + parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.securitycentermanagement.v1.ListDescendantEventThreatDetectionCustomModulesRequest parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.cloud.securitycentermanagement.v1 + .ListDescendantEventThreatDetectionCustomModulesRequest + parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.securitycentermanagement.v1.ListDescendantEventThreatDetectionCustomModulesRequest parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.securitycentermanagement.v1 + .ListDescendantEventThreatDetectionCustomModulesRequest + parseFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } - public static com.google.cloud.securitycentermanagement.v1.ListDescendantEventThreatDetectionCustomModulesRequest 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.securitycentermanagement.v1 + .ListDescendantEventThreatDetectionCustomModulesRequest + 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.securitycentermanagement.v1.ListDescendantEventThreatDetectionCustomModulesRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.securitycentermanagement.v1 + .ListDescendantEventThreatDetectionCustomModulesRequest + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.securitycentermanagement.v1.ListDescendantEventThreatDetectionCustomModulesRequest parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + public static com.google.cloud.securitycentermanagement.v1 + .ListDescendantEventThreatDetectionCustomModulesRequest + parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.securitycentermanagement.v1.ListDescendantEventThreatDetectionCustomModulesRequest parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.securitycentermanagement.v1 + .ListDescendantEventThreatDetectionCustomModulesRequest + parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } - public static com.google.cloud.securitycentermanagement.v1.ListDescendantEventThreatDetectionCustomModulesRequest 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.securitycentermanagement.v1 + .ListDescendantEventThreatDetectionCustomModulesRequest + 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.securitycentermanagement.v1.ListDescendantEventThreatDetectionCustomModulesRequest prototype) { + + public static Builder newBuilder( + com.google.cloud.securitycentermanagement.v1 + .ListDescendantEventThreatDetectionCustomModulesRequest + prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected 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 listing descendant Event Threat Detection custom
    * modules.
    * 
* - * Protobuf type {@code google.cloud.securitycentermanagement.v1.ListDescendantEventThreatDetectionCustomModulesRequest} + * Protobuf type {@code + * google.cloud.securitycentermanagement.v1.ListDescendantEventThreatDetectionCustomModulesRequest} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.securitycentermanagement.v1.ListDescendantEventThreatDetectionCustomModulesRequest) - com.google.cloud.securitycentermanagement.v1.ListDescendantEventThreatDetectionCustomModulesRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.securitycentermanagement.v1.SecurityCenterManagementProto.internal_static_google_cloud_securitycentermanagement_v1_ListDescendantEventThreatDetectionCustomModulesRequest_descriptor; + com.google.cloud.securitycentermanagement.v1 + .ListDescendantEventThreatDetectionCustomModulesRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.securitycentermanagement.v1.SecurityCenterManagementProto + .internal_static_google_cloud_securitycentermanagement_v1_ListDescendantEventThreatDetectionCustomModulesRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.securitycentermanagement.v1.SecurityCenterManagementProto.internal_static_google_cloud_securitycentermanagement_v1_ListDescendantEventThreatDetectionCustomModulesRequest_fieldAccessorTable + return com.google.cloud.securitycentermanagement.v1.SecurityCenterManagementProto + .internal_static_google_cloud_securitycentermanagement_v1_ListDescendantEventThreatDetectionCustomModulesRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.securitycentermanagement.v1.ListDescendantEventThreatDetectionCustomModulesRequest.class, com.google.cloud.securitycentermanagement.v1.ListDescendantEventThreatDetectionCustomModulesRequest.Builder.class); + com.google.cloud.securitycentermanagement.v1 + .ListDescendantEventThreatDetectionCustomModulesRequest.class, + com.google.cloud.securitycentermanagement.v1 + .ListDescendantEventThreatDetectionCustomModulesRequest.Builder.class); } - // Construct using com.google.cloud.securitycentermanagement.v1.ListDescendantEventThreatDetectionCustomModulesRequest.newBuilder() - private Builder() { + // Construct using + // com.google.cloud.securitycentermanagement.v1.ListDescendantEventThreatDetectionCustomModulesRequest.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(); @@ -387,19 +460,26 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.securitycentermanagement.v1.SecurityCenterManagementProto.internal_static_google_cloud_securitycentermanagement_v1_ListDescendantEventThreatDetectionCustomModulesRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.securitycentermanagement.v1.SecurityCenterManagementProto + .internal_static_google_cloud_securitycentermanagement_v1_ListDescendantEventThreatDetectionCustomModulesRequest_descriptor; } @java.lang.Override - public com.google.cloud.securitycentermanagement.v1.ListDescendantEventThreatDetectionCustomModulesRequest getDefaultInstanceForType() { - return com.google.cloud.securitycentermanagement.v1.ListDescendantEventThreatDetectionCustomModulesRequest.getDefaultInstance(); + public com.google.cloud.securitycentermanagement.v1 + .ListDescendantEventThreatDetectionCustomModulesRequest + getDefaultInstanceForType() { + return com.google.cloud.securitycentermanagement.v1 + .ListDescendantEventThreatDetectionCustomModulesRequest.getDefaultInstance(); } @java.lang.Override - public com.google.cloud.securitycentermanagement.v1.ListDescendantEventThreatDetectionCustomModulesRequest build() { - com.google.cloud.securitycentermanagement.v1.ListDescendantEventThreatDetectionCustomModulesRequest result = buildPartial(); + public com.google.cloud.securitycentermanagement.v1 + .ListDescendantEventThreatDetectionCustomModulesRequest + build() { + com.google.cloud.securitycentermanagement.v1 + .ListDescendantEventThreatDetectionCustomModulesRequest + result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } @@ -407,14 +487,25 @@ public com.google.cloud.securitycentermanagement.v1.ListDescendantEventThreatDet } @java.lang.Override - public com.google.cloud.securitycentermanagement.v1.ListDescendantEventThreatDetectionCustomModulesRequest buildPartial() { - com.google.cloud.securitycentermanagement.v1.ListDescendantEventThreatDetectionCustomModulesRequest result = new com.google.cloud.securitycentermanagement.v1.ListDescendantEventThreatDetectionCustomModulesRequest(this); - if (bitField0_ != 0) { buildPartial0(result); } + public com.google.cloud.securitycentermanagement.v1 + .ListDescendantEventThreatDetectionCustomModulesRequest + buildPartial() { + com.google.cloud.securitycentermanagement.v1 + .ListDescendantEventThreatDetectionCustomModulesRequest + result = + new com.google.cloud.securitycentermanagement.v1 + .ListDescendantEventThreatDetectionCustomModulesRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } - private void buildPartial0(com.google.cloud.securitycentermanagement.v1.ListDescendantEventThreatDetectionCustomModulesRequest result) { + private void buildPartial0( + com.google.cloud.securitycentermanagement.v1 + .ListDescendantEventThreatDetectionCustomModulesRequest + result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000001) != 0)) { result.parent_ = parent_; @@ -431,46 +522,59 @@ private void buildPartial0(com.google.cloud.securitycentermanagement.v1.ListDesc public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.cloud.securitycentermanagement.v1.ListDescendantEventThreatDetectionCustomModulesRequest) { - return mergeFrom((com.google.cloud.securitycentermanagement.v1.ListDescendantEventThreatDetectionCustomModulesRequest)other); + if (other + instanceof + com.google.cloud.securitycentermanagement.v1 + .ListDescendantEventThreatDetectionCustomModulesRequest) { + return mergeFrom( + (com.google.cloud.securitycentermanagement.v1 + .ListDescendantEventThreatDetectionCustomModulesRequest) + other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom(com.google.cloud.securitycentermanagement.v1.ListDescendantEventThreatDetectionCustomModulesRequest other) { - if (other == com.google.cloud.securitycentermanagement.v1.ListDescendantEventThreatDetectionCustomModulesRequest.getDefaultInstance()) return this; + public Builder mergeFrom( + com.google.cloud.securitycentermanagement.v1 + .ListDescendantEventThreatDetectionCustomModulesRequest + other) { + if (other + == com.google.cloud.securitycentermanagement.v1 + .ListDescendantEventThreatDetectionCustomModulesRequest.getDefaultInstance()) + return this; if (!other.getParent().isEmpty()) { parent_ = other.parent_; bitField0_ |= 0x00000001; @@ -510,27 +614,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) { @@ -540,10 +648,13 @@ public Builder mergeFrom( } // finally return this; } + private int bitField0_; private java.lang.Object parent_ = ""; /** + * + * *
      * Required. Name of parent to list custom modules. Its format is
      * "organizations/{organization}/locations/{location}",
@@ -552,14 +663,16 @@ public Builder mergeFrom(
      * "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; @@ -568,6 +681,8 @@ public java.lang.String getParent() { } } /** + * + * *
      * Required. Name of parent to list custom modules. Its format is
      * "organizations/{organization}/locations/{location}",
@@ -576,16 +691,17 @@ public java.lang.String getParent() {
      * "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 { @@ -593,6 +709,8 @@ public java.lang.String getParent() { } } /** + * + * *
      * Required. Name of parent to list custom modules. Its format is
      * "organizations/{organization}/locations/{location}",
@@ -601,19 +719,25 @@ public java.lang.String getParent() {
      * "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. Name of parent to list custom modules. Its format is
      * "organizations/{organization}/locations/{location}",
@@ -622,7 +746,10 @@ public Builder setParent(
      * "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() { @@ -632,6 +759,8 @@ public Builder clearParent() { return this; } /** + * + * *
      * Required. Name of parent to list custom modules. Its format is
      * "organizations/{organization}/locations/{location}",
@@ -640,13 +769,17 @@ public Builder clearParent() {
      * "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; @@ -654,8 +787,10 @@ public Builder setParentBytes( return this; } - private int pageSize_ ; + private int pageSize_; /** + * + * *
      * Optional. The maximum number of modules to return. The service may return
      * fewer than this value. If unspecified, at most 10 configs will be returned.
@@ -663,6 +798,7 @@ public Builder setParentBytes(
      * 
* * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The pageSize. */ @java.lang.Override @@ -670,6 +806,8 @@ public int getPageSize() { return pageSize_; } /** + * + * *
      * Optional. The maximum number of modules to return. The service may return
      * fewer than this value. If unspecified, at most 10 configs will be returned.
@@ -677,6 +815,7 @@ public int getPageSize() {
      * 
* * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @param value The pageSize to set. * @return This builder for chaining. */ @@ -688,6 +827,8 @@ public Builder setPageSize(int value) { return this; } /** + * + * *
      * Optional. The maximum number of modules to return. The service may return
      * fewer than this value. If unspecified, at most 10 configs will be returned.
@@ -695,6 +836,7 @@ public Builder setPageSize(int value) {
      * 
* * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @return This builder for chaining. */ public Builder clearPageSize() { @@ -706,18 +848,20 @@ public Builder clearPageSize() { private java.lang.Object pageToken_ = ""; /** + * + * *
      * Optional. A token identifying a page of results the server should return.
      * 
* * 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; @@ -726,20 +870,21 @@ public java.lang.String getPageToken() { } } /** + * + * *
      * Optional. A token identifying a page of results the server should return.
      * 
* * 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 { @@ -747,28 +892,35 @@ public java.lang.String getPageToken() { } } /** + * + * *
      * Optional. A token identifying a page of results the server should return.
      * 
* * 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. A token identifying a page of results the server should return.
      * 
* * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @return This builder for chaining. */ public Builder clearPageToken() { @@ -778,26 +930,30 @@ public Builder clearPageToken() { return this; } /** + * + * *
      * Optional. A token identifying a page of results the server should return.
      * 
* * 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); } @@ -807,55 +963,67 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.securitycentermanagement.v1.ListDescendantEventThreatDetectionCustomModulesRequest) } // @@protoc_insertion_point(class_scope:google.cloud.securitycentermanagement.v1.ListDescendantEventThreatDetectionCustomModulesRequest) - private static final com.google.cloud.securitycentermanagement.v1.ListDescendantEventThreatDetectionCustomModulesRequest DEFAULT_INSTANCE; + private static final com.google.cloud.securitycentermanagement.v1 + .ListDescendantEventThreatDetectionCustomModulesRequest + DEFAULT_INSTANCE; + static { - DEFAULT_INSTANCE = new com.google.cloud.securitycentermanagement.v1.ListDescendantEventThreatDetectionCustomModulesRequest(); + DEFAULT_INSTANCE = + new com.google.cloud.securitycentermanagement.v1 + .ListDescendantEventThreatDetectionCustomModulesRequest(); } - public static com.google.cloud.securitycentermanagement.v1.ListDescendantEventThreatDetectionCustomModulesRequest getDefaultInstance() { + public static com.google.cloud.securitycentermanagement.v1 + .ListDescendantEventThreatDetectionCustomModulesRequest + getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ListDescendantEventThreatDetectionCustomModulesRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser< + ListDescendantEventThreatDetectionCustomModulesRequest> + PARSER = + new com.google.protobuf.AbstractParser< + ListDescendantEventThreatDetectionCustomModulesRequest>() { + @java.lang.Override + public ListDescendantEventThreatDetectionCustomModulesRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException() + .setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; - public static com.google.protobuf.Parser parser() { + public static com.google.protobuf.Parser + parser() { return PARSER; } @java.lang.Override - public com.google.protobuf.Parser getParserForType() { + public com.google.protobuf.Parser + getParserForType() { return PARSER; } @java.lang.Override - public com.google.cloud.securitycentermanagement.v1.ListDescendantEventThreatDetectionCustomModulesRequest getDefaultInstanceForType() { + public com.google.cloud.securitycentermanagement.v1 + .ListDescendantEventThreatDetectionCustomModulesRequest + getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/java-securitycentermanagement/v1/proto-google-cloud-securitycentermanagement-v1/src/main/java/com/google/cloud/securitycentermanagement/v1/ListDescendantEventThreatDetectionCustomModulesRequestOrBuilder.java b/java-securitycentermanagement/proto-google-cloud-securitycentermanagement-v1/src/main/java/com/google/cloud/securitycentermanagement/v1/ListDescendantEventThreatDetectionCustomModulesRequestOrBuilder.java similarity index 65% rename from owl-bot-staging/java-securitycentermanagement/v1/proto-google-cloud-securitycentermanagement-v1/src/main/java/com/google/cloud/securitycentermanagement/v1/ListDescendantEventThreatDetectionCustomModulesRequestOrBuilder.java rename to java-securitycentermanagement/proto-google-cloud-securitycentermanagement-v1/src/main/java/com/google/cloud/securitycentermanagement/v1/ListDescendantEventThreatDetectionCustomModulesRequestOrBuilder.java index 92ca4e0f5287..0b04bd2a2677 100644 --- a/owl-bot-staging/java-securitycentermanagement/v1/proto-google-cloud-securitycentermanagement-v1/src/main/java/com/google/cloud/securitycentermanagement/v1/ListDescendantEventThreatDetectionCustomModulesRequestOrBuilder.java +++ b/java-securitycentermanagement/proto-google-cloud-securitycentermanagement-v1/src/main/java/com/google/cloud/securitycentermanagement/v1/ListDescendantEventThreatDetectionCustomModulesRequestOrBuilder.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/securitycentermanagement/v1/security_center_management.proto package com.google.cloud.securitycentermanagement.v1; -public interface ListDescendantEventThreatDetectionCustomModulesRequestOrBuilder extends +public interface ListDescendantEventThreatDetectionCustomModulesRequestOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.securitycentermanagement.v1.ListDescendantEventThreatDetectionCustomModulesRequest) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * Required. Name of parent to list custom modules. Its format is
    * "organizations/{organization}/locations/{location}",
@@ -16,11 +34,16 @@ public interface ListDescendantEventThreatDetectionCustomModulesRequestOrBuilder
    * "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. Name of parent to list custom modules. Its format is
    * "organizations/{organization}/locations/{location}",
@@ -29,13 +52,17 @@ public interface ListDescendantEventThreatDetectionCustomModulesRequestOrBuilder
    * "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(); /** + * + * *
    * Optional. The maximum number of modules to return. The service may return
    * fewer than this value. If unspecified, at most 10 configs will be returned.
@@ -43,27 +70,33 @@ public interface ListDescendantEventThreatDetectionCustomModulesRequestOrBuilder
    * 
* * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The pageSize. */ int getPageSize(); /** + * + * *
    * Optional. A token identifying a page of results the server should return.
    * 
* * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The pageToken. */ java.lang.String getPageToken(); /** + * + * *
    * Optional. A token identifying a page of results the server should return.
    * 
* * 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-securitycentermanagement/proto-google-cloud-securitycentermanagement-v1/src/main/java/com/google/cloud/securitycentermanagement/v1/ListDescendantEventThreatDetectionCustomModulesResponse.java b/java-securitycentermanagement/proto-google-cloud-securitycentermanagement-v1/src/main/java/com/google/cloud/securitycentermanagement/v1/ListDescendantEventThreatDetectionCustomModulesResponse.java new file mode 100644 index 000000000000..5fbc87420f9a --- /dev/null +++ b/java-securitycentermanagement/proto-google-cloud-securitycentermanagement-v1/src/main/java/com/google/cloud/securitycentermanagement/v1/ListDescendantEventThreatDetectionCustomModulesResponse.java @@ -0,0 +1,1302 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/securitycentermanagement/v1/security_center_management.proto + +package com.google.cloud.securitycentermanagement.v1; + +/** + * + * + *
+ * Response message for listing descendant Event Threat Detection custom
+ * modules.
+ * 
+ * + * Protobuf type {@code + * google.cloud.securitycentermanagement.v1.ListDescendantEventThreatDetectionCustomModulesResponse} + */ +public final class ListDescendantEventThreatDetectionCustomModulesResponse + extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.securitycentermanagement.v1.ListDescendantEventThreatDetectionCustomModulesResponse) + ListDescendantEventThreatDetectionCustomModulesResponseOrBuilder { + private static final long serialVersionUID = 0L; + // Use ListDescendantEventThreatDetectionCustomModulesResponse.newBuilder() to construct. + private ListDescendantEventThreatDetectionCustomModulesResponse( + com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private ListDescendantEventThreatDetectionCustomModulesResponse() { + eventThreatDetectionCustomModules_ = java.util.Collections.emptyList(); + nextPageToken_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new ListDescendantEventThreatDetectionCustomModulesResponse(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.securitycentermanagement.v1.SecurityCenterManagementProto + .internal_static_google_cloud_securitycentermanagement_v1_ListDescendantEventThreatDetectionCustomModulesResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.securitycentermanagement.v1.SecurityCenterManagementProto + .internal_static_google_cloud_securitycentermanagement_v1_ListDescendantEventThreatDetectionCustomModulesResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.securitycentermanagement.v1 + .ListDescendantEventThreatDetectionCustomModulesResponse.class, + com.google.cloud.securitycentermanagement.v1 + .ListDescendantEventThreatDetectionCustomModulesResponse.Builder.class); + } + + public static final int EVENT_THREAT_DETECTION_CUSTOM_MODULES_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private java.util.List< + com.google.cloud.securitycentermanagement.v1.EventThreatDetectionCustomModule> + eventThreatDetectionCustomModules_; + /** + * + * + *
+   * The list of EventThreatDetectionCustomModules
+   * 
+ * + * + * repeated .google.cloud.securitycentermanagement.v1.EventThreatDetectionCustomModule event_threat_detection_custom_modules = 1; + * + */ + @java.lang.Override + public java.util.List< + com.google.cloud.securitycentermanagement.v1.EventThreatDetectionCustomModule> + getEventThreatDetectionCustomModulesList() { + return eventThreatDetectionCustomModules_; + } + /** + * + * + *
+   * The list of EventThreatDetectionCustomModules
+   * 
+ * + * + * repeated .google.cloud.securitycentermanagement.v1.EventThreatDetectionCustomModule event_threat_detection_custom_modules = 1; + * + */ + @java.lang.Override + public java.util.List< + ? extends + com.google.cloud.securitycentermanagement.v1 + .EventThreatDetectionCustomModuleOrBuilder> + getEventThreatDetectionCustomModulesOrBuilderList() { + return eventThreatDetectionCustomModules_; + } + /** + * + * + *
+   * The list of EventThreatDetectionCustomModules
+   * 
+ * + * + * repeated .google.cloud.securitycentermanagement.v1.EventThreatDetectionCustomModule event_threat_detection_custom_modules = 1; + * + */ + @java.lang.Override + public int getEventThreatDetectionCustomModulesCount() { + return eventThreatDetectionCustomModules_.size(); + } + /** + * + * + *
+   * The list of EventThreatDetectionCustomModules
+   * 
+ * + * + * repeated .google.cloud.securitycentermanagement.v1.EventThreatDetectionCustomModule event_threat_detection_custom_modules = 1; + * + */ + @java.lang.Override + public com.google.cloud.securitycentermanagement.v1.EventThreatDetectionCustomModule + getEventThreatDetectionCustomModules(int index) { + return eventThreatDetectionCustomModules_.get(index); + } + /** + * + * + *
+   * The list of EventThreatDetectionCustomModules
+   * 
+ * + * + * repeated .google.cloud.securitycentermanagement.v1.EventThreatDetectionCustomModule event_threat_detection_custom_modules = 1; + * + */ + @java.lang.Override + public com.google.cloud.securitycentermanagement.v1.EventThreatDetectionCustomModuleOrBuilder + getEventThreatDetectionCustomModulesOrBuilder(int index) { + return eventThreatDetectionCustomModules_.get(index); + } + + public static final int NEXT_PAGE_TOKEN_FIELD_NUMBER = 2; + + @SuppressWarnings("serial") + private volatile java.lang.Object nextPageToken_ = ""; + /** + * + * + *
+   * A token identifying a page of results the server should return.
+   * 
+ * + * string next_page_token = 2; + * + * @return The nextPageToken. + */ + @java.lang.Override + public java.lang.String getNextPageToken() { + java.lang.Object ref = nextPageToken_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + nextPageToken_ = s; + return s; + } + } + /** + * + * + *
+   * A token identifying a page of results the server should return.
+   * 
+ * + * string next_page_token = 2; + * + * @return The bytes for nextPageToken. + */ + @java.lang.Override + 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); + nextPageToken_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + for (int i = 0; i < eventThreatDetectionCustomModules_.size(); i++) { + output.writeMessage(1, eventThreatDetectionCustomModules_.get(i)); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(nextPageToken_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, nextPageToken_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + for (int i = 0; i < eventThreatDetectionCustomModules_.size(); i++) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 1, eventThreatDetectionCustomModules_.get(i)); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(nextPageToken_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, nextPageToken_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj + instanceof + com.google.cloud.securitycentermanagement.v1 + .ListDescendantEventThreatDetectionCustomModulesResponse)) { + return super.equals(obj); + } + com.google.cloud.securitycentermanagement.v1 + .ListDescendantEventThreatDetectionCustomModulesResponse + other = + (com.google.cloud.securitycentermanagement.v1 + .ListDescendantEventThreatDetectionCustomModulesResponse) + obj; + + if (!getEventThreatDetectionCustomModulesList() + .equals(other.getEventThreatDetectionCustomModulesList())) return false; + if (!getNextPageToken().equals(other.getNextPageToken())) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (getEventThreatDetectionCustomModulesCount() > 0) { + hash = (37 * hash) + EVENT_THREAT_DETECTION_CUSTOM_MODULES_FIELD_NUMBER; + hash = (53 * hash) + getEventThreatDetectionCustomModulesList().hashCode(); + } + hash = (37 * hash) + NEXT_PAGE_TOKEN_FIELD_NUMBER; + hash = (53 * hash) + getNextPageToken().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.securitycentermanagement.v1 + .ListDescendantEventThreatDetectionCustomModulesResponse + parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.securitycentermanagement.v1 + .ListDescendantEventThreatDetectionCustomModulesResponse + 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.securitycentermanagement.v1 + .ListDescendantEventThreatDetectionCustomModulesResponse + parseFrom(com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.securitycentermanagement.v1 + .ListDescendantEventThreatDetectionCustomModulesResponse + parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.securitycentermanagement.v1 + .ListDescendantEventThreatDetectionCustomModulesResponse + parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.securitycentermanagement.v1 + .ListDescendantEventThreatDetectionCustomModulesResponse + parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.securitycentermanagement.v1 + .ListDescendantEventThreatDetectionCustomModulesResponse + parseFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.securitycentermanagement.v1 + .ListDescendantEventThreatDetectionCustomModulesResponse + 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.securitycentermanagement.v1 + .ListDescendantEventThreatDetectionCustomModulesResponse + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.securitycentermanagement.v1 + .ListDescendantEventThreatDetectionCustomModulesResponse + parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.securitycentermanagement.v1 + .ListDescendantEventThreatDetectionCustomModulesResponse + parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.securitycentermanagement.v1 + .ListDescendantEventThreatDetectionCustomModulesResponse + 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.securitycentermanagement.v1 + .ListDescendantEventThreatDetectionCustomModulesResponse + prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
+   * Response message for listing descendant Event Threat Detection custom
+   * modules.
+   * 
+ * + * Protobuf type {@code + * google.cloud.securitycentermanagement.v1.ListDescendantEventThreatDetectionCustomModulesResponse} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.securitycentermanagement.v1.ListDescendantEventThreatDetectionCustomModulesResponse) + com.google.cloud.securitycentermanagement.v1 + .ListDescendantEventThreatDetectionCustomModulesResponseOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.securitycentermanagement.v1.SecurityCenterManagementProto + .internal_static_google_cloud_securitycentermanagement_v1_ListDescendantEventThreatDetectionCustomModulesResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.securitycentermanagement.v1.SecurityCenterManagementProto + .internal_static_google_cloud_securitycentermanagement_v1_ListDescendantEventThreatDetectionCustomModulesResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.securitycentermanagement.v1 + .ListDescendantEventThreatDetectionCustomModulesResponse.class, + com.google.cloud.securitycentermanagement.v1 + .ListDescendantEventThreatDetectionCustomModulesResponse.Builder.class); + } + + // Construct using + // com.google.cloud.securitycentermanagement.v1.ListDescendantEventThreatDetectionCustomModulesResponse.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + if (eventThreatDetectionCustomModulesBuilder_ == null) { + eventThreatDetectionCustomModules_ = java.util.Collections.emptyList(); + } else { + eventThreatDetectionCustomModules_ = null; + eventThreatDetectionCustomModulesBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000001); + nextPageToken_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.securitycentermanagement.v1.SecurityCenterManagementProto + .internal_static_google_cloud_securitycentermanagement_v1_ListDescendantEventThreatDetectionCustomModulesResponse_descriptor; + } + + @java.lang.Override + public com.google.cloud.securitycentermanagement.v1 + .ListDescendantEventThreatDetectionCustomModulesResponse + getDefaultInstanceForType() { + return com.google.cloud.securitycentermanagement.v1 + .ListDescendantEventThreatDetectionCustomModulesResponse.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.securitycentermanagement.v1 + .ListDescendantEventThreatDetectionCustomModulesResponse + build() { + com.google.cloud.securitycentermanagement.v1 + .ListDescendantEventThreatDetectionCustomModulesResponse + result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.securitycentermanagement.v1 + .ListDescendantEventThreatDetectionCustomModulesResponse + buildPartial() { + com.google.cloud.securitycentermanagement.v1 + .ListDescendantEventThreatDetectionCustomModulesResponse + result = + new com.google.cloud.securitycentermanagement.v1 + .ListDescendantEventThreatDetectionCustomModulesResponse(this); + buildPartialRepeatedFields(result); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartialRepeatedFields( + com.google.cloud.securitycentermanagement.v1 + .ListDescendantEventThreatDetectionCustomModulesResponse + result) { + if (eventThreatDetectionCustomModulesBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0)) { + eventThreatDetectionCustomModules_ = + java.util.Collections.unmodifiableList(eventThreatDetectionCustomModules_); + bitField0_ = (bitField0_ & ~0x00000001); + } + result.eventThreatDetectionCustomModules_ = eventThreatDetectionCustomModules_; + } else { + result.eventThreatDetectionCustomModules_ = + eventThreatDetectionCustomModulesBuilder_.build(); + } + } + + private void buildPartial0( + com.google.cloud.securitycentermanagement.v1 + .ListDescendantEventThreatDetectionCustomModulesResponse + result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000002) != 0)) { + result.nextPageToken_ = nextPageToken_; + } + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other + instanceof + com.google.cloud.securitycentermanagement.v1 + .ListDescendantEventThreatDetectionCustomModulesResponse) { + return mergeFrom( + (com.google.cloud.securitycentermanagement.v1 + .ListDescendantEventThreatDetectionCustomModulesResponse) + other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.securitycentermanagement.v1 + .ListDescendantEventThreatDetectionCustomModulesResponse + other) { + if (other + == com.google.cloud.securitycentermanagement.v1 + .ListDescendantEventThreatDetectionCustomModulesResponse.getDefaultInstance()) + return this; + if (eventThreatDetectionCustomModulesBuilder_ == null) { + if (!other.eventThreatDetectionCustomModules_.isEmpty()) { + if (eventThreatDetectionCustomModules_.isEmpty()) { + eventThreatDetectionCustomModules_ = other.eventThreatDetectionCustomModules_; + bitField0_ = (bitField0_ & ~0x00000001); + } else { + ensureEventThreatDetectionCustomModulesIsMutable(); + eventThreatDetectionCustomModules_.addAll(other.eventThreatDetectionCustomModules_); + } + onChanged(); + } + } else { + if (!other.eventThreatDetectionCustomModules_.isEmpty()) { + if (eventThreatDetectionCustomModulesBuilder_.isEmpty()) { + eventThreatDetectionCustomModulesBuilder_.dispose(); + eventThreatDetectionCustomModulesBuilder_ = null; + eventThreatDetectionCustomModules_ = other.eventThreatDetectionCustomModules_; + bitField0_ = (bitField0_ & ~0x00000001); + eventThreatDetectionCustomModulesBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getEventThreatDetectionCustomModulesFieldBuilder() + : null; + } else { + eventThreatDetectionCustomModulesBuilder_.addAllMessages( + other.eventThreatDetectionCustomModules_); + } + } + } + if (!other.getNextPageToken().isEmpty()) { + nextPageToken_ = other.nextPageToken_; + bitField0_ |= 0x00000002; + onChanged(); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + com.google.cloud.securitycentermanagement.v1.EventThreatDetectionCustomModule m = + input.readMessage( + com.google.cloud.securitycentermanagement.v1 + .EventThreatDetectionCustomModule.parser(), + extensionRegistry); + if (eventThreatDetectionCustomModulesBuilder_ == null) { + ensureEventThreatDetectionCustomModulesIsMutable(); + eventThreatDetectionCustomModules_.add(m); + } else { + eventThreatDetectionCustomModulesBuilder_.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) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private java.util.List< + com.google.cloud.securitycentermanagement.v1.EventThreatDetectionCustomModule> + eventThreatDetectionCustomModules_ = java.util.Collections.emptyList(); + + private void ensureEventThreatDetectionCustomModulesIsMutable() { + if (!((bitField0_ & 0x00000001) != 0)) { + eventThreatDetectionCustomModules_ = + new java.util.ArrayList< + com.google.cloud.securitycentermanagement.v1.EventThreatDetectionCustomModule>( + eventThreatDetectionCustomModules_); + bitField0_ |= 0x00000001; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.securitycentermanagement.v1.EventThreatDetectionCustomModule, + com.google.cloud.securitycentermanagement.v1.EventThreatDetectionCustomModule.Builder, + com.google.cloud.securitycentermanagement.v1.EventThreatDetectionCustomModuleOrBuilder> + eventThreatDetectionCustomModulesBuilder_; + + /** + * + * + *
+     * The list of EventThreatDetectionCustomModules
+     * 
+ * + * + * repeated .google.cloud.securitycentermanagement.v1.EventThreatDetectionCustomModule event_threat_detection_custom_modules = 1; + * + */ + public java.util.List< + com.google.cloud.securitycentermanagement.v1.EventThreatDetectionCustomModule> + getEventThreatDetectionCustomModulesList() { + if (eventThreatDetectionCustomModulesBuilder_ == null) { + return java.util.Collections.unmodifiableList(eventThreatDetectionCustomModules_); + } else { + return eventThreatDetectionCustomModulesBuilder_.getMessageList(); + } + } + /** + * + * + *
+     * The list of EventThreatDetectionCustomModules
+     * 
+ * + * + * repeated .google.cloud.securitycentermanagement.v1.EventThreatDetectionCustomModule event_threat_detection_custom_modules = 1; + * + */ + public int getEventThreatDetectionCustomModulesCount() { + if (eventThreatDetectionCustomModulesBuilder_ == null) { + return eventThreatDetectionCustomModules_.size(); + } else { + return eventThreatDetectionCustomModulesBuilder_.getCount(); + } + } + /** + * + * + *
+     * The list of EventThreatDetectionCustomModules
+     * 
+ * + * + * repeated .google.cloud.securitycentermanagement.v1.EventThreatDetectionCustomModule event_threat_detection_custom_modules = 1; + * + */ + public com.google.cloud.securitycentermanagement.v1.EventThreatDetectionCustomModule + getEventThreatDetectionCustomModules(int index) { + if (eventThreatDetectionCustomModulesBuilder_ == null) { + return eventThreatDetectionCustomModules_.get(index); + } else { + return eventThreatDetectionCustomModulesBuilder_.getMessage(index); + } + } + /** + * + * + *
+     * The list of EventThreatDetectionCustomModules
+     * 
+ * + * + * repeated .google.cloud.securitycentermanagement.v1.EventThreatDetectionCustomModule event_threat_detection_custom_modules = 1; + * + */ + public Builder setEventThreatDetectionCustomModules( + int index, + com.google.cloud.securitycentermanagement.v1.EventThreatDetectionCustomModule value) { + if (eventThreatDetectionCustomModulesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureEventThreatDetectionCustomModulesIsMutable(); + eventThreatDetectionCustomModules_.set(index, value); + onChanged(); + } else { + eventThreatDetectionCustomModulesBuilder_.setMessage(index, value); + } + return this; + } + /** + * + * + *
+     * The list of EventThreatDetectionCustomModules
+     * 
+ * + * + * repeated .google.cloud.securitycentermanagement.v1.EventThreatDetectionCustomModule event_threat_detection_custom_modules = 1; + * + */ + public Builder setEventThreatDetectionCustomModules( + int index, + com.google.cloud.securitycentermanagement.v1.EventThreatDetectionCustomModule.Builder + builderForValue) { + if (eventThreatDetectionCustomModulesBuilder_ == null) { + ensureEventThreatDetectionCustomModulesIsMutable(); + eventThreatDetectionCustomModules_.set(index, builderForValue.build()); + onChanged(); + } else { + eventThreatDetectionCustomModulesBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * The list of EventThreatDetectionCustomModules
+     * 
+ * + * + * repeated .google.cloud.securitycentermanagement.v1.EventThreatDetectionCustomModule event_threat_detection_custom_modules = 1; + * + */ + public Builder addEventThreatDetectionCustomModules( + com.google.cloud.securitycentermanagement.v1.EventThreatDetectionCustomModule value) { + if (eventThreatDetectionCustomModulesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureEventThreatDetectionCustomModulesIsMutable(); + eventThreatDetectionCustomModules_.add(value); + onChanged(); + } else { + eventThreatDetectionCustomModulesBuilder_.addMessage(value); + } + return this; + } + /** + * + * + *
+     * The list of EventThreatDetectionCustomModules
+     * 
+ * + * + * repeated .google.cloud.securitycentermanagement.v1.EventThreatDetectionCustomModule event_threat_detection_custom_modules = 1; + * + */ + public Builder addEventThreatDetectionCustomModules( + int index, + com.google.cloud.securitycentermanagement.v1.EventThreatDetectionCustomModule value) { + if (eventThreatDetectionCustomModulesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureEventThreatDetectionCustomModulesIsMutable(); + eventThreatDetectionCustomModules_.add(index, value); + onChanged(); + } else { + eventThreatDetectionCustomModulesBuilder_.addMessage(index, value); + } + return this; + } + /** + * + * + *
+     * The list of EventThreatDetectionCustomModules
+     * 
+ * + * + * repeated .google.cloud.securitycentermanagement.v1.EventThreatDetectionCustomModule event_threat_detection_custom_modules = 1; + * + */ + public Builder addEventThreatDetectionCustomModules( + com.google.cloud.securitycentermanagement.v1.EventThreatDetectionCustomModule.Builder + builderForValue) { + if (eventThreatDetectionCustomModulesBuilder_ == null) { + ensureEventThreatDetectionCustomModulesIsMutable(); + eventThreatDetectionCustomModules_.add(builderForValue.build()); + onChanged(); + } else { + eventThreatDetectionCustomModulesBuilder_.addMessage(builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * The list of EventThreatDetectionCustomModules
+     * 
+ * + * + * repeated .google.cloud.securitycentermanagement.v1.EventThreatDetectionCustomModule event_threat_detection_custom_modules = 1; + * + */ + public Builder addEventThreatDetectionCustomModules( + int index, + com.google.cloud.securitycentermanagement.v1.EventThreatDetectionCustomModule.Builder + builderForValue) { + if (eventThreatDetectionCustomModulesBuilder_ == null) { + ensureEventThreatDetectionCustomModulesIsMutable(); + eventThreatDetectionCustomModules_.add(index, builderForValue.build()); + onChanged(); + } else { + eventThreatDetectionCustomModulesBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * The list of EventThreatDetectionCustomModules
+     * 
+ * + * + * repeated .google.cloud.securitycentermanagement.v1.EventThreatDetectionCustomModule event_threat_detection_custom_modules = 1; + * + */ + public Builder addAllEventThreatDetectionCustomModules( + java.lang.Iterable< + ? extends + com.google.cloud.securitycentermanagement.v1.EventThreatDetectionCustomModule> + values) { + if (eventThreatDetectionCustomModulesBuilder_ == null) { + ensureEventThreatDetectionCustomModulesIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, eventThreatDetectionCustomModules_); + onChanged(); + } else { + eventThreatDetectionCustomModulesBuilder_.addAllMessages(values); + } + return this; + } + /** + * + * + *
+     * The list of EventThreatDetectionCustomModules
+     * 
+ * + * + * repeated .google.cloud.securitycentermanagement.v1.EventThreatDetectionCustomModule event_threat_detection_custom_modules = 1; + * + */ + public Builder clearEventThreatDetectionCustomModules() { + if (eventThreatDetectionCustomModulesBuilder_ == null) { + eventThreatDetectionCustomModules_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + } else { + eventThreatDetectionCustomModulesBuilder_.clear(); + } + return this; + } + /** + * + * + *
+     * The list of EventThreatDetectionCustomModules
+     * 
+ * + * + * repeated .google.cloud.securitycentermanagement.v1.EventThreatDetectionCustomModule event_threat_detection_custom_modules = 1; + * + */ + public Builder removeEventThreatDetectionCustomModules(int index) { + if (eventThreatDetectionCustomModulesBuilder_ == null) { + ensureEventThreatDetectionCustomModulesIsMutable(); + eventThreatDetectionCustomModules_.remove(index); + onChanged(); + } else { + eventThreatDetectionCustomModulesBuilder_.remove(index); + } + return this; + } + /** + * + * + *
+     * The list of EventThreatDetectionCustomModules
+     * 
+ * + * + * repeated .google.cloud.securitycentermanagement.v1.EventThreatDetectionCustomModule event_threat_detection_custom_modules = 1; + * + */ + public com.google.cloud.securitycentermanagement.v1.EventThreatDetectionCustomModule.Builder + getEventThreatDetectionCustomModulesBuilder(int index) { + return getEventThreatDetectionCustomModulesFieldBuilder().getBuilder(index); + } + /** + * + * + *
+     * The list of EventThreatDetectionCustomModules
+     * 
+ * + * + * repeated .google.cloud.securitycentermanagement.v1.EventThreatDetectionCustomModule event_threat_detection_custom_modules = 1; + * + */ + public com.google.cloud.securitycentermanagement.v1.EventThreatDetectionCustomModuleOrBuilder + getEventThreatDetectionCustomModulesOrBuilder(int index) { + if (eventThreatDetectionCustomModulesBuilder_ == null) { + return eventThreatDetectionCustomModules_.get(index); + } else { + return eventThreatDetectionCustomModulesBuilder_.getMessageOrBuilder(index); + } + } + /** + * + * + *
+     * The list of EventThreatDetectionCustomModules
+     * 
+ * + * + * repeated .google.cloud.securitycentermanagement.v1.EventThreatDetectionCustomModule event_threat_detection_custom_modules = 1; + * + */ + public java.util.List< + ? extends + com.google.cloud.securitycentermanagement.v1 + .EventThreatDetectionCustomModuleOrBuilder> + getEventThreatDetectionCustomModulesOrBuilderList() { + if (eventThreatDetectionCustomModulesBuilder_ != null) { + return eventThreatDetectionCustomModulesBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(eventThreatDetectionCustomModules_); + } + } + /** + * + * + *
+     * The list of EventThreatDetectionCustomModules
+     * 
+ * + * + * repeated .google.cloud.securitycentermanagement.v1.EventThreatDetectionCustomModule event_threat_detection_custom_modules = 1; + * + */ + public com.google.cloud.securitycentermanagement.v1.EventThreatDetectionCustomModule.Builder + addEventThreatDetectionCustomModulesBuilder() { + return getEventThreatDetectionCustomModulesFieldBuilder() + .addBuilder( + com.google.cloud.securitycentermanagement.v1.EventThreatDetectionCustomModule + .getDefaultInstance()); + } + /** + * + * + *
+     * The list of EventThreatDetectionCustomModules
+     * 
+ * + * + * repeated .google.cloud.securitycentermanagement.v1.EventThreatDetectionCustomModule event_threat_detection_custom_modules = 1; + * + */ + public com.google.cloud.securitycentermanagement.v1.EventThreatDetectionCustomModule.Builder + addEventThreatDetectionCustomModulesBuilder(int index) { + return getEventThreatDetectionCustomModulesFieldBuilder() + .addBuilder( + index, + com.google.cloud.securitycentermanagement.v1.EventThreatDetectionCustomModule + .getDefaultInstance()); + } + /** + * + * + *
+     * The list of EventThreatDetectionCustomModules
+     * 
+ * + * + * repeated .google.cloud.securitycentermanagement.v1.EventThreatDetectionCustomModule event_threat_detection_custom_modules = 1; + * + */ + public java.util.List< + com.google.cloud.securitycentermanagement.v1.EventThreatDetectionCustomModule.Builder> + getEventThreatDetectionCustomModulesBuilderList() { + return getEventThreatDetectionCustomModulesFieldBuilder().getBuilderList(); + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.securitycentermanagement.v1.EventThreatDetectionCustomModule, + com.google.cloud.securitycentermanagement.v1.EventThreatDetectionCustomModule.Builder, + com.google.cloud.securitycentermanagement.v1.EventThreatDetectionCustomModuleOrBuilder> + getEventThreatDetectionCustomModulesFieldBuilder() { + if (eventThreatDetectionCustomModulesBuilder_ == null) { + eventThreatDetectionCustomModulesBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.securitycentermanagement.v1.EventThreatDetectionCustomModule, + com.google.cloud.securitycentermanagement.v1.EventThreatDetectionCustomModule + .Builder, + com.google.cloud.securitycentermanagement.v1 + .EventThreatDetectionCustomModuleOrBuilder>( + eventThreatDetectionCustomModules_, + ((bitField0_ & 0x00000001) != 0), + getParentForChildren(), + isClean()); + eventThreatDetectionCustomModules_ = null; + } + return eventThreatDetectionCustomModulesBuilder_; + } + + private java.lang.Object nextPageToken_ = ""; + /** + * + * + *
+     * A token identifying a page of results the server should return.
+     * 
+ * + * 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; + java.lang.String s = bs.toStringUtf8(); + nextPageToken_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * A token identifying a page of results the server should return.
+     * 
+ * + * string next_page_token = 2; + * + * @return The bytes for nextPageToken. + */ + 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); + nextPageToken_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * A token identifying a page of results the server should return.
+     * 
+ * + * 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(); + } + nextPageToken_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * + * + *
+     * A token identifying a page of results the server should return.
+     * 
+ * + * string next_page_token = 2; + * + * @return This builder for chaining. + */ + public Builder clearNextPageToken() { + nextPageToken_ = getDefaultInstance().getNextPageToken(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + /** + * + * + *
+     * A token identifying a page of results the server should return.
+     * 
+ * + * 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(); + } + checkByteStringIsUtf8(value); + nextPageToken_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.securitycentermanagement.v1.ListDescendantEventThreatDetectionCustomModulesResponse) + } + + // @@protoc_insertion_point(class_scope:google.cloud.securitycentermanagement.v1.ListDescendantEventThreatDetectionCustomModulesResponse) + private static final com.google.cloud.securitycentermanagement.v1 + .ListDescendantEventThreatDetectionCustomModulesResponse + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = + new com.google.cloud.securitycentermanagement.v1 + .ListDescendantEventThreatDetectionCustomModulesResponse(); + } + + public static com.google.cloud.securitycentermanagement.v1 + .ListDescendantEventThreatDetectionCustomModulesResponse + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser< + ListDescendantEventThreatDetectionCustomModulesResponse> + PARSER = + new com.google.protobuf.AbstractParser< + ListDescendantEventThreatDetectionCustomModulesResponse>() { + @java.lang.Override + public ListDescendantEventThreatDetectionCustomModulesResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException() + .setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser + parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser + getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.securitycentermanagement.v1 + .ListDescendantEventThreatDetectionCustomModulesResponse + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-securitycentermanagement/proto-google-cloud-securitycentermanagement-v1/src/main/java/com/google/cloud/securitycentermanagement/v1/ListDescendantEventThreatDetectionCustomModulesResponseOrBuilder.java b/java-securitycentermanagement/proto-google-cloud-securitycentermanagement-v1/src/main/java/com/google/cloud/securitycentermanagement/v1/ListDescendantEventThreatDetectionCustomModulesResponseOrBuilder.java new file mode 100644 index 000000000000..85ce4fc0a576 --- /dev/null +++ b/java-securitycentermanagement/proto-google-cloud-securitycentermanagement-v1/src/main/java/com/google/cloud/securitycentermanagement/v1/ListDescendantEventThreatDetectionCustomModulesResponseOrBuilder.java @@ -0,0 +1,118 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/securitycentermanagement/v1/security_center_management.proto + +package com.google.cloud.securitycentermanagement.v1; + +public interface ListDescendantEventThreatDetectionCustomModulesResponseOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.securitycentermanagement.v1.ListDescendantEventThreatDetectionCustomModulesResponse) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * The list of EventThreatDetectionCustomModules
+   * 
+ * + * + * repeated .google.cloud.securitycentermanagement.v1.EventThreatDetectionCustomModule event_threat_detection_custom_modules = 1; + * + */ + java.util.List + getEventThreatDetectionCustomModulesList(); + /** + * + * + *
+   * The list of EventThreatDetectionCustomModules
+   * 
+ * + * + * repeated .google.cloud.securitycentermanagement.v1.EventThreatDetectionCustomModule event_threat_detection_custom_modules = 1; + * + */ + com.google.cloud.securitycentermanagement.v1.EventThreatDetectionCustomModule + getEventThreatDetectionCustomModules(int index); + /** + * + * + *
+   * The list of EventThreatDetectionCustomModules
+   * 
+ * + * + * repeated .google.cloud.securitycentermanagement.v1.EventThreatDetectionCustomModule event_threat_detection_custom_modules = 1; + * + */ + int getEventThreatDetectionCustomModulesCount(); + /** + * + * + *
+   * The list of EventThreatDetectionCustomModules
+   * 
+ * + * + * repeated .google.cloud.securitycentermanagement.v1.EventThreatDetectionCustomModule event_threat_detection_custom_modules = 1; + * + */ + java.util.List< + ? extends + com.google.cloud.securitycentermanagement.v1 + .EventThreatDetectionCustomModuleOrBuilder> + getEventThreatDetectionCustomModulesOrBuilderList(); + /** + * + * + *
+   * The list of EventThreatDetectionCustomModules
+   * 
+ * + * + * repeated .google.cloud.securitycentermanagement.v1.EventThreatDetectionCustomModule event_threat_detection_custom_modules = 1; + * + */ + com.google.cloud.securitycentermanagement.v1.EventThreatDetectionCustomModuleOrBuilder + getEventThreatDetectionCustomModulesOrBuilder(int index); + + /** + * + * + *
+   * A token identifying a page of results the server should return.
+   * 
+ * + * string next_page_token = 2; + * + * @return The nextPageToken. + */ + java.lang.String getNextPageToken(); + /** + * + * + *
+   * A token identifying a page of results the server should return.
+   * 
+ * + * string next_page_token = 2; + * + * @return The bytes for nextPageToken. + */ + com.google.protobuf.ByteString getNextPageTokenBytes(); +} diff --git a/owl-bot-staging/java-securitycentermanagement/v1/proto-google-cloud-securitycentermanagement-v1/src/main/java/com/google/cloud/securitycentermanagement/v1/ListDescendantSecurityHealthAnalyticsCustomModulesRequest.java b/java-securitycentermanagement/proto-google-cloud-securitycentermanagement-v1/src/main/java/com/google/cloud/securitycentermanagement/v1/ListDescendantSecurityHealthAnalyticsCustomModulesRequest.java similarity index 51% rename from owl-bot-staging/java-securitycentermanagement/v1/proto-google-cloud-securitycentermanagement-v1/src/main/java/com/google/cloud/securitycentermanagement/v1/ListDescendantSecurityHealthAnalyticsCustomModulesRequest.java rename to java-securitycentermanagement/proto-google-cloud-securitycentermanagement-v1/src/main/java/com/google/cloud/securitycentermanagement/v1/ListDescendantSecurityHealthAnalyticsCustomModulesRequest.java index 0580e33b116a..bde88bf63ddc 100644 --- a/owl-bot-staging/java-securitycentermanagement/v1/proto-google-cloud-securitycentermanagement-v1/src/main/java/com/google/cloud/securitycentermanagement/v1/ListDescendantSecurityHealthAnalyticsCustomModulesRequest.java +++ b/java-securitycentermanagement/proto-google-cloud-securitycentermanagement-v1/src/main/java/com/google/cloud/securitycentermanagement/v1/ListDescendantSecurityHealthAnalyticsCustomModulesRequest.java @@ -1,25 +1,46 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/securitycentermanagement/v1/security_center_management.proto package com.google.cloud.securitycentermanagement.v1; /** + * + * *
  * Request message for listing descendant Security Health Analytics custom
  * modules.
  * 
* - * Protobuf type {@code google.cloud.securitycentermanagement.v1.ListDescendantSecurityHealthAnalyticsCustomModulesRequest} + * Protobuf type {@code + * google.cloud.securitycentermanagement.v1.ListDescendantSecurityHealthAnalyticsCustomModulesRequest} */ -public final class ListDescendantSecurityHealthAnalyticsCustomModulesRequest extends - com.google.protobuf.GeneratedMessageV3 implements +public final class ListDescendantSecurityHealthAnalyticsCustomModulesRequest + extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.securitycentermanagement.v1.ListDescendantSecurityHealthAnalyticsCustomModulesRequest) ListDescendantSecurityHealthAnalyticsCustomModulesRequestOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use ListDescendantSecurityHealthAnalyticsCustomModulesRequest.newBuilder() to construct. - private ListDescendantSecurityHealthAnalyticsCustomModulesRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + private ListDescendantSecurityHealthAnalyticsCustomModulesRequest( + com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private ListDescendantSecurityHealthAnalyticsCustomModulesRequest() { parent_ = ""; pageToken_ = ""; @@ -27,28 +48,34 @@ private ListDescendantSecurityHealthAnalyticsCustomModulesRequest() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new ListDescendantSecurityHealthAnalyticsCustomModulesRequest(); } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.securitycentermanagement.v1.SecurityCenterManagementProto.internal_static_google_cloud_securitycentermanagement_v1_ListDescendantSecurityHealthAnalyticsCustomModulesRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.securitycentermanagement.v1.SecurityCenterManagementProto + .internal_static_google_cloud_securitycentermanagement_v1_ListDescendantSecurityHealthAnalyticsCustomModulesRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.securitycentermanagement.v1.SecurityCenterManagementProto.internal_static_google_cloud_securitycentermanagement_v1_ListDescendantSecurityHealthAnalyticsCustomModulesRequest_fieldAccessorTable + return com.google.cloud.securitycentermanagement.v1.SecurityCenterManagementProto + .internal_static_google_cloud_securitycentermanagement_v1_ListDescendantSecurityHealthAnalyticsCustomModulesRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.securitycentermanagement.v1.ListDescendantSecurityHealthAnalyticsCustomModulesRequest.class, com.google.cloud.securitycentermanagement.v1.ListDescendantSecurityHealthAnalyticsCustomModulesRequest.Builder.class); + com.google.cloud.securitycentermanagement.v1 + .ListDescendantSecurityHealthAnalyticsCustomModulesRequest.class, + com.google.cloud.securitycentermanagement.v1 + .ListDescendantSecurityHealthAnalyticsCustomModulesRequest.Builder.class); } public static final int PARENT_FIELD_NUMBER = 1; + @SuppressWarnings("serial") private volatile java.lang.Object parent_ = ""; /** + * + * *
    * Required. Name of parent to list custom modules. Its format is
    * "organizations/{organization}/locations/{location}",
@@ -57,7 +84,10 @@ protected java.lang.Object newInstance(
    * "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,14 +96,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. Name of parent to list custom modules. Its format is
    * "organizations/{organization}/locations/{location}",
@@ -82,17 +113,18 @@ public java.lang.String getParent() {
    * "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 { @@ -103,12 +135,15 @@ public java.lang.String getParent() { public static final int PAGE_SIZE_FIELD_NUMBER = 2; private int pageSize_ = 0; /** + * + * *
    * Optional. The maximum number of results to return in a single response.
    * Default is 10, minimum is 1, maximum is 1000.
    * 
* * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The pageSize. */ @java.lang.Override @@ -117,14 +152,18 @@ public int getPageSize() { } public static final int PAGE_TOKEN_FIELD_NUMBER = 3; + @SuppressWarnings("serial") private volatile java.lang.Object pageToken_ = ""; /** + * + * *
    * Optional. A token identifying a page of results the server should return.
    * 
* * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The pageToken. */ @java.lang.Override @@ -133,29 +172,29 @@ 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. A token identifying a page of results the server should return.
    * 
* * 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 { @@ -164,6 +203,7 @@ public java.lang.String getPageToken() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -175,8 +215,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.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_); } @@ -199,8 +238,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_); @@ -213,19 +251,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.securitycentermanagement.v1.ListDescendantSecurityHealthAnalyticsCustomModulesRequest)) { + if (!(obj + instanceof + com.google.cloud.securitycentermanagement.v1 + .ListDescendantSecurityHealthAnalyticsCustomModulesRequest)) { return super.equals(obj); } - com.google.cloud.securitycentermanagement.v1.ListDescendantSecurityHealthAnalyticsCustomModulesRequest other = (com.google.cloud.securitycentermanagement.v1.ListDescendantSecurityHealthAnalyticsCustomModulesRequest) obj; + com.google.cloud.securitycentermanagement.v1 + .ListDescendantSecurityHealthAnalyticsCustomModulesRequest + other = + (com.google.cloud.securitycentermanagement.v1 + .ListDescendantSecurityHealthAnalyticsCustomModulesRequest) + 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; } @@ -248,133 +291,163 @@ public int hashCode() { return hash; } - public static com.google.cloud.securitycentermanagement.v1.ListDescendantSecurityHealthAnalyticsCustomModulesRequest parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.securitycentermanagement.v1 + .ListDescendantSecurityHealthAnalyticsCustomModulesRequest + parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.securitycentermanagement.v1.ListDescendantSecurityHealthAnalyticsCustomModulesRequest parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.cloud.securitycentermanagement.v1 + .ListDescendantSecurityHealthAnalyticsCustomModulesRequest + 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.securitycentermanagement.v1.ListDescendantSecurityHealthAnalyticsCustomModulesRequest parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.cloud.securitycentermanagement.v1 + .ListDescendantSecurityHealthAnalyticsCustomModulesRequest + parseFrom(com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.securitycentermanagement.v1.ListDescendantSecurityHealthAnalyticsCustomModulesRequest parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.cloud.securitycentermanagement.v1 + .ListDescendantSecurityHealthAnalyticsCustomModulesRequest + parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.securitycentermanagement.v1.ListDescendantSecurityHealthAnalyticsCustomModulesRequest parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.cloud.securitycentermanagement.v1 + .ListDescendantSecurityHealthAnalyticsCustomModulesRequest + parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.securitycentermanagement.v1.ListDescendantSecurityHealthAnalyticsCustomModulesRequest parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.cloud.securitycentermanagement.v1 + .ListDescendantSecurityHealthAnalyticsCustomModulesRequest + parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.securitycentermanagement.v1.ListDescendantSecurityHealthAnalyticsCustomModulesRequest parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.securitycentermanagement.v1 + .ListDescendantSecurityHealthAnalyticsCustomModulesRequest + parseFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } - public static com.google.cloud.securitycentermanagement.v1.ListDescendantSecurityHealthAnalyticsCustomModulesRequest 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.securitycentermanagement.v1 + .ListDescendantSecurityHealthAnalyticsCustomModulesRequest + 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.securitycentermanagement.v1.ListDescendantSecurityHealthAnalyticsCustomModulesRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.securitycentermanagement.v1 + .ListDescendantSecurityHealthAnalyticsCustomModulesRequest + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.securitycentermanagement.v1.ListDescendantSecurityHealthAnalyticsCustomModulesRequest parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + public static com.google.cloud.securitycentermanagement.v1 + .ListDescendantSecurityHealthAnalyticsCustomModulesRequest + parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.securitycentermanagement.v1.ListDescendantSecurityHealthAnalyticsCustomModulesRequest parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.securitycentermanagement.v1 + .ListDescendantSecurityHealthAnalyticsCustomModulesRequest + parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } - public static com.google.cloud.securitycentermanagement.v1.ListDescendantSecurityHealthAnalyticsCustomModulesRequest 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.securitycentermanagement.v1 + .ListDescendantSecurityHealthAnalyticsCustomModulesRequest + 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.securitycentermanagement.v1.ListDescendantSecurityHealthAnalyticsCustomModulesRequest prototype) { + + public static Builder newBuilder( + com.google.cloud.securitycentermanagement.v1 + .ListDescendantSecurityHealthAnalyticsCustomModulesRequest + prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected 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 listing descendant Security Health Analytics custom
    * modules.
    * 
* - * Protobuf type {@code google.cloud.securitycentermanagement.v1.ListDescendantSecurityHealthAnalyticsCustomModulesRequest} + * Protobuf type {@code + * google.cloud.securitycentermanagement.v1.ListDescendantSecurityHealthAnalyticsCustomModulesRequest} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.securitycentermanagement.v1.ListDescendantSecurityHealthAnalyticsCustomModulesRequest) - com.google.cloud.securitycentermanagement.v1.ListDescendantSecurityHealthAnalyticsCustomModulesRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.securitycentermanagement.v1.SecurityCenterManagementProto.internal_static_google_cloud_securitycentermanagement_v1_ListDescendantSecurityHealthAnalyticsCustomModulesRequest_descriptor; + com.google.cloud.securitycentermanagement.v1 + .ListDescendantSecurityHealthAnalyticsCustomModulesRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.securitycentermanagement.v1.SecurityCenterManagementProto + .internal_static_google_cloud_securitycentermanagement_v1_ListDescendantSecurityHealthAnalyticsCustomModulesRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.securitycentermanagement.v1.SecurityCenterManagementProto.internal_static_google_cloud_securitycentermanagement_v1_ListDescendantSecurityHealthAnalyticsCustomModulesRequest_fieldAccessorTable + return com.google.cloud.securitycentermanagement.v1.SecurityCenterManagementProto + .internal_static_google_cloud_securitycentermanagement_v1_ListDescendantSecurityHealthAnalyticsCustomModulesRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.securitycentermanagement.v1.ListDescendantSecurityHealthAnalyticsCustomModulesRequest.class, com.google.cloud.securitycentermanagement.v1.ListDescendantSecurityHealthAnalyticsCustomModulesRequest.Builder.class); + com.google.cloud.securitycentermanagement.v1 + .ListDescendantSecurityHealthAnalyticsCustomModulesRequest.class, + com.google.cloud.securitycentermanagement.v1 + .ListDescendantSecurityHealthAnalyticsCustomModulesRequest.Builder.class); } - // Construct using com.google.cloud.securitycentermanagement.v1.ListDescendantSecurityHealthAnalyticsCustomModulesRequest.newBuilder() - private Builder() { + // Construct using + // com.google.cloud.securitycentermanagement.v1.ListDescendantSecurityHealthAnalyticsCustomModulesRequest.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(); @@ -386,19 +459,26 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.securitycentermanagement.v1.SecurityCenterManagementProto.internal_static_google_cloud_securitycentermanagement_v1_ListDescendantSecurityHealthAnalyticsCustomModulesRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.securitycentermanagement.v1.SecurityCenterManagementProto + .internal_static_google_cloud_securitycentermanagement_v1_ListDescendantSecurityHealthAnalyticsCustomModulesRequest_descriptor; } @java.lang.Override - public com.google.cloud.securitycentermanagement.v1.ListDescendantSecurityHealthAnalyticsCustomModulesRequest getDefaultInstanceForType() { - return com.google.cloud.securitycentermanagement.v1.ListDescendantSecurityHealthAnalyticsCustomModulesRequest.getDefaultInstance(); + public com.google.cloud.securitycentermanagement.v1 + .ListDescendantSecurityHealthAnalyticsCustomModulesRequest + getDefaultInstanceForType() { + return com.google.cloud.securitycentermanagement.v1 + .ListDescendantSecurityHealthAnalyticsCustomModulesRequest.getDefaultInstance(); } @java.lang.Override - public com.google.cloud.securitycentermanagement.v1.ListDescendantSecurityHealthAnalyticsCustomModulesRequest build() { - com.google.cloud.securitycentermanagement.v1.ListDescendantSecurityHealthAnalyticsCustomModulesRequest result = buildPartial(); + public com.google.cloud.securitycentermanagement.v1 + .ListDescendantSecurityHealthAnalyticsCustomModulesRequest + build() { + com.google.cloud.securitycentermanagement.v1 + .ListDescendantSecurityHealthAnalyticsCustomModulesRequest + result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } @@ -406,14 +486,25 @@ public com.google.cloud.securitycentermanagement.v1.ListDescendantSecurityHealth } @java.lang.Override - public com.google.cloud.securitycentermanagement.v1.ListDescendantSecurityHealthAnalyticsCustomModulesRequest buildPartial() { - com.google.cloud.securitycentermanagement.v1.ListDescendantSecurityHealthAnalyticsCustomModulesRequest result = new com.google.cloud.securitycentermanagement.v1.ListDescendantSecurityHealthAnalyticsCustomModulesRequest(this); - if (bitField0_ != 0) { buildPartial0(result); } + public com.google.cloud.securitycentermanagement.v1 + .ListDescendantSecurityHealthAnalyticsCustomModulesRequest + buildPartial() { + com.google.cloud.securitycentermanagement.v1 + .ListDescendantSecurityHealthAnalyticsCustomModulesRequest + result = + new com.google.cloud.securitycentermanagement.v1 + .ListDescendantSecurityHealthAnalyticsCustomModulesRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } - private void buildPartial0(com.google.cloud.securitycentermanagement.v1.ListDescendantSecurityHealthAnalyticsCustomModulesRequest result) { + private void buildPartial0( + com.google.cloud.securitycentermanagement.v1 + .ListDescendantSecurityHealthAnalyticsCustomModulesRequest + result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000001) != 0)) { result.parent_ = parent_; @@ -430,46 +521,59 @@ private void buildPartial0(com.google.cloud.securitycentermanagement.v1.ListDesc public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.cloud.securitycentermanagement.v1.ListDescendantSecurityHealthAnalyticsCustomModulesRequest) { - return mergeFrom((com.google.cloud.securitycentermanagement.v1.ListDescendantSecurityHealthAnalyticsCustomModulesRequest)other); + if (other + instanceof + com.google.cloud.securitycentermanagement.v1 + .ListDescendantSecurityHealthAnalyticsCustomModulesRequest) { + return mergeFrom( + (com.google.cloud.securitycentermanagement.v1 + .ListDescendantSecurityHealthAnalyticsCustomModulesRequest) + other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom(com.google.cloud.securitycentermanagement.v1.ListDescendantSecurityHealthAnalyticsCustomModulesRequest other) { - if (other == com.google.cloud.securitycentermanagement.v1.ListDescendantSecurityHealthAnalyticsCustomModulesRequest.getDefaultInstance()) return this; + public Builder mergeFrom( + com.google.cloud.securitycentermanagement.v1 + .ListDescendantSecurityHealthAnalyticsCustomModulesRequest + other) { + if (other + == com.google.cloud.securitycentermanagement.v1 + .ListDescendantSecurityHealthAnalyticsCustomModulesRequest.getDefaultInstance()) + return this; if (!other.getParent().isEmpty()) { parent_ = other.parent_; bitField0_ |= 0x00000001; @@ -509,27 +613,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) { @@ -539,10 +647,13 @@ public Builder mergeFrom( } // finally return this; } + private int bitField0_; private java.lang.Object parent_ = ""; /** + * + * *
      * Required. Name of parent to list custom modules. Its format is
      * "organizations/{organization}/locations/{location}",
@@ -551,14 +662,16 @@ public Builder mergeFrom(
      * "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; @@ -567,6 +680,8 @@ public java.lang.String getParent() { } } /** + * + * *
      * Required. Name of parent to list custom modules. Its format is
      * "organizations/{organization}/locations/{location}",
@@ -575,16 +690,17 @@ public java.lang.String getParent() {
      * "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 { @@ -592,6 +708,8 @@ public java.lang.String getParent() { } } /** + * + * *
      * Required. Name of parent to list custom modules. Its format is
      * "organizations/{organization}/locations/{location}",
@@ -600,19 +718,25 @@ public java.lang.String getParent() {
      * "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. Name of parent to list custom modules. Its format is
      * "organizations/{organization}/locations/{location}",
@@ -621,7 +745,10 @@ public Builder setParent(
      * "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() { @@ -631,6 +758,8 @@ public Builder clearParent() { return this; } /** + * + * *
      * Required. Name of parent to list custom modules. Its format is
      * "organizations/{organization}/locations/{location}",
@@ -639,13 +768,17 @@ public Builder clearParent() {
      * "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; @@ -653,14 +786,17 @@ public Builder setParentBytes( return this; } - private int pageSize_ ; + private int pageSize_; /** + * + * *
      * Optional. The maximum number of results to return in a single response.
      * Default is 10, minimum is 1, maximum is 1000.
      * 
* * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The pageSize. */ @java.lang.Override @@ -668,12 +804,15 @@ public int getPageSize() { return pageSize_; } /** + * + * *
      * Optional. The maximum number of results to return in a single response.
      * Default is 10, minimum is 1, maximum is 1000.
      * 
* * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @param value The pageSize to set. * @return This builder for chaining. */ @@ -685,12 +824,15 @@ public Builder setPageSize(int value) { return this; } /** + * + * *
      * Optional. The maximum number of results to return in a single response.
      * Default is 10, minimum is 1, maximum is 1000.
      * 
* * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @return This builder for chaining. */ public Builder clearPageSize() { @@ -702,18 +844,20 @@ public Builder clearPageSize() { private java.lang.Object pageToken_ = ""; /** + * + * *
      * Optional. A token identifying a page of results the server should return.
      * 
* * 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; @@ -722,20 +866,21 @@ public java.lang.String getPageToken() { } } /** + * + * *
      * Optional. A token identifying a page of results the server should return.
      * 
* * 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 { @@ -743,28 +888,35 @@ public java.lang.String getPageToken() { } } /** + * + * *
      * Optional. A token identifying a page of results the server should return.
      * 
* * 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. A token identifying a page of results the server should return.
      * 
* * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @return This builder for chaining. */ public Builder clearPageToken() { @@ -774,26 +926,30 @@ public Builder clearPageToken() { return this; } /** + * + * *
      * Optional. A token identifying a page of results the server should return.
      * 
* * 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); } @@ -803,55 +959,68 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.securitycentermanagement.v1.ListDescendantSecurityHealthAnalyticsCustomModulesRequest) } // @@protoc_insertion_point(class_scope:google.cloud.securitycentermanagement.v1.ListDescendantSecurityHealthAnalyticsCustomModulesRequest) - private static final com.google.cloud.securitycentermanagement.v1.ListDescendantSecurityHealthAnalyticsCustomModulesRequest DEFAULT_INSTANCE; + private static final com.google.cloud.securitycentermanagement.v1 + .ListDescendantSecurityHealthAnalyticsCustomModulesRequest + DEFAULT_INSTANCE; + static { - DEFAULT_INSTANCE = new com.google.cloud.securitycentermanagement.v1.ListDescendantSecurityHealthAnalyticsCustomModulesRequest(); + DEFAULT_INSTANCE = + new com.google.cloud.securitycentermanagement.v1 + .ListDescendantSecurityHealthAnalyticsCustomModulesRequest(); } - public static com.google.cloud.securitycentermanagement.v1.ListDescendantSecurityHealthAnalyticsCustomModulesRequest getDefaultInstance() { + public static com.google.cloud.securitycentermanagement.v1 + .ListDescendantSecurityHealthAnalyticsCustomModulesRequest + getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ListDescendantSecurityHealthAnalyticsCustomModulesRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser< + ListDescendantSecurityHealthAnalyticsCustomModulesRequest> + PARSER = + new com.google.protobuf.AbstractParser< + ListDescendantSecurityHealthAnalyticsCustomModulesRequest>() { + @java.lang.Override + public ListDescendantSecurityHealthAnalyticsCustomModulesRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException() + .setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; - public static com.google.protobuf.Parser parser() { + public static com.google.protobuf.Parser< + ListDescendantSecurityHealthAnalyticsCustomModulesRequest> + parser() { return PARSER; } @java.lang.Override - public com.google.protobuf.Parser getParserForType() { + public com.google.protobuf.Parser + getParserForType() { return PARSER; } @java.lang.Override - public com.google.cloud.securitycentermanagement.v1.ListDescendantSecurityHealthAnalyticsCustomModulesRequest getDefaultInstanceForType() { + public com.google.cloud.securitycentermanagement.v1 + .ListDescendantSecurityHealthAnalyticsCustomModulesRequest + getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/java-securitycentermanagement/v1/proto-google-cloud-securitycentermanagement-v1/src/main/java/com/google/cloud/securitycentermanagement/v1/ListDescendantSecurityHealthAnalyticsCustomModulesRequestOrBuilder.java b/java-securitycentermanagement/proto-google-cloud-securitycentermanagement-v1/src/main/java/com/google/cloud/securitycentermanagement/v1/ListDescendantSecurityHealthAnalyticsCustomModulesRequestOrBuilder.java similarity index 63% rename from owl-bot-staging/java-securitycentermanagement/v1/proto-google-cloud-securitycentermanagement-v1/src/main/java/com/google/cloud/securitycentermanagement/v1/ListDescendantSecurityHealthAnalyticsCustomModulesRequestOrBuilder.java rename to java-securitycentermanagement/proto-google-cloud-securitycentermanagement-v1/src/main/java/com/google/cloud/securitycentermanagement/v1/ListDescendantSecurityHealthAnalyticsCustomModulesRequestOrBuilder.java index a9d1d2dcc876..bcefe46acd01 100644 --- a/owl-bot-staging/java-securitycentermanagement/v1/proto-google-cloud-securitycentermanagement-v1/src/main/java/com/google/cloud/securitycentermanagement/v1/ListDescendantSecurityHealthAnalyticsCustomModulesRequestOrBuilder.java +++ b/java-securitycentermanagement/proto-google-cloud-securitycentermanagement-v1/src/main/java/com/google/cloud/securitycentermanagement/v1/ListDescendantSecurityHealthAnalyticsCustomModulesRequestOrBuilder.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/securitycentermanagement/v1/security_center_management.proto package com.google.cloud.securitycentermanagement.v1; -public interface ListDescendantSecurityHealthAnalyticsCustomModulesRequestOrBuilder extends +public interface ListDescendantSecurityHealthAnalyticsCustomModulesRequestOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.securitycentermanagement.v1.ListDescendantSecurityHealthAnalyticsCustomModulesRequest) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * Required. Name of parent to list custom modules. Its format is
    * "organizations/{organization}/locations/{location}",
@@ -16,11 +34,16 @@ public interface ListDescendantSecurityHealthAnalyticsCustomModulesRequestOrBuil
    * "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. Name of parent to list custom modules. Its format is
    * "organizations/{organization}/locations/{location}",
@@ -29,40 +52,50 @@ public interface ListDescendantSecurityHealthAnalyticsCustomModulesRequestOrBuil
    * "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(); /** + * + * *
    * Optional. The maximum number of results to return in a single response.
    * Default is 10, minimum is 1, maximum is 1000.
    * 
* * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The pageSize. */ int getPageSize(); /** + * + * *
    * Optional. A token identifying a page of results the server should return.
    * 
* * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The pageToken. */ java.lang.String getPageToken(); /** + * + * *
    * Optional. A token identifying a page of results the server should return.
    * 
* * 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-securitycentermanagement/proto-google-cloud-securitycentermanagement-v1/src/main/java/com/google/cloud/securitycentermanagement/v1/ListDescendantSecurityHealthAnalyticsCustomModulesResponse.java b/java-securitycentermanagement/proto-google-cloud-securitycentermanagement-v1/src/main/java/com/google/cloud/securitycentermanagement/v1/ListDescendantSecurityHealthAnalyticsCustomModulesResponse.java new file mode 100644 index 000000000000..d681859a71e1 --- /dev/null +++ b/java-securitycentermanagement/proto-google-cloud-securitycentermanagement-v1/src/main/java/com/google/cloud/securitycentermanagement/v1/ListDescendantSecurityHealthAnalyticsCustomModulesResponse.java @@ -0,0 +1,1310 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/securitycentermanagement/v1/security_center_management.proto + +package com.google.cloud.securitycentermanagement.v1; + +/** + * + * + *
+ * Response message for listing descendant Security Health Analytics custom
+ * modules.
+ * 
+ * + * Protobuf type {@code + * google.cloud.securitycentermanagement.v1.ListDescendantSecurityHealthAnalyticsCustomModulesResponse} + */ +public final class ListDescendantSecurityHealthAnalyticsCustomModulesResponse + extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.securitycentermanagement.v1.ListDescendantSecurityHealthAnalyticsCustomModulesResponse) + ListDescendantSecurityHealthAnalyticsCustomModulesResponseOrBuilder { + private static final long serialVersionUID = 0L; + // Use ListDescendantSecurityHealthAnalyticsCustomModulesResponse.newBuilder() to construct. + private ListDescendantSecurityHealthAnalyticsCustomModulesResponse( + com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private ListDescendantSecurityHealthAnalyticsCustomModulesResponse() { + securityHealthAnalyticsCustomModules_ = java.util.Collections.emptyList(); + nextPageToken_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new ListDescendantSecurityHealthAnalyticsCustomModulesResponse(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.securitycentermanagement.v1.SecurityCenterManagementProto + .internal_static_google_cloud_securitycentermanagement_v1_ListDescendantSecurityHealthAnalyticsCustomModulesResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.securitycentermanagement.v1.SecurityCenterManagementProto + .internal_static_google_cloud_securitycentermanagement_v1_ListDescendantSecurityHealthAnalyticsCustomModulesResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.securitycentermanagement.v1 + .ListDescendantSecurityHealthAnalyticsCustomModulesResponse.class, + com.google.cloud.securitycentermanagement.v1 + .ListDescendantSecurityHealthAnalyticsCustomModulesResponse.Builder.class); + } + + public static final int SECURITY_HEALTH_ANALYTICS_CUSTOM_MODULES_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private java.util.List< + com.google.cloud.securitycentermanagement.v1.SecurityHealthAnalyticsCustomModule> + securityHealthAnalyticsCustomModules_; + /** + * + * + *
+   * The list of SecurityHealthAnalyticsCustomModules
+   * 
+ * + * + * repeated .google.cloud.securitycentermanagement.v1.SecurityHealthAnalyticsCustomModule security_health_analytics_custom_modules = 1; + * + */ + @java.lang.Override + public java.util.List< + com.google.cloud.securitycentermanagement.v1.SecurityHealthAnalyticsCustomModule> + getSecurityHealthAnalyticsCustomModulesList() { + return securityHealthAnalyticsCustomModules_; + } + /** + * + * + *
+   * The list of SecurityHealthAnalyticsCustomModules
+   * 
+ * + * + * repeated .google.cloud.securitycentermanagement.v1.SecurityHealthAnalyticsCustomModule security_health_analytics_custom_modules = 1; + * + */ + @java.lang.Override + public java.util.List< + ? extends + com.google.cloud.securitycentermanagement.v1 + .SecurityHealthAnalyticsCustomModuleOrBuilder> + getSecurityHealthAnalyticsCustomModulesOrBuilderList() { + return securityHealthAnalyticsCustomModules_; + } + /** + * + * + *
+   * The list of SecurityHealthAnalyticsCustomModules
+   * 
+ * + * + * repeated .google.cloud.securitycentermanagement.v1.SecurityHealthAnalyticsCustomModule security_health_analytics_custom_modules = 1; + * + */ + @java.lang.Override + public int getSecurityHealthAnalyticsCustomModulesCount() { + return securityHealthAnalyticsCustomModules_.size(); + } + /** + * + * + *
+   * The list of SecurityHealthAnalyticsCustomModules
+   * 
+ * + * + * repeated .google.cloud.securitycentermanagement.v1.SecurityHealthAnalyticsCustomModule security_health_analytics_custom_modules = 1; + * + */ + @java.lang.Override + public com.google.cloud.securitycentermanagement.v1.SecurityHealthAnalyticsCustomModule + getSecurityHealthAnalyticsCustomModules(int index) { + return securityHealthAnalyticsCustomModules_.get(index); + } + /** + * + * + *
+   * The list of SecurityHealthAnalyticsCustomModules
+   * 
+ * + * + * repeated .google.cloud.securitycentermanagement.v1.SecurityHealthAnalyticsCustomModule security_health_analytics_custom_modules = 1; + * + */ + @java.lang.Override + public com.google.cloud.securitycentermanagement.v1.SecurityHealthAnalyticsCustomModuleOrBuilder + getSecurityHealthAnalyticsCustomModulesOrBuilder(int index) { + return securityHealthAnalyticsCustomModules_.get(index); + } + + public static final int NEXT_PAGE_TOKEN_FIELD_NUMBER = 2; + + @SuppressWarnings("serial") + private volatile java.lang.Object nextPageToken_ = ""; + /** + * + * + *
+   * A token identifying a page of results the server should return.
+   * 
+ * + * string next_page_token = 2; + * + * @return The nextPageToken. + */ + @java.lang.Override + public java.lang.String getNextPageToken() { + java.lang.Object ref = nextPageToken_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + nextPageToken_ = s; + return s; + } + } + /** + * + * + *
+   * A token identifying a page of results the server should return.
+   * 
+ * + * string next_page_token = 2; + * + * @return The bytes for nextPageToken. + */ + @java.lang.Override + 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); + nextPageToken_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + for (int i = 0; i < securityHealthAnalyticsCustomModules_.size(); i++) { + output.writeMessage(1, securityHealthAnalyticsCustomModules_.get(i)); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(nextPageToken_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, nextPageToken_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + for (int i = 0; i < securityHealthAnalyticsCustomModules_.size(); i++) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 1, securityHealthAnalyticsCustomModules_.get(i)); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(nextPageToken_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, nextPageToken_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj + instanceof + com.google.cloud.securitycentermanagement.v1 + .ListDescendantSecurityHealthAnalyticsCustomModulesResponse)) { + return super.equals(obj); + } + com.google.cloud.securitycentermanagement.v1 + .ListDescendantSecurityHealthAnalyticsCustomModulesResponse + other = + (com.google.cloud.securitycentermanagement.v1 + .ListDescendantSecurityHealthAnalyticsCustomModulesResponse) + obj; + + if (!getSecurityHealthAnalyticsCustomModulesList() + .equals(other.getSecurityHealthAnalyticsCustomModulesList())) return false; + if (!getNextPageToken().equals(other.getNextPageToken())) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (getSecurityHealthAnalyticsCustomModulesCount() > 0) { + hash = (37 * hash) + SECURITY_HEALTH_ANALYTICS_CUSTOM_MODULES_FIELD_NUMBER; + hash = (53 * hash) + getSecurityHealthAnalyticsCustomModulesList().hashCode(); + } + hash = (37 * hash) + NEXT_PAGE_TOKEN_FIELD_NUMBER; + hash = (53 * hash) + getNextPageToken().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.securitycentermanagement.v1 + .ListDescendantSecurityHealthAnalyticsCustomModulesResponse + parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.securitycentermanagement.v1 + .ListDescendantSecurityHealthAnalyticsCustomModulesResponse + 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.securitycentermanagement.v1 + .ListDescendantSecurityHealthAnalyticsCustomModulesResponse + parseFrom(com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.securitycentermanagement.v1 + .ListDescendantSecurityHealthAnalyticsCustomModulesResponse + parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.securitycentermanagement.v1 + .ListDescendantSecurityHealthAnalyticsCustomModulesResponse + parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.securitycentermanagement.v1 + .ListDescendantSecurityHealthAnalyticsCustomModulesResponse + parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.securitycentermanagement.v1 + .ListDescendantSecurityHealthAnalyticsCustomModulesResponse + parseFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.securitycentermanagement.v1 + .ListDescendantSecurityHealthAnalyticsCustomModulesResponse + 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.securitycentermanagement.v1 + .ListDescendantSecurityHealthAnalyticsCustomModulesResponse + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.securitycentermanagement.v1 + .ListDescendantSecurityHealthAnalyticsCustomModulesResponse + parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.securitycentermanagement.v1 + .ListDescendantSecurityHealthAnalyticsCustomModulesResponse + parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.securitycentermanagement.v1 + .ListDescendantSecurityHealthAnalyticsCustomModulesResponse + 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.securitycentermanagement.v1 + .ListDescendantSecurityHealthAnalyticsCustomModulesResponse + prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
+   * Response message for listing descendant Security Health Analytics custom
+   * modules.
+   * 
+ * + * Protobuf type {@code + * google.cloud.securitycentermanagement.v1.ListDescendantSecurityHealthAnalyticsCustomModulesResponse} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.securitycentermanagement.v1.ListDescendantSecurityHealthAnalyticsCustomModulesResponse) + com.google.cloud.securitycentermanagement.v1 + .ListDescendantSecurityHealthAnalyticsCustomModulesResponseOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.securitycentermanagement.v1.SecurityCenterManagementProto + .internal_static_google_cloud_securitycentermanagement_v1_ListDescendantSecurityHealthAnalyticsCustomModulesResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.securitycentermanagement.v1.SecurityCenterManagementProto + .internal_static_google_cloud_securitycentermanagement_v1_ListDescendantSecurityHealthAnalyticsCustomModulesResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.securitycentermanagement.v1 + .ListDescendantSecurityHealthAnalyticsCustomModulesResponse.class, + com.google.cloud.securitycentermanagement.v1 + .ListDescendantSecurityHealthAnalyticsCustomModulesResponse.Builder.class); + } + + // Construct using + // com.google.cloud.securitycentermanagement.v1.ListDescendantSecurityHealthAnalyticsCustomModulesResponse.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + if (securityHealthAnalyticsCustomModulesBuilder_ == null) { + securityHealthAnalyticsCustomModules_ = java.util.Collections.emptyList(); + } else { + securityHealthAnalyticsCustomModules_ = null; + securityHealthAnalyticsCustomModulesBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000001); + nextPageToken_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.securitycentermanagement.v1.SecurityCenterManagementProto + .internal_static_google_cloud_securitycentermanagement_v1_ListDescendantSecurityHealthAnalyticsCustomModulesResponse_descriptor; + } + + @java.lang.Override + public com.google.cloud.securitycentermanagement.v1 + .ListDescendantSecurityHealthAnalyticsCustomModulesResponse + getDefaultInstanceForType() { + return com.google.cloud.securitycentermanagement.v1 + .ListDescendantSecurityHealthAnalyticsCustomModulesResponse.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.securitycentermanagement.v1 + .ListDescendantSecurityHealthAnalyticsCustomModulesResponse + build() { + com.google.cloud.securitycentermanagement.v1 + .ListDescendantSecurityHealthAnalyticsCustomModulesResponse + result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.securitycentermanagement.v1 + .ListDescendantSecurityHealthAnalyticsCustomModulesResponse + buildPartial() { + com.google.cloud.securitycentermanagement.v1 + .ListDescendantSecurityHealthAnalyticsCustomModulesResponse + result = + new com.google.cloud.securitycentermanagement.v1 + .ListDescendantSecurityHealthAnalyticsCustomModulesResponse(this); + buildPartialRepeatedFields(result); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartialRepeatedFields( + com.google.cloud.securitycentermanagement.v1 + .ListDescendantSecurityHealthAnalyticsCustomModulesResponse + result) { + if (securityHealthAnalyticsCustomModulesBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0)) { + securityHealthAnalyticsCustomModules_ = + java.util.Collections.unmodifiableList(securityHealthAnalyticsCustomModules_); + bitField0_ = (bitField0_ & ~0x00000001); + } + result.securityHealthAnalyticsCustomModules_ = securityHealthAnalyticsCustomModules_; + } else { + result.securityHealthAnalyticsCustomModules_ = + securityHealthAnalyticsCustomModulesBuilder_.build(); + } + } + + private void buildPartial0( + com.google.cloud.securitycentermanagement.v1 + .ListDescendantSecurityHealthAnalyticsCustomModulesResponse + result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000002) != 0)) { + result.nextPageToken_ = nextPageToken_; + } + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other + instanceof + com.google.cloud.securitycentermanagement.v1 + .ListDescendantSecurityHealthAnalyticsCustomModulesResponse) { + return mergeFrom( + (com.google.cloud.securitycentermanagement.v1 + .ListDescendantSecurityHealthAnalyticsCustomModulesResponse) + other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.securitycentermanagement.v1 + .ListDescendantSecurityHealthAnalyticsCustomModulesResponse + other) { + if (other + == com.google.cloud.securitycentermanagement.v1 + .ListDescendantSecurityHealthAnalyticsCustomModulesResponse.getDefaultInstance()) + return this; + if (securityHealthAnalyticsCustomModulesBuilder_ == null) { + if (!other.securityHealthAnalyticsCustomModules_.isEmpty()) { + if (securityHealthAnalyticsCustomModules_.isEmpty()) { + securityHealthAnalyticsCustomModules_ = other.securityHealthAnalyticsCustomModules_; + bitField0_ = (bitField0_ & ~0x00000001); + } else { + ensureSecurityHealthAnalyticsCustomModulesIsMutable(); + securityHealthAnalyticsCustomModules_.addAll( + other.securityHealthAnalyticsCustomModules_); + } + onChanged(); + } + } else { + if (!other.securityHealthAnalyticsCustomModules_.isEmpty()) { + if (securityHealthAnalyticsCustomModulesBuilder_.isEmpty()) { + securityHealthAnalyticsCustomModulesBuilder_.dispose(); + securityHealthAnalyticsCustomModulesBuilder_ = null; + securityHealthAnalyticsCustomModules_ = other.securityHealthAnalyticsCustomModules_; + bitField0_ = (bitField0_ & ~0x00000001); + securityHealthAnalyticsCustomModulesBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getSecurityHealthAnalyticsCustomModulesFieldBuilder() + : null; + } else { + securityHealthAnalyticsCustomModulesBuilder_.addAllMessages( + other.securityHealthAnalyticsCustomModules_); + } + } + } + if (!other.getNextPageToken().isEmpty()) { + nextPageToken_ = other.nextPageToken_; + bitField0_ |= 0x00000002; + onChanged(); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + com.google.cloud.securitycentermanagement.v1.SecurityHealthAnalyticsCustomModule m = + input.readMessage( + com.google.cloud.securitycentermanagement.v1 + .SecurityHealthAnalyticsCustomModule.parser(), + extensionRegistry); + if (securityHealthAnalyticsCustomModulesBuilder_ == null) { + ensureSecurityHealthAnalyticsCustomModulesIsMutable(); + securityHealthAnalyticsCustomModules_.add(m); + } else { + securityHealthAnalyticsCustomModulesBuilder_.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) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private java.util.List< + com.google.cloud.securitycentermanagement.v1.SecurityHealthAnalyticsCustomModule> + securityHealthAnalyticsCustomModules_ = java.util.Collections.emptyList(); + + private void ensureSecurityHealthAnalyticsCustomModulesIsMutable() { + if (!((bitField0_ & 0x00000001) != 0)) { + securityHealthAnalyticsCustomModules_ = + new java.util.ArrayList< + com.google.cloud.securitycentermanagement.v1.SecurityHealthAnalyticsCustomModule>( + securityHealthAnalyticsCustomModules_); + bitField0_ |= 0x00000001; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.securitycentermanagement.v1.SecurityHealthAnalyticsCustomModule, + com.google.cloud.securitycentermanagement.v1.SecurityHealthAnalyticsCustomModule + .Builder, + com.google.cloud.securitycentermanagement.v1 + .SecurityHealthAnalyticsCustomModuleOrBuilder> + securityHealthAnalyticsCustomModulesBuilder_; + + /** + * + * + *
+     * The list of SecurityHealthAnalyticsCustomModules
+     * 
+ * + * + * repeated .google.cloud.securitycentermanagement.v1.SecurityHealthAnalyticsCustomModule security_health_analytics_custom_modules = 1; + * + */ + public java.util.List< + com.google.cloud.securitycentermanagement.v1.SecurityHealthAnalyticsCustomModule> + getSecurityHealthAnalyticsCustomModulesList() { + if (securityHealthAnalyticsCustomModulesBuilder_ == null) { + return java.util.Collections.unmodifiableList(securityHealthAnalyticsCustomModules_); + } else { + return securityHealthAnalyticsCustomModulesBuilder_.getMessageList(); + } + } + /** + * + * + *
+     * The list of SecurityHealthAnalyticsCustomModules
+     * 
+ * + * + * repeated .google.cloud.securitycentermanagement.v1.SecurityHealthAnalyticsCustomModule security_health_analytics_custom_modules = 1; + * + */ + public int getSecurityHealthAnalyticsCustomModulesCount() { + if (securityHealthAnalyticsCustomModulesBuilder_ == null) { + return securityHealthAnalyticsCustomModules_.size(); + } else { + return securityHealthAnalyticsCustomModulesBuilder_.getCount(); + } + } + /** + * + * + *
+     * The list of SecurityHealthAnalyticsCustomModules
+     * 
+ * + * + * repeated .google.cloud.securitycentermanagement.v1.SecurityHealthAnalyticsCustomModule security_health_analytics_custom_modules = 1; + * + */ + public com.google.cloud.securitycentermanagement.v1.SecurityHealthAnalyticsCustomModule + getSecurityHealthAnalyticsCustomModules(int index) { + if (securityHealthAnalyticsCustomModulesBuilder_ == null) { + return securityHealthAnalyticsCustomModules_.get(index); + } else { + return securityHealthAnalyticsCustomModulesBuilder_.getMessage(index); + } + } + /** + * + * + *
+     * The list of SecurityHealthAnalyticsCustomModules
+     * 
+ * + * + * repeated .google.cloud.securitycentermanagement.v1.SecurityHealthAnalyticsCustomModule security_health_analytics_custom_modules = 1; + * + */ + public Builder setSecurityHealthAnalyticsCustomModules( + int index, + com.google.cloud.securitycentermanagement.v1.SecurityHealthAnalyticsCustomModule value) { + if (securityHealthAnalyticsCustomModulesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureSecurityHealthAnalyticsCustomModulesIsMutable(); + securityHealthAnalyticsCustomModules_.set(index, value); + onChanged(); + } else { + securityHealthAnalyticsCustomModulesBuilder_.setMessage(index, value); + } + return this; + } + /** + * + * + *
+     * The list of SecurityHealthAnalyticsCustomModules
+     * 
+ * + * + * repeated .google.cloud.securitycentermanagement.v1.SecurityHealthAnalyticsCustomModule security_health_analytics_custom_modules = 1; + * + */ + public Builder setSecurityHealthAnalyticsCustomModules( + int index, + com.google.cloud.securitycentermanagement.v1.SecurityHealthAnalyticsCustomModule.Builder + builderForValue) { + if (securityHealthAnalyticsCustomModulesBuilder_ == null) { + ensureSecurityHealthAnalyticsCustomModulesIsMutable(); + securityHealthAnalyticsCustomModules_.set(index, builderForValue.build()); + onChanged(); + } else { + securityHealthAnalyticsCustomModulesBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * The list of SecurityHealthAnalyticsCustomModules
+     * 
+ * + * + * repeated .google.cloud.securitycentermanagement.v1.SecurityHealthAnalyticsCustomModule security_health_analytics_custom_modules = 1; + * + */ + public Builder addSecurityHealthAnalyticsCustomModules( + com.google.cloud.securitycentermanagement.v1.SecurityHealthAnalyticsCustomModule value) { + if (securityHealthAnalyticsCustomModulesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureSecurityHealthAnalyticsCustomModulesIsMutable(); + securityHealthAnalyticsCustomModules_.add(value); + onChanged(); + } else { + securityHealthAnalyticsCustomModulesBuilder_.addMessage(value); + } + return this; + } + /** + * + * + *
+     * The list of SecurityHealthAnalyticsCustomModules
+     * 
+ * + * + * repeated .google.cloud.securitycentermanagement.v1.SecurityHealthAnalyticsCustomModule security_health_analytics_custom_modules = 1; + * + */ + public Builder addSecurityHealthAnalyticsCustomModules( + int index, + com.google.cloud.securitycentermanagement.v1.SecurityHealthAnalyticsCustomModule value) { + if (securityHealthAnalyticsCustomModulesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureSecurityHealthAnalyticsCustomModulesIsMutable(); + securityHealthAnalyticsCustomModules_.add(index, value); + onChanged(); + } else { + securityHealthAnalyticsCustomModulesBuilder_.addMessage(index, value); + } + return this; + } + /** + * + * + *
+     * The list of SecurityHealthAnalyticsCustomModules
+     * 
+ * + * + * repeated .google.cloud.securitycentermanagement.v1.SecurityHealthAnalyticsCustomModule security_health_analytics_custom_modules = 1; + * + */ + public Builder addSecurityHealthAnalyticsCustomModules( + com.google.cloud.securitycentermanagement.v1.SecurityHealthAnalyticsCustomModule.Builder + builderForValue) { + if (securityHealthAnalyticsCustomModulesBuilder_ == null) { + ensureSecurityHealthAnalyticsCustomModulesIsMutable(); + securityHealthAnalyticsCustomModules_.add(builderForValue.build()); + onChanged(); + } else { + securityHealthAnalyticsCustomModulesBuilder_.addMessage(builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * The list of SecurityHealthAnalyticsCustomModules
+     * 
+ * + * + * repeated .google.cloud.securitycentermanagement.v1.SecurityHealthAnalyticsCustomModule security_health_analytics_custom_modules = 1; + * + */ + public Builder addSecurityHealthAnalyticsCustomModules( + int index, + com.google.cloud.securitycentermanagement.v1.SecurityHealthAnalyticsCustomModule.Builder + builderForValue) { + if (securityHealthAnalyticsCustomModulesBuilder_ == null) { + ensureSecurityHealthAnalyticsCustomModulesIsMutable(); + securityHealthAnalyticsCustomModules_.add(index, builderForValue.build()); + onChanged(); + } else { + securityHealthAnalyticsCustomModulesBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * The list of SecurityHealthAnalyticsCustomModules
+     * 
+ * + * + * repeated .google.cloud.securitycentermanagement.v1.SecurityHealthAnalyticsCustomModule security_health_analytics_custom_modules = 1; + * + */ + public Builder addAllSecurityHealthAnalyticsCustomModules( + java.lang.Iterable< + ? extends + com.google.cloud.securitycentermanagement.v1 + .SecurityHealthAnalyticsCustomModule> + values) { + if (securityHealthAnalyticsCustomModulesBuilder_ == null) { + ensureSecurityHealthAnalyticsCustomModulesIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, securityHealthAnalyticsCustomModules_); + onChanged(); + } else { + securityHealthAnalyticsCustomModulesBuilder_.addAllMessages(values); + } + return this; + } + /** + * + * + *
+     * The list of SecurityHealthAnalyticsCustomModules
+     * 
+ * + * + * repeated .google.cloud.securitycentermanagement.v1.SecurityHealthAnalyticsCustomModule security_health_analytics_custom_modules = 1; + * + */ + public Builder clearSecurityHealthAnalyticsCustomModules() { + if (securityHealthAnalyticsCustomModulesBuilder_ == null) { + securityHealthAnalyticsCustomModules_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + } else { + securityHealthAnalyticsCustomModulesBuilder_.clear(); + } + return this; + } + /** + * + * + *
+     * The list of SecurityHealthAnalyticsCustomModules
+     * 
+ * + * + * repeated .google.cloud.securitycentermanagement.v1.SecurityHealthAnalyticsCustomModule security_health_analytics_custom_modules = 1; + * + */ + public Builder removeSecurityHealthAnalyticsCustomModules(int index) { + if (securityHealthAnalyticsCustomModulesBuilder_ == null) { + ensureSecurityHealthAnalyticsCustomModulesIsMutable(); + securityHealthAnalyticsCustomModules_.remove(index); + onChanged(); + } else { + securityHealthAnalyticsCustomModulesBuilder_.remove(index); + } + return this; + } + /** + * + * + *
+     * The list of SecurityHealthAnalyticsCustomModules
+     * 
+ * + * + * repeated .google.cloud.securitycentermanagement.v1.SecurityHealthAnalyticsCustomModule security_health_analytics_custom_modules = 1; + * + */ + public com.google.cloud.securitycentermanagement.v1.SecurityHealthAnalyticsCustomModule.Builder + getSecurityHealthAnalyticsCustomModulesBuilder(int index) { + return getSecurityHealthAnalyticsCustomModulesFieldBuilder().getBuilder(index); + } + /** + * + * + *
+     * The list of SecurityHealthAnalyticsCustomModules
+     * 
+ * + * + * repeated .google.cloud.securitycentermanagement.v1.SecurityHealthAnalyticsCustomModule security_health_analytics_custom_modules = 1; + * + */ + public com.google.cloud.securitycentermanagement.v1.SecurityHealthAnalyticsCustomModuleOrBuilder + getSecurityHealthAnalyticsCustomModulesOrBuilder(int index) { + if (securityHealthAnalyticsCustomModulesBuilder_ == null) { + return securityHealthAnalyticsCustomModules_.get(index); + } else { + return securityHealthAnalyticsCustomModulesBuilder_.getMessageOrBuilder(index); + } + } + /** + * + * + *
+     * The list of SecurityHealthAnalyticsCustomModules
+     * 
+ * + * + * repeated .google.cloud.securitycentermanagement.v1.SecurityHealthAnalyticsCustomModule security_health_analytics_custom_modules = 1; + * + */ + public java.util.List< + ? extends + com.google.cloud.securitycentermanagement.v1 + .SecurityHealthAnalyticsCustomModuleOrBuilder> + getSecurityHealthAnalyticsCustomModulesOrBuilderList() { + if (securityHealthAnalyticsCustomModulesBuilder_ != null) { + return securityHealthAnalyticsCustomModulesBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(securityHealthAnalyticsCustomModules_); + } + } + /** + * + * + *
+     * The list of SecurityHealthAnalyticsCustomModules
+     * 
+ * + * + * repeated .google.cloud.securitycentermanagement.v1.SecurityHealthAnalyticsCustomModule security_health_analytics_custom_modules = 1; + * + */ + public com.google.cloud.securitycentermanagement.v1.SecurityHealthAnalyticsCustomModule.Builder + addSecurityHealthAnalyticsCustomModulesBuilder() { + return getSecurityHealthAnalyticsCustomModulesFieldBuilder() + .addBuilder( + com.google.cloud.securitycentermanagement.v1.SecurityHealthAnalyticsCustomModule + .getDefaultInstance()); + } + /** + * + * + *
+     * The list of SecurityHealthAnalyticsCustomModules
+     * 
+ * + * + * repeated .google.cloud.securitycentermanagement.v1.SecurityHealthAnalyticsCustomModule security_health_analytics_custom_modules = 1; + * + */ + public com.google.cloud.securitycentermanagement.v1.SecurityHealthAnalyticsCustomModule.Builder + addSecurityHealthAnalyticsCustomModulesBuilder(int index) { + return getSecurityHealthAnalyticsCustomModulesFieldBuilder() + .addBuilder( + index, + com.google.cloud.securitycentermanagement.v1.SecurityHealthAnalyticsCustomModule + .getDefaultInstance()); + } + /** + * + * + *
+     * The list of SecurityHealthAnalyticsCustomModules
+     * 
+ * + * + * repeated .google.cloud.securitycentermanagement.v1.SecurityHealthAnalyticsCustomModule security_health_analytics_custom_modules = 1; + * + */ + public java.util.List< + com.google.cloud.securitycentermanagement.v1.SecurityHealthAnalyticsCustomModule + .Builder> + getSecurityHealthAnalyticsCustomModulesBuilderList() { + return getSecurityHealthAnalyticsCustomModulesFieldBuilder().getBuilderList(); + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.securitycentermanagement.v1.SecurityHealthAnalyticsCustomModule, + com.google.cloud.securitycentermanagement.v1.SecurityHealthAnalyticsCustomModule + .Builder, + com.google.cloud.securitycentermanagement.v1 + .SecurityHealthAnalyticsCustomModuleOrBuilder> + getSecurityHealthAnalyticsCustomModulesFieldBuilder() { + if (securityHealthAnalyticsCustomModulesBuilder_ == null) { + securityHealthAnalyticsCustomModulesBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.securitycentermanagement.v1.SecurityHealthAnalyticsCustomModule, + com.google.cloud.securitycentermanagement.v1.SecurityHealthAnalyticsCustomModule + .Builder, + com.google.cloud.securitycentermanagement.v1 + .SecurityHealthAnalyticsCustomModuleOrBuilder>( + securityHealthAnalyticsCustomModules_, + ((bitField0_ & 0x00000001) != 0), + getParentForChildren(), + isClean()); + securityHealthAnalyticsCustomModules_ = null; + } + return securityHealthAnalyticsCustomModulesBuilder_; + } + + private java.lang.Object nextPageToken_ = ""; + /** + * + * + *
+     * A token identifying a page of results the server should return.
+     * 
+ * + * 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; + java.lang.String s = bs.toStringUtf8(); + nextPageToken_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * A token identifying a page of results the server should return.
+     * 
+ * + * string next_page_token = 2; + * + * @return The bytes for nextPageToken. + */ + 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); + nextPageToken_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * A token identifying a page of results the server should return.
+     * 
+ * + * 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(); + } + nextPageToken_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * + * + *
+     * A token identifying a page of results the server should return.
+     * 
+ * + * string next_page_token = 2; + * + * @return This builder for chaining. + */ + public Builder clearNextPageToken() { + nextPageToken_ = getDefaultInstance().getNextPageToken(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + /** + * + * + *
+     * A token identifying a page of results the server should return.
+     * 
+ * + * 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(); + } + checkByteStringIsUtf8(value); + nextPageToken_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.securitycentermanagement.v1.ListDescendantSecurityHealthAnalyticsCustomModulesResponse) + } + + // @@protoc_insertion_point(class_scope:google.cloud.securitycentermanagement.v1.ListDescendantSecurityHealthAnalyticsCustomModulesResponse) + private static final com.google.cloud.securitycentermanagement.v1 + .ListDescendantSecurityHealthAnalyticsCustomModulesResponse + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = + new com.google.cloud.securitycentermanagement.v1 + .ListDescendantSecurityHealthAnalyticsCustomModulesResponse(); + } + + public static com.google.cloud.securitycentermanagement.v1 + .ListDescendantSecurityHealthAnalyticsCustomModulesResponse + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser< + ListDescendantSecurityHealthAnalyticsCustomModulesResponse> + PARSER = + new com.google.protobuf.AbstractParser< + ListDescendantSecurityHealthAnalyticsCustomModulesResponse>() { + @java.lang.Override + public ListDescendantSecurityHealthAnalyticsCustomModulesResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException() + .setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser< + ListDescendantSecurityHealthAnalyticsCustomModulesResponse> + parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser + getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.securitycentermanagement.v1 + .ListDescendantSecurityHealthAnalyticsCustomModulesResponse + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-securitycentermanagement/proto-google-cloud-securitycentermanagement-v1/src/main/java/com/google/cloud/securitycentermanagement/v1/ListDescendantSecurityHealthAnalyticsCustomModulesResponseOrBuilder.java b/java-securitycentermanagement/proto-google-cloud-securitycentermanagement-v1/src/main/java/com/google/cloud/securitycentermanagement/v1/ListDescendantSecurityHealthAnalyticsCustomModulesResponseOrBuilder.java new file mode 100644 index 000000000000..5e8abbf87861 --- /dev/null +++ b/java-securitycentermanagement/proto-google-cloud-securitycentermanagement-v1/src/main/java/com/google/cloud/securitycentermanagement/v1/ListDescendantSecurityHealthAnalyticsCustomModulesResponseOrBuilder.java @@ -0,0 +1,118 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/securitycentermanagement/v1/security_center_management.proto + +package com.google.cloud.securitycentermanagement.v1; + +public interface ListDescendantSecurityHealthAnalyticsCustomModulesResponseOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.securitycentermanagement.v1.ListDescendantSecurityHealthAnalyticsCustomModulesResponse) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * The list of SecurityHealthAnalyticsCustomModules
+   * 
+ * + * + * repeated .google.cloud.securitycentermanagement.v1.SecurityHealthAnalyticsCustomModule security_health_analytics_custom_modules = 1; + * + */ + java.util.List + getSecurityHealthAnalyticsCustomModulesList(); + /** + * + * + *
+   * The list of SecurityHealthAnalyticsCustomModules
+   * 
+ * + * + * repeated .google.cloud.securitycentermanagement.v1.SecurityHealthAnalyticsCustomModule security_health_analytics_custom_modules = 1; + * + */ + com.google.cloud.securitycentermanagement.v1.SecurityHealthAnalyticsCustomModule + getSecurityHealthAnalyticsCustomModules(int index); + /** + * + * + *
+   * The list of SecurityHealthAnalyticsCustomModules
+   * 
+ * + * + * repeated .google.cloud.securitycentermanagement.v1.SecurityHealthAnalyticsCustomModule security_health_analytics_custom_modules = 1; + * + */ + int getSecurityHealthAnalyticsCustomModulesCount(); + /** + * + * + *
+   * The list of SecurityHealthAnalyticsCustomModules
+   * 
+ * + * + * repeated .google.cloud.securitycentermanagement.v1.SecurityHealthAnalyticsCustomModule security_health_analytics_custom_modules = 1; + * + */ + java.util.List< + ? extends + com.google.cloud.securitycentermanagement.v1 + .SecurityHealthAnalyticsCustomModuleOrBuilder> + getSecurityHealthAnalyticsCustomModulesOrBuilderList(); + /** + * + * + *
+   * The list of SecurityHealthAnalyticsCustomModules
+   * 
+ * + * + * repeated .google.cloud.securitycentermanagement.v1.SecurityHealthAnalyticsCustomModule security_health_analytics_custom_modules = 1; + * + */ + com.google.cloud.securitycentermanagement.v1.SecurityHealthAnalyticsCustomModuleOrBuilder + getSecurityHealthAnalyticsCustomModulesOrBuilder(int index); + + /** + * + * + *
+   * A token identifying a page of results the server should return.
+   * 
+ * + * string next_page_token = 2; + * + * @return The nextPageToken. + */ + java.lang.String getNextPageToken(); + /** + * + * + *
+   * A token identifying a page of results the server should return.
+   * 
+ * + * string next_page_token = 2; + * + * @return The bytes for nextPageToken. + */ + com.google.protobuf.ByteString getNextPageTokenBytes(); +} diff --git a/owl-bot-staging/java-securitycentermanagement/v1/proto-google-cloud-securitycentermanagement-v1/src/main/java/com/google/cloud/securitycentermanagement/v1/ListEffectiveEventThreatDetectionCustomModulesRequest.java b/java-securitycentermanagement/proto-google-cloud-securitycentermanagement-v1/src/main/java/com/google/cloud/securitycentermanagement/v1/ListEffectiveEventThreatDetectionCustomModulesRequest.java similarity index 52% rename from owl-bot-staging/java-securitycentermanagement/v1/proto-google-cloud-securitycentermanagement-v1/src/main/java/com/google/cloud/securitycentermanagement/v1/ListEffectiveEventThreatDetectionCustomModulesRequest.java rename to java-securitycentermanagement/proto-google-cloud-securitycentermanagement-v1/src/main/java/com/google/cloud/securitycentermanagement/v1/ListEffectiveEventThreatDetectionCustomModulesRequest.java index efc717840467..37f81387c2e4 100644 --- a/owl-bot-staging/java-securitycentermanagement/v1/proto-google-cloud-securitycentermanagement-v1/src/main/java/com/google/cloud/securitycentermanagement/v1/ListEffectiveEventThreatDetectionCustomModulesRequest.java +++ b/java-securitycentermanagement/proto-google-cloud-securitycentermanagement-v1/src/main/java/com/google/cloud/securitycentermanagement/v1/ListEffectiveEventThreatDetectionCustomModulesRequest.java @@ -1,25 +1,46 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/securitycentermanagement/v1/security_center_management.proto package com.google.cloud.securitycentermanagement.v1; /** + * + * *
  * Request message for listing effective Event Threat Detection custom
  * modules.
  * 
* - * Protobuf type {@code google.cloud.securitycentermanagement.v1.ListEffectiveEventThreatDetectionCustomModulesRequest} + * Protobuf type {@code + * google.cloud.securitycentermanagement.v1.ListEffectiveEventThreatDetectionCustomModulesRequest} */ -public final class ListEffectiveEventThreatDetectionCustomModulesRequest extends - com.google.protobuf.GeneratedMessageV3 implements +public final class ListEffectiveEventThreatDetectionCustomModulesRequest + extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.securitycentermanagement.v1.ListEffectiveEventThreatDetectionCustomModulesRequest) ListEffectiveEventThreatDetectionCustomModulesRequestOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use ListEffectiveEventThreatDetectionCustomModulesRequest.newBuilder() to construct. - private ListEffectiveEventThreatDetectionCustomModulesRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + private ListEffectiveEventThreatDetectionCustomModulesRequest( + com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private ListEffectiveEventThreatDetectionCustomModulesRequest() { parent_ = ""; pageToken_ = ""; @@ -27,28 +48,34 @@ private ListEffectiveEventThreatDetectionCustomModulesRequest() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new ListEffectiveEventThreatDetectionCustomModulesRequest(); } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.securitycentermanagement.v1.SecurityCenterManagementProto.internal_static_google_cloud_securitycentermanagement_v1_ListEffectiveEventThreatDetectionCustomModulesRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.securitycentermanagement.v1.SecurityCenterManagementProto + .internal_static_google_cloud_securitycentermanagement_v1_ListEffectiveEventThreatDetectionCustomModulesRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.securitycentermanagement.v1.SecurityCenterManagementProto.internal_static_google_cloud_securitycentermanagement_v1_ListEffectiveEventThreatDetectionCustomModulesRequest_fieldAccessorTable + return com.google.cloud.securitycentermanagement.v1.SecurityCenterManagementProto + .internal_static_google_cloud_securitycentermanagement_v1_ListEffectiveEventThreatDetectionCustomModulesRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.securitycentermanagement.v1.ListEffectiveEventThreatDetectionCustomModulesRequest.class, com.google.cloud.securitycentermanagement.v1.ListEffectiveEventThreatDetectionCustomModulesRequest.Builder.class); + com.google.cloud.securitycentermanagement.v1 + .ListEffectiveEventThreatDetectionCustomModulesRequest.class, + com.google.cloud.securitycentermanagement.v1 + .ListEffectiveEventThreatDetectionCustomModulesRequest.Builder.class); } public static final int PARENT_FIELD_NUMBER = 1; + @SuppressWarnings("serial") private volatile java.lang.Object parent_ = ""; /** + * + * *
    * Required. Name of parent to list effective custom modules. Its format is
    * "organizations/{organization}/locations/{location}",
@@ -57,7 +84,10 @@ protected java.lang.Object newInstance(
    * "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,14 +96,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. Name of parent to list effective custom modules. Its format is
    * "organizations/{organization}/locations/{location}",
@@ -82,17 +113,18 @@ public java.lang.String getParent() {
    * "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 { @@ -103,12 +135,15 @@ public java.lang.String getParent() { public static final int PAGE_SIZE_FIELD_NUMBER = 2; private int pageSize_ = 0; /** + * + * *
    * Optional. The maximum number of results to return in a single response.
    * Default is 10, minimum is 1, maximum is 1000.
    * 
* * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The pageSize. */ @java.lang.Override @@ -117,14 +152,18 @@ public int getPageSize() { } public static final int PAGE_TOKEN_FIELD_NUMBER = 3; + @SuppressWarnings("serial") private volatile java.lang.Object pageToken_ = ""; /** + * + * *
    * Optional. The value returned by the last call indicating a continuation
    * 
* * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The pageToken. */ @java.lang.Override @@ -133,29 +172,29 @@ 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. The value returned by the last call indicating a continuation
    * 
* * 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 { @@ -164,6 +203,7 @@ public java.lang.String getPageToken() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -175,8 +215,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.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_); } @@ -199,8 +238,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_); @@ -213,19 +251,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.securitycentermanagement.v1.ListEffectiveEventThreatDetectionCustomModulesRequest)) { + if (!(obj + instanceof + com.google.cloud.securitycentermanagement.v1 + .ListEffectiveEventThreatDetectionCustomModulesRequest)) { return super.equals(obj); } - com.google.cloud.securitycentermanagement.v1.ListEffectiveEventThreatDetectionCustomModulesRequest other = (com.google.cloud.securitycentermanagement.v1.ListEffectiveEventThreatDetectionCustomModulesRequest) obj; + com.google.cloud.securitycentermanagement.v1 + .ListEffectiveEventThreatDetectionCustomModulesRequest + other = + (com.google.cloud.securitycentermanagement.v1 + .ListEffectiveEventThreatDetectionCustomModulesRequest) + 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; } @@ -248,133 +291,163 @@ public int hashCode() { return hash; } - public static com.google.cloud.securitycentermanagement.v1.ListEffectiveEventThreatDetectionCustomModulesRequest parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.securitycentermanagement.v1 + .ListEffectiveEventThreatDetectionCustomModulesRequest + parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.securitycentermanagement.v1.ListEffectiveEventThreatDetectionCustomModulesRequest parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.cloud.securitycentermanagement.v1 + .ListEffectiveEventThreatDetectionCustomModulesRequest + 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.securitycentermanagement.v1.ListEffectiveEventThreatDetectionCustomModulesRequest parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.cloud.securitycentermanagement.v1 + .ListEffectiveEventThreatDetectionCustomModulesRequest + parseFrom(com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.securitycentermanagement.v1.ListEffectiveEventThreatDetectionCustomModulesRequest parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.cloud.securitycentermanagement.v1 + .ListEffectiveEventThreatDetectionCustomModulesRequest + parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.securitycentermanagement.v1.ListEffectiveEventThreatDetectionCustomModulesRequest parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.cloud.securitycentermanagement.v1 + .ListEffectiveEventThreatDetectionCustomModulesRequest + parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.securitycentermanagement.v1.ListEffectiveEventThreatDetectionCustomModulesRequest parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.cloud.securitycentermanagement.v1 + .ListEffectiveEventThreatDetectionCustomModulesRequest + parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.securitycentermanagement.v1.ListEffectiveEventThreatDetectionCustomModulesRequest parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.securitycentermanagement.v1 + .ListEffectiveEventThreatDetectionCustomModulesRequest + parseFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } - public static com.google.cloud.securitycentermanagement.v1.ListEffectiveEventThreatDetectionCustomModulesRequest 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.securitycentermanagement.v1 + .ListEffectiveEventThreatDetectionCustomModulesRequest + 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.securitycentermanagement.v1.ListEffectiveEventThreatDetectionCustomModulesRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.securitycentermanagement.v1 + .ListEffectiveEventThreatDetectionCustomModulesRequest + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.securitycentermanagement.v1.ListEffectiveEventThreatDetectionCustomModulesRequest parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + public static com.google.cloud.securitycentermanagement.v1 + .ListEffectiveEventThreatDetectionCustomModulesRequest + parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.securitycentermanagement.v1.ListEffectiveEventThreatDetectionCustomModulesRequest parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.securitycentermanagement.v1 + .ListEffectiveEventThreatDetectionCustomModulesRequest + parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } - public static com.google.cloud.securitycentermanagement.v1.ListEffectiveEventThreatDetectionCustomModulesRequest 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.securitycentermanagement.v1 + .ListEffectiveEventThreatDetectionCustomModulesRequest + 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.securitycentermanagement.v1.ListEffectiveEventThreatDetectionCustomModulesRequest prototype) { + + public static Builder newBuilder( + com.google.cloud.securitycentermanagement.v1 + .ListEffectiveEventThreatDetectionCustomModulesRequest + prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected 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 listing effective Event Threat Detection custom
    * modules.
    * 
* - * Protobuf type {@code google.cloud.securitycentermanagement.v1.ListEffectiveEventThreatDetectionCustomModulesRequest} + * Protobuf type {@code + * google.cloud.securitycentermanagement.v1.ListEffectiveEventThreatDetectionCustomModulesRequest} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.securitycentermanagement.v1.ListEffectiveEventThreatDetectionCustomModulesRequest) - com.google.cloud.securitycentermanagement.v1.ListEffectiveEventThreatDetectionCustomModulesRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.securitycentermanagement.v1.SecurityCenterManagementProto.internal_static_google_cloud_securitycentermanagement_v1_ListEffectiveEventThreatDetectionCustomModulesRequest_descriptor; + com.google.cloud.securitycentermanagement.v1 + .ListEffectiveEventThreatDetectionCustomModulesRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.securitycentermanagement.v1.SecurityCenterManagementProto + .internal_static_google_cloud_securitycentermanagement_v1_ListEffectiveEventThreatDetectionCustomModulesRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.securitycentermanagement.v1.SecurityCenterManagementProto.internal_static_google_cloud_securitycentermanagement_v1_ListEffectiveEventThreatDetectionCustomModulesRequest_fieldAccessorTable + return com.google.cloud.securitycentermanagement.v1.SecurityCenterManagementProto + .internal_static_google_cloud_securitycentermanagement_v1_ListEffectiveEventThreatDetectionCustomModulesRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.securitycentermanagement.v1.ListEffectiveEventThreatDetectionCustomModulesRequest.class, com.google.cloud.securitycentermanagement.v1.ListEffectiveEventThreatDetectionCustomModulesRequest.Builder.class); + com.google.cloud.securitycentermanagement.v1 + .ListEffectiveEventThreatDetectionCustomModulesRequest.class, + com.google.cloud.securitycentermanagement.v1 + .ListEffectiveEventThreatDetectionCustomModulesRequest.Builder.class); } - // Construct using com.google.cloud.securitycentermanagement.v1.ListEffectiveEventThreatDetectionCustomModulesRequest.newBuilder() - private Builder() { + // Construct using + // com.google.cloud.securitycentermanagement.v1.ListEffectiveEventThreatDetectionCustomModulesRequest.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(); @@ -386,19 +459,26 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.securitycentermanagement.v1.SecurityCenterManagementProto.internal_static_google_cloud_securitycentermanagement_v1_ListEffectiveEventThreatDetectionCustomModulesRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.securitycentermanagement.v1.SecurityCenterManagementProto + .internal_static_google_cloud_securitycentermanagement_v1_ListEffectiveEventThreatDetectionCustomModulesRequest_descriptor; } @java.lang.Override - public com.google.cloud.securitycentermanagement.v1.ListEffectiveEventThreatDetectionCustomModulesRequest getDefaultInstanceForType() { - return com.google.cloud.securitycentermanagement.v1.ListEffectiveEventThreatDetectionCustomModulesRequest.getDefaultInstance(); + public com.google.cloud.securitycentermanagement.v1 + .ListEffectiveEventThreatDetectionCustomModulesRequest + getDefaultInstanceForType() { + return com.google.cloud.securitycentermanagement.v1 + .ListEffectiveEventThreatDetectionCustomModulesRequest.getDefaultInstance(); } @java.lang.Override - public com.google.cloud.securitycentermanagement.v1.ListEffectiveEventThreatDetectionCustomModulesRequest build() { - com.google.cloud.securitycentermanagement.v1.ListEffectiveEventThreatDetectionCustomModulesRequest result = buildPartial(); + public com.google.cloud.securitycentermanagement.v1 + .ListEffectiveEventThreatDetectionCustomModulesRequest + build() { + com.google.cloud.securitycentermanagement.v1 + .ListEffectiveEventThreatDetectionCustomModulesRequest + result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } @@ -406,14 +486,25 @@ public com.google.cloud.securitycentermanagement.v1.ListEffectiveEventThreatDete } @java.lang.Override - public com.google.cloud.securitycentermanagement.v1.ListEffectiveEventThreatDetectionCustomModulesRequest buildPartial() { - com.google.cloud.securitycentermanagement.v1.ListEffectiveEventThreatDetectionCustomModulesRequest result = new com.google.cloud.securitycentermanagement.v1.ListEffectiveEventThreatDetectionCustomModulesRequest(this); - if (bitField0_ != 0) { buildPartial0(result); } + public com.google.cloud.securitycentermanagement.v1 + .ListEffectiveEventThreatDetectionCustomModulesRequest + buildPartial() { + com.google.cloud.securitycentermanagement.v1 + .ListEffectiveEventThreatDetectionCustomModulesRequest + result = + new com.google.cloud.securitycentermanagement.v1 + .ListEffectiveEventThreatDetectionCustomModulesRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } - private void buildPartial0(com.google.cloud.securitycentermanagement.v1.ListEffectiveEventThreatDetectionCustomModulesRequest result) { + private void buildPartial0( + com.google.cloud.securitycentermanagement.v1 + .ListEffectiveEventThreatDetectionCustomModulesRequest + result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000001) != 0)) { result.parent_ = parent_; @@ -430,46 +521,59 @@ private void buildPartial0(com.google.cloud.securitycentermanagement.v1.ListEffe public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.cloud.securitycentermanagement.v1.ListEffectiveEventThreatDetectionCustomModulesRequest) { - return mergeFrom((com.google.cloud.securitycentermanagement.v1.ListEffectiveEventThreatDetectionCustomModulesRequest)other); + if (other + instanceof + com.google.cloud.securitycentermanagement.v1 + .ListEffectiveEventThreatDetectionCustomModulesRequest) { + return mergeFrom( + (com.google.cloud.securitycentermanagement.v1 + .ListEffectiveEventThreatDetectionCustomModulesRequest) + other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom(com.google.cloud.securitycentermanagement.v1.ListEffectiveEventThreatDetectionCustomModulesRequest other) { - if (other == com.google.cloud.securitycentermanagement.v1.ListEffectiveEventThreatDetectionCustomModulesRequest.getDefaultInstance()) return this; + public Builder mergeFrom( + com.google.cloud.securitycentermanagement.v1 + .ListEffectiveEventThreatDetectionCustomModulesRequest + other) { + if (other + == com.google.cloud.securitycentermanagement.v1 + .ListEffectiveEventThreatDetectionCustomModulesRequest.getDefaultInstance()) + return this; if (!other.getParent().isEmpty()) { parent_ = other.parent_; bitField0_ |= 0x00000001; @@ -509,27 +613,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) { @@ -539,10 +647,13 @@ public Builder mergeFrom( } // finally return this; } + private int bitField0_; private java.lang.Object parent_ = ""; /** + * + * *
      * Required. Name of parent to list effective custom modules. Its format is
      * "organizations/{organization}/locations/{location}",
@@ -551,14 +662,16 @@ public Builder mergeFrom(
      * "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; @@ -567,6 +680,8 @@ public java.lang.String getParent() { } } /** + * + * *
      * Required. Name of parent to list effective custom modules. Its format is
      * "organizations/{organization}/locations/{location}",
@@ -575,16 +690,17 @@ public java.lang.String getParent() {
      * "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 { @@ -592,6 +708,8 @@ public java.lang.String getParent() { } } /** + * + * *
      * Required. Name of parent to list effective custom modules. Its format is
      * "organizations/{organization}/locations/{location}",
@@ -600,19 +718,25 @@ public java.lang.String getParent() {
      * "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. Name of parent to list effective custom modules. Its format is
      * "organizations/{organization}/locations/{location}",
@@ -621,7 +745,10 @@ public Builder setParent(
      * "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() { @@ -631,6 +758,8 @@ public Builder clearParent() { return this; } /** + * + * *
      * Required. Name of parent to list effective custom modules. Its format is
      * "organizations/{organization}/locations/{location}",
@@ -639,13 +768,17 @@ public Builder clearParent() {
      * "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; @@ -653,14 +786,17 @@ public Builder setParentBytes( return this; } - private int pageSize_ ; + private int pageSize_; /** + * + * *
      * Optional. The maximum number of results to return in a single response.
      * Default is 10, minimum is 1, maximum is 1000.
      * 
* * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The pageSize. */ @java.lang.Override @@ -668,12 +804,15 @@ public int getPageSize() { return pageSize_; } /** + * + * *
      * Optional. The maximum number of results to return in a single response.
      * Default is 10, minimum is 1, maximum is 1000.
      * 
* * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @param value The pageSize to set. * @return This builder for chaining. */ @@ -685,12 +824,15 @@ public Builder setPageSize(int value) { return this; } /** + * + * *
      * Optional. The maximum number of results to return in a single response.
      * Default is 10, minimum is 1, maximum is 1000.
      * 
* * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @return This builder for chaining. */ public Builder clearPageSize() { @@ -702,18 +844,20 @@ public Builder clearPageSize() { private java.lang.Object pageToken_ = ""; /** + * + * *
      * Optional. The value returned by the last call indicating a continuation
      * 
* * 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; @@ -722,20 +866,21 @@ public java.lang.String getPageToken() { } } /** + * + * *
      * Optional. The value returned by the last call indicating a continuation
      * 
* * 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 { @@ -743,28 +888,35 @@ public java.lang.String getPageToken() { } } /** + * + * *
      * Optional. The value returned by the last call indicating a continuation
      * 
* * 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. The value returned by the last call indicating a continuation
      * 
* * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @return This builder for chaining. */ public Builder clearPageToken() { @@ -774,26 +926,30 @@ public Builder clearPageToken() { return this; } /** + * + * *
      * Optional. The value returned by the last call indicating a continuation
      * 
* * 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); } @@ -803,55 +959,67 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.securitycentermanagement.v1.ListEffectiveEventThreatDetectionCustomModulesRequest) } // @@protoc_insertion_point(class_scope:google.cloud.securitycentermanagement.v1.ListEffectiveEventThreatDetectionCustomModulesRequest) - private static final com.google.cloud.securitycentermanagement.v1.ListEffectiveEventThreatDetectionCustomModulesRequest DEFAULT_INSTANCE; + private static final com.google.cloud.securitycentermanagement.v1 + .ListEffectiveEventThreatDetectionCustomModulesRequest + DEFAULT_INSTANCE; + static { - DEFAULT_INSTANCE = new com.google.cloud.securitycentermanagement.v1.ListEffectiveEventThreatDetectionCustomModulesRequest(); + DEFAULT_INSTANCE = + new com.google.cloud.securitycentermanagement.v1 + .ListEffectiveEventThreatDetectionCustomModulesRequest(); } - public static com.google.cloud.securitycentermanagement.v1.ListEffectiveEventThreatDetectionCustomModulesRequest getDefaultInstance() { + public static com.google.cloud.securitycentermanagement.v1 + .ListEffectiveEventThreatDetectionCustomModulesRequest + getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ListEffectiveEventThreatDetectionCustomModulesRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser< + ListEffectiveEventThreatDetectionCustomModulesRequest> + PARSER = + new com.google.protobuf.AbstractParser< + ListEffectiveEventThreatDetectionCustomModulesRequest>() { + @java.lang.Override + public ListEffectiveEventThreatDetectionCustomModulesRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException() + .setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; - public static com.google.protobuf.Parser parser() { + public static com.google.protobuf.Parser + parser() { return PARSER; } @java.lang.Override - public com.google.protobuf.Parser getParserForType() { + public com.google.protobuf.Parser + getParserForType() { return PARSER; } @java.lang.Override - public com.google.cloud.securitycentermanagement.v1.ListEffectiveEventThreatDetectionCustomModulesRequest getDefaultInstanceForType() { + public com.google.cloud.securitycentermanagement.v1 + .ListEffectiveEventThreatDetectionCustomModulesRequest + getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/java-securitycentermanagement/v1/proto-google-cloud-securitycentermanagement-v1/src/main/java/com/google/cloud/securitycentermanagement/v1/ListEffectiveEventThreatDetectionCustomModulesRequestOrBuilder.java b/java-securitycentermanagement/proto-google-cloud-securitycentermanagement-v1/src/main/java/com/google/cloud/securitycentermanagement/v1/ListEffectiveEventThreatDetectionCustomModulesRequestOrBuilder.java similarity index 64% rename from owl-bot-staging/java-securitycentermanagement/v1/proto-google-cloud-securitycentermanagement-v1/src/main/java/com/google/cloud/securitycentermanagement/v1/ListEffectiveEventThreatDetectionCustomModulesRequestOrBuilder.java rename to java-securitycentermanagement/proto-google-cloud-securitycentermanagement-v1/src/main/java/com/google/cloud/securitycentermanagement/v1/ListEffectiveEventThreatDetectionCustomModulesRequestOrBuilder.java index 6fb4d4371379..189f8bd5ac9b 100644 --- a/owl-bot-staging/java-securitycentermanagement/v1/proto-google-cloud-securitycentermanagement-v1/src/main/java/com/google/cloud/securitycentermanagement/v1/ListEffectiveEventThreatDetectionCustomModulesRequestOrBuilder.java +++ b/java-securitycentermanagement/proto-google-cloud-securitycentermanagement-v1/src/main/java/com/google/cloud/securitycentermanagement/v1/ListEffectiveEventThreatDetectionCustomModulesRequestOrBuilder.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/securitycentermanagement/v1/security_center_management.proto package com.google.cloud.securitycentermanagement.v1; -public interface ListEffectiveEventThreatDetectionCustomModulesRequestOrBuilder extends +public interface ListEffectiveEventThreatDetectionCustomModulesRequestOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.securitycentermanagement.v1.ListEffectiveEventThreatDetectionCustomModulesRequest) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * Required. Name of parent to list effective custom modules. Its format is
    * "organizations/{organization}/locations/{location}",
@@ -16,11 +34,16 @@ public interface ListEffectiveEventThreatDetectionCustomModulesRequestOrBuilder
    * "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. Name of parent to list effective custom modules. Its format is
    * "organizations/{organization}/locations/{location}",
@@ -29,40 +52,50 @@ public interface ListEffectiveEventThreatDetectionCustomModulesRequestOrBuilder
    * "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(); /** + * + * *
    * Optional. The maximum number of results to return in a single response.
    * Default is 10, minimum is 1, maximum is 1000.
    * 
* * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The pageSize. */ int getPageSize(); /** + * + * *
    * Optional. The value returned by the last call indicating a continuation
    * 
* * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The pageToken. */ java.lang.String getPageToken(); /** + * + * *
    * Optional. The value returned by the last call indicating a continuation
    * 
* * 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-securitycentermanagement/proto-google-cloud-securitycentermanagement-v1/src/main/java/com/google/cloud/securitycentermanagement/v1/ListEffectiveEventThreatDetectionCustomModulesResponse.java b/java-securitycentermanagement/proto-google-cloud-securitycentermanagement-v1/src/main/java/com/google/cloud/securitycentermanagement/v1/ListEffectiveEventThreatDetectionCustomModulesResponse.java new file mode 100644 index 000000000000..4bb0b21c7c8f --- /dev/null +++ b/java-securitycentermanagement/proto-google-cloud-securitycentermanagement-v1/src/main/java/com/google/cloud/securitycentermanagement/v1/ListEffectiveEventThreatDetectionCustomModulesResponse.java @@ -0,0 +1,1329 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/securitycentermanagement/v1/security_center_management.proto + +package com.google.cloud.securitycentermanagement.v1; + +/** + * + * + *
+ * Response message for listing effective Event Threat Detection custom
+ * modules.
+ * 
+ * + * Protobuf type {@code + * google.cloud.securitycentermanagement.v1.ListEffectiveEventThreatDetectionCustomModulesResponse} + */ +public final class ListEffectiveEventThreatDetectionCustomModulesResponse + extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.securitycentermanagement.v1.ListEffectiveEventThreatDetectionCustomModulesResponse) + ListEffectiveEventThreatDetectionCustomModulesResponseOrBuilder { + private static final long serialVersionUID = 0L; + // Use ListEffectiveEventThreatDetectionCustomModulesResponse.newBuilder() to construct. + private ListEffectiveEventThreatDetectionCustomModulesResponse( + com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private ListEffectiveEventThreatDetectionCustomModulesResponse() { + effectiveEventThreatDetectionCustomModules_ = java.util.Collections.emptyList(); + nextPageToken_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new ListEffectiveEventThreatDetectionCustomModulesResponse(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.securitycentermanagement.v1.SecurityCenterManagementProto + .internal_static_google_cloud_securitycentermanagement_v1_ListEffectiveEventThreatDetectionCustomModulesResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.securitycentermanagement.v1.SecurityCenterManagementProto + .internal_static_google_cloud_securitycentermanagement_v1_ListEffectiveEventThreatDetectionCustomModulesResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.securitycentermanagement.v1 + .ListEffectiveEventThreatDetectionCustomModulesResponse.class, + com.google.cloud.securitycentermanagement.v1 + .ListEffectiveEventThreatDetectionCustomModulesResponse.Builder.class); + } + + public static final int EFFECTIVE_EVENT_THREAT_DETECTION_CUSTOM_MODULES_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private java.util.List< + com.google.cloud.securitycentermanagement.v1.EffectiveEventThreatDetectionCustomModule> + effectiveEventThreatDetectionCustomModules_; + /** + * + * + *
+   * The list of EffectiveEventThreatDetectionCustomModules
+   * 
+ * + * + * repeated .google.cloud.securitycentermanagement.v1.EffectiveEventThreatDetectionCustomModule effective_event_threat_detection_custom_modules = 1; + * + */ + @java.lang.Override + public java.util.List< + com.google.cloud.securitycentermanagement.v1.EffectiveEventThreatDetectionCustomModule> + getEffectiveEventThreatDetectionCustomModulesList() { + return effectiveEventThreatDetectionCustomModules_; + } + /** + * + * + *
+   * The list of EffectiveEventThreatDetectionCustomModules
+   * 
+ * + * + * repeated .google.cloud.securitycentermanagement.v1.EffectiveEventThreatDetectionCustomModule effective_event_threat_detection_custom_modules = 1; + * + */ + @java.lang.Override + public java.util.List< + ? extends + com.google.cloud.securitycentermanagement.v1 + .EffectiveEventThreatDetectionCustomModuleOrBuilder> + getEffectiveEventThreatDetectionCustomModulesOrBuilderList() { + return effectiveEventThreatDetectionCustomModules_; + } + /** + * + * + *
+   * The list of EffectiveEventThreatDetectionCustomModules
+   * 
+ * + * + * repeated .google.cloud.securitycentermanagement.v1.EffectiveEventThreatDetectionCustomModule effective_event_threat_detection_custom_modules = 1; + * + */ + @java.lang.Override + public int getEffectiveEventThreatDetectionCustomModulesCount() { + return effectiveEventThreatDetectionCustomModules_.size(); + } + /** + * + * + *
+   * The list of EffectiveEventThreatDetectionCustomModules
+   * 
+ * + * + * repeated .google.cloud.securitycentermanagement.v1.EffectiveEventThreatDetectionCustomModule effective_event_threat_detection_custom_modules = 1; + * + */ + @java.lang.Override + public com.google.cloud.securitycentermanagement.v1.EffectiveEventThreatDetectionCustomModule + getEffectiveEventThreatDetectionCustomModules(int index) { + return effectiveEventThreatDetectionCustomModules_.get(index); + } + /** + * + * + *
+   * The list of EffectiveEventThreatDetectionCustomModules
+   * 
+ * + * + * repeated .google.cloud.securitycentermanagement.v1.EffectiveEventThreatDetectionCustomModule effective_event_threat_detection_custom_modules = 1; + * + */ + @java.lang.Override + public com.google.cloud.securitycentermanagement.v1 + .EffectiveEventThreatDetectionCustomModuleOrBuilder + getEffectiveEventThreatDetectionCustomModulesOrBuilder(int index) { + return effectiveEventThreatDetectionCustomModules_.get(index); + } + + public static final int NEXT_PAGE_TOKEN_FIELD_NUMBER = 2; + + @SuppressWarnings("serial") + private volatile java.lang.Object nextPageToken_ = ""; + /** + * + * + *
+   * A token identifying a page of results the server should return.
+   * 
+ * + * string next_page_token = 2; + * + * @return The nextPageToken. + */ + @java.lang.Override + public java.lang.String getNextPageToken() { + java.lang.Object ref = nextPageToken_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + nextPageToken_ = s; + return s; + } + } + /** + * + * + *
+   * A token identifying a page of results the server should return.
+   * 
+ * + * string next_page_token = 2; + * + * @return The bytes for nextPageToken. + */ + @java.lang.Override + 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); + nextPageToken_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + for (int i = 0; i < effectiveEventThreatDetectionCustomModules_.size(); i++) { + output.writeMessage(1, effectiveEventThreatDetectionCustomModules_.get(i)); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(nextPageToken_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, nextPageToken_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + for (int i = 0; i < effectiveEventThreatDetectionCustomModules_.size(); i++) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 1, effectiveEventThreatDetectionCustomModules_.get(i)); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(nextPageToken_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, nextPageToken_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj + instanceof + com.google.cloud.securitycentermanagement.v1 + .ListEffectiveEventThreatDetectionCustomModulesResponse)) { + return super.equals(obj); + } + com.google.cloud.securitycentermanagement.v1 + .ListEffectiveEventThreatDetectionCustomModulesResponse + other = + (com.google.cloud.securitycentermanagement.v1 + .ListEffectiveEventThreatDetectionCustomModulesResponse) + obj; + + if (!getEffectiveEventThreatDetectionCustomModulesList() + .equals(other.getEffectiveEventThreatDetectionCustomModulesList())) return false; + if (!getNextPageToken().equals(other.getNextPageToken())) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (getEffectiveEventThreatDetectionCustomModulesCount() > 0) { + hash = (37 * hash) + EFFECTIVE_EVENT_THREAT_DETECTION_CUSTOM_MODULES_FIELD_NUMBER; + hash = (53 * hash) + getEffectiveEventThreatDetectionCustomModulesList().hashCode(); + } + hash = (37 * hash) + NEXT_PAGE_TOKEN_FIELD_NUMBER; + hash = (53 * hash) + getNextPageToken().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.securitycentermanagement.v1 + .ListEffectiveEventThreatDetectionCustomModulesResponse + parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.securitycentermanagement.v1 + .ListEffectiveEventThreatDetectionCustomModulesResponse + 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.securitycentermanagement.v1 + .ListEffectiveEventThreatDetectionCustomModulesResponse + parseFrom(com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.securitycentermanagement.v1 + .ListEffectiveEventThreatDetectionCustomModulesResponse + parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.securitycentermanagement.v1 + .ListEffectiveEventThreatDetectionCustomModulesResponse + parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.securitycentermanagement.v1 + .ListEffectiveEventThreatDetectionCustomModulesResponse + parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.securitycentermanagement.v1 + .ListEffectiveEventThreatDetectionCustomModulesResponse + parseFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.securitycentermanagement.v1 + .ListEffectiveEventThreatDetectionCustomModulesResponse + 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.securitycentermanagement.v1 + .ListEffectiveEventThreatDetectionCustomModulesResponse + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.securitycentermanagement.v1 + .ListEffectiveEventThreatDetectionCustomModulesResponse + parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.securitycentermanagement.v1 + .ListEffectiveEventThreatDetectionCustomModulesResponse + parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.securitycentermanagement.v1 + .ListEffectiveEventThreatDetectionCustomModulesResponse + 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.securitycentermanagement.v1 + .ListEffectiveEventThreatDetectionCustomModulesResponse + prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
+   * Response message for listing effective Event Threat Detection custom
+   * modules.
+   * 
+ * + * Protobuf type {@code + * google.cloud.securitycentermanagement.v1.ListEffectiveEventThreatDetectionCustomModulesResponse} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.securitycentermanagement.v1.ListEffectiveEventThreatDetectionCustomModulesResponse) + com.google.cloud.securitycentermanagement.v1 + .ListEffectiveEventThreatDetectionCustomModulesResponseOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.securitycentermanagement.v1.SecurityCenterManagementProto + .internal_static_google_cloud_securitycentermanagement_v1_ListEffectiveEventThreatDetectionCustomModulesResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.securitycentermanagement.v1.SecurityCenterManagementProto + .internal_static_google_cloud_securitycentermanagement_v1_ListEffectiveEventThreatDetectionCustomModulesResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.securitycentermanagement.v1 + .ListEffectiveEventThreatDetectionCustomModulesResponse.class, + com.google.cloud.securitycentermanagement.v1 + .ListEffectiveEventThreatDetectionCustomModulesResponse.Builder.class); + } + + // Construct using + // com.google.cloud.securitycentermanagement.v1.ListEffectiveEventThreatDetectionCustomModulesResponse.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + if (effectiveEventThreatDetectionCustomModulesBuilder_ == null) { + effectiveEventThreatDetectionCustomModules_ = java.util.Collections.emptyList(); + } else { + effectiveEventThreatDetectionCustomModules_ = null; + effectiveEventThreatDetectionCustomModulesBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000001); + nextPageToken_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.securitycentermanagement.v1.SecurityCenterManagementProto + .internal_static_google_cloud_securitycentermanagement_v1_ListEffectiveEventThreatDetectionCustomModulesResponse_descriptor; + } + + @java.lang.Override + public com.google.cloud.securitycentermanagement.v1 + .ListEffectiveEventThreatDetectionCustomModulesResponse + getDefaultInstanceForType() { + return com.google.cloud.securitycentermanagement.v1 + .ListEffectiveEventThreatDetectionCustomModulesResponse.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.securitycentermanagement.v1 + .ListEffectiveEventThreatDetectionCustomModulesResponse + build() { + com.google.cloud.securitycentermanagement.v1 + .ListEffectiveEventThreatDetectionCustomModulesResponse + result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.securitycentermanagement.v1 + .ListEffectiveEventThreatDetectionCustomModulesResponse + buildPartial() { + com.google.cloud.securitycentermanagement.v1 + .ListEffectiveEventThreatDetectionCustomModulesResponse + result = + new com.google.cloud.securitycentermanagement.v1 + .ListEffectiveEventThreatDetectionCustomModulesResponse(this); + buildPartialRepeatedFields(result); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartialRepeatedFields( + com.google.cloud.securitycentermanagement.v1 + .ListEffectiveEventThreatDetectionCustomModulesResponse + result) { + if (effectiveEventThreatDetectionCustomModulesBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0)) { + effectiveEventThreatDetectionCustomModules_ = + java.util.Collections.unmodifiableList(effectiveEventThreatDetectionCustomModules_); + bitField0_ = (bitField0_ & ~0x00000001); + } + result.effectiveEventThreatDetectionCustomModules_ = + effectiveEventThreatDetectionCustomModules_; + } else { + result.effectiveEventThreatDetectionCustomModules_ = + effectiveEventThreatDetectionCustomModulesBuilder_.build(); + } + } + + private void buildPartial0( + com.google.cloud.securitycentermanagement.v1 + .ListEffectiveEventThreatDetectionCustomModulesResponse + result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000002) != 0)) { + result.nextPageToken_ = nextPageToken_; + } + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other + instanceof + com.google.cloud.securitycentermanagement.v1 + .ListEffectiveEventThreatDetectionCustomModulesResponse) { + return mergeFrom( + (com.google.cloud.securitycentermanagement.v1 + .ListEffectiveEventThreatDetectionCustomModulesResponse) + other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.securitycentermanagement.v1 + .ListEffectiveEventThreatDetectionCustomModulesResponse + other) { + if (other + == com.google.cloud.securitycentermanagement.v1 + .ListEffectiveEventThreatDetectionCustomModulesResponse.getDefaultInstance()) + return this; + if (effectiveEventThreatDetectionCustomModulesBuilder_ == null) { + if (!other.effectiveEventThreatDetectionCustomModules_.isEmpty()) { + if (effectiveEventThreatDetectionCustomModules_.isEmpty()) { + effectiveEventThreatDetectionCustomModules_ = + other.effectiveEventThreatDetectionCustomModules_; + bitField0_ = (bitField0_ & ~0x00000001); + } else { + ensureEffectiveEventThreatDetectionCustomModulesIsMutable(); + effectiveEventThreatDetectionCustomModules_.addAll( + other.effectiveEventThreatDetectionCustomModules_); + } + onChanged(); + } + } else { + if (!other.effectiveEventThreatDetectionCustomModules_.isEmpty()) { + if (effectiveEventThreatDetectionCustomModulesBuilder_.isEmpty()) { + effectiveEventThreatDetectionCustomModulesBuilder_.dispose(); + effectiveEventThreatDetectionCustomModulesBuilder_ = null; + effectiveEventThreatDetectionCustomModules_ = + other.effectiveEventThreatDetectionCustomModules_; + bitField0_ = (bitField0_ & ~0x00000001); + effectiveEventThreatDetectionCustomModulesBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getEffectiveEventThreatDetectionCustomModulesFieldBuilder() + : null; + } else { + effectiveEventThreatDetectionCustomModulesBuilder_.addAllMessages( + other.effectiveEventThreatDetectionCustomModules_); + } + } + } + if (!other.getNextPageToken().isEmpty()) { + nextPageToken_ = other.nextPageToken_; + bitField0_ |= 0x00000002; + onChanged(); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + com.google.cloud.securitycentermanagement.v1 + .EffectiveEventThreatDetectionCustomModule + m = + input.readMessage( + com.google.cloud.securitycentermanagement.v1 + .EffectiveEventThreatDetectionCustomModule.parser(), + extensionRegistry); + if (effectiveEventThreatDetectionCustomModulesBuilder_ == null) { + ensureEffectiveEventThreatDetectionCustomModulesIsMutable(); + effectiveEventThreatDetectionCustomModules_.add(m); + } else { + effectiveEventThreatDetectionCustomModulesBuilder_.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) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private java.util.List< + com.google.cloud.securitycentermanagement.v1.EffectiveEventThreatDetectionCustomModule> + effectiveEventThreatDetectionCustomModules_ = java.util.Collections.emptyList(); + + private void ensureEffectiveEventThreatDetectionCustomModulesIsMutable() { + if (!((bitField0_ & 0x00000001) != 0)) { + effectiveEventThreatDetectionCustomModules_ = + new java.util.ArrayList< + com.google.cloud.securitycentermanagement.v1 + .EffectiveEventThreatDetectionCustomModule>( + effectiveEventThreatDetectionCustomModules_); + bitField0_ |= 0x00000001; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.securitycentermanagement.v1.EffectiveEventThreatDetectionCustomModule, + com.google.cloud.securitycentermanagement.v1.EffectiveEventThreatDetectionCustomModule + .Builder, + com.google.cloud.securitycentermanagement.v1 + .EffectiveEventThreatDetectionCustomModuleOrBuilder> + effectiveEventThreatDetectionCustomModulesBuilder_; + + /** + * + * + *
+     * The list of EffectiveEventThreatDetectionCustomModules
+     * 
+ * + * + * repeated .google.cloud.securitycentermanagement.v1.EffectiveEventThreatDetectionCustomModule effective_event_threat_detection_custom_modules = 1; + * + */ + public java.util.List< + com.google.cloud.securitycentermanagement.v1.EffectiveEventThreatDetectionCustomModule> + getEffectiveEventThreatDetectionCustomModulesList() { + if (effectiveEventThreatDetectionCustomModulesBuilder_ == null) { + return java.util.Collections.unmodifiableList(effectiveEventThreatDetectionCustomModules_); + } else { + return effectiveEventThreatDetectionCustomModulesBuilder_.getMessageList(); + } + } + /** + * + * + *
+     * The list of EffectiveEventThreatDetectionCustomModules
+     * 
+ * + * + * repeated .google.cloud.securitycentermanagement.v1.EffectiveEventThreatDetectionCustomModule effective_event_threat_detection_custom_modules = 1; + * + */ + public int getEffectiveEventThreatDetectionCustomModulesCount() { + if (effectiveEventThreatDetectionCustomModulesBuilder_ == null) { + return effectiveEventThreatDetectionCustomModules_.size(); + } else { + return effectiveEventThreatDetectionCustomModulesBuilder_.getCount(); + } + } + /** + * + * + *
+     * The list of EffectiveEventThreatDetectionCustomModules
+     * 
+ * + * + * repeated .google.cloud.securitycentermanagement.v1.EffectiveEventThreatDetectionCustomModule effective_event_threat_detection_custom_modules = 1; + * + */ + public com.google.cloud.securitycentermanagement.v1.EffectiveEventThreatDetectionCustomModule + getEffectiveEventThreatDetectionCustomModules(int index) { + if (effectiveEventThreatDetectionCustomModulesBuilder_ == null) { + return effectiveEventThreatDetectionCustomModules_.get(index); + } else { + return effectiveEventThreatDetectionCustomModulesBuilder_.getMessage(index); + } + } + /** + * + * + *
+     * The list of EffectiveEventThreatDetectionCustomModules
+     * 
+ * + * + * repeated .google.cloud.securitycentermanagement.v1.EffectiveEventThreatDetectionCustomModule effective_event_threat_detection_custom_modules = 1; + * + */ + public Builder setEffectiveEventThreatDetectionCustomModules( + int index, + com.google.cloud.securitycentermanagement.v1.EffectiveEventThreatDetectionCustomModule + value) { + if (effectiveEventThreatDetectionCustomModulesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureEffectiveEventThreatDetectionCustomModulesIsMutable(); + effectiveEventThreatDetectionCustomModules_.set(index, value); + onChanged(); + } else { + effectiveEventThreatDetectionCustomModulesBuilder_.setMessage(index, value); + } + return this; + } + /** + * + * + *
+     * The list of EffectiveEventThreatDetectionCustomModules
+     * 
+ * + * + * repeated .google.cloud.securitycentermanagement.v1.EffectiveEventThreatDetectionCustomModule effective_event_threat_detection_custom_modules = 1; + * + */ + public Builder setEffectiveEventThreatDetectionCustomModules( + int index, + com.google.cloud.securitycentermanagement.v1.EffectiveEventThreatDetectionCustomModule + .Builder + builderForValue) { + if (effectiveEventThreatDetectionCustomModulesBuilder_ == null) { + ensureEffectiveEventThreatDetectionCustomModulesIsMutable(); + effectiveEventThreatDetectionCustomModules_.set(index, builderForValue.build()); + onChanged(); + } else { + effectiveEventThreatDetectionCustomModulesBuilder_.setMessage( + index, builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * The list of EffectiveEventThreatDetectionCustomModules
+     * 
+ * + * + * repeated .google.cloud.securitycentermanagement.v1.EffectiveEventThreatDetectionCustomModule effective_event_threat_detection_custom_modules = 1; + * + */ + public Builder addEffectiveEventThreatDetectionCustomModules( + com.google.cloud.securitycentermanagement.v1.EffectiveEventThreatDetectionCustomModule + value) { + if (effectiveEventThreatDetectionCustomModulesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureEffectiveEventThreatDetectionCustomModulesIsMutable(); + effectiveEventThreatDetectionCustomModules_.add(value); + onChanged(); + } else { + effectiveEventThreatDetectionCustomModulesBuilder_.addMessage(value); + } + return this; + } + /** + * + * + *
+     * The list of EffectiveEventThreatDetectionCustomModules
+     * 
+ * + * + * repeated .google.cloud.securitycentermanagement.v1.EffectiveEventThreatDetectionCustomModule effective_event_threat_detection_custom_modules = 1; + * + */ + public Builder addEffectiveEventThreatDetectionCustomModules( + int index, + com.google.cloud.securitycentermanagement.v1.EffectiveEventThreatDetectionCustomModule + value) { + if (effectiveEventThreatDetectionCustomModulesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureEffectiveEventThreatDetectionCustomModulesIsMutable(); + effectiveEventThreatDetectionCustomModules_.add(index, value); + onChanged(); + } else { + effectiveEventThreatDetectionCustomModulesBuilder_.addMessage(index, value); + } + return this; + } + /** + * + * + *
+     * The list of EffectiveEventThreatDetectionCustomModules
+     * 
+ * + * + * repeated .google.cloud.securitycentermanagement.v1.EffectiveEventThreatDetectionCustomModule effective_event_threat_detection_custom_modules = 1; + * + */ + public Builder addEffectiveEventThreatDetectionCustomModules( + com.google.cloud.securitycentermanagement.v1.EffectiveEventThreatDetectionCustomModule + .Builder + builderForValue) { + if (effectiveEventThreatDetectionCustomModulesBuilder_ == null) { + ensureEffectiveEventThreatDetectionCustomModulesIsMutable(); + effectiveEventThreatDetectionCustomModules_.add(builderForValue.build()); + onChanged(); + } else { + effectiveEventThreatDetectionCustomModulesBuilder_.addMessage(builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * The list of EffectiveEventThreatDetectionCustomModules
+     * 
+ * + * + * repeated .google.cloud.securitycentermanagement.v1.EffectiveEventThreatDetectionCustomModule effective_event_threat_detection_custom_modules = 1; + * + */ + public Builder addEffectiveEventThreatDetectionCustomModules( + int index, + com.google.cloud.securitycentermanagement.v1.EffectiveEventThreatDetectionCustomModule + .Builder + builderForValue) { + if (effectiveEventThreatDetectionCustomModulesBuilder_ == null) { + ensureEffectiveEventThreatDetectionCustomModulesIsMutable(); + effectiveEventThreatDetectionCustomModules_.add(index, builderForValue.build()); + onChanged(); + } else { + effectiveEventThreatDetectionCustomModulesBuilder_.addMessage( + index, builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * The list of EffectiveEventThreatDetectionCustomModules
+     * 
+ * + * + * repeated .google.cloud.securitycentermanagement.v1.EffectiveEventThreatDetectionCustomModule effective_event_threat_detection_custom_modules = 1; + * + */ + public Builder addAllEffectiveEventThreatDetectionCustomModules( + java.lang.Iterable< + ? extends + com.google.cloud.securitycentermanagement.v1 + .EffectiveEventThreatDetectionCustomModule> + values) { + if (effectiveEventThreatDetectionCustomModulesBuilder_ == null) { + ensureEffectiveEventThreatDetectionCustomModulesIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, effectiveEventThreatDetectionCustomModules_); + onChanged(); + } else { + effectiveEventThreatDetectionCustomModulesBuilder_.addAllMessages(values); + } + return this; + } + /** + * + * + *
+     * The list of EffectiveEventThreatDetectionCustomModules
+     * 
+ * + * + * repeated .google.cloud.securitycentermanagement.v1.EffectiveEventThreatDetectionCustomModule effective_event_threat_detection_custom_modules = 1; + * + */ + public Builder clearEffectiveEventThreatDetectionCustomModules() { + if (effectiveEventThreatDetectionCustomModulesBuilder_ == null) { + effectiveEventThreatDetectionCustomModules_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + } else { + effectiveEventThreatDetectionCustomModulesBuilder_.clear(); + } + return this; + } + /** + * + * + *
+     * The list of EffectiveEventThreatDetectionCustomModules
+     * 
+ * + * + * repeated .google.cloud.securitycentermanagement.v1.EffectiveEventThreatDetectionCustomModule effective_event_threat_detection_custom_modules = 1; + * + */ + public Builder removeEffectiveEventThreatDetectionCustomModules(int index) { + if (effectiveEventThreatDetectionCustomModulesBuilder_ == null) { + ensureEffectiveEventThreatDetectionCustomModulesIsMutable(); + effectiveEventThreatDetectionCustomModules_.remove(index); + onChanged(); + } else { + effectiveEventThreatDetectionCustomModulesBuilder_.remove(index); + } + return this; + } + /** + * + * + *
+     * The list of EffectiveEventThreatDetectionCustomModules
+     * 
+ * + * + * repeated .google.cloud.securitycentermanagement.v1.EffectiveEventThreatDetectionCustomModule effective_event_threat_detection_custom_modules = 1; + * + */ + public com.google.cloud.securitycentermanagement.v1.EffectiveEventThreatDetectionCustomModule + .Builder + getEffectiveEventThreatDetectionCustomModulesBuilder(int index) { + return getEffectiveEventThreatDetectionCustomModulesFieldBuilder().getBuilder(index); + } + /** + * + * + *
+     * The list of EffectiveEventThreatDetectionCustomModules
+     * 
+ * + * + * repeated .google.cloud.securitycentermanagement.v1.EffectiveEventThreatDetectionCustomModule effective_event_threat_detection_custom_modules = 1; + * + */ + public com.google.cloud.securitycentermanagement.v1 + .EffectiveEventThreatDetectionCustomModuleOrBuilder + getEffectiveEventThreatDetectionCustomModulesOrBuilder(int index) { + if (effectiveEventThreatDetectionCustomModulesBuilder_ == null) { + return effectiveEventThreatDetectionCustomModules_.get(index); + } else { + return effectiveEventThreatDetectionCustomModulesBuilder_.getMessageOrBuilder(index); + } + } + /** + * + * + *
+     * The list of EffectiveEventThreatDetectionCustomModules
+     * 
+ * + * + * repeated .google.cloud.securitycentermanagement.v1.EffectiveEventThreatDetectionCustomModule effective_event_threat_detection_custom_modules = 1; + * + */ + public java.util.List< + ? extends + com.google.cloud.securitycentermanagement.v1 + .EffectiveEventThreatDetectionCustomModuleOrBuilder> + getEffectiveEventThreatDetectionCustomModulesOrBuilderList() { + if (effectiveEventThreatDetectionCustomModulesBuilder_ != null) { + return effectiveEventThreatDetectionCustomModulesBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(effectiveEventThreatDetectionCustomModules_); + } + } + /** + * + * + *
+     * The list of EffectiveEventThreatDetectionCustomModules
+     * 
+ * + * + * repeated .google.cloud.securitycentermanagement.v1.EffectiveEventThreatDetectionCustomModule effective_event_threat_detection_custom_modules = 1; + * + */ + public com.google.cloud.securitycentermanagement.v1.EffectiveEventThreatDetectionCustomModule + .Builder + addEffectiveEventThreatDetectionCustomModulesBuilder() { + return getEffectiveEventThreatDetectionCustomModulesFieldBuilder() + .addBuilder( + com.google.cloud.securitycentermanagement.v1.EffectiveEventThreatDetectionCustomModule + .getDefaultInstance()); + } + /** + * + * + *
+     * The list of EffectiveEventThreatDetectionCustomModules
+     * 
+ * + * + * repeated .google.cloud.securitycentermanagement.v1.EffectiveEventThreatDetectionCustomModule effective_event_threat_detection_custom_modules = 1; + * + */ + public com.google.cloud.securitycentermanagement.v1.EffectiveEventThreatDetectionCustomModule + .Builder + addEffectiveEventThreatDetectionCustomModulesBuilder(int index) { + return getEffectiveEventThreatDetectionCustomModulesFieldBuilder() + .addBuilder( + index, + com.google.cloud.securitycentermanagement.v1.EffectiveEventThreatDetectionCustomModule + .getDefaultInstance()); + } + /** + * + * + *
+     * The list of EffectiveEventThreatDetectionCustomModules
+     * 
+ * + * + * repeated .google.cloud.securitycentermanagement.v1.EffectiveEventThreatDetectionCustomModule effective_event_threat_detection_custom_modules = 1; + * + */ + public java.util.List< + com.google.cloud.securitycentermanagement.v1.EffectiveEventThreatDetectionCustomModule + .Builder> + getEffectiveEventThreatDetectionCustomModulesBuilderList() { + return getEffectiveEventThreatDetectionCustomModulesFieldBuilder().getBuilderList(); + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.securitycentermanagement.v1.EffectiveEventThreatDetectionCustomModule, + com.google.cloud.securitycentermanagement.v1.EffectiveEventThreatDetectionCustomModule + .Builder, + com.google.cloud.securitycentermanagement.v1 + .EffectiveEventThreatDetectionCustomModuleOrBuilder> + getEffectiveEventThreatDetectionCustomModulesFieldBuilder() { + if (effectiveEventThreatDetectionCustomModulesBuilder_ == null) { + effectiveEventThreatDetectionCustomModulesBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.securitycentermanagement.v1 + .EffectiveEventThreatDetectionCustomModule, + com.google.cloud.securitycentermanagement.v1 + .EffectiveEventThreatDetectionCustomModule.Builder, + com.google.cloud.securitycentermanagement.v1 + .EffectiveEventThreatDetectionCustomModuleOrBuilder>( + effectiveEventThreatDetectionCustomModules_, + ((bitField0_ & 0x00000001) != 0), + getParentForChildren(), + isClean()); + effectiveEventThreatDetectionCustomModules_ = null; + } + return effectiveEventThreatDetectionCustomModulesBuilder_; + } + + private java.lang.Object nextPageToken_ = ""; + /** + * + * + *
+     * A token identifying a page of results the server should return.
+     * 
+ * + * 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; + java.lang.String s = bs.toStringUtf8(); + nextPageToken_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * A token identifying a page of results the server should return.
+     * 
+ * + * string next_page_token = 2; + * + * @return The bytes for nextPageToken. + */ + 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); + nextPageToken_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * A token identifying a page of results the server should return.
+     * 
+ * + * 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(); + } + nextPageToken_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * + * + *
+     * A token identifying a page of results the server should return.
+     * 
+ * + * string next_page_token = 2; + * + * @return This builder for chaining. + */ + public Builder clearNextPageToken() { + nextPageToken_ = getDefaultInstance().getNextPageToken(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + /** + * + * + *
+     * A token identifying a page of results the server should return.
+     * 
+ * + * 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(); + } + checkByteStringIsUtf8(value); + nextPageToken_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.securitycentermanagement.v1.ListEffectiveEventThreatDetectionCustomModulesResponse) + } + + // @@protoc_insertion_point(class_scope:google.cloud.securitycentermanagement.v1.ListEffectiveEventThreatDetectionCustomModulesResponse) + private static final com.google.cloud.securitycentermanagement.v1 + .ListEffectiveEventThreatDetectionCustomModulesResponse + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = + new com.google.cloud.securitycentermanagement.v1 + .ListEffectiveEventThreatDetectionCustomModulesResponse(); + } + + public static com.google.cloud.securitycentermanagement.v1 + .ListEffectiveEventThreatDetectionCustomModulesResponse + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser< + ListEffectiveEventThreatDetectionCustomModulesResponse> + PARSER = + new com.google.protobuf.AbstractParser< + ListEffectiveEventThreatDetectionCustomModulesResponse>() { + @java.lang.Override + public ListEffectiveEventThreatDetectionCustomModulesResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException() + .setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser + parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser + getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.securitycentermanagement.v1 + .ListEffectiveEventThreatDetectionCustomModulesResponse + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-securitycentermanagement/proto-google-cloud-securitycentermanagement-v1/src/main/java/com/google/cloud/securitycentermanagement/v1/ListEffectiveEventThreatDetectionCustomModulesResponseOrBuilder.java b/java-securitycentermanagement/proto-google-cloud-securitycentermanagement-v1/src/main/java/com/google/cloud/securitycentermanagement/v1/ListEffectiveEventThreatDetectionCustomModulesResponseOrBuilder.java new file mode 100644 index 000000000000..85de2d9cd5e3 --- /dev/null +++ b/java-securitycentermanagement/proto-google-cloud-securitycentermanagement-v1/src/main/java/com/google/cloud/securitycentermanagement/v1/ListEffectiveEventThreatDetectionCustomModulesResponseOrBuilder.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/securitycentermanagement/v1/security_center_management.proto + +package com.google.cloud.securitycentermanagement.v1; + +public interface ListEffectiveEventThreatDetectionCustomModulesResponseOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.securitycentermanagement.v1.ListEffectiveEventThreatDetectionCustomModulesResponse) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * The list of EffectiveEventThreatDetectionCustomModules
+   * 
+ * + * + * repeated .google.cloud.securitycentermanagement.v1.EffectiveEventThreatDetectionCustomModule effective_event_threat_detection_custom_modules = 1; + * + */ + java.util.List< + com.google.cloud.securitycentermanagement.v1.EffectiveEventThreatDetectionCustomModule> + getEffectiveEventThreatDetectionCustomModulesList(); + /** + * + * + *
+   * The list of EffectiveEventThreatDetectionCustomModules
+   * 
+ * + * + * repeated .google.cloud.securitycentermanagement.v1.EffectiveEventThreatDetectionCustomModule effective_event_threat_detection_custom_modules = 1; + * + */ + com.google.cloud.securitycentermanagement.v1.EffectiveEventThreatDetectionCustomModule + getEffectiveEventThreatDetectionCustomModules(int index); + /** + * + * + *
+   * The list of EffectiveEventThreatDetectionCustomModules
+   * 
+ * + * + * repeated .google.cloud.securitycentermanagement.v1.EffectiveEventThreatDetectionCustomModule effective_event_threat_detection_custom_modules = 1; + * + */ + int getEffectiveEventThreatDetectionCustomModulesCount(); + /** + * + * + *
+   * The list of EffectiveEventThreatDetectionCustomModules
+   * 
+ * + * + * repeated .google.cloud.securitycentermanagement.v1.EffectiveEventThreatDetectionCustomModule effective_event_threat_detection_custom_modules = 1; + * + */ + java.util.List< + ? extends + com.google.cloud.securitycentermanagement.v1 + .EffectiveEventThreatDetectionCustomModuleOrBuilder> + getEffectiveEventThreatDetectionCustomModulesOrBuilderList(); + /** + * + * + *
+   * The list of EffectiveEventThreatDetectionCustomModules
+   * 
+ * + * + * repeated .google.cloud.securitycentermanagement.v1.EffectiveEventThreatDetectionCustomModule effective_event_threat_detection_custom_modules = 1; + * + */ + com.google.cloud.securitycentermanagement.v1.EffectiveEventThreatDetectionCustomModuleOrBuilder + getEffectiveEventThreatDetectionCustomModulesOrBuilder(int index); + + /** + * + * + *
+   * A token identifying a page of results the server should return.
+   * 
+ * + * string next_page_token = 2; + * + * @return The nextPageToken. + */ + java.lang.String getNextPageToken(); + /** + * + * + *
+   * A token identifying a page of results the server should return.
+   * 
+ * + * string next_page_token = 2; + * + * @return The bytes for nextPageToken. + */ + com.google.protobuf.ByteString getNextPageTokenBytes(); +} diff --git a/owl-bot-staging/java-securitycentermanagement/v1/proto-google-cloud-securitycentermanagement-v1/src/main/java/com/google/cloud/securitycentermanagement/v1/ListEffectiveSecurityHealthAnalyticsCustomModulesRequest.java b/java-securitycentermanagement/proto-google-cloud-securitycentermanagement-v1/src/main/java/com/google/cloud/securitycentermanagement/v1/ListEffectiveSecurityHealthAnalyticsCustomModulesRequest.java similarity index 52% rename from owl-bot-staging/java-securitycentermanagement/v1/proto-google-cloud-securitycentermanagement-v1/src/main/java/com/google/cloud/securitycentermanagement/v1/ListEffectiveSecurityHealthAnalyticsCustomModulesRequest.java rename to java-securitycentermanagement/proto-google-cloud-securitycentermanagement-v1/src/main/java/com/google/cloud/securitycentermanagement/v1/ListEffectiveSecurityHealthAnalyticsCustomModulesRequest.java index abc9f2f0f515..c4677905d6d4 100644 --- a/owl-bot-staging/java-securitycentermanagement/v1/proto-google-cloud-securitycentermanagement-v1/src/main/java/com/google/cloud/securitycentermanagement/v1/ListEffectiveSecurityHealthAnalyticsCustomModulesRequest.java +++ b/java-securitycentermanagement/proto-google-cloud-securitycentermanagement-v1/src/main/java/com/google/cloud/securitycentermanagement/v1/ListEffectiveSecurityHealthAnalyticsCustomModulesRequest.java @@ -1,25 +1,46 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/securitycentermanagement/v1/security_center_management.proto package com.google.cloud.securitycentermanagement.v1; /** + * + * *
  * Request message for listing effective Security Health Analytics custom
  * modules.
  * 
* - * Protobuf type {@code google.cloud.securitycentermanagement.v1.ListEffectiveSecurityHealthAnalyticsCustomModulesRequest} + * Protobuf type {@code + * google.cloud.securitycentermanagement.v1.ListEffectiveSecurityHealthAnalyticsCustomModulesRequest} */ -public final class ListEffectiveSecurityHealthAnalyticsCustomModulesRequest extends - com.google.protobuf.GeneratedMessageV3 implements +public final class ListEffectiveSecurityHealthAnalyticsCustomModulesRequest + extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.securitycentermanagement.v1.ListEffectiveSecurityHealthAnalyticsCustomModulesRequest) ListEffectiveSecurityHealthAnalyticsCustomModulesRequestOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use ListEffectiveSecurityHealthAnalyticsCustomModulesRequest.newBuilder() to construct. - private ListEffectiveSecurityHealthAnalyticsCustomModulesRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + private ListEffectiveSecurityHealthAnalyticsCustomModulesRequest( + com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private ListEffectiveSecurityHealthAnalyticsCustomModulesRequest() { parent_ = ""; pageToken_ = ""; @@ -27,28 +48,34 @@ private ListEffectiveSecurityHealthAnalyticsCustomModulesRequest() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new ListEffectiveSecurityHealthAnalyticsCustomModulesRequest(); } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.securitycentermanagement.v1.SecurityCenterManagementProto.internal_static_google_cloud_securitycentermanagement_v1_ListEffectiveSecurityHealthAnalyticsCustomModulesRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.securitycentermanagement.v1.SecurityCenterManagementProto + .internal_static_google_cloud_securitycentermanagement_v1_ListEffectiveSecurityHealthAnalyticsCustomModulesRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.securitycentermanagement.v1.SecurityCenterManagementProto.internal_static_google_cloud_securitycentermanagement_v1_ListEffectiveSecurityHealthAnalyticsCustomModulesRequest_fieldAccessorTable + return com.google.cloud.securitycentermanagement.v1.SecurityCenterManagementProto + .internal_static_google_cloud_securitycentermanagement_v1_ListEffectiveSecurityHealthAnalyticsCustomModulesRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.securitycentermanagement.v1.ListEffectiveSecurityHealthAnalyticsCustomModulesRequest.class, com.google.cloud.securitycentermanagement.v1.ListEffectiveSecurityHealthAnalyticsCustomModulesRequest.Builder.class); + com.google.cloud.securitycentermanagement.v1 + .ListEffectiveSecurityHealthAnalyticsCustomModulesRequest.class, + com.google.cloud.securitycentermanagement.v1 + .ListEffectiveSecurityHealthAnalyticsCustomModulesRequest.Builder.class); } public static final int PARENT_FIELD_NUMBER = 1; + @SuppressWarnings("serial") private volatile java.lang.Object parent_ = ""; /** + * + * *
    * Required. Name of parent to list effective custom modules. Its format is
    * "organizations/{organization}/locations/{location}",
@@ -57,7 +84,10 @@ protected java.lang.Object newInstance(
    * "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,14 +96,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. Name of parent to list effective custom modules. Its format is
    * "organizations/{organization}/locations/{location}",
@@ -82,17 +113,18 @@ public java.lang.String getParent() {
    * "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 { @@ -103,12 +135,15 @@ public java.lang.String getParent() { public static final int PAGE_SIZE_FIELD_NUMBER = 2; private int pageSize_ = 0; /** + * + * *
    * Optional. The maximum number of results to return in a single response.
    * Default is 10, minimum is 1, maximum is 1000.
    * 
* * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The pageSize. */ @java.lang.Override @@ -117,14 +152,18 @@ public int getPageSize() { } public static final int PAGE_TOKEN_FIELD_NUMBER = 3; + @SuppressWarnings("serial") private volatile java.lang.Object pageToken_ = ""; /** + * + * *
    * Optional. The value returned by the last call indicating a continuation
    * 
* * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The pageToken. */ @java.lang.Override @@ -133,29 +172,29 @@ 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. The value returned by the last call indicating a continuation
    * 
* * 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 { @@ -164,6 +203,7 @@ public java.lang.String getPageToken() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -175,8 +215,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.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_); } @@ -199,8 +238,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_); @@ -213,19 +251,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.securitycentermanagement.v1.ListEffectiveSecurityHealthAnalyticsCustomModulesRequest)) { + if (!(obj + instanceof + com.google.cloud.securitycentermanagement.v1 + .ListEffectiveSecurityHealthAnalyticsCustomModulesRequest)) { return super.equals(obj); } - com.google.cloud.securitycentermanagement.v1.ListEffectiveSecurityHealthAnalyticsCustomModulesRequest other = (com.google.cloud.securitycentermanagement.v1.ListEffectiveSecurityHealthAnalyticsCustomModulesRequest) obj; + com.google.cloud.securitycentermanagement.v1 + .ListEffectiveSecurityHealthAnalyticsCustomModulesRequest + other = + (com.google.cloud.securitycentermanagement.v1 + .ListEffectiveSecurityHealthAnalyticsCustomModulesRequest) + 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; } @@ -248,133 +291,163 @@ public int hashCode() { return hash; } - public static com.google.cloud.securitycentermanagement.v1.ListEffectiveSecurityHealthAnalyticsCustomModulesRequest parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.securitycentermanagement.v1 + .ListEffectiveSecurityHealthAnalyticsCustomModulesRequest + parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.securitycentermanagement.v1.ListEffectiveSecurityHealthAnalyticsCustomModulesRequest parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.cloud.securitycentermanagement.v1 + .ListEffectiveSecurityHealthAnalyticsCustomModulesRequest + 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.securitycentermanagement.v1.ListEffectiveSecurityHealthAnalyticsCustomModulesRequest parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.cloud.securitycentermanagement.v1 + .ListEffectiveSecurityHealthAnalyticsCustomModulesRequest + parseFrom(com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.securitycentermanagement.v1.ListEffectiveSecurityHealthAnalyticsCustomModulesRequest parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.cloud.securitycentermanagement.v1 + .ListEffectiveSecurityHealthAnalyticsCustomModulesRequest + parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.securitycentermanagement.v1.ListEffectiveSecurityHealthAnalyticsCustomModulesRequest parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.cloud.securitycentermanagement.v1 + .ListEffectiveSecurityHealthAnalyticsCustomModulesRequest + parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.securitycentermanagement.v1.ListEffectiveSecurityHealthAnalyticsCustomModulesRequest parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.cloud.securitycentermanagement.v1 + .ListEffectiveSecurityHealthAnalyticsCustomModulesRequest + parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.securitycentermanagement.v1.ListEffectiveSecurityHealthAnalyticsCustomModulesRequest parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.securitycentermanagement.v1 + .ListEffectiveSecurityHealthAnalyticsCustomModulesRequest + parseFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } - public static com.google.cloud.securitycentermanagement.v1.ListEffectiveSecurityHealthAnalyticsCustomModulesRequest 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.securitycentermanagement.v1 + .ListEffectiveSecurityHealthAnalyticsCustomModulesRequest + 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.securitycentermanagement.v1.ListEffectiveSecurityHealthAnalyticsCustomModulesRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.securitycentermanagement.v1 + .ListEffectiveSecurityHealthAnalyticsCustomModulesRequest + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.securitycentermanagement.v1.ListEffectiveSecurityHealthAnalyticsCustomModulesRequest parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + public static com.google.cloud.securitycentermanagement.v1 + .ListEffectiveSecurityHealthAnalyticsCustomModulesRequest + parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.securitycentermanagement.v1.ListEffectiveSecurityHealthAnalyticsCustomModulesRequest parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.securitycentermanagement.v1 + .ListEffectiveSecurityHealthAnalyticsCustomModulesRequest + parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } - public static com.google.cloud.securitycentermanagement.v1.ListEffectiveSecurityHealthAnalyticsCustomModulesRequest 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.securitycentermanagement.v1 + .ListEffectiveSecurityHealthAnalyticsCustomModulesRequest + 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.securitycentermanagement.v1.ListEffectiveSecurityHealthAnalyticsCustomModulesRequest prototype) { + + public static Builder newBuilder( + com.google.cloud.securitycentermanagement.v1 + .ListEffectiveSecurityHealthAnalyticsCustomModulesRequest + prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected 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 listing effective Security Health Analytics custom
    * modules.
    * 
* - * Protobuf type {@code google.cloud.securitycentermanagement.v1.ListEffectiveSecurityHealthAnalyticsCustomModulesRequest} + * Protobuf type {@code + * google.cloud.securitycentermanagement.v1.ListEffectiveSecurityHealthAnalyticsCustomModulesRequest} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.securitycentermanagement.v1.ListEffectiveSecurityHealthAnalyticsCustomModulesRequest) - com.google.cloud.securitycentermanagement.v1.ListEffectiveSecurityHealthAnalyticsCustomModulesRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.securitycentermanagement.v1.SecurityCenterManagementProto.internal_static_google_cloud_securitycentermanagement_v1_ListEffectiveSecurityHealthAnalyticsCustomModulesRequest_descriptor; + com.google.cloud.securitycentermanagement.v1 + .ListEffectiveSecurityHealthAnalyticsCustomModulesRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.securitycentermanagement.v1.SecurityCenterManagementProto + .internal_static_google_cloud_securitycentermanagement_v1_ListEffectiveSecurityHealthAnalyticsCustomModulesRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.securitycentermanagement.v1.SecurityCenterManagementProto.internal_static_google_cloud_securitycentermanagement_v1_ListEffectiveSecurityHealthAnalyticsCustomModulesRequest_fieldAccessorTable + return com.google.cloud.securitycentermanagement.v1.SecurityCenterManagementProto + .internal_static_google_cloud_securitycentermanagement_v1_ListEffectiveSecurityHealthAnalyticsCustomModulesRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.securitycentermanagement.v1.ListEffectiveSecurityHealthAnalyticsCustomModulesRequest.class, com.google.cloud.securitycentermanagement.v1.ListEffectiveSecurityHealthAnalyticsCustomModulesRequest.Builder.class); + com.google.cloud.securitycentermanagement.v1 + .ListEffectiveSecurityHealthAnalyticsCustomModulesRequest.class, + com.google.cloud.securitycentermanagement.v1 + .ListEffectiveSecurityHealthAnalyticsCustomModulesRequest.Builder.class); } - // Construct using com.google.cloud.securitycentermanagement.v1.ListEffectiveSecurityHealthAnalyticsCustomModulesRequest.newBuilder() - private Builder() { + // Construct using + // com.google.cloud.securitycentermanagement.v1.ListEffectiveSecurityHealthAnalyticsCustomModulesRequest.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(); @@ -386,19 +459,26 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.securitycentermanagement.v1.SecurityCenterManagementProto.internal_static_google_cloud_securitycentermanagement_v1_ListEffectiveSecurityHealthAnalyticsCustomModulesRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.securitycentermanagement.v1.SecurityCenterManagementProto + .internal_static_google_cloud_securitycentermanagement_v1_ListEffectiveSecurityHealthAnalyticsCustomModulesRequest_descriptor; } @java.lang.Override - public com.google.cloud.securitycentermanagement.v1.ListEffectiveSecurityHealthAnalyticsCustomModulesRequest getDefaultInstanceForType() { - return com.google.cloud.securitycentermanagement.v1.ListEffectiveSecurityHealthAnalyticsCustomModulesRequest.getDefaultInstance(); + public com.google.cloud.securitycentermanagement.v1 + .ListEffectiveSecurityHealthAnalyticsCustomModulesRequest + getDefaultInstanceForType() { + return com.google.cloud.securitycentermanagement.v1 + .ListEffectiveSecurityHealthAnalyticsCustomModulesRequest.getDefaultInstance(); } @java.lang.Override - public com.google.cloud.securitycentermanagement.v1.ListEffectiveSecurityHealthAnalyticsCustomModulesRequest build() { - com.google.cloud.securitycentermanagement.v1.ListEffectiveSecurityHealthAnalyticsCustomModulesRequest result = buildPartial(); + public com.google.cloud.securitycentermanagement.v1 + .ListEffectiveSecurityHealthAnalyticsCustomModulesRequest + build() { + com.google.cloud.securitycentermanagement.v1 + .ListEffectiveSecurityHealthAnalyticsCustomModulesRequest + result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } @@ -406,14 +486,25 @@ public com.google.cloud.securitycentermanagement.v1.ListEffectiveSecurityHealthA } @java.lang.Override - public com.google.cloud.securitycentermanagement.v1.ListEffectiveSecurityHealthAnalyticsCustomModulesRequest buildPartial() { - com.google.cloud.securitycentermanagement.v1.ListEffectiveSecurityHealthAnalyticsCustomModulesRequest result = new com.google.cloud.securitycentermanagement.v1.ListEffectiveSecurityHealthAnalyticsCustomModulesRequest(this); - if (bitField0_ != 0) { buildPartial0(result); } + public com.google.cloud.securitycentermanagement.v1 + .ListEffectiveSecurityHealthAnalyticsCustomModulesRequest + buildPartial() { + com.google.cloud.securitycentermanagement.v1 + .ListEffectiveSecurityHealthAnalyticsCustomModulesRequest + result = + new com.google.cloud.securitycentermanagement.v1 + .ListEffectiveSecurityHealthAnalyticsCustomModulesRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } - private void buildPartial0(com.google.cloud.securitycentermanagement.v1.ListEffectiveSecurityHealthAnalyticsCustomModulesRequest result) { + private void buildPartial0( + com.google.cloud.securitycentermanagement.v1 + .ListEffectiveSecurityHealthAnalyticsCustomModulesRequest + result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000001) != 0)) { result.parent_ = parent_; @@ -430,46 +521,59 @@ private void buildPartial0(com.google.cloud.securitycentermanagement.v1.ListEffe public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.cloud.securitycentermanagement.v1.ListEffectiveSecurityHealthAnalyticsCustomModulesRequest) { - return mergeFrom((com.google.cloud.securitycentermanagement.v1.ListEffectiveSecurityHealthAnalyticsCustomModulesRequest)other); + if (other + instanceof + com.google.cloud.securitycentermanagement.v1 + .ListEffectiveSecurityHealthAnalyticsCustomModulesRequest) { + return mergeFrom( + (com.google.cloud.securitycentermanagement.v1 + .ListEffectiveSecurityHealthAnalyticsCustomModulesRequest) + other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom(com.google.cloud.securitycentermanagement.v1.ListEffectiveSecurityHealthAnalyticsCustomModulesRequest other) { - if (other == com.google.cloud.securitycentermanagement.v1.ListEffectiveSecurityHealthAnalyticsCustomModulesRequest.getDefaultInstance()) return this; + public Builder mergeFrom( + com.google.cloud.securitycentermanagement.v1 + .ListEffectiveSecurityHealthAnalyticsCustomModulesRequest + other) { + if (other + == com.google.cloud.securitycentermanagement.v1 + .ListEffectiveSecurityHealthAnalyticsCustomModulesRequest.getDefaultInstance()) + return this; if (!other.getParent().isEmpty()) { parent_ = other.parent_; bitField0_ |= 0x00000001; @@ -509,27 +613,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) { @@ -539,10 +647,13 @@ public Builder mergeFrom( } // finally return this; } + private int bitField0_; private java.lang.Object parent_ = ""; /** + * + * *
      * Required. Name of parent to list effective custom modules. Its format is
      * "organizations/{organization}/locations/{location}",
@@ -551,14 +662,16 @@ public Builder mergeFrom(
      * "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; @@ -567,6 +680,8 @@ public java.lang.String getParent() { } } /** + * + * *
      * Required. Name of parent to list effective custom modules. Its format is
      * "organizations/{organization}/locations/{location}",
@@ -575,16 +690,17 @@ public java.lang.String getParent() {
      * "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 { @@ -592,6 +708,8 @@ public java.lang.String getParent() { } } /** + * + * *
      * Required. Name of parent to list effective custom modules. Its format is
      * "organizations/{organization}/locations/{location}",
@@ -600,19 +718,25 @@ public java.lang.String getParent() {
      * "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. Name of parent to list effective custom modules. Its format is
      * "organizations/{organization}/locations/{location}",
@@ -621,7 +745,10 @@ public Builder setParent(
      * "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() { @@ -631,6 +758,8 @@ public Builder clearParent() { return this; } /** + * + * *
      * Required. Name of parent to list effective custom modules. Its format is
      * "organizations/{organization}/locations/{location}",
@@ -639,13 +768,17 @@ public Builder clearParent() {
      * "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; @@ -653,14 +786,17 @@ public Builder setParentBytes( return this; } - private int pageSize_ ; + private int pageSize_; /** + * + * *
      * Optional. The maximum number of results to return in a single response.
      * Default is 10, minimum is 1, maximum is 1000.
      * 
* * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The pageSize. */ @java.lang.Override @@ -668,12 +804,15 @@ public int getPageSize() { return pageSize_; } /** + * + * *
      * Optional. The maximum number of results to return in a single response.
      * Default is 10, minimum is 1, maximum is 1000.
      * 
* * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @param value The pageSize to set. * @return This builder for chaining. */ @@ -685,12 +824,15 @@ public Builder setPageSize(int value) { return this; } /** + * + * *
      * Optional. The maximum number of results to return in a single response.
      * Default is 10, minimum is 1, maximum is 1000.
      * 
* * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @return This builder for chaining. */ public Builder clearPageSize() { @@ -702,18 +844,20 @@ public Builder clearPageSize() { private java.lang.Object pageToken_ = ""; /** + * + * *
      * Optional. The value returned by the last call indicating a continuation
      * 
* * 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; @@ -722,20 +866,21 @@ public java.lang.String getPageToken() { } } /** + * + * *
      * Optional. The value returned by the last call indicating a continuation
      * 
* * 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 { @@ -743,28 +888,35 @@ public java.lang.String getPageToken() { } } /** + * + * *
      * Optional. The value returned by the last call indicating a continuation
      * 
* * 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. The value returned by the last call indicating a continuation
      * 
* * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @return This builder for chaining. */ public Builder clearPageToken() { @@ -774,26 +926,30 @@ public Builder clearPageToken() { return this; } /** + * + * *
      * Optional. The value returned by the last call indicating a continuation
      * 
* * 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); } @@ -803,55 +959,67 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.securitycentermanagement.v1.ListEffectiveSecurityHealthAnalyticsCustomModulesRequest) } // @@protoc_insertion_point(class_scope:google.cloud.securitycentermanagement.v1.ListEffectiveSecurityHealthAnalyticsCustomModulesRequest) - private static final com.google.cloud.securitycentermanagement.v1.ListEffectiveSecurityHealthAnalyticsCustomModulesRequest DEFAULT_INSTANCE; + private static final com.google.cloud.securitycentermanagement.v1 + .ListEffectiveSecurityHealthAnalyticsCustomModulesRequest + DEFAULT_INSTANCE; + static { - DEFAULT_INSTANCE = new com.google.cloud.securitycentermanagement.v1.ListEffectiveSecurityHealthAnalyticsCustomModulesRequest(); + DEFAULT_INSTANCE = + new com.google.cloud.securitycentermanagement.v1 + .ListEffectiveSecurityHealthAnalyticsCustomModulesRequest(); } - public static com.google.cloud.securitycentermanagement.v1.ListEffectiveSecurityHealthAnalyticsCustomModulesRequest getDefaultInstance() { + public static com.google.cloud.securitycentermanagement.v1 + .ListEffectiveSecurityHealthAnalyticsCustomModulesRequest + getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ListEffectiveSecurityHealthAnalyticsCustomModulesRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser< + ListEffectiveSecurityHealthAnalyticsCustomModulesRequest> + PARSER = + new com.google.protobuf.AbstractParser< + ListEffectiveSecurityHealthAnalyticsCustomModulesRequest>() { + @java.lang.Override + public ListEffectiveSecurityHealthAnalyticsCustomModulesRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException() + .setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; - public static com.google.protobuf.Parser parser() { + public static com.google.protobuf.Parser + parser() { return PARSER; } @java.lang.Override - public com.google.protobuf.Parser getParserForType() { + public com.google.protobuf.Parser + getParserForType() { return PARSER; } @java.lang.Override - public com.google.cloud.securitycentermanagement.v1.ListEffectiveSecurityHealthAnalyticsCustomModulesRequest getDefaultInstanceForType() { + public com.google.cloud.securitycentermanagement.v1 + .ListEffectiveSecurityHealthAnalyticsCustomModulesRequest + getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/java-securitycentermanagement/v1/proto-google-cloud-securitycentermanagement-v1/src/main/java/com/google/cloud/securitycentermanagement/v1/ListEffectiveSecurityHealthAnalyticsCustomModulesRequestOrBuilder.java b/java-securitycentermanagement/proto-google-cloud-securitycentermanagement-v1/src/main/java/com/google/cloud/securitycentermanagement/v1/ListEffectiveSecurityHealthAnalyticsCustomModulesRequestOrBuilder.java similarity index 64% rename from owl-bot-staging/java-securitycentermanagement/v1/proto-google-cloud-securitycentermanagement-v1/src/main/java/com/google/cloud/securitycentermanagement/v1/ListEffectiveSecurityHealthAnalyticsCustomModulesRequestOrBuilder.java rename to java-securitycentermanagement/proto-google-cloud-securitycentermanagement-v1/src/main/java/com/google/cloud/securitycentermanagement/v1/ListEffectiveSecurityHealthAnalyticsCustomModulesRequestOrBuilder.java index f54593f87d39..cabe3d1c614d 100644 --- a/owl-bot-staging/java-securitycentermanagement/v1/proto-google-cloud-securitycentermanagement-v1/src/main/java/com/google/cloud/securitycentermanagement/v1/ListEffectiveSecurityHealthAnalyticsCustomModulesRequestOrBuilder.java +++ b/java-securitycentermanagement/proto-google-cloud-securitycentermanagement-v1/src/main/java/com/google/cloud/securitycentermanagement/v1/ListEffectiveSecurityHealthAnalyticsCustomModulesRequestOrBuilder.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/securitycentermanagement/v1/security_center_management.proto package com.google.cloud.securitycentermanagement.v1; -public interface ListEffectiveSecurityHealthAnalyticsCustomModulesRequestOrBuilder extends +public interface ListEffectiveSecurityHealthAnalyticsCustomModulesRequestOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.securitycentermanagement.v1.ListEffectiveSecurityHealthAnalyticsCustomModulesRequest) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * Required. Name of parent to list effective custom modules. Its format is
    * "organizations/{organization}/locations/{location}",
@@ -16,11 +34,16 @@ public interface ListEffectiveSecurityHealthAnalyticsCustomModulesRequestOrBuild
    * "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. Name of parent to list effective custom modules. Its format is
    * "organizations/{organization}/locations/{location}",
@@ -29,40 +52,50 @@ public interface ListEffectiveSecurityHealthAnalyticsCustomModulesRequestOrBuild
    * "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(); /** + * + * *
    * Optional. The maximum number of results to return in a single response.
    * Default is 10, minimum is 1, maximum is 1000.
    * 
* * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The pageSize. */ int getPageSize(); /** + * + * *
    * Optional. The value returned by the last call indicating a continuation
    * 
* * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The pageToken. */ java.lang.String getPageToken(); /** + * + * *
    * Optional. The value returned by the last call indicating a continuation
    * 
* * 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-securitycentermanagement/proto-google-cloud-securitycentermanagement-v1/src/main/java/com/google/cloud/securitycentermanagement/v1/ListEffectiveSecurityHealthAnalyticsCustomModulesResponse.java b/java-securitycentermanagement/proto-google-cloud-securitycentermanagement-v1/src/main/java/com/google/cloud/securitycentermanagement/v1/ListEffectiveSecurityHealthAnalyticsCustomModulesResponse.java new file mode 100644 index 000000000000..39f481c32323 --- /dev/null +++ b/java-securitycentermanagement/proto-google-cloud-securitycentermanagement-v1/src/main/java/com/google/cloud/securitycentermanagement/v1/ListEffectiveSecurityHealthAnalyticsCustomModulesResponse.java @@ -0,0 +1,1337 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/securitycentermanagement/v1/security_center_management.proto + +package com.google.cloud.securitycentermanagement.v1; + +/** + * + * + *
+ * Response message for listing effective Security Health Analytics custom
+ * modules.
+ * 
+ * + * Protobuf type {@code + * google.cloud.securitycentermanagement.v1.ListEffectiveSecurityHealthAnalyticsCustomModulesResponse} + */ +public final class ListEffectiveSecurityHealthAnalyticsCustomModulesResponse + extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.securitycentermanagement.v1.ListEffectiveSecurityHealthAnalyticsCustomModulesResponse) + ListEffectiveSecurityHealthAnalyticsCustomModulesResponseOrBuilder { + private static final long serialVersionUID = 0L; + // Use ListEffectiveSecurityHealthAnalyticsCustomModulesResponse.newBuilder() to construct. + private ListEffectiveSecurityHealthAnalyticsCustomModulesResponse( + com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private ListEffectiveSecurityHealthAnalyticsCustomModulesResponse() { + effectiveSecurityHealthAnalyticsCustomModules_ = java.util.Collections.emptyList(); + nextPageToken_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new ListEffectiveSecurityHealthAnalyticsCustomModulesResponse(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.securitycentermanagement.v1.SecurityCenterManagementProto + .internal_static_google_cloud_securitycentermanagement_v1_ListEffectiveSecurityHealthAnalyticsCustomModulesResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.securitycentermanagement.v1.SecurityCenterManagementProto + .internal_static_google_cloud_securitycentermanagement_v1_ListEffectiveSecurityHealthAnalyticsCustomModulesResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.securitycentermanagement.v1 + .ListEffectiveSecurityHealthAnalyticsCustomModulesResponse.class, + com.google.cloud.securitycentermanagement.v1 + .ListEffectiveSecurityHealthAnalyticsCustomModulesResponse.Builder.class); + } + + public static final int EFFECTIVE_SECURITY_HEALTH_ANALYTICS_CUSTOM_MODULES_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private java.util.List< + com.google.cloud.securitycentermanagement.v1.EffectiveSecurityHealthAnalyticsCustomModule> + effectiveSecurityHealthAnalyticsCustomModules_; + /** + * + * + *
+   * The list of EffectiveSecurityHealthAnalyticsCustomModule
+   * 
+ * + * + * repeated .google.cloud.securitycentermanagement.v1.EffectiveSecurityHealthAnalyticsCustomModule effective_security_health_analytics_custom_modules = 1; + * + */ + @java.lang.Override + public java.util.List< + com.google.cloud.securitycentermanagement.v1.EffectiveSecurityHealthAnalyticsCustomModule> + getEffectiveSecurityHealthAnalyticsCustomModulesList() { + return effectiveSecurityHealthAnalyticsCustomModules_; + } + /** + * + * + *
+   * The list of EffectiveSecurityHealthAnalyticsCustomModule
+   * 
+ * + * + * repeated .google.cloud.securitycentermanagement.v1.EffectiveSecurityHealthAnalyticsCustomModule effective_security_health_analytics_custom_modules = 1; + * + */ + @java.lang.Override + public java.util.List< + ? extends + com.google.cloud.securitycentermanagement.v1 + .EffectiveSecurityHealthAnalyticsCustomModuleOrBuilder> + getEffectiveSecurityHealthAnalyticsCustomModulesOrBuilderList() { + return effectiveSecurityHealthAnalyticsCustomModules_; + } + /** + * + * + *
+   * The list of EffectiveSecurityHealthAnalyticsCustomModule
+   * 
+ * + * + * repeated .google.cloud.securitycentermanagement.v1.EffectiveSecurityHealthAnalyticsCustomModule effective_security_health_analytics_custom_modules = 1; + * + */ + @java.lang.Override + public int getEffectiveSecurityHealthAnalyticsCustomModulesCount() { + return effectiveSecurityHealthAnalyticsCustomModules_.size(); + } + /** + * + * + *
+   * The list of EffectiveSecurityHealthAnalyticsCustomModule
+   * 
+ * + * + * repeated .google.cloud.securitycentermanagement.v1.EffectiveSecurityHealthAnalyticsCustomModule effective_security_health_analytics_custom_modules = 1; + * + */ + @java.lang.Override + public com.google.cloud.securitycentermanagement.v1.EffectiveSecurityHealthAnalyticsCustomModule + getEffectiveSecurityHealthAnalyticsCustomModules(int index) { + return effectiveSecurityHealthAnalyticsCustomModules_.get(index); + } + /** + * + * + *
+   * The list of EffectiveSecurityHealthAnalyticsCustomModule
+   * 
+ * + * + * repeated .google.cloud.securitycentermanagement.v1.EffectiveSecurityHealthAnalyticsCustomModule effective_security_health_analytics_custom_modules = 1; + * + */ + @java.lang.Override + public com.google.cloud.securitycentermanagement.v1 + .EffectiveSecurityHealthAnalyticsCustomModuleOrBuilder + getEffectiveSecurityHealthAnalyticsCustomModulesOrBuilder(int index) { + return effectiveSecurityHealthAnalyticsCustomModules_.get(index); + } + + public static final int NEXT_PAGE_TOKEN_FIELD_NUMBER = 2; + + @SuppressWarnings("serial") + private volatile java.lang.Object nextPageToken_ = ""; + /** + * + * + *
+   * A token identifying a page of results the server should return.
+   * 
+ * + * string next_page_token = 2; + * + * @return The nextPageToken. + */ + @java.lang.Override + public java.lang.String getNextPageToken() { + java.lang.Object ref = nextPageToken_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + nextPageToken_ = s; + return s; + } + } + /** + * + * + *
+   * A token identifying a page of results the server should return.
+   * 
+ * + * string next_page_token = 2; + * + * @return The bytes for nextPageToken. + */ + @java.lang.Override + 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); + nextPageToken_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + for (int i = 0; i < effectiveSecurityHealthAnalyticsCustomModules_.size(); i++) { + output.writeMessage(1, effectiveSecurityHealthAnalyticsCustomModules_.get(i)); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(nextPageToken_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, nextPageToken_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + for (int i = 0; i < effectiveSecurityHealthAnalyticsCustomModules_.size(); i++) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 1, effectiveSecurityHealthAnalyticsCustomModules_.get(i)); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(nextPageToken_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, nextPageToken_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj + instanceof + com.google.cloud.securitycentermanagement.v1 + .ListEffectiveSecurityHealthAnalyticsCustomModulesResponse)) { + return super.equals(obj); + } + com.google.cloud.securitycentermanagement.v1 + .ListEffectiveSecurityHealthAnalyticsCustomModulesResponse + other = + (com.google.cloud.securitycentermanagement.v1 + .ListEffectiveSecurityHealthAnalyticsCustomModulesResponse) + obj; + + if (!getEffectiveSecurityHealthAnalyticsCustomModulesList() + .equals(other.getEffectiveSecurityHealthAnalyticsCustomModulesList())) return false; + if (!getNextPageToken().equals(other.getNextPageToken())) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (getEffectiveSecurityHealthAnalyticsCustomModulesCount() > 0) { + hash = (37 * hash) + EFFECTIVE_SECURITY_HEALTH_ANALYTICS_CUSTOM_MODULES_FIELD_NUMBER; + hash = (53 * hash) + getEffectiveSecurityHealthAnalyticsCustomModulesList().hashCode(); + } + hash = (37 * hash) + NEXT_PAGE_TOKEN_FIELD_NUMBER; + hash = (53 * hash) + getNextPageToken().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.securitycentermanagement.v1 + .ListEffectiveSecurityHealthAnalyticsCustomModulesResponse + parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.securitycentermanagement.v1 + .ListEffectiveSecurityHealthAnalyticsCustomModulesResponse + 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.securitycentermanagement.v1 + .ListEffectiveSecurityHealthAnalyticsCustomModulesResponse + parseFrom(com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.securitycentermanagement.v1 + .ListEffectiveSecurityHealthAnalyticsCustomModulesResponse + parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.securitycentermanagement.v1 + .ListEffectiveSecurityHealthAnalyticsCustomModulesResponse + parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.securitycentermanagement.v1 + .ListEffectiveSecurityHealthAnalyticsCustomModulesResponse + parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.securitycentermanagement.v1 + .ListEffectiveSecurityHealthAnalyticsCustomModulesResponse + parseFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.securitycentermanagement.v1 + .ListEffectiveSecurityHealthAnalyticsCustomModulesResponse + 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.securitycentermanagement.v1 + .ListEffectiveSecurityHealthAnalyticsCustomModulesResponse + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.securitycentermanagement.v1 + .ListEffectiveSecurityHealthAnalyticsCustomModulesResponse + parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.securitycentermanagement.v1 + .ListEffectiveSecurityHealthAnalyticsCustomModulesResponse + parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.securitycentermanagement.v1 + .ListEffectiveSecurityHealthAnalyticsCustomModulesResponse + 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.securitycentermanagement.v1 + .ListEffectiveSecurityHealthAnalyticsCustomModulesResponse + prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
+   * Response message for listing effective Security Health Analytics custom
+   * modules.
+   * 
+ * + * Protobuf type {@code + * google.cloud.securitycentermanagement.v1.ListEffectiveSecurityHealthAnalyticsCustomModulesResponse} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.securitycentermanagement.v1.ListEffectiveSecurityHealthAnalyticsCustomModulesResponse) + com.google.cloud.securitycentermanagement.v1 + .ListEffectiveSecurityHealthAnalyticsCustomModulesResponseOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.securitycentermanagement.v1.SecurityCenterManagementProto + .internal_static_google_cloud_securitycentermanagement_v1_ListEffectiveSecurityHealthAnalyticsCustomModulesResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.securitycentermanagement.v1.SecurityCenterManagementProto + .internal_static_google_cloud_securitycentermanagement_v1_ListEffectiveSecurityHealthAnalyticsCustomModulesResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.securitycentermanagement.v1 + .ListEffectiveSecurityHealthAnalyticsCustomModulesResponse.class, + com.google.cloud.securitycentermanagement.v1 + .ListEffectiveSecurityHealthAnalyticsCustomModulesResponse.Builder.class); + } + + // Construct using + // com.google.cloud.securitycentermanagement.v1.ListEffectiveSecurityHealthAnalyticsCustomModulesResponse.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + if (effectiveSecurityHealthAnalyticsCustomModulesBuilder_ == null) { + effectiveSecurityHealthAnalyticsCustomModules_ = java.util.Collections.emptyList(); + } else { + effectiveSecurityHealthAnalyticsCustomModules_ = null; + effectiveSecurityHealthAnalyticsCustomModulesBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000001); + nextPageToken_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.securitycentermanagement.v1.SecurityCenterManagementProto + .internal_static_google_cloud_securitycentermanagement_v1_ListEffectiveSecurityHealthAnalyticsCustomModulesResponse_descriptor; + } + + @java.lang.Override + public com.google.cloud.securitycentermanagement.v1 + .ListEffectiveSecurityHealthAnalyticsCustomModulesResponse + getDefaultInstanceForType() { + return com.google.cloud.securitycentermanagement.v1 + .ListEffectiveSecurityHealthAnalyticsCustomModulesResponse.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.securitycentermanagement.v1 + .ListEffectiveSecurityHealthAnalyticsCustomModulesResponse + build() { + com.google.cloud.securitycentermanagement.v1 + .ListEffectiveSecurityHealthAnalyticsCustomModulesResponse + result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.securitycentermanagement.v1 + .ListEffectiveSecurityHealthAnalyticsCustomModulesResponse + buildPartial() { + com.google.cloud.securitycentermanagement.v1 + .ListEffectiveSecurityHealthAnalyticsCustomModulesResponse + result = + new com.google.cloud.securitycentermanagement.v1 + .ListEffectiveSecurityHealthAnalyticsCustomModulesResponse(this); + buildPartialRepeatedFields(result); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartialRepeatedFields( + com.google.cloud.securitycentermanagement.v1 + .ListEffectiveSecurityHealthAnalyticsCustomModulesResponse + result) { + if (effectiveSecurityHealthAnalyticsCustomModulesBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0)) { + effectiveSecurityHealthAnalyticsCustomModules_ = + java.util.Collections.unmodifiableList( + effectiveSecurityHealthAnalyticsCustomModules_); + bitField0_ = (bitField0_ & ~0x00000001); + } + result.effectiveSecurityHealthAnalyticsCustomModules_ = + effectiveSecurityHealthAnalyticsCustomModules_; + } else { + result.effectiveSecurityHealthAnalyticsCustomModules_ = + effectiveSecurityHealthAnalyticsCustomModulesBuilder_.build(); + } + } + + private void buildPartial0( + com.google.cloud.securitycentermanagement.v1 + .ListEffectiveSecurityHealthAnalyticsCustomModulesResponse + result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000002) != 0)) { + result.nextPageToken_ = nextPageToken_; + } + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other + instanceof + com.google.cloud.securitycentermanagement.v1 + .ListEffectiveSecurityHealthAnalyticsCustomModulesResponse) { + return mergeFrom( + (com.google.cloud.securitycentermanagement.v1 + .ListEffectiveSecurityHealthAnalyticsCustomModulesResponse) + other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.securitycentermanagement.v1 + .ListEffectiveSecurityHealthAnalyticsCustomModulesResponse + other) { + if (other + == com.google.cloud.securitycentermanagement.v1 + .ListEffectiveSecurityHealthAnalyticsCustomModulesResponse.getDefaultInstance()) + return this; + if (effectiveSecurityHealthAnalyticsCustomModulesBuilder_ == null) { + if (!other.effectiveSecurityHealthAnalyticsCustomModules_.isEmpty()) { + if (effectiveSecurityHealthAnalyticsCustomModules_.isEmpty()) { + effectiveSecurityHealthAnalyticsCustomModules_ = + other.effectiveSecurityHealthAnalyticsCustomModules_; + bitField0_ = (bitField0_ & ~0x00000001); + } else { + ensureEffectiveSecurityHealthAnalyticsCustomModulesIsMutable(); + effectiveSecurityHealthAnalyticsCustomModules_.addAll( + other.effectiveSecurityHealthAnalyticsCustomModules_); + } + onChanged(); + } + } else { + if (!other.effectiveSecurityHealthAnalyticsCustomModules_.isEmpty()) { + if (effectiveSecurityHealthAnalyticsCustomModulesBuilder_.isEmpty()) { + effectiveSecurityHealthAnalyticsCustomModulesBuilder_.dispose(); + effectiveSecurityHealthAnalyticsCustomModulesBuilder_ = null; + effectiveSecurityHealthAnalyticsCustomModules_ = + other.effectiveSecurityHealthAnalyticsCustomModules_; + bitField0_ = (bitField0_ & ~0x00000001); + effectiveSecurityHealthAnalyticsCustomModulesBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getEffectiveSecurityHealthAnalyticsCustomModulesFieldBuilder() + : null; + } else { + effectiveSecurityHealthAnalyticsCustomModulesBuilder_.addAllMessages( + other.effectiveSecurityHealthAnalyticsCustomModules_); + } + } + } + if (!other.getNextPageToken().isEmpty()) { + nextPageToken_ = other.nextPageToken_; + bitField0_ |= 0x00000002; + onChanged(); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + com.google.cloud.securitycentermanagement.v1 + .EffectiveSecurityHealthAnalyticsCustomModule + m = + input.readMessage( + com.google.cloud.securitycentermanagement.v1 + .EffectiveSecurityHealthAnalyticsCustomModule.parser(), + extensionRegistry); + if (effectiveSecurityHealthAnalyticsCustomModulesBuilder_ == null) { + ensureEffectiveSecurityHealthAnalyticsCustomModulesIsMutable(); + effectiveSecurityHealthAnalyticsCustomModules_.add(m); + } else { + effectiveSecurityHealthAnalyticsCustomModulesBuilder_.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) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private java.util.List< + com.google.cloud.securitycentermanagement.v1 + .EffectiveSecurityHealthAnalyticsCustomModule> + effectiveSecurityHealthAnalyticsCustomModules_ = java.util.Collections.emptyList(); + + private void ensureEffectiveSecurityHealthAnalyticsCustomModulesIsMutable() { + if (!((bitField0_ & 0x00000001) != 0)) { + effectiveSecurityHealthAnalyticsCustomModules_ = + new java.util.ArrayList< + com.google.cloud.securitycentermanagement.v1 + .EffectiveSecurityHealthAnalyticsCustomModule>( + effectiveSecurityHealthAnalyticsCustomModules_); + bitField0_ |= 0x00000001; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.securitycentermanagement.v1 + .EffectiveSecurityHealthAnalyticsCustomModule, + com.google.cloud.securitycentermanagement.v1 + .EffectiveSecurityHealthAnalyticsCustomModule.Builder, + com.google.cloud.securitycentermanagement.v1 + .EffectiveSecurityHealthAnalyticsCustomModuleOrBuilder> + effectiveSecurityHealthAnalyticsCustomModulesBuilder_; + + /** + * + * + *
+     * The list of EffectiveSecurityHealthAnalyticsCustomModule
+     * 
+ * + * + * repeated .google.cloud.securitycentermanagement.v1.EffectiveSecurityHealthAnalyticsCustomModule effective_security_health_analytics_custom_modules = 1; + * + */ + public java.util.List< + com.google.cloud.securitycentermanagement.v1 + .EffectiveSecurityHealthAnalyticsCustomModule> + getEffectiveSecurityHealthAnalyticsCustomModulesList() { + if (effectiveSecurityHealthAnalyticsCustomModulesBuilder_ == null) { + return java.util.Collections.unmodifiableList( + effectiveSecurityHealthAnalyticsCustomModules_); + } else { + return effectiveSecurityHealthAnalyticsCustomModulesBuilder_.getMessageList(); + } + } + /** + * + * + *
+     * The list of EffectiveSecurityHealthAnalyticsCustomModule
+     * 
+ * + * + * repeated .google.cloud.securitycentermanagement.v1.EffectiveSecurityHealthAnalyticsCustomModule effective_security_health_analytics_custom_modules = 1; + * + */ + public int getEffectiveSecurityHealthAnalyticsCustomModulesCount() { + if (effectiveSecurityHealthAnalyticsCustomModulesBuilder_ == null) { + return effectiveSecurityHealthAnalyticsCustomModules_.size(); + } else { + return effectiveSecurityHealthAnalyticsCustomModulesBuilder_.getCount(); + } + } + /** + * + * + *
+     * The list of EffectiveSecurityHealthAnalyticsCustomModule
+     * 
+ * + * + * repeated .google.cloud.securitycentermanagement.v1.EffectiveSecurityHealthAnalyticsCustomModule effective_security_health_analytics_custom_modules = 1; + * + */ + public com.google.cloud.securitycentermanagement.v1.EffectiveSecurityHealthAnalyticsCustomModule + getEffectiveSecurityHealthAnalyticsCustomModules(int index) { + if (effectiveSecurityHealthAnalyticsCustomModulesBuilder_ == null) { + return effectiveSecurityHealthAnalyticsCustomModules_.get(index); + } else { + return effectiveSecurityHealthAnalyticsCustomModulesBuilder_.getMessage(index); + } + } + /** + * + * + *
+     * The list of EffectiveSecurityHealthAnalyticsCustomModule
+     * 
+ * + * + * repeated .google.cloud.securitycentermanagement.v1.EffectiveSecurityHealthAnalyticsCustomModule effective_security_health_analytics_custom_modules = 1; + * + */ + public Builder setEffectiveSecurityHealthAnalyticsCustomModules( + int index, + com.google.cloud.securitycentermanagement.v1.EffectiveSecurityHealthAnalyticsCustomModule + value) { + if (effectiveSecurityHealthAnalyticsCustomModulesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureEffectiveSecurityHealthAnalyticsCustomModulesIsMutable(); + effectiveSecurityHealthAnalyticsCustomModules_.set(index, value); + onChanged(); + } else { + effectiveSecurityHealthAnalyticsCustomModulesBuilder_.setMessage(index, value); + } + return this; + } + /** + * + * + *
+     * The list of EffectiveSecurityHealthAnalyticsCustomModule
+     * 
+ * + * + * repeated .google.cloud.securitycentermanagement.v1.EffectiveSecurityHealthAnalyticsCustomModule effective_security_health_analytics_custom_modules = 1; + * + */ + public Builder setEffectiveSecurityHealthAnalyticsCustomModules( + int index, + com.google.cloud.securitycentermanagement.v1.EffectiveSecurityHealthAnalyticsCustomModule + .Builder + builderForValue) { + if (effectiveSecurityHealthAnalyticsCustomModulesBuilder_ == null) { + ensureEffectiveSecurityHealthAnalyticsCustomModulesIsMutable(); + effectiveSecurityHealthAnalyticsCustomModules_.set(index, builderForValue.build()); + onChanged(); + } else { + effectiveSecurityHealthAnalyticsCustomModulesBuilder_.setMessage( + index, builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * The list of EffectiveSecurityHealthAnalyticsCustomModule
+     * 
+ * + * + * repeated .google.cloud.securitycentermanagement.v1.EffectiveSecurityHealthAnalyticsCustomModule effective_security_health_analytics_custom_modules = 1; + * + */ + public Builder addEffectiveSecurityHealthAnalyticsCustomModules( + com.google.cloud.securitycentermanagement.v1.EffectiveSecurityHealthAnalyticsCustomModule + value) { + if (effectiveSecurityHealthAnalyticsCustomModulesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureEffectiveSecurityHealthAnalyticsCustomModulesIsMutable(); + effectiveSecurityHealthAnalyticsCustomModules_.add(value); + onChanged(); + } else { + effectiveSecurityHealthAnalyticsCustomModulesBuilder_.addMessage(value); + } + return this; + } + /** + * + * + *
+     * The list of EffectiveSecurityHealthAnalyticsCustomModule
+     * 
+ * + * + * repeated .google.cloud.securitycentermanagement.v1.EffectiveSecurityHealthAnalyticsCustomModule effective_security_health_analytics_custom_modules = 1; + * + */ + public Builder addEffectiveSecurityHealthAnalyticsCustomModules( + int index, + com.google.cloud.securitycentermanagement.v1.EffectiveSecurityHealthAnalyticsCustomModule + value) { + if (effectiveSecurityHealthAnalyticsCustomModulesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureEffectiveSecurityHealthAnalyticsCustomModulesIsMutable(); + effectiveSecurityHealthAnalyticsCustomModules_.add(index, value); + onChanged(); + } else { + effectiveSecurityHealthAnalyticsCustomModulesBuilder_.addMessage(index, value); + } + return this; + } + /** + * + * + *
+     * The list of EffectiveSecurityHealthAnalyticsCustomModule
+     * 
+ * + * + * repeated .google.cloud.securitycentermanagement.v1.EffectiveSecurityHealthAnalyticsCustomModule effective_security_health_analytics_custom_modules = 1; + * + */ + public Builder addEffectiveSecurityHealthAnalyticsCustomModules( + com.google.cloud.securitycentermanagement.v1.EffectiveSecurityHealthAnalyticsCustomModule + .Builder + builderForValue) { + if (effectiveSecurityHealthAnalyticsCustomModulesBuilder_ == null) { + ensureEffectiveSecurityHealthAnalyticsCustomModulesIsMutable(); + effectiveSecurityHealthAnalyticsCustomModules_.add(builderForValue.build()); + onChanged(); + } else { + effectiveSecurityHealthAnalyticsCustomModulesBuilder_.addMessage(builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * The list of EffectiveSecurityHealthAnalyticsCustomModule
+     * 
+ * + * + * repeated .google.cloud.securitycentermanagement.v1.EffectiveSecurityHealthAnalyticsCustomModule effective_security_health_analytics_custom_modules = 1; + * + */ + public Builder addEffectiveSecurityHealthAnalyticsCustomModules( + int index, + com.google.cloud.securitycentermanagement.v1.EffectiveSecurityHealthAnalyticsCustomModule + .Builder + builderForValue) { + if (effectiveSecurityHealthAnalyticsCustomModulesBuilder_ == null) { + ensureEffectiveSecurityHealthAnalyticsCustomModulesIsMutable(); + effectiveSecurityHealthAnalyticsCustomModules_.add(index, builderForValue.build()); + onChanged(); + } else { + effectiveSecurityHealthAnalyticsCustomModulesBuilder_.addMessage( + index, builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * The list of EffectiveSecurityHealthAnalyticsCustomModule
+     * 
+ * + * + * repeated .google.cloud.securitycentermanagement.v1.EffectiveSecurityHealthAnalyticsCustomModule effective_security_health_analytics_custom_modules = 1; + * + */ + public Builder addAllEffectiveSecurityHealthAnalyticsCustomModules( + java.lang.Iterable< + ? extends + com.google.cloud.securitycentermanagement.v1 + .EffectiveSecurityHealthAnalyticsCustomModule> + values) { + if (effectiveSecurityHealthAnalyticsCustomModulesBuilder_ == null) { + ensureEffectiveSecurityHealthAnalyticsCustomModulesIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, effectiveSecurityHealthAnalyticsCustomModules_); + onChanged(); + } else { + effectiveSecurityHealthAnalyticsCustomModulesBuilder_.addAllMessages(values); + } + return this; + } + /** + * + * + *
+     * The list of EffectiveSecurityHealthAnalyticsCustomModule
+     * 
+ * + * + * repeated .google.cloud.securitycentermanagement.v1.EffectiveSecurityHealthAnalyticsCustomModule effective_security_health_analytics_custom_modules = 1; + * + */ + public Builder clearEffectiveSecurityHealthAnalyticsCustomModules() { + if (effectiveSecurityHealthAnalyticsCustomModulesBuilder_ == null) { + effectiveSecurityHealthAnalyticsCustomModules_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + } else { + effectiveSecurityHealthAnalyticsCustomModulesBuilder_.clear(); + } + return this; + } + /** + * + * + *
+     * The list of EffectiveSecurityHealthAnalyticsCustomModule
+     * 
+ * + * + * repeated .google.cloud.securitycentermanagement.v1.EffectiveSecurityHealthAnalyticsCustomModule effective_security_health_analytics_custom_modules = 1; + * + */ + public Builder removeEffectiveSecurityHealthAnalyticsCustomModules(int index) { + if (effectiveSecurityHealthAnalyticsCustomModulesBuilder_ == null) { + ensureEffectiveSecurityHealthAnalyticsCustomModulesIsMutable(); + effectiveSecurityHealthAnalyticsCustomModules_.remove(index); + onChanged(); + } else { + effectiveSecurityHealthAnalyticsCustomModulesBuilder_.remove(index); + } + return this; + } + /** + * + * + *
+     * The list of EffectiveSecurityHealthAnalyticsCustomModule
+     * 
+ * + * + * repeated .google.cloud.securitycentermanagement.v1.EffectiveSecurityHealthAnalyticsCustomModule effective_security_health_analytics_custom_modules = 1; + * + */ + public com.google.cloud.securitycentermanagement.v1.EffectiveSecurityHealthAnalyticsCustomModule + .Builder + getEffectiveSecurityHealthAnalyticsCustomModulesBuilder(int index) { + return getEffectiveSecurityHealthAnalyticsCustomModulesFieldBuilder().getBuilder(index); + } + /** + * + * + *
+     * The list of EffectiveSecurityHealthAnalyticsCustomModule
+     * 
+ * + * + * repeated .google.cloud.securitycentermanagement.v1.EffectiveSecurityHealthAnalyticsCustomModule effective_security_health_analytics_custom_modules = 1; + * + */ + public com.google.cloud.securitycentermanagement.v1 + .EffectiveSecurityHealthAnalyticsCustomModuleOrBuilder + getEffectiveSecurityHealthAnalyticsCustomModulesOrBuilder(int index) { + if (effectiveSecurityHealthAnalyticsCustomModulesBuilder_ == null) { + return effectiveSecurityHealthAnalyticsCustomModules_.get(index); + } else { + return effectiveSecurityHealthAnalyticsCustomModulesBuilder_.getMessageOrBuilder(index); + } + } + /** + * + * + *
+     * The list of EffectiveSecurityHealthAnalyticsCustomModule
+     * 
+ * + * + * repeated .google.cloud.securitycentermanagement.v1.EffectiveSecurityHealthAnalyticsCustomModule effective_security_health_analytics_custom_modules = 1; + * + */ + public java.util.List< + ? extends + com.google.cloud.securitycentermanagement.v1 + .EffectiveSecurityHealthAnalyticsCustomModuleOrBuilder> + getEffectiveSecurityHealthAnalyticsCustomModulesOrBuilderList() { + if (effectiveSecurityHealthAnalyticsCustomModulesBuilder_ != null) { + return effectiveSecurityHealthAnalyticsCustomModulesBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList( + effectiveSecurityHealthAnalyticsCustomModules_); + } + } + /** + * + * + *
+     * The list of EffectiveSecurityHealthAnalyticsCustomModule
+     * 
+ * + * + * repeated .google.cloud.securitycentermanagement.v1.EffectiveSecurityHealthAnalyticsCustomModule effective_security_health_analytics_custom_modules = 1; + * + */ + public com.google.cloud.securitycentermanagement.v1.EffectiveSecurityHealthAnalyticsCustomModule + .Builder + addEffectiveSecurityHealthAnalyticsCustomModulesBuilder() { + return getEffectiveSecurityHealthAnalyticsCustomModulesFieldBuilder() + .addBuilder( + com.google.cloud.securitycentermanagement.v1 + .EffectiveSecurityHealthAnalyticsCustomModule.getDefaultInstance()); + } + /** + * + * + *
+     * The list of EffectiveSecurityHealthAnalyticsCustomModule
+     * 
+ * + * + * repeated .google.cloud.securitycentermanagement.v1.EffectiveSecurityHealthAnalyticsCustomModule effective_security_health_analytics_custom_modules = 1; + * + */ + public com.google.cloud.securitycentermanagement.v1.EffectiveSecurityHealthAnalyticsCustomModule + .Builder + addEffectiveSecurityHealthAnalyticsCustomModulesBuilder(int index) { + return getEffectiveSecurityHealthAnalyticsCustomModulesFieldBuilder() + .addBuilder( + index, + com.google.cloud.securitycentermanagement.v1 + .EffectiveSecurityHealthAnalyticsCustomModule.getDefaultInstance()); + } + /** + * + * + *
+     * The list of EffectiveSecurityHealthAnalyticsCustomModule
+     * 
+ * + * + * repeated .google.cloud.securitycentermanagement.v1.EffectiveSecurityHealthAnalyticsCustomModule effective_security_health_analytics_custom_modules = 1; + * + */ + public java.util.List< + com.google.cloud.securitycentermanagement.v1 + .EffectiveSecurityHealthAnalyticsCustomModule.Builder> + getEffectiveSecurityHealthAnalyticsCustomModulesBuilderList() { + return getEffectiveSecurityHealthAnalyticsCustomModulesFieldBuilder().getBuilderList(); + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.securitycentermanagement.v1 + .EffectiveSecurityHealthAnalyticsCustomModule, + com.google.cloud.securitycentermanagement.v1 + .EffectiveSecurityHealthAnalyticsCustomModule.Builder, + com.google.cloud.securitycentermanagement.v1 + .EffectiveSecurityHealthAnalyticsCustomModuleOrBuilder> + getEffectiveSecurityHealthAnalyticsCustomModulesFieldBuilder() { + if (effectiveSecurityHealthAnalyticsCustomModulesBuilder_ == null) { + effectiveSecurityHealthAnalyticsCustomModulesBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.securitycentermanagement.v1 + .EffectiveSecurityHealthAnalyticsCustomModule, + com.google.cloud.securitycentermanagement.v1 + .EffectiveSecurityHealthAnalyticsCustomModule.Builder, + com.google.cloud.securitycentermanagement.v1 + .EffectiveSecurityHealthAnalyticsCustomModuleOrBuilder>( + effectiveSecurityHealthAnalyticsCustomModules_, + ((bitField0_ & 0x00000001) != 0), + getParentForChildren(), + isClean()); + effectiveSecurityHealthAnalyticsCustomModules_ = null; + } + return effectiveSecurityHealthAnalyticsCustomModulesBuilder_; + } + + private java.lang.Object nextPageToken_ = ""; + /** + * + * + *
+     * A token identifying a page of results the server should return.
+     * 
+ * + * 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; + java.lang.String s = bs.toStringUtf8(); + nextPageToken_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * A token identifying a page of results the server should return.
+     * 
+ * + * string next_page_token = 2; + * + * @return The bytes for nextPageToken. + */ + 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); + nextPageToken_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * A token identifying a page of results the server should return.
+     * 
+ * + * 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(); + } + nextPageToken_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * + * + *
+     * A token identifying a page of results the server should return.
+     * 
+ * + * string next_page_token = 2; + * + * @return This builder for chaining. + */ + public Builder clearNextPageToken() { + nextPageToken_ = getDefaultInstance().getNextPageToken(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + /** + * + * + *
+     * A token identifying a page of results the server should return.
+     * 
+ * + * 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(); + } + checkByteStringIsUtf8(value); + nextPageToken_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.securitycentermanagement.v1.ListEffectiveSecurityHealthAnalyticsCustomModulesResponse) + } + + // @@protoc_insertion_point(class_scope:google.cloud.securitycentermanagement.v1.ListEffectiveSecurityHealthAnalyticsCustomModulesResponse) + private static final com.google.cloud.securitycentermanagement.v1 + .ListEffectiveSecurityHealthAnalyticsCustomModulesResponse + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = + new com.google.cloud.securitycentermanagement.v1 + .ListEffectiveSecurityHealthAnalyticsCustomModulesResponse(); + } + + public static com.google.cloud.securitycentermanagement.v1 + .ListEffectiveSecurityHealthAnalyticsCustomModulesResponse + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser< + ListEffectiveSecurityHealthAnalyticsCustomModulesResponse> + PARSER = + new com.google.protobuf.AbstractParser< + ListEffectiveSecurityHealthAnalyticsCustomModulesResponse>() { + @java.lang.Override + public ListEffectiveSecurityHealthAnalyticsCustomModulesResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException() + .setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser< + ListEffectiveSecurityHealthAnalyticsCustomModulesResponse> + parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser + getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.securitycentermanagement.v1 + .ListEffectiveSecurityHealthAnalyticsCustomModulesResponse + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-securitycentermanagement/proto-google-cloud-securitycentermanagement-v1/src/main/java/com/google/cloud/securitycentermanagement/v1/ListEffectiveSecurityHealthAnalyticsCustomModulesResponseOrBuilder.java b/java-securitycentermanagement/proto-google-cloud-securitycentermanagement-v1/src/main/java/com/google/cloud/securitycentermanagement/v1/ListEffectiveSecurityHealthAnalyticsCustomModulesResponseOrBuilder.java new file mode 100644 index 000000000000..58543b1a27f1 --- /dev/null +++ b/java-securitycentermanagement/proto-google-cloud-securitycentermanagement-v1/src/main/java/com/google/cloud/securitycentermanagement/v1/ListEffectiveSecurityHealthAnalyticsCustomModulesResponseOrBuilder.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/securitycentermanagement/v1/security_center_management.proto + +package com.google.cloud.securitycentermanagement.v1; + +public interface ListEffectiveSecurityHealthAnalyticsCustomModulesResponseOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.securitycentermanagement.v1.ListEffectiveSecurityHealthAnalyticsCustomModulesResponse) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * The list of EffectiveSecurityHealthAnalyticsCustomModule
+   * 
+ * + * + * repeated .google.cloud.securitycentermanagement.v1.EffectiveSecurityHealthAnalyticsCustomModule effective_security_health_analytics_custom_modules = 1; + * + */ + java.util.List< + com.google.cloud.securitycentermanagement.v1.EffectiveSecurityHealthAnalyticsCustomModule> + getEffectiveSecurityHealthAnalyticsCustomModulesList(); + /** + * + * + *
+   * The list of EffectiveSecurityHealthAnalyticsCustomModule
+   * 
+ * + * + * repeated .google.cloud.securitycentermanagement.v1.EffectiveSecurityHealthAnalyticsCustomModule effective_security_health_analytics_custom_modules = 1; + * + */ + com.google.cloud.securitycentermanagement.v1.EffectiveSecurityHealthAnalyticsCustomModule + getEffectiveSecurityHealthAnalyticsCustomModules(int index); + /** + * + * + *
+   * The list of EffectiveSecurityHealthAnalyticsCustomModule
+   * 
+ * + * + * repeated .google.cloud.securitycentermanagement.v1.EffectiveSecurityHealthAnalyticsCustomModule effective_security_health_analytics_custom_modules = 1; + * + */ + int getEffectiveSecurityHealthAnalyticsCustomModulesCount(); + /** + * + * + *
+   * The list of EffectiveSecurityHealthAnalyticsCustomModule
+   * 
+ * + * + * repeated .google.cloud.securitycentermanagement.v1.EffectiveSecurityHealthAnalyticsCustomModule effective_security_health_analytics_custom_modules = 1; + * + */ + java.util.List< + ? extends + com.google.cloud.securitycentermanagement.v1 + .EffectiveSecurityHealthAnalyticsCustomModuleOrBuilder> + getEffectiveSecurityHealthAnalyticsCustomModulesOrBuilderList(); + /** + * + * + *
+   * The list of EffectiveSecurityHealthAnalyticsCustomModule
+   * 
+ * + * + * repeated .google.cloud.securitycentermanagement.v1.EffectiveSecurityHealthAnalyticsCustomModule effective_security_health_analytics_custom_modules = 1; + * + */ + com.google.cloud.securitycentermanagement.v1.EffectiveSecurityHealthAnalyticsCustomModuleOrBuilder + getEffectiveSecurityHealthAnalyticsCustomModulesOrBuilder(int index); + + /** + * + * + *
+   * A token identifying a page of results the server should return.
+   * 
+ * + * string next_page_token = 2; + * + * @return The nextPageToken. + */ + java.lang.String getNextPageToken(); + /** + * + * + *
+   * A token identifying a page of results the server should return.
+   * 
+ * + * string next_page_token = 2; + * + * @return The bytes for nextPageToken. + */ + com.google.protobuf.ByteString getNextPageTokenBytes(); +} diff --git a/owl-bot-staging/java-securitycentermanagement/v1/proto-google-cloud-securitycentermanagement-v1/src/main/java/com/google/cloud/securitycentermanagement/v1/ListEventThreatDetectionCustomModulesRequest.java b/java-securitycentermanagement/proto-google-cloud-securitycentermanagement-v1/src/main/java/com/google/cloud/securitycentermanagement/v1/ListEventThreatDetectionCustomModulesRequest.java similarity index 57% rename from owl-bot-staging/java-securitycentermanagement/v1/proto-google-cloud-securitycentermanagement-v1/src/main/java/com/google/cloud/securitycentermanagement/v1/ListEventThreatDetectionCustomModulesRequest.java rename to java-securitycentermanagement/proto-google-cloud-securitycentermanagement-v1/src/main/java/com/google/cloud/securitycentermanagement/v1/ListEventThreatDetectionCustomModulesRequest.java index 676cac5495ac..939f59f273d8 100644 --- a/owl-bot-staging/java-securitycentermanagement/v1/proto-google-cloud-securitycentermanagement-v1/src/main/java/com/google/cloud/securitycentermanagement/v1/ListEventThreatDetectionCustomModulesRequest.java +++ b/java-securitycentermanagement/proto-google-cloud-securitycentermanagement-v1/src/main/java/com/google/cloud/securitycentermanagement/v1/ListEventThreatDetectionCustomModulesRequest.java @@ -1,24 +1,45 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/securitycentermanagement/v1/security_center_management.proto package com.google.cloud.securitycentermanagement.v1; /** + * + * *
  * Request message for listing Event Threat Detection custom modules.
  * 
* - * Protobuf type {@code google.cloud.securitycentermanagement.v1.ListEventThreatDetectionCustomModulesRequest} + * Protobuf type {@code + * google.cloud.securitycentermanagement.v1.ListEventThreatDetectionCustomModulesRequest} */ -public final class ListEventThreatDetectionCustomModulesRequest extends - com.google.protobuf.GeneratedMessageV3 implements +public final class ListEventThreatDetectionCustomModulesRequest + extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.securitycentermanagement.v1.ListEventThreatDetectionCustomModulesRequest) ListEventThreatDetectionCustomModulesRequestOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use ListEventThreatDetectionCustomModulesRequest.newBuilder() to construct. - private ListEventThreatDetectionCustomModulesRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + private ListEventThreatDetectionCustomModulesRequest( + com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private ListEventThreatDetectionCustomModulesRequest() { parent_ = ""; pageToken_ = ""; @@ -26,28 +47,34 @@ private ListEventThreatDetectionCustomModulesRequest() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new ListEventThreatDetectionCustomModulesRequest(); } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.securitycentermanagement.v1.SecurityCenterManagementProto.internal_static_google_cloud_securitycentermanagement_v1_ListEventThreatDetectionCustomModulesRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.securitycentermanagement.v1.SecurityCenterManagementProto + .internal_static_google_cloud_securitycentermanagement_v1_ListEventThreatDetectionCustomModulesRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.securitycentermanagement.v1.SecurityCenterManagementProto.internal_static_google_cloud_securitycentermanagement_v1_ListEventThreatDetectionCustomModulesRequest_fieldAccessorTable + return com.google.cloud.securitycentermanagement.v1.SecurityCenterManagementProto + .internal_static_google_cloud_securitycentermanagement_v1_ListEventThreatDetectionCustomModulesRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.securitycentermanagement.v1.ListEventThreatDetectionCustomModulesRequest.class, com.google.cloud.securitycentermanagement.v1.ListEventThreatDetectionCustomModulesRequest.Builder.class); + com.google.cloud.securitycentermanagement.v1 + .ListEventThreatDetectionCustomModulesRequest.class, + com.google.cloud.securitycentermanagement.v1 + .ListEventThreatDetectionCustomModulesRequest.Builder.class); } public static final int PARENT_FIELD_NUMBER = 1; + @SuppressWarnings("serial") private volatile java.lang.Object parent_ = ""; /** + * + * *
    * Required. Name of parent to list custom modules. Its format is
    * "organizations/{organization}/locations/{location}",
@@ -56,7 +83,10 @@ protected java.lang.Object newInstance(
    * "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 @@ -65,14 +95,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. Name of parent to list custom modules. Its format is
    * "organizations/{organization}/locations/{location}",
@@ -81,17 +112,18 @@ public java.lang.String getParent() {
    * "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 { @@ -102,6 +134,8 @@ public java.lang.String getParent() { public static final int PAGE_SIZE_FIELD_NUMBER = 2; private int pageSize_ = 0; /** + * + * *
    * Optional. The maximum number of modules to return. The service may return
    * fewer than this value. If unspecified, at most 10 configs will be returned.
@@ -109,6 +143,7 @@ public java.lang.String getParent() {
    * 
* * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The pageSize. */ @java.lang.Override @@ -117,9 +152,12 @@ public int getPageSize() { } public static final int PAGE_TOKEN_FIELD_NUMBER = 3; + @SuppressWarnings("serial") private volatile java.lang.Object pageToken_ = ""; /** + * + * *
    * Optional. A page token, received from a previous
    * `ListEventThreatDetectionCustomModules` call. Provide this to retrieve the
@@ -131,6 +169,7 @@ public int getPageSize() {
    * 
* * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The pageToken. */ @java.lang.Override @@ -139,14 +178,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; } } /** + * + * *
    * Optional. A page token, received from a previous
    * `ListEventThreatDetectionCustomModules` call. Provide this to retrieve the
@@ -158,16 +198,15 @@ public java.lang.String getPageToken() {
    * 
* * 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 { @@ -176,6 +215,7 @@ public java.lang.String getPageToken() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -187,8 +227,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.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_); } @@ -211,8 +250,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_); @@ -225,19 +263,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.securitycentermanagement.v1.ListEventThreatDetectionCustomModulesRequest)) { + if (!(obj + instanceof + com.google.cloud.securitycentermanagement.v1 + .ListEventThreatDetectionCustomModulesRequest)) { return super.equals(obj); } - com.google.cloud.securitycentermanagement.v1.ListEventThreatDetectionCustomModulesRequest other = (com.google.cloud.securitycentermanagement.v1.ListEventThreatDetectionCustomModulesRequest) obj; + com.google.cloud.securitycentermanagement.v1.ListEventThreatDetectionCustomModulesRequest + other = + (com.google.cloud.securitycentermanagement.v1 + .ListEventThreatDetectionCustomModulesRequest) + 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; } @@ -260,132 +302,161 @@ public int hashCode() { return hash; } - public static com.google.cloud.securitycentermanagement.v1.ListEventThreatDetectionCustomModulesRequest parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.securitycentermanagement.v1 + .ListEventThreatDetectionCustomModulesRequest + parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.securitycentermanagement.v1.ListEventThreatDetectionCustomModulesRequest parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.cloud.securitycentermanagement.v1 + .ListEventThreatDetectionCustomModulesRequest + 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.securitycentermanagement.v1.ListEventThreatDetectionCustomModulesRequest parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.cloud.securitycentermanagement.v1 + .ListEventThreatDetectionCustomModulesRequest + parseFrom(com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.securitycentermanagement.v1.ListEventThreatDetectionCustomModulesRequest parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.cloud.securitycentermanagement.v1 + .ListEventThreatDetectionCustomModulesRequest + parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.securitycentermanagement.v1.ListEventThreatDetectionCustomModulesRequest parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.cloud.securitycentermanagement.v1 + .ListEventThreatDetectionCustomModulesRequest + parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.securitycentermanagement.v1.ListEventThreatDetectionCustomModulesRequest parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.cloud.securitycentermanagement.v1 + .ListEventThreatDetectionCustomModulesRequest + parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.securitycentermanagement.v1.ListEventThreatDetectionCustomModulesRequest parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.securitycentermanagement.v1 + .ListEventThreatDetectionCustomModulesRequest + parseFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } - public static com.google.cloud.securitycentermanagement.v1.ListEventThreatDetectionCustomModulesRequest 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.securitycentermanagement.v1 + .ListEventThreatDetectionCustomModulesRequest + 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.securitycentermanagement.v1.ListEventThreatDetectionCustomModulesRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.securitycentermanagement.v1 + .ListEventThreatDetectionCustomModulesRequest + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.securitycentermanagement.v1.ListEventThreatDetectionCustomModulesRequest parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + public static com.google.cloud.securitycentermanagement.v1 + .ListEventThreatDetectionCustomModulesRequest + parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.securitycentermanagement.v1.ListEventThreatDetectionCustomModulesRequest parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.securitycentermanagement.v1 + .ListEventThreatDetectionCustomModulesRequest + parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } - public static com.google.cloud.securitycentermanagement.v1.ListEventThreatDetectionCustomModulesRequest 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.securitycentermanagement.v1 + .ListEventThreatDetectionCustomModulesRequest + 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.securitycentermanagement.v1.ListEventThreatDetectionCustomModulesRequest prototype) { + + public static Builder newBuilder( + com.google.cloud.securitycentermanagement.v1.ListEventThreatDetectionCustomModulesRequest + prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected 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 listing Event Threat Detection custom modules.
    * 
* - * Protobuf type {@code google.cloud.securitycentermanagement.v1.ListEventThreatDetectionCustomModulesRequest} + * Protobuf type {@code + * google.cloud.securitycentermanagement.v1.ListEventThreatDetectionCustomModulesRequest} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.securitycentermanagement.v1.ListEventThreatDetectionCustomModulesRequest) - com.google.cloud.securitycentermanagement.v1.ListEventThreatDetectionCustomModulesRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.securitycentermanagement.v1.SecurityCenterManagementProto.internal_static_google_cloud_securitycentermanagement_v1_ListEventThreatDetectionCustomModulesRequest_descriptor; + com.google.cloud.securitycentermanagement.v1 + .ListEventThreatDetectionCustomModulesRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.securitycentermanagement.v1.SecurityCenterManagementProto + .internal_static_google_cloud_securitycentermanagement_v1_ListEventThreatDetectionCustomModulesRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.securitycentermanagement.v1.SecurityCenterManagementProto.internal_static_google_cloud_securitycentermanagement_v1_ListEventThreatDetectionCustomModulesRequest_fieldAccessorTable + return com.google.cloud.securitycentermanagement.v1.SecurityCenterManagementProto + .internal_static_google_cloud_securitycentermanagement_v1_ListEventThreatDetectionCustomModulesRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.securitycentermanagement.v1.ListEventThreatDetectionCustomModulesRequest.class, com.google.cloud.securitycentermanagement.v1.ListEventThreatDetectionCustomModulesRequest.Builder.class); + com.google.cloud.securitycentermanagement.v1 + .ListEventThreatDetectionCustomModulesRequest.class, + com.google.cloud.securitycentermanagement.v1 + .ListEventThreatDetectionCustomModulesRequest.Builder.class); } - // Construct using com.google.cloud.securitycentermanagement.v1.ListEventThreatDetectionCustomModulesRequest.newBuilder() - private Builder() { + // Construct using + // com.google.cloud.securitycentermanagement.v1.ListEventThreatDetectionCustomModulesRequest.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(); @@ -397,19 +468,23 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.securitycentermanagement.v1.SecurityCenterManagementProto.internal_static_google_cloud_securitycentermanagement_v1_ListEventThreatDetectionCustomModulesRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.securitycentermanagement.v1.SecurityCenterManagementProto + .internal_static_google_cloud_securitycentermanagement_v1_ListEventThreatDetectionCustomModulesRequest_descriptor; } @java.lang.Override - public com.google.cloud.securitycentermanagement.v1.ListEventThreatDetectionCustomModulesRequest getDefaultInstanceForType() { - return com.google.cloud.securitycentermanagement.v1.ListEventThreatDetectionCustomModulesRequest.getDefaultInstance(); + public com.google.cloud.securitycentermanagement.v1.ListEventThreatDetectionCustomModulesRequest + getDefaultInstanceForType() { + return com.google.cloud.securitycentermanagement.v1 + .ListEventThreatDetectionCustomModulesRequest.getDefaultInstance(); } @java.lang.Override - public com.google.cloud.securitycentermanagement.v1.ListEventThreatDetectionCustomModulesRequest build() { - com.google.cloud.securitycentermanagement.v1.ListEventThreatDetectionCustomModulesRequest result = buildPartial(); + public com.google.cloud.securitycentermanagement.v1.ListEventThreatDetectionCustomModulesRequest + build() { + com.google.cloud.securitycentermanagement.v1.ListEventThreatDetectionCustomModulesRequest + result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } @@ -417,14 +492,22 @@ public com.google.cloud.securitycentermanagement.v1.ListEventThreatDetectionCust } @java.lang.Override - public com.google.cloud.securitycentermanagement.v1.ListEventThreatDetectionCustomModulesRequest buildPartial() { - com.google.cloud.securitycentermanagement.v1.ListEventThreatDetectionCustomModulesRequest result = new com.google.cloud.securitycentermanagement.v1.ListEventThreatDetectionCustomModulesRequest(this); - if (bitField0_ != 0) { buildPartial0(result); } + public com.google.cloud.securitycentermanagement.v1.ListEventThreatDetectionCustomModulesRequest + buildPartial() { + com.google.cloud.securitycentermanagement.v1.ListEventThreatDetectionCustomModulesRequest + result = + new com.google.cloud.securitycentermanagement.v1 + .ListEventThreatDetectionCustomModulesRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } - private void buildPartial0(com.google.cloud.securitycentermanagement.v1.ListEventThreatDetectionCustomModulesRequest result) { + private void buildPartial0( + com.google.cloud.securitycentermanagement.v1.ListEventThreatDetectionCustomModulesRequest + result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000001) != 0)) { result.parent_ = parent_; @@ -441,46 +524,57 @@ private void buildPartial0(com.google.cloud.securitycentermanagement.v1.ListEven public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.cloud.securitycentermanagement.v1.ListEventThreatDetectionCustomModulesRequest) { - return mergeFrom((com.google.cloud.securitycentermanagement.v1.ListEventThreatDetectionCustomModulesRequest)other); + if (other + instanceof + com.google.cloud.securitycentermanagement.v1 + .ListEventThreatDetectionCustomModulesRequest) { + return mergeFrom( + (com.google.cloud.securitycentermanagement.v1 + .ListEventThreatDetectionCustomModulesRequest) + other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom(com.google.cloud.securitycentermanagement.v1.ListEventThreatDetectionCustomModulesRequest other) { - if (other == com.google.cloud.securitycentermanagement.v1.ListEventThreatDetectionCustomModulesRequest.getDefaultInstance()) return this; + public Builder mergeFrom( + com.google.cloud.securitycentermanagement.v1.ListEventThreatDetectionCustomModulesRequest + other) { + if (other + == com.google.cloud.securitycentermanagement.v1 + .ListEventThreatDetectionCustomModulesRequest.getDefaultInstance()) return this; if (!other.getParent().isEmpty()) { parent_ = other.parent_; bitField0_ |= 0x00000001; @@ -520,27 +614,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) { @@ -550,10 +648,13 @@ public Builder mergeFrom( } // finally return this; } + private int bitField0_; private java.lang.Object parent_ = ""; /** + * + * *
      * Required. Name of parent to list custom modules. Its format is
      * "organizations/{organization}/locations/{location}",
@@ -562,14 +663,16 @@ public Builder mergeFrom(
      * "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; @@ -578,6 +681,8 @@ public java.lang.String getParent() { } } /** + * + * *
      * Required. Name of parent to list custom modules. Its format is
      * "organizations/{organization}/locations/{location}",
@@ -586,16 +691,17 @@ public java.lang.String getParent() {
      * "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 { @@ -603,6 +709,8 @@ public java.lang.String getParent() { } } /** + * + * *
      * Required. Name of parent to list custom modules. Its format is
      * "organizations/{organization}/locations/{location}",
@@ -611,19 +719,25 @@ public java.lang.String getParent() {
      * "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. Name of parent to list custom modules. Its format is
      * "organizations/{organization}/locations/{location}",
@@ -632,7 +746,10 @@ public Builder setParent(
      * "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() { @@ -642,6 +759,8 @@ public Builder clearParent() { return this; } /** + * + * *
      * Required. Name of parent to list custom modules. Its format is
      * "organizations/{organization}/locations/{location}",
@@ -650,13 +769,17 @@ public Builder clearParent() {
      * "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; @@ -664,8 +787,10 @@ public Builder setParentBytes( return this; } - private int pageSize_ ; + private int pageSize_; /** + * + * *
      * Optional. The maximum number of modules to return. The service may return
      * fewer than this value. If unspecified, at most 10 configs will be returned.
@@ -673,6 +798,7 @@ public Builder setParentBytes(
      * 
* * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The pageSize. */ @java.lang.Override @@ -680,6 +806,8 @@ public int getPageSize() { return pageSize_; } /** + * + * *
      * Optional. The maximum number of modules to return. The service may return
      * fewer than this value. If unspecified, at most 10 configs will be returned.
@@ -687,6 +815,7 @@ public int getPageSize() {
      * 
* * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @param value The pageSize to set. * @return This builder for chaining. */ @@ -698,6 +827,8 @@ public Builder setPageSize(int value) { return this; } /** + * + * *
      * Optional. The maximum number of modules to return. The service may return
      * fewer than this value. If unspecified, at most 10 configs will be returned.
@@ -705,6 +836,7 @@ public Builder setPageSize(int value) {
      * 
* * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @return This builder for chaining. */ public Builder clearPageSize() { @@ -716,6 +848,8 @@ public Builder clearPageSize() { private java.lang.Object pageToken_ = ""; /** + * + * *
      * Optional. A page token, received from a previous
      * `ListEventThreatDetectionCustomModules` call. Provide this to retrieve the
@@ -727,13 +861,13 @@ public Builder clearPageSize() {
      * 
* * 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; @@ -742,6 +876,8 @@ public java.lang.String getPageToken() { } } /** + * + * *
      * Optional. A page token, received from a previous
      * `ListEventThreatDetectionCustomModules` call. Provide this to retrieve the
@@ -753,15 +889,14 @@ public java.lang.String getPageToken() {
      * 
* * 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 { @@ -769,6 +904,8 @@ public java.lang.String getPageToken() { } } /** + * + * *
      * Optional. A page token, received from a previous
      * `ListEventThreatDetectionCustomModules` call. Provide this to retrieve the
@@ -780,18 +917,22 @@ public java.lang.String getPageToken() {
      * 
* * 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. A page token, received from a previous
      * `ListEventThreatDetectionCustomModules` call. Provide this to retrieve the
@@ -803,6 +944,7 @@ public Builder setPageToken(
      * 
* * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @return This builder for chaining. */ public Builder clearPageToken() { @@ -812,6 +954,8 @@ public Builder clearPageToken() { return this; } /** + * + * *
      * Optional. A page token, received from a previous
      * `ListEventThreatDetectionCustomModules` call. Provide this to retrieve the
@@ -823,21 +967,23 @@ public Builder clearPageToken() {
      * 
* * 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); } @@ -847,55 +993,63 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.securitycentermanagement.v1.ListEventThreatDetectionCustomModulesRequest) } // @@protoc_insertion_point(class_scope:google.cloud.securitycentermanagement.v1.ListEventThreatDetectionCustomModulesRequest) - private static final com.google.cloud.securitycentermanagement.v1.ListEventThreatDetectionCustomModulesRequest DEFAULT_INSTANCE; + private static final com.google.cloud.securitycentermanagement.v1 + .ListEventThreatDetectionCustomModulesRequest + DEFAULT_INSTANCE; + static { - DEFAULT_INSTANCE = new com.google.cloud.securitycentermanagement.v1.ListEventThreatDetectionCustomModulesRequest(); + DEFAULT_INSTANCE = + new com.google.cloud.securitycentermanagement.v1 + .ListEventThreatDetectionCustomModulesRequest(); } - public static com.google.cloud.securitycentermanagement.v1.ListEventThreatDetectionCustomModulesRequest getDefaultInstance() { + public static com.google.cloud.securitycentermanagement.v1 + .ListEventThreatDetectionCustomModulesRequest + getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ListEventThreatDetectionCustomModulesRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListEventThreatDetectionCustomModulesRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException() + .setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; } @java.lang.Override - public com.google.protobuf.Parser getParserForType() { + public com.google.protobuf.Parser + getParserForType() { return PARSER; } @java.lang.Override - public com.google.cloud.securitycentermanagement.v1.ListEventThreatDetectionCustomModulesRequest getDefaultInstanceForType() { + public com.google.cloud.securitycentermanagement.v1.ListEventThreatDetectionCustomModulesRequest + getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/java-securitycentermanagement/v1/proto-google-cloud-securitycentermanagement-v1/src/main/java/com/google/cloud/securitycentermanagement/v1/ListEventThreatDetectionCustomModulesRequestOrBuilder.java b/java-securitycentermanagement/proto-google-cloud-securitycentermanagement-v1/src/main/java/com/google/cloud/securitycentermanagement/v1/ListEventThreatDetectionCustomModulesRequestOrBuilder.java similarity index 69% rename from owl-bot-staging/java-securitycentermanagement/v1/proto-google-cloud-securitycentermanagement-v1/src/main/java/com/google/cloud/securitycentermanagement/v1/ListEventThreatDetectionCustomModulesRequestOrBuilder.java rename to java-securitycentermanagement/proto-google-cloud-securitycentermanagement-v1/src/main/java/com/google/cloud/securitycentermanagement/v1/ListEventThreatDetectionCustomModulesRequestOrBuilder.java index c8e13121caeb..69aca4ee22c4 100644 --- a/owl-bot-staging/java-securitycentermanagement/v1/proto-google-cloud-securitycentermanagement-v1/src/main/java/com/google/cloud/securitycentermanagement/v1/ListEventThreatDetectionCustomModulesRequestOrBuilder.java +++ b/java-securitycentermanagement/proto-google-cloud-securitycentermanagement-v1/src/main/java/com/google/cloud/securitycentermanagement/v1/ListEventThreatDetectionCustomModulesRequestOrBuilder.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/securitycentermanagement/v1/security_center_management.proto package com.google.cloud.securitycentermanagement.v1; -public interface ListEventThreatDetectionCustomModulesRequestOrBuilder extends +public interface ListEventThreatDetectionCustomModulesRequestOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.securitycentermanagement.v1.ListEventThreatDetectionCustomModulesRequest) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * Required. Name of parent to list custom modules. Its format is
    * "organizations/{organization}/locations/{location}",
@@ -16,11 +34,16 @@ public interface ListEventThreatDetectionCustomModulesRequestOrBuilder extends
    * "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. Name of parent to list custom modules. Its format is
    * "organizations/{organization}/locations/{location}",
@@ -29,13 +52,17 @@ public interface ListEventThreatDetectionCustomModulesRequestOrBuilder extends
    * "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(); /** + * + * *
    * Optional. The maximum number of modules to return. The service may return
    * fewer than this value. If unspecified, at most 10 configs will be returned.
@@ -43,11 +70,14 @@ public interface ListEventThreatDetectionCustomModulesRequestOrBuilder extends
    * 
* * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The pageSize. */ int getPageSize(); /** + * + * *
    * Optional. A page token, received from a previous
    * `ListEventThreatDetectionCustomModules` call. Provide this to retrieve the
@@ -59,10 +89,13 @@ public interface ListEventThreatDetectionCustomModulesRequestOrBuilder extends
    * 
* * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The pageToken. */ java.lang.String getPageToken(); /** + * + * *
    * Optional. A page token, received from a previous
    * `ListEventThreatDetectionCustomModules` call. Provide this to retrieve the
@@ -74,8 +107,8 @@ public interface ListEventThreatDetectionCustomModulesRequestOrBuilder extends
    * 
* * 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-securitycentermanagement/v1/proto-google-cloud-securitycentermanagement-v1/src/main/java/com/google/cloud/securitycentermanagement/v1/ListEventThreatDetectionCustomModulesResponse.java b/java-securitycentermanagement/proto-google-cloud-securitycentermanagement-v1/src/main/java/com/google/cloud/securitycentermanagement/v1/ListEventThreatDetectionCustomModulesResponse.java similarity index 50% rename from owl-bot-staging/java-securitycentermanagement/v1/proto-google-cloud-securitycentermanagement-v1/src/main/java/com/google/cloud/securitycentermanagement/v1/ListEventThreatDetectionCustomModulesResponse.java rename to java-securitycentermanagement/proto-google-cloud-securitycentermanagement-v1/src/main/java/com/google/cloud/securitycentermanagement/v1/ListEventThreatDetectionCustomModulesResponse.java index 76a5e176ad12..32d5320bde2f 100644 --- a/owl-bot-staging/java-securitycentermanagement/v1/proto-google-cloud-securitycentermanagement-v1/src/main/java/com/google/cloud/securitycentermanagement/v1/ListEventThreatDetectionCustomModulesResponse.java +++ b/java-securitycentermanagement/proto-google-cloud-securitycentermanagement-v1/src/main/java/com/google/cloud/securitycentermanagement/v1/ListEventThreatDetectionCustomModulesResponse.java @@ -1,24 +1,45 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/securitycentermanagement/v1/security_center_management.proto package com.google.cloud.securitycentermanagement.v1; /** + * + * *
  * Response message for listing Event Threat Detection custom modules.
  * 
* - * Protobuf type {@code google.cloud.securitycentermanagement.v1.ListEventThreatDetectionCustomModulesResponse} + * Protobuf type {@code + * google.cloud.securitycentermanagement.v1.ListEventThreatDetectionCustomModulesResponse} */ -public final class ListEventThreatDetectionCustomModulesResponse extends - com.google.protobuf.GeneratedMessageV3 implements +public final class ListEventThreatDetectionCustomModulesResponse + extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.securitycentermanagement.v1.ListEventThreatDetectionCustomModulesResponse) ListEventThreatDetectionCustomModulesResponseOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use ListEventThreatDetectionCustomModulesResponse.newBuilder() to construct. - private ListEventThreatDetectionCustomModulesResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { + private ListEventThreatDetectionCustomModulesResponse( + com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private ListEventThreatDetectionCustomModulesResponse() { eventThreatDetectionCustomModules_ = java.util.Collections.emptyList(); nextPageToken_ = ""; @@ -26,94 +47,130 @@ private ListEventThreatDetectionCustomModulesResponse() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new ListEventThreatDetectionCustomModulesResponse(); } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.securitycentermanagement.v1.SecurityCenterManagementProto.internal_static_google_cloud_securitycentermanagement_v1_ListEventThreatDetectionCustomModulesResponse_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.securitycentermanagement.v1.SecurityCenterManagementProto + .internal_static_google_cloud_securitycentermanagement_v1_ListEventThreatDetectionCustomModulesResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.securitycentermanagement.v1.SecurityCenterManagementProto.internal_static_google_cloud_securitycentermanagement_v1_ListEventThreatDetectionCustomModulesResponse_fieldAccessorTable + return com.google.cloud.securitycentermanagement.v1.SecurityCenterManagementProto + .internal_static_google_cloud_securitycentermanagement_v1_ListEventThreatDetectionCustomModulesResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.securitycentermanagement.v1.ListEventThreatDetectionCustomModulesResponse.class, com.google.cloud.securitycentermanagement.v1.ListEventThreatDetectionCustomModulesResponse.Builder.class); + com.google.cloud.securitycentermanagement.v1 + .ListEventThreatDetectionCustomModulesResponse.class, + com.google.cloud.securitycentermanagement.v1 + .ListEventThreatDetectionCustomModulesResponse.Builder.class); } public static final int EVENT_THREAT_DETECTION_CUSTOM_MODULES_FIELD_NUMBER = 1; + @SuppressWarnings("serial") - private java.util.List eventThreatDetectionCustomModules_; + private java.util.List< + com.google.cloud.securitycentermanagement.v1.EventThreatDetectionCustomModule> + eventThreatDetectionCustomModules_; /** + * + * *
    * The list of EventThreatDetectionCustomModules
    * 
* - * repeated .google.cloud.securitycentermanagement.v1.EventThreatDetectionCustomModule event_threat_detection_custom_modules = 1; + * + * repeated .google.cloud.securitycentermanagement.v1.EventThreatDetectionCustomModule event_threat_detection_custom_modules = 1; + * */ @java.lang.Override - public java.util.List getEventThreatDetectionCustomModulesList() { + public java.util.List< + com.google.cloud.securitycentermanagement.v1.EventThreatDetectionCustomModule> + getEventThreatDetectionCustomModulesList() { return eventThreatDetectionCustomModules_; } /** + * + * *
    * The list of EventThreatDetectionCustomModules
    * 
* - * repeated .google.cloud.securitycentermanagement.v1.EventThreatDetectionCustomModule event_threat_detection_custom_modules = 1; + * + * repeated .google.cloud.securitycentermanagement.v1.EventThreatDetectionCustomModule event_threat_detection_custom_modules = 1; + * */ @java.lang.Override - public java.util.List + public java.util.List< + ? extends + com.google.cloud.securitycentermanagement.v1 + .EventThreatDetectionCustomModuleOrBuilder> getEventThreatDetectionCustomModulesOrBuilderList() { return eventThreatDetectionCustomModules_; } /** + * + * *
    * The list of EventThreatDetectionCustomModules
    * 
* - * repeated .google.cloud.securitycentermanagement.v1.EventThreatDetectionCustomModule event_threat_detection_custom_modules = 1; + * + * repeated .google.cloud.securitycentermanagement.v1.EventThreatDetectionCustomModule event_threat_detection_custom_modules = 1; + * */ @java.lang.Override public int getEventThreatDetectionCustomModulesCount() { return eventThreatDetectionCustomModules_.size(); } /** + * + * *
    * The list of EventThreatDetectionCustomModules
    * 
* - * repeated .google.cloud.securitycentermanagement.v1.EventThreatDetectionCustomModule event_threat_detection_custom_modules = 1; + * + * repeated .google.cloud.securitycentermanagement.v1.EventThreatDetectionCustomModule event_threat_detection_custom_modules = 1; + * */ @java.lang.Override - public com.google.cloud.securitycentermanagement.v1.EventThreatDetectionCustomModule getEventThreatDetectionCustomModules(int index) { + public com.google.cloud.securitycentermanagement.v1.EventThreatDetectionCustomModule + getEventThreatDetectionCustomModules(int index) { return eventThreatDetectionCustomModules_.get(index); } /** + * + * *
    * The list of EventThreatDetectionCustomModules
    * 
* - * repeated .google.cloud.securitycentermanagement.v1.EventThreatDetectionCustomModule event_threat_detection_custom_modules = 1; + * + * repeated .google.cloud.securitycentermanagement.v1.EventThreatDetectionCustomModule event_threat_detection_custom_modules = 1; + * */ @java.lang.Override - public com.google.cloud.securitycentermanagement.v1.EventThreatDetectionCustomModuleOrBuilder getEventThreatDetectionCustomModulesOrBuilder( - int index) { + public com.google.cloud.securitycentermanagement.v1.EventThreatDetectionCustomModuleOrBuilder + getEventThreatDetectionCustomModulesOrBuilder(int index) { return eventThreatDetectionCustomModules_.get(index); } public static final int NEXT_PAGE_TOKEN_FIELD_NUMBER = 2; + @SuppressWarnings("serial") private volatile java.lang.Object nextPageToken_ = ""; /** + * + * *
    * A token identifying a page of results the server should return.
    * 
* * string next_page_token = 2; + * * @return The nextPageToken. */ @java.lang.Override @@ -122,29 +179,29 @@ 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 identifying a page of results the server should return.
    * 
* * 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 { @@ -153,6 +210,7 @@ public java.lang.String getNextPageToken() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -164,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 { for (int i = 0; i < eventThreatDetectionCustomModules_.size(); i++) { output.writeMessage(1, eventThreatDetectionCustomModules_.get(i)); } @@ -182,8 +239,9 @@ public int getSerializedSize() { size = 0; for (int i = 0; i < eventThreatDetectionCustomModules_.size(); i++) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, eventThreatDetectionCustomModules_.get(i)); + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 1, eventThreatDetectionCustomModules_.get(i)); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(nextPageToken_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, nextPageToken_); @@ -196,17 +254,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.securitycentermanagement.v1.ListEventThreatDetectionCustomModulesResponse)) { + if (!(obj + instanceof + com.google.cloud.securitycentermanagement.v1 + .ListEventThreatDetectionCustomModulesResponse)) { return super.equals(obj); } - com.google.cloud.securitycentermanagement.v1.ListEventThreatDetectionCustomModulesResponse other = (com.google.cloud.securitycentermanagement.v1.ListEventThreatDetectionCustomModulesResponse) obj; + com.google.cloud.securitycentermanagement.v1.ListEventThreatDetectionCustomModulesResponse + other = + (com.google.cloud.securitycentermanagement.v1 + .ListEventThreatDetectionCustomModulesResponse) + obj; if (!getEventThreatDetectionCustomModulesList() .equals(other.getEventThreatDetectionCustomModulesList())) return false; - if (!getNextPageToken() - .equals(other.getNextPageToken())) return false; + if (!getNextPageToken().equals(other.getNextPageToken())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -229,132 +293,161 @@ public int hashCode() { return hash; } - public static com.google.cloud.securitycentermanagement.v1.ListEventThreatDetectionCustomModulesResponse parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.securitycentermanagement.v1 + .ListEventThreatDetectionCustomModulesResponse + parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.securitycentermanagement.v1.ListEventThreatDetectionCustomModulesResponse parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.cloud.securitycentermanagement.v1 + .ListEventThreatDetectionCustomModulesResponse + 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.securitycentermanagement.v1.ListEventThreatDetectionCustomModulesResponse parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.cloud.securitycentermanagement.v1 + .ListEventThreatDetectionCustomModulesResponse + parseFrom(com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.securitycentermanagement.v1.ListEventThreatDetectionCustomModulesResponse parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.cloud.securitycentermanagement.v1 + .ListEventThreatDetectionCustomModulesResponse + parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.securitycentermanagement.v1.ListEventThreatDetectionCustomModulesResponse parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.cloud.securitycentermanagement.v1 + .ListEventThreatDetectionCustomModulesResponse + parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.securitycentermanagement.v1.ListEventThreatDetectionCustomModulesResponse parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.cloud.securitycentermanagement.v1 + .ListEventThreatDetectionCustomModulesResponse + parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.securitycentermanagement.v1.ListEventThreatDetectionCustomModulesResponse parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.securitycentermanagement.v1 + .ListEventThreatDetectionCustomModulesResponse + parseFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } - public static com.google.cloud.securitycentermanagement.v1.ListEventThreatDetectionCustomModulesResponse 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.securitycentermanagement.v1 + .ListEventThreatDetectionCustomModulesResponse + 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.securitycentermanagement.v1.ListEventThreatDetectionCustomModulesResponse parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.securitycentermanagement.v1 + .ListEventThreatDetectionCustomModulesResponse + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.securitycentermanagement.v1.ListEventThreatDetectionCustomModulesResponse parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + public static com.google.cloud.securitycentermanagement.v1 + .ListEventThreatDetectionCustomModulesResponse + parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.securitycentermanagement.v1.ListEventThreatDetectionCustomModulesResponse parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.securitycentermanagement.v1 + .ListEventThreatDetectionCustomModulesResponse + parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } - public static com.google.cloud.securitycentermanagement.v1.ListEventThreatDetectionCustomModulesResponse 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.securitycentermanagement.v1 + .ListEventThreatDetectionCustomModulesResponse + 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.securitycentermanagement.v1.ListEventThreatDetectionCustomModulesResponse prototype) { + + public static Builder newBuilder( + com.google.cloud.securitycentermanagement.v1.ListEventThreatDetectionCustomModulesResponse + prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected 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 listing Event Threat Detection custom modules.
    * 
* - * Protobuf type {@code google.cloud.securitycentermanagement.v1.ListEventThreatDetectionCustomModulesResponse} + * Protobuf type {@code + * google.cloud.securitycentermanagement.v1.ListEventThreatDetectionCustomModulesResponse} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.securitycentermanagement.v1.ListEventThreatDetectionCustomModulesResponse) - com.google.cloud.securitycentermanagement.v1.ListEventThreatDetectionCustomModulesResponseOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.securitycentermanagement.v1.SecurityCenterManagementProto.internal_static_google_cloud_securitycentermanagement_v1_ListEventThreatDetectionCustomModulesResponse_descriptor; + com.google.cloud.securitycentermanagement.v1 + .ListEventThreatDetectionCustomModulesResponseOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.securitycentermanagement.v1.SecurityCenterManagementProto + .internal_static_google_cloud_securitycentermanagement_v1_ListEventThreatDetectionCustomModulesResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.securitycentermanagement.v1.SecurityCenterManagementProto.internal_static_google_cloud_securitycentermanagement_v1_ListEventThreatDetectionCustomModulesResponse_fieldAccessorTable + return com.google.cloud.securitycentermanagement.v1.SecurityCenterManagementProto + .internal_static_google_cloud_securitycentermanagement_v1_ListEventThreatDetectionCustomModulesResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.securitycentermanagement.v1.ListEventThreatDetectionCustomModulesResponse.class, com.google.cloud.securitycentermanagement.v1.ListEventThreatDetectionCustomModulesResponse.Builder.class); + com.google.cloud.securitycentermanagement.v1 + .ListEventThreatDetectionCustomModulesResponse.class, + com.google.cloud.securitycentermanagement.v1 + .ListEventThreatDetectionCustomModulesResponse.Builder.class); } - // Construct using com.google.cloud.securitycentermanagement.v1.ListEventThreatDetectionCustomModulesResponse.newBuilder() - private Builder() { + // Construct using + // com.google.cloud.securitycentermanagement.v1.ListEventThreatDetectionCustomModulesResponse.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(); @@ -371,19 +464,25 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.securitycentermanagement.v1.SecurityCenterManagementProto.internal_static_google_cloud_securitycentermanagement_v1_ListEventThreatDetectionCustomModulesResponse_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.securitycentermanagement.v1.SecurityCenterManagementProto + .internal_static_google_cloud_securitycentermanagement_v1_ListEventThreatDetectionCustomModulesResponse_descriptor; } @java.lang.Override - public com.google.cloud.securitycentermanagement.v1.ListEventThreatDetectionCustomModulesResponse getDefaultInstanceForType() { - return com.google.cloud.securitycentermanagement.v1.ListEventThreatDetectionCustomModulesResponse.getDefaultInstance(); + public com.google.cloud.securitycentermanagement.v1 + .ListEventThreatDetectionCustomModulesResponse + getDefaultInstanceForType() { + return com.google.cloud.securitycentermanagement.v1 + .ListEventThreatDetectionCustomModulesResponse.getDefaultInstance(); } @java.lang.Override - public com.google.cloud.securitycentermanagement.v1.ListEventThreatDetectionCustomModulesResponse build() { - com.google.cloud.securitycentermanagement.v1.ListEventThreatDetectionCustomModulesResponse result = buildPartial(); + public com.google.cloud.securitycentermanagement.v1 + .ListEventThreatDetectionCustomModulesResponse + build() { + com.google.cloud.securitycentermanagement.v1.ListEventThreatDetectionCustomModulesResponse + result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } @@ -391,27 +490,40 @@ public com.google.cloud.securitycentermanagement.v1.ListEventThreatDetectionCust } @java.lang.Override - public com.google.cloud.securitycentermanagement.v1.ListEventThreatDetectionCustomModulesResponse buildPartial() { - com.google.cloud.securitycentermanagement.v1.ListEventThreatDetectionCustomModulesResponse result = new com.google.cloud.securitycentermanagement.v1.ListEventThreatDetectionCustomModulesResponse(this); + public com.google.cloud.securitycentermanagement.v1 + .ListEventThreatDetectionCustomModulesResponse + buildPartial() { + com.google.cloud.securitycentermanagement.v1.ListEventThreatDetectionCustomModulesResponse + result = + new com.google.cloud.securitycentermanagement.v1 + .ListEventThreatDetectionCustomModulesResponse(this); buildPartialRepeatedFields(result); - if (bitField0_ != 0) { buildPartial0(result); } + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } - private void buildPartialRepeatedFields(com.google.cloud.securitycentermanagement.v1.ListEventThreatDetectionCustomModulesResponse result) { + private void buildPartialRepeatedFields( + com.google.cloud.securitycentermanagement.v1.ListEventThreatDetectionCustomModulesResponse + result) { if (eventThreatDetectionCustomModulesBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0)) { - eventThreatDetectionCustomModules_ = java.util.Collections.unmodifiableList(eventThreatDetectionCustomModules_); + eventThreatDetectionCustomModules_ = + java.util.Collections.unmodifiableList(eventThreatDetectionCustomModules_); bitField0_ = (bitField0_ & ~0x00000001); } result.eventThreatDetectionCustomModules_ = eventThreatDetectionCustomModules_; } else { - result.eventThreatDetectionCustomModules_ = eventThreatDetectionCustomModulesBuilder_.build(); + result.eventThreatDetectionCustomModules_ = + eventThreatDetectionCustomModulesBuilder_.build(); } } - private void buildPartial0(com.google.cloud.securitycentermanagement.v1.ListEventThreatDetectionCustomModulesResponse result) { + private void buildPartial0( + com.google.cloud.securitycentermanagement.v1.ListEventThreatDetectionCustomModulesResponse + result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000002) != 0)) { result.nextPageToken_ = nextPageToken_; @@ -422,46 +534,57 @@ private void buildPartial0(com.google.cloud.securitycentermanagement.v1.ListEven public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.cloud.securitycentermanagement.v1.ListEventThreatDetectionCustomModulesResponse) { - return mergeFrom((com.google.cloud.securitycentermanagement.v1.ListEventThreatDetectionCustomModulesResponse)other); + if (other + instanceof + com.google.cloud.securitycentermanagement.v1 + .ListEventThreatDetectionCustomModulesResponse) { + return mergeFrom( + (com.google.cloud.securitycentermanagement.v1 + .ListEventThreatDetectionCustomModulesResponse) + other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom(com.google.cloud.securitycentermanagement.v1.ListEventThreatDetectionCustomModulesResponse other) { - if (other == com.google.cloud.securitycentermanagement.v1.ListEventThreatDetectionCustomModulesResponse.getDefaultInstance()) return this; + public Builder mergeFrom( + com.google.cloud.securitycentermanagement.v1.ListEventThreatDetectionCustomModulesResponse + other) { + if (other + == com.google.cloud.securitycentermanagement.v1 + .ListEventThreatDetectionCustomModulesResponse.getDefaultInstance()) return this; if (eventThreatDetectionCustomModulesBuilder_ == null) { if (!other.eventThreatDetectionCustomModules_.isEmpty()) { if (eventThreatDetectionCustomModules_.isEmpty()) { @@ -480,11 +603,13 @@ public Builder mergeFrom(com.google.cloud.securitycentermanagement.v1.ListEventT eventThreatDetectionCustomModulesBuilder_ = null; eventThreatDetectionCustomModules_ = other.eventThreatDetectionCustomModules_; bitField0_ = (bitField0_ & ~0x00000001); - eventThreatDetectionCustomModulesBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? - getEventThreatDetectionCustomModulesFieldBuilder() : null; + eventThreatDetectionCustomModulesBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getEventThreatDetectionCustomModulesFieldBuilder() + : null; } else { - eventThreatDetectionCustomModulesBuilder_.addAllMessages(other.eventThreatDetectionCustomModules_); + eventThreatDetectionCustomModulesBuilder_.addAllMessages( + other.eventThreatDetectionCustomModules_); } } } @@ -519,30 +644,34 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: { - com.google.cloud.securitycentermanagement.v1.EventThreatDetectionCustomModule m = - input.readMessage( - com.google.cloud.securitycentermanagement.v1.EventThreatDetectionCustomModule.parser(), - extensionRegistry); - if (eventThreatDetectionCustomModulesBuilder_ == null) { - ensureEventThreatDetectionCustomModulesIsMutable(); - eventThreatDetectionCustomModules_.add(m); - } else { - eventThreatDetectionCustomModulesBuilder_.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.securitycentermanagement.v1.EventThreatDetectionCustomModule m = + input.readMessage( + com.google.cloud.securitycentermanagement.v1 + .EventThreatDetectionCustomModule.parser(), + extensionRegistry); + if (eventThreatDetectionCustomModulesBuilder_ == null) { + ensureEventThreatDetectionCustomModulesIsMutable(); + eventThreatDetectionCustomModules_.add(m); + } else { + eventThreatDetectionCustomModulesBuilder_.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) { @@ -552,28 +681,43 @@ public Builder mergeFrom( } // finally return this; } + private int bitField0_; - private java.util.List eventThreatDetectionCustomModules_ = - java.util.Collections.emptyList(); + private java.util.List< + com.google.cloud.securitycentermanagement.v1.EventThreatDetectionCustomModule> + eventThreatDetectionCustomModules_ = java.util.Collections.emptyList(); + private void ensureEventThreatDetectionCustomModulesIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { - eventThreatDetectionCustomModules_ = new java.util.ArrayList(eventThreatDetectionCustomModules_); + eventThreatDetectionCustomModules_ = + new java.util.ArrayList< + com.google.cloud.securitycentermanagement.v1.EventThreatDetectionCustomModule>( + eventThreatDetectionCustomModules_); bitField0_ |= 0x00000001; - } + } } private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.securitycentermanagement.v1.EventThreatDetectionCustomModule, com.google.cloud.securitycentermanagement.v1.EventThreatDetectionCustomModule.Builder, com.google.cloud.securitycentermanagement.v1.EventThreatDetectionCustomModuleOrBuilder> eventThreatDetectionCustomModulesBuilder_; + com.google.cloud.securitycentermanagement.v1.EventThreatDetectionCustomModule, + com.google.cloud.securitycentermanagement.v1.EventThreatDetectionCustomModule.Builder, + com.google.cloud.securitycentermanagement.v1.EventThreatDetectionCustomModuleOrBuilder> + eventThreatDetectionCustomModulesBuilder_; /** + * + * *
      * The list of EventThreatDetectionCustomModules
      * 
* - * repeated .google.cloud.securitycentermanagement.v1.EventThreatDetectionCustomModule event_threat_detection_custom_modules = 1; + * + * repeated .google.cloud.securitycentermanagement.v1.EventThreatDetectionCustomModule event_threat_detection_custom_modules = 1; + * */ - public java.util.List getEventThreatDetectionCustomModulesList() { + public java.util.List< + com.google.cloud.securitycentermanagement.v1.EventThreatDetectionCustomModule> + getEventThreatDetectionCustomModulesList() { if (eventThreatDetectionCustomModulesBuilder_ == null) { return java.util.Collections.unmodifiableList(eventThreatDetectionCustomModules_); } else { @@ -581,11 +725,15 @@ public java.util.List * The list of EventThreatDetectionCustomModules *
* - * repeated .google.cloud.securitycentermanagement.v1.EventThreatDetectionCustomModule event_threat_detection_custom_modules = 1; + * + * repeated .google.cloud.securitycentermanagement.v1.EventThreatDetectionCustomModule event_threat_detection_custom_modules = 1; + * */ public int getEventThreatDetectionCustomModulesCount() { if (eventThreatDetectionCustomModulesBuilder_ == null) { @@ -595,13 +743,18 @@ public int getEventThreatDetectionCustomModulesCount() { } } /** + * + * *
      * The list of EventThreatDetectionCustomModules
      * 
* - * repeated .google.cloud.securitycentermanagement.v1.EventThreatDetectionCustomModule event_threat_detection_custom_modules = 1; + * + * repeated .google.cloud.securitycentermanagement.v1.EventThreatDetectionCustomModule event_threat_detection_custom_modules = 1; + * */ - public com.google.cloud.securitycentermanagement.v1.EventThreatDetectionCustomModule getEventThreatDetectionCustomModules(int index) { + public com.google.cloud.securitycentermanagement.v1.EventThreatDetectionCustomModule + getEventThreatDetectionCustomModules(int index) { if (eventThreatDetectionCustomModulesBuilder_ == null) { return eventThreatDetectionCustomModules_.get(index); } else { @@ -609,14 +762,19 @@ public com.google.cloud.securitycentermanagement.v1.EventThreatDetectionCustomMo } } /** + * + * *
      * The list of EventThreatDetectionCustomModules
      * 
* - * repeated .google.cloud.securitycentermanagement.v1.EventThreatDetectionCustomModule event_threat_detection_custom_modules = 1; + * + * repeated .google.cloud.securitycentermanagement.v1.EventThreatDetectionCustomModule event_threat_detection_custom_modules = 1; + * */ public Builder setEventThreatDetectionCustomModules( - int index, com.google.cloud.securitycentermanagement.v1.EventThreatDetectionCustomModule value) { + int index, + com.google.cloud.securitycentermanagement.v1.EventThreatDetectionCustomModule value) { if (eventThreatDetectionCustomModulesBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -630,14 +788,20 @@ public Builder setEventThreatDetectionCustomModules( return this; } /** + * + * *
      * The list of EventThreatDetectionCustomModules
      * 
* - * repeated .google.cloud.securitycentermanagement.v1.EventThreatDetectionCustomModule event_threat_detection_custom_modules = 1; + * + * repeated .google.cloud.securitycentermanagement.v1.EventThreatDetectionCustomModule event_threat_detection_custom_modules = 1; + * */ public Builder setEventThreatDetectionCustomModules( - int index, com.google.cloud.securitycentermanagement.v1.EventThreatDetectionCustomModule.Builder builderForValue) { + int index, + com.google.cloud.securitycentermanagement.v1.EventThreatDetectionCustomModule.Builder + builderForValue) { if (eventThreatDetectionCustomModulesBuilder_ == null) { ensureEventThreatDetectionCustomModulesIsMutable(); eventThreatDetectionCustomModules_.set(index, builderForValue.build()); @@ -648,13 +812,18 @@ public Builder setEventThreatDetectionCustomModules( return this; } /** + * + * *
      * The list of EventThreatDetectionCustomModules
      * 
* - * repeated .google.cloud.securitycentermanagement.v1.EventThreatDetectionCustomModule event_threat_detection_custom_modules = 1; + * + * repeated .google.cloud.securitycentermanagement.v1.EventThreatDetectionCustomModule event_threat_detection_custom_modules = 1; + * */ - public Builder addEventThreatDetectionCustomModules(com.google.cloud.securitycentermanagement.v1.EventThreatDetectionCustomModule value) { + public Builder addEventThreatDetectionCustomModules( + com.google.cloud.securitycentermanagement.v1.EventThreatDetectionCustomModule value) { if (eventThreatDetectionCustomModulesBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -668,14 +837,19 @@ public Builder addEventThreatDetectionCustomModules(com.google.cloud.securitycen return this; } /** + * + * *
      * The list of EventThreatDetectionCustomModules
      * 
* - * repeated .google.cloud.securitycentermanagement.v1.EventThreatDetectionCustomModule event_threat_detection_custom_modules = 1; + * + * repeated .google.cloud.securitycentermanagement.v1.EventThreatDetectionCustomModule event_threat_detection_custom_modules = 1; + * */ public Builder addEventThreatDetectionCustomModules( - int index, com.google.cloud.securitycentermanagement.v1.EventThreatDetectionCustomModule value) { + int index, + com.google.cloud.securitycentermanagement.v1.EventThreatDetectionCustomModule value) { if (eventThreatDetectionCustomModulesBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -689,14 +863,19 @@ public Builder addEventThreatDetectionCustomModules( return this; } /** + * + * *
      * The list of EventThreatDetectionCustomModules
      * 
* - * repeated .google.cloud.securitycentermanagement.v1.EventThreatDetectionCustomModule event_threat_detection_custom_modules = 1; + * + * repeated .google.cloud.securitycentermanagement.v1.EventThreatDetectionCustomModule event_threat_detection_custom_modules = 1; + * */ public Builder addEventThreatDetectionCustomModules( - com.google.cloud.securitycentermanagement.v1.EventThreatDetectionCustomModule.Builder builderForValue) { + com.google.cloud.securitycentermanagement.v1.EventThreatDetectionCustomModule.Builder + builderForValue) { if (eventThreatDetectionCustomModulesBuilder_ == null) { ensureEventThreatDetectionCustomModulesIsMutable(); eventThreatDetectionCustomModules_.add(builderForValue.build()); @@ -707,14 +886,20 @@ public Builder addEventThreatDetectionCustomModules( return this; } /** + * + * *
      * The list of EventThreatDetectionCustomModules
      * 
* - * repeated .google.cloud.securitycentermanagement.v1.EventThreatDetectionCustomModule event_threat_detection_custom_modules = 1; + * + * repeated .google.cloud.securitycentermanagement.v1.EventThreatDetectionCustomModule event_threat_detection_custom_modules = 1; + * */ public Builder addEventThreatDetectionCustomModules( - int index, com.google.cloud.securitycentermanagement.v1.EventThreatDetectionCustomModule.Builder builderForValue) { + int index, + com.google.cloud.securitycentermanagement.v1.EventThreatDetectionCustomModule.Builder + builderForValue) { if (eventThreatDetectionCustomModulesBuilder_ == null) { ensureEventThreatDetectionCustomModulesIsMutable(); eventThreatDetectionCustomModules_.add(index, builderForValue.build()); @@ -725,14 +910,21 @@ public Builder addEventThreatDetectionCustomModules( return this; } /** + * + * *
      * The list of EventThreatDetectionCustomModules
      * 
* - * repeated .google.cloud.securitycentermanagement.v1.EventThreatDetectionCustomModule event_threat_detection_custom_modules = 1; + * + * repeated .google.cloud.securitycentermanagement.v1.EventThreatDetectionCustomModule event_threat_detection_custom_modules = 1; + * */ public Builder addAllEventThreatDetectionCustomModules( - java.lang.Iterable values) { + java.lang.Iterable< + ? extends + com.google.cloud.securitycentermanagement.v1.EventThreatDetectionCustomModule> + values) { if (eventThreatDetectionCustomModulesBuilder_ == null) { ensureEventThreatDetectionCustomModulesIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( @@ -744,11 +936,15 @@ public Builder addAllEventThreatDetectionCustomModules( return this; } /** + * + * *
      * The list of EventThreatDetectionCustomModules
      * 
* - * repeated .google.cloud.securitycentermanagement.v1.EventThreatDetectionCustomModule event_threat_detection_custom_modules = 1; + * + * repeated .google.cloud.securitycentermanagement.v1.EventThreatDetectionCustomModule event_threat_detection_custom_modules = 1; + * */ public Builder clearEventThreatDetectionCustomModules() { if (eventThreatDetectionCustomModulesBuilder_ == null) { @@ -761,11 +957,15 @@ public Builder clearEventThreatDetectionCustomModules() { return this; } /** + * + * *
      * The list of EventThreatDetectionCustomModules
      * 
* - * repeated .google.cloud.securitycentermanagement.v1.EventThreatDetectionCustomModule event_threat_detection_custom_modules = 1; + * + * repeated .google.cloud.securitycentermanagement.v1.EventThreatDetectionCustomModule event_threat_detection_custom_modules = 1; + * */ public Builder removeEventThreatDetectionCustomModules(int index) { if (eventThreatDetectionCustomModulesBuilder_ == null) { @@ -778,39 +978,55 @@ public Builder removeEventThreatDetectionCustomModules(int index) { return this; } /** + * + * *
      * The list of EventThreatDetectionCustomModules
      * 
* - * repeated .google.cloud.securitycentermanagement.v1.EventThreatDetectionCustomModule event_threat_detection_custom_modules = 1; + * + * repeated .google.cloud.securitycentermanagement.v1.EventThreatDetectionCustomModule event_threat_detection_custom_modules = 1; + * */ - public com.google.cloud.securitycentermanagement.v1.EventThreatDetectionCustomModule.Builder getEventThreatDetectionCustomModulesBuilder( - int index) { + public com.google.cloud.securitycentermanagement.v1.EventThreatDetectionCustomModule.Builder + getEventThreatDetectionCustomModulesBuilder(int index) { return getEventThreatDetectionCustomModulesFieldBuilder().getBuilder(index); } /** + * + * *
      * The list of EventThreatDetectionCustomModules
      * 
* - * repeated .google.cloud.securitycentermanagement.v1.EventThreatDetectionCustomModule event_threat_detection_custom_modules = 1; + * + * repeated .google.cloud.securitycentermanagement.v1.EventThreatDetectionCustomModule event_threat_detection_custom_modules = 1; + * */ - public com.google.cloud.securitycentermanagement.v1.EventThreatDetectionCustomModuleOrBuilder getEventThreatDetectionCustomModulesOrBuilder( - int index) { + public com.google.cloud.securitycentermanagement.v1.EventThreatDetectionCustomModuleOrBuilder + getEventThreatDetectionCustomModulesOrBuilder(int index) { if (eventThreatDetectionCustomModulesBuilder_ == null) { - return eventThreatDetectionCustomModules_.get(index); } else { + return eventThreatDetectionCustomModules_.get(index); + } else { return eventThreatDetectionCustomModulesBuilder_.getMessageOrBuilder(index); } } /** + * + * *
      * The list of EventThreatDetectionCustomModules
      * 
* - * repeated .google.cloud.securitycentermanagement.v1.EventThreatDetectionCustomModule event_threat_detection_custom_modules = 1; + * + * repeated .google.cloud.securitycentermanagement.v1.EventThreatDetectionCustomModule event_threat_detection_custom_modules = 1; + * */ - public java.util.List - getEventThreatDetectionCustomModulesOrBuilderList() { + public java.util.List< + ? extends + com.google.cloud.securitycentermanagement.v1 + .EventThreatDetectionCustomModuleOrBuilder> + getEventThreatDetectionCustomModulesOrBuilderList() { if (eventThreatDetectionCustomModulesBuilder_ != null) { return eventThreatDetectionCustomModulesBuilder_.getMessageOrBuilderList(); } else { @@ -818,45 +1034,72 @@ public com.google.cloud.securitycentermanagement.v1.EventThreatDetectionCustomMo } } /** + * + * *
      * The list of EventThreatDetectionCustomModules
      * 
* - * repeated .google.cloud.securitycentermanagement.v1.EventThreatDetectionCustomModule event_threat_detection_custom_modules = 1; + * + * repeated .google.cloud.securitycentermanagement.v1.EventThreatDetectionCustomModule event_threat_detection_custom_modules = 1; + * */ - public com.google.cloud.securitycentermanagement.v1.EventThreatDetectionCustomModule.Builder addEventThreatDetectionCustomModulesBuilder() { - return getEventThreatDetectionCustomModulesFieldBuilder().addBuilder( - com.google.cloud.securitycentermanagement.v1.EventThreatDetectionCustomModule.getDefaultInstance()); + public com.google.cloud.securitycentermanagement.v1.EventThreatDetectionCustomModule.Builder + addEventThreatDetectionCustomModulesBuilder() { + return getEventThreatDetectionCustomModulesFieldBuilder() + .addBuilder( + com.google.cloud.securitycentermanagement.v1.EventThreatDetectionCustomModule + .getDefaultInstance()); } /** + * + * *
      * The list of EventThreatDetectionCustomModules
      * 
* - * repeated .google.cloud.securitycentermanagement.v1.EventThreatDetectionCustomModule event_threat_detection_custom_modules = 1; + * + * repeated .google.cloud.securitycentermanagement.v1.EventThreatDetectionCustomModule event_threat_detection_custom_modules = 1; + * */ - public com.google.cloud.securitycentermanagement.v1.EventThreatDetectionCustomModule.Builder addEventThreatDetectionCustomModulesBuilder( - int index) { - return getEventThreatDetectionCustomModulesFieldBuilder().addBuilder( - index, com.google.cloud.securitycentermanagement.v1.EventThreatDetectionCustomModule.getDefaultInstance()); + public com.google.cloud.securitycentermanagement.v1.EventThreatDetectionCustomModule.Builder + addEventThreatDetectionCustomModulesBuilder(int index) { + return getEventThreatDetectionCustomModulesFieldBuilder() + .addBuilder( + index, + com.google.cloud.securitycentermanagement.v1.EventThreatDetectionCustomModule + .getDefaultInstance()); } /** + * + * *
      * The list of EventThreatDetectionCustomModules
      * 
* - * repeated .google.cloud.securitycentermanagement.v1.EventThreatDetectionCustomModule event_threat_detection_custom_modules = 1; + * + * repeated .google.cloud.securitycentermanagement.v1.EventThreatDetectionCustomModule event_threat_detection_custom_modules = 1; + * */ - public java.util.List - getEventThreatDetectionCustomModulesBuilderList() { + public java.util.List< + com.google.cloud.securitycentermanagement.v1.EventThreatDetectionCustomModule.Builder> + getEventThreatDetectionCustomModulesBuilderList() { return getEventThreatDetectionCustomModulesFieldBuilder().getBuilderList(); } + private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.securitycentermanagement.v1.EventThreatDetectionCustomModule, com.google.cloud.securitycentermanagement.v1.EventThreatDetectionCustomModule.Builder, com.google.cloud.securitycentermanagement.v1.EventThreatDetectionCustomModuleOrBuilder> + com.google.cloud.securitycentermanagement.v1.EventThreatDetectionCustomModule, + com.google.cloud.securitycentermanagement.v1.EventThreatDetectionCustomModule.Builder, + com.google.cloud.securitycentermanagement.v1.EventThreatDetectionCustomModuleOrBuilder> getEventThreatDetectionCustomModulesFieldBuilder() { if (eventThreatDetectionCustomModulesBuilder_ == null) { - eventThreatDetectionCustomModulesBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.securitycentermanagement.v1.EventThreatDetectionCustomModule, com.google.cloud.securitycentermanagement.v1.EventThreatDetectionCustomModule.Builder, com.google.cloud.securitycentermanagement.v1.EventThreatDetectionCustomModuleOrBuilder>( + eventThreatDetectionCustomModulesBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.securitycentermanagement.v1.EventThreatDetectionCustomModule, + com.google.cloud.securitycentermanagement.v1.EventThreatDetectionCustomModule + .Builder, + com.google.cloud.securitycentermanagement.v1 + .EventThreatDetectionCustomModuleOrBuilder>( eventThreatDetectionCustomModules_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), @@ -868,18 +1111,20 @@ public com.google.cloud.securitycentermanagement.v1.EventThreatDetectionCustomMo private java.lang.Object nextPageToken_ = ""; /** + * + * *
      * A token identifying a page of results the server should return.
      * 
* * 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; @@ -888,20 +1133,21 @@ public java.lang.String getNextPageToken() { } } /** + * + * *
      * A token identifying a page of results the server should return.
      * 
* * 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 { @@ -909,28 +1155,35 @@ public java.lang.String getNextPageToken() { } } /** + * + * *
      * A token identifying a page of results the server should return.
      * 
* * 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 identifying a page of results the server should return.
      * 
* * string next_page_token = 2; + * * @return This builder for chaining. */ public Builder clearNextPageToken() { @@ -940,26 +1193,30 @@ public Builder clearNextPageToken() { return this; } /** + * + * *
      * A token identifying a page of results the server should return.
      * 
* * 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); } @@ -969,55 +1226,63 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.securitycentermanagement.v1.ListEventThreatDetectionCustomModulesResponse) } // @@protoc_insertion_point(class_scope:google.cloud.securitycentermanagement.v1.ListEventThreatDetectionCustomModulesResponse) - private static final com.google.cloud.securitycentermanagement.v1.ListEventThreatDetectionCustomModulesResponse DEFAULT_INSTANCE; + private static final com.google.cloud.securitycentermanagement.v1 + .ListEventThreatDetectionCustomModulesResponse + DEFAULT_INSTANCE; + static { - DEFAULT_INSTANCE = new com.google.cloud.securitycentermanagement.v1.ListEventThreatDetectionCustomModulesResponse(); + DEFAULT_INSTANCE = + new com.google.cloud.securitycentermanagement.v1 + .ListEventThreatDetectionCustomModulesResponse(); } - public static com.google.cloud.securitycentermanagement.v1.ListEventThreatDetectionCustomModulesResponse getDefaultInstance() { + public static com.google.cloud.securitycentermanagement.v1 + .ListEventThreatDetectionCustomModulesResponse + getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ListEventThreatDetectionCustomModulesResponse parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListEventThreatDetectionCustomModulesResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException() + .setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; } @java.lang.Override - public com.google.protobuf.Parser getParserForType() { + public com.google.protobuf.Parser + getParserForType() { return PARSER; } @java.lang.Override - public com.google.cloud.securitycentermanagement.v1.ListEventThreatDetectionCustomModulesResponse getDefaultInstanceForType() { + public com.google.cloud.securitycentermanagement.v1.ListEventThreatDetectionCustomModulesResponse + getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/java-securitycentermanagement/proto-google-cloud-securitycentermanagement-v1/src/main/java/com/google/cloud/securitycentermanagement/v1/ListEventThreatDetectionCustomModulesResponseOrBuilder.java b/java-securitycentermanagement/proto-google-cloud-securitycentermanagement-v1/src/main/java/com/google/cloud/securitycentermanagement/v1/ListEventThreatDetectionCustomModulesResponseOrBuilder.java new file mode 100644 index 000000000000..1e8d1abe21e9 --- /dev/null +++ b/java-securitycentermanagement/proto-google-cloud-securitycentermanagement-v1/src/main/java/com/google/cloud/securitycentermanagement/v1/ListEventThreatDetectionCustomModulesResponseOrBuilder.java @@ -0,0 +1,118 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/securitycentermanagement/v1/security_center_management.proto + +package com.google.cloud.securitycentermanagement.v1; + +public interface ListEventThreatDetectionCustomModulesResponseOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.securitycentermanagement.v1.ListEventThreatDetectionCustomModulesResponse) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * The list of EventThreatDetectionCustomModules
+   * 
+ * + * + * repeated .google.cloud.securitycentermanagement.v1.EventThreatDetectionCustomModule event_threat_detection_custom_modules = 1; + * + */ + java.util.List + getEventThreatDetectionCustomModulesList(); + /** + * + * + *
+   * The list of EventThreatDetectionCustomModules
+   * 
+ * + * + * repeated .google.cloud.securitycentermanagement.v1.EventThreatDetectionCustomModule event_threat_detection_custom_modules = 1; + * + */ + com.google.cloud.securitycentermanagement.v1.EventThreatDetectionCustomModule + getEventThreatDetectionCustomModules(int index); + /** + * + * + *
+   * The list of EventThreatDetectionCustomModules
+   * 
+ * + * + * repeated .google.cloud.securitycentermanagement.v1.EventThreatDetectionCustomModule event_threat_detection_custom_modules = 1; + * + */ + int getEventThreatDetectionCustomModulesCount(); + /** + * + * + *
+   * The list of EventThreatDetectionCustomModules
+   * 
+ * + * + * repeated .google.cloud.securitycentermanagement.v1.EventThreatDetectionCustomModule event_threat_detection_custom_modules = 1; + * + */ + java.util.List< + ? extends + com.google.cloud.securitycentermanagement.v1 + .EventThreatDetectionCustomModuleOrBuilder> + getEventThreatDetectionCustomModulesOrBuilderList(); + /** + * + * + *
+   * The list of EventThreatDetectionCustomModules
+   * 
+ * + * + * repeated .google.cloud.securitycentermanagement.v1.EventThreatDetectionCustomModule event_threat_detection_custom_modules = 1; + * + */ + com.google.cloud.securitycentermanagement.v1.EventThreatDetectionCustomModuleOrBuilder + getEventThreatDetectionCustomModulesOrBuilder(int index); + + /** + * + * + *
+   * A token identifying a page of results the server should return.
+   * 
+ * + * string next_page_token = 2; + * + * @return The nextPageToken. + */ + java.lang.String getNextPageToken(); + /** + * + * + *
+   * A token identifying a page of results the server should return.
+   * 
+ * + * string next_page_token = 2; + * + * @return The bytes for nextPageToken. + */ + com.google.protobuf.ByteString getNextPageTokenBytes(); +} diff --git a/owl-bot-staging/java-securitycentermanagement/v1/proto-google-cloud-securitycentermanagement-v1/src/main/java/com/google/cloud/securitycentermanagement/v1/ListSecurityHealthAnalyticsCustomModulesRequest.java b/java-securitycentermanagement/proto-google-cloud-securitycentermanagement-v1/src/main/java/com/google/cloud/securitycentermanagement/v1/ListSecurityHealthAnalyticsCustomModulesRequest.java similarity index 53% rename from owl-bot-staging/java-securitycentermanagement/v1/proto-google-cloud-securitycentermanagement-v1/src/main/java/com/google/cloud/securitycentermanagement/v1/ListSecurityHealthAnalyticsCustomModulesRequest.java rename to java-securitycentermanagement/proto-google-cloud-securitycentermanagement-v1/src/main/java/com/google/cloud/securitycentermanagement/v1/ListSecurityHealthAnalyticsCustomModulesRequest.java index 9cd0ab9866ff..3c9d0fe4ffbc 100644 --- a/owl-bot-staging/java-securitycentermanagement/v1/proto-google-cloud-securitycentermanagement-v1/src/main/java/com/google/cloud/securitycentermanagement/v1/ListSecurityHealthAnalyticsCustomModulesRequest.java +++ b/java-securitycentermanagement/proto-google-cloud-securitycentermanagement-v1/src/main/java/com/google/cloud/securitycentermanagement/v1/ListSecurityHealthAnalyticsCustomModulesRequest.java @@ -1,24 +1,45 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/securitycentermanagement/v1/security_center_management.proto package com.google.cloud.securitycentermanagement.v1; /** + * + * *
  * Request message for listing Security Health Analytics custom modules.
  * 
* - * Protobuf type {@code google.cloud.securitycentermanagement.v1.ListSecurityHealthAnalyticsCustomModulesRequest} + * Protobuf type {@code + * google.cloud.securitycentermanagement.v1.ListSecurityHealthAnalyticsCustomModulesRequest} */ -public final class ListSecurityHealthAnalyticsCustomModulesRequest extends - com.google.protobuf.GeneratedMessageV3 implements +public final class ListSecurityHealthAnalyticsCustomModulesRequest + extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.securitycentermanagement.v1.ListSecurityHealthAnalyticsCustomModulesRequest) ListSecurityHealthAnalyticsCustomModulesRequestOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use ListSecurityHealthAnalyticsCustomModulesRequest.newBuilder() to construct. - private ListSecurityHealthAnalyticsCustomModulesRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + private ListSecurityHealthAnalyticsCustomModulesRequest( + com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private ListSecurityHealthAnalyticsCustomModulesRequest() { parent_ = ""; pageToken_ = ""; @@ -26,28 +47,34 @@ private ListSecurityHealthAnalyticsCustomModulesRequest() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new ListSecurityHealthAnalyticsCustomModulesRequest(); } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.securitycentermanagement.v1.SecurityCenterManagementProto.internal_static_google_cloud_securitycentermanagement_v1_ListSecurityHealthAnalyticsCustomModulesRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.securitycentermanagement.v1.SecurityCenterManagementProto + .internal_static_google_cloud_securitycentermanagement_v1_ListSecurityHealthAnalyticsCustomModulesRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.securitycentermanagement.v1.SecurityCenterManagementProto.internal_static_google_cloud_securitycentermanagement_v1_ListSecurityHealthAnalyticsCustomModulesRequest_fieldAccessorTable + return com.google.cloud.securitycentermanagement.v1.SecurityCenterManagementProto + .internal_static_google_cloud_securitycentermanagement_v1_ListSecurityHealthAnalyticsCustomModulesRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.securitycentermanagement.v1.ListSecurityHealthAnalyticsCustomModulesRequest.class, com.google.cloud.securitycentermanagement.v1.ListSecurityHealthAnalyticsCustomModulesRequest.Builder.class); + com.google.cloud.securitycentermanagement.v1 + .ListSecurityHealthAnalyticsCustomModulesRequest.class, + com.google.cloud.securitycentermanagement.v1 + .ListSecurityHealthAnalyticsCustomModulesRequest.Builder.class); } public static final int PARENT_FIELD_NUMBER = 1; + @SuppressWarnings("serial") private volatile java.lang.Object parent_ = ""; /** + * + * *
    * Required. Name of parent to list custom modules. Its format is
    * "organizations/{organization}/locations/{location}",
@@ -56,7 +83,10 @@ protected java.lang.Object newInstance(
    * "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 @@ -65,14 +95,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. Name of parent to list custom modules. Its format is
    * "organizations/{organization}/locations/{location}",
@@ -81,17 +112,18 @@ public java.lang.String getParent() {
    * "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 { @@ -102,12 +134,15 @@ public java.lang.String getParent() { public static final int PAGE_SIZE_FIELD_NUMBER = 2; private int pageSize_ = 0; /** + * + * *
    * Optional. The maximum number of results to return in a single response.
    * Default is 10, minimum is 1, maximum is 1000.
    * 
* * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The pageSize. */ @java.lang.Override @@ -116,14 +151,18 @@ public int getPageSize() { } public static final int PAGE_TOKEN_FIELD_NUMBER = 3; + @SuppressWarnings("serial") private volatile java.lang.Object pageToken_ = ""; /** + * + * *
    * Optional. A token identifying a page of results the server should return.
    * 
* * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The pageToken. */ @java.lang.Override @@ -132,29 +171,29 @@ 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. A token identifying a page of results the server should return.
    * 
* * 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 { @@ -163,6 +202,7 @@ public java.lang.String getPageToken() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -174,8 +214,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.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,8 +237,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_); @@ -212,19 +250,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.securitycentermanagement.v1.ListSecurityHealthAnalyticsCustomModulesRequest)) { + if (!(obj + instanceof + com.google.cloud.securitycentermanagement.v1 + .ListSecurityHealthAnalyticsCustomModulesRequest)) { return super.equals(obj); } - com.google.cloud.securitycentermanagement.v1.ListSecurityHealthAnalyticsCustomModulesRequest other = (com.google.cloud.securitycentermanagement.v1.ListSecurityHealthAnalyticsCustomModulesRequest) obj; + com.google.cloud.securitycentermanagement.v1.ListSecurityHealthAnalyticsCustomModulesRequest + other = + (com.google.cloud.securitycentermanagement.v1 + .ListSecurityHealthAnalyticsCustomModulesRequest) + 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; } @@ -247,132 +289,161 @@ public int hashCode() { return hash; } - public static com.google.cloud.securitycentermanagement.v1.ListSecurityHealthAnalyticsCustomModulesRequest parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.securitycentermanagement.v1 + .ListSecurityHealthAnalyticsCustomModulesRequest + parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.securitycentermanagement.v1.ListSecurityHealthAnalyticsCustomModulesRequest parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.cloud.securitycentermanagement.v1 + .ListSecurityHealthAnalyticsCustomModulesRequest + 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.securitycentermanagement.v1.ListSecurityHealthAnalyticsCustomModulesRequest parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.cloud.securitycentermanagement.v1 + .ListSecurityHealthAnalyticsCustomModulesRequest + parseFrom(com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.securitycentermanagement.v1.ListSecurityHealthAnalyticsCustomModulesRequest parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.cloud.securitycentermanagement.v1 + .ListSecurityHealthAnalyticsCustomModulesRequest + parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.securitycentermanagement.v1.ListSecurityHealthAnalyticsCustomModulesRequest parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.cloud.securitycentermanagement.v1 + .ListSecurityHealthAnalyticsCustomModulesRequest + parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.securitycentermanagement.v1.ListSecurityHealthAnalyticsCustomModulesRequest parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.cloud.securitycentermanagement.v1 + .ListSecurityHealthAnalyticsCustomModulesRequest + parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.securitycentermanagement.v1.ListSecurityHealthAnalyticsCustomModulesRequest parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.securitycentermanagement.v1 + .ListSecurityHealthAnalyticsCustomModulesRequest + parseFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } - public static com.google.cloud.securitycentermanagement.v1.ListSecurityHealthAnalyticsCustomModulesRequest 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.securitycentermanagement.v1 + .ListSecurityHealthAnalyticsCustomModulesRequest + 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.securitycentermanagement.v1.ListSecurityHealthAnalyticsCustomModulesRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.securitycentermanagement.v1 + .ListSecurityHealthAnalyticsCustomModulesRequest + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.securitycentermanagement.v1.ListSecurityHealthAnalyticsCustomModulesRequest parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + public static com.google.cloud.securitycentermanagement.v1 + .ListSecurityHealthAnalyticsCustomModulesRequest + parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.securitycentermanagement.v1.ListSecurityHealthAnalyticsCustomModulesRequest parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.securitycentermanagement.v1 + .ListSecurityHealthAnalyticsCustomModulesRequest + parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } - public static com.google.cloud.securitycentermanagement.v1.ListSecurityHealthAnalyticsCustomModulesRequest 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.securitycentermanagement.v1 + .ListSecurityHealthAnalyticsCustomModulesRequest + 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.securitycentermanagement.v1.ListSecurityHealthAnalyticsCustomModulesRequest prototype) { + + public static Builder newBuilder( + com.google.cloud.securitycentermanagement.v1.ListSecurityHealthAnalyticsCustomModulesRequest + prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected 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 listing Security Health Analytics custom modules.
    * 
* - * Protobuf type {@code google.cloud.securitycentermanagement.v1.ListSecurityHealthAnalyticsCustomModulesRequest} + * Protobuf type {@code + * google.cloud.securitycentermanagement.v1.ListSecurityHealthAnalyticsCustomModulesRequest} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.securitycentermanagement.v1.ListSecurityHealthAnalyticsCustomModulesRequest) - com.google.cloud.securitycentermanagement.v1.ListSecurityHealthAnalyticsCustomModulesRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.securitycentermanagement.v1.SecurityCenterManagementProto.internal_static_google_cloud_securitycentermanagement_v1_ListSecurityHealthAnalyticsCustomModulesRequest_descriptor; + com.google.cloud.securitycentermanagement.v1 + .ListSecurityHealthAnalyticsCustomModulesRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.securitycentermanagement.v1.SecurityCenterManagementProto + .internal_static_google_cloud_securitycentermanagement_v1_ListSecurityHealthAnalyticsCustomModulesRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.securitycentermanagement.v1.SecurityCenterManagementProto.internal_static_google_cloud_securitycentermanagement_v1_ListSecurityHealthAnalyticsCustomModulesRequest_fieldAccessorTable + return com.google.cloud.securitycentermanagement.v1.SecurityCenterManagementProto + .internal_static_google_cloud_securitycentermanagement_v1_ListSecurityHealthAnalyticsCustomModulesRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.securitycentermanagement.v1.ListSecurityHealthAnalyticsCustomModulesRequest.class, com.google.cloud.securitycentermanagement.v1.ListSecurityHealthAnalyticsCustomModulesRequest.Builder.class); + com.google.cloud.securitycentermanagement.v1 + .ListSecurityHealthAnalyticsCustomModulesRequest.class, + com.google.cloud.securitycentermanagement.v1 + .ListSecurityHealthAnalyticsCustomModulesRequest.Builder.class); } - // Construct using com.google.cloud.securitycentermanagement.v1.ListSecurityHealthAnalyticsCustomModulesRequest.newBuilder() - private Builder() { + // Construct using + // com.google.cloud.securitycentermanagement.v1.ListSecurityHealthAnalyticsCustomModulesRequest.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(); @@ -384,19 +455,25 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.securitycentermanagement.v1.SecurityCenterManagementProto.internal_static_google_cloud_securitycentermanagement_v1_ListSecurityHealthAnalyticsCustomModulesRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.securitycentermanagement.v1.SecurityCenterManagementProto + .internal_static_google_cloud_securitycentermanagement_v1_ListSecurityHealthAnalyticsCustomModulesRequest_descriptor; } @java.lang.Override - public com.google.cloud.securitycentermanagement.v1.ListSecurityHealthAnalyticsCustomModulesRequest getDefaultInstanceForType() { - return com.google.cloud.securitycentermanagement.v1.ListSecurityHealthAnalyticsCustomModulesRequest.getDefaultInstance(); + public com.google.cloud.securitycentermanagement.v1 + .ListSecurityHealthAnalyticsCustomModulesRequest + getDefaultInstanceForType() { + return com.google.cloud.securitycentermanagement.v1 + .ListSecurityHealthAnalyticsCustomModulesRequest.getDefaultInstance(); } @java.lang.Override - public com.google.cloud.securitycentermanagement.v1.ListSecurityHealthAnalyticsCustomModulesRequest build() { - com.google.cloud.securitycentermanagement.v1.ListSecurityHealthAnalyticsCustomModulesRequest result = buildPartial(); + public com.google.cloud.securitycentermanagement.v1 + .ListSecurityHealthAnalyticsCustomModulesRequest + build() { + com.google.cloud.securitycentermanagement.v1.ListSecurityHealthAnalyticsCustomModulesRequest + result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } @@ -404,14 +481,23 @@ public com.google.cloud.securitycentermanagement.v1.ListSecurityHealthAnalyticsC } @java.lang.Override - public com.google.cloud.securitycentermanagement.v1.ListSecurityHealthAnalyticsCustomModulesRequest buildPartial() { - com.google.cloud.securitycentermanagement.v1.ListSecurityHealthAnalyticsCustomModulesRequest result = new com.google.cloud.securitycentermanagement.v1.ListSecurityHealthAnalyticsCustomModulesRequest(this); - if (bitField0_ != 0) { buildPartial0(result); } + public com.google.cloud.securitycentermanagement.v1 + .ListSecurityHealthAnalyticsCustomModulesRequest + buildPartial() { + com.google.cloud.securitycentermanagement.v1.ListSecurityHealthAnalyticsCustomModulesRequest + result = + new com.google.cloud.securitycentermanagement.v1 + .ListSecurityHealthAnalyticsCustomModulesRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } - private void buildPartial0(com.google.cloud.securitycentermanagement.v1.ListSecurityHealthAnalyticsCustomModulesRequest result) { + private void buildPartial0( + com.google.cloud.securitycentermanagement.v1.ListSecurityHealthAnalyticsCustomModulesRequest + result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000001) != 0)) { result.parent_ = parent_; @@ -428,46 +514,57 @@ private void buildPartial0(com.google.cloud.securitycentermanagement.v1.ListSecu public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.cloud.securitycentermanagement.v1.ListSecurityHealthAnalyticsCustomModulesRequest) { - return mergeFrom((com.google.cloud.securitycentermanagement.v1.ListSecurityHealthAnalyticsCustomModulesRequest)other); + if (other + instanceof + com.google.cloud.securitycentermanagement.v1 + .ListSecurityHealthAnalyticsCustomModulesRequest) { + return mergeFrom( + (com.google.cloud.securitycentermanagement.v1 + .ListSecurityHealthAnalyticsCustomModulesRequest) + other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom(com.google.cloud.securitycentermanagement.v1.ListSecurityHealthAnalyticsCustomModulesRequest other) { - if (other == com.google.cloud.securitycentermanagement.v1.ListSecurityHealthAnalyticsCustomModulesRequest.getDefaultInstance()) return this; + public Builder mergeFrom( + com.google.cloud.securitycentermanagement.v1.ListSecurityHealthAnalyticsCustomModulesRequest + other) { + if (other + == com.google.cloud.securitycentermanagement.v1 + .ListSecurityHealthAnalyticsCustomModulesRequest.getDefaultInstance()) return this; if (!other.getParent().isEmpty()) { parent_ = other.parent_; bitField0_ |= 0x00000001; @@ -507,27 +604,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) { @@ -537,10 +638,13 @@ public Builder mergeFrom( } // finally return this; } + private int bitField0_; private java.lang.Object parent_ = ""; /** + * + * *
      * Required. Name of parent to list custom modules. Its format is
      * "organizations/{organization}/locations/{location}",
@@ -549,14 +653,16 @@ public Builder mergeFrom(
      * "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; @@ -565,6 +671,8 @@ public java.lang.String getParent() { } } /** + * + * *
      * Required. Name of parent to list custom modules. Its format is
      * "organizations/{organization}/locations/{location}",
@@ -573,16 +681,17 @@ public java.lang.String getParent() {
      * "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 { @@ -590,6 +699,8 @@ public java.lang.String getParent() { } } /** + * + * *
      * Required. Name of parent to list custom modules. Its format is
      * "organizations/{organization}/locations/{location}",
@@ -598,19 +709,25 @@ public java.lang.String getParent() {
      * "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. Name of parent to list custom modules. Its format is
      * "organizations/{organization}/locations/{location}",
@@ -619,7 +736,10 @@ public Builder setParent(
      * "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() { @@ -629,6 +749,8 @@ public Builder clearParent() { return this; } /** + * + * *
      * Required. Name of parent to list custom modules. Its format is
      * "organizations/{organization}/locations/{location}",
@@ -637,13 +759,17 @@ public Builder clearParent() {
      * "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; @@ -651,14 +777,17 @@ public Builder setParentBytes( return this; } - private int pageSize_ ; + private int pageSize_; /** + * + * *
      * Optional. The maximum number of results to return in a single response.
      * Default is 10, minimum is 1, maximum is 1000.
      * 
* * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The pageSize. */ @java.lang.Override @@ -666,12 +795,15 @@ public int getPageSize() { return pageSize_; } /** + * + * *
      * Optional. The maximum number of results to return in a single response.
      * Default is 10, minimum is 1, maximum is 1000.
      * 
* * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @param value The pageSize to set. * @return This builder for chaining. */ @@ -683,12 +815,15 @@ public Builder setPageSize(int value) { return this; } /** + * + * *
      * Optional. The maximum number of results to return in a single response.
      * Default is 10, minimum is 1, maximum is 1000.
      * 
* * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @return This builder for chaining. */ public Builder clearPageSize() { @@ -700,18 +835,20 @@ public Builder clearPageSize() { private java.lang.Object pageToken_ = ""; /** + * + * *
      * Optional. A token identifying a page of results the server should return.
      * 
* * 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; @@ -720,20 +857,21 @@ public java.lang.String getPageToken() { } } /** + * + * *
      * Optional. A token identifying a page of results the server should return.
      * 
* * 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 { @@ -741,28 +879,35 @@ public java.lang.String getPageToken() { } } /** + * + * *
      * Optional. A token identifying a page of results the server should return.
      * 
* * 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. A token identifying a page of results the server should return.
      * 
* * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @return This builder for chaining. */ public Builder clearPageToken() { @@ -772,26 +917,30 @@ public Builder clearPageToken() { return this; } /** + * + * *
      * Optional. A token identifying a page of results the server should return.
      * 
* * 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); } @@ -801,55 +950,66 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.securitycentermanagement.v1.ListSecurityHealthAnalyticsCustomModulesRequest) } // @@protoc_insertion_point(class_scope:google.cloud.securitycentermanagement.v1.ListSecurityHealthAnalyticsCustomModulesRequest) - private static final com.google.cloud.securitycentermanagement.v1.ListSecurityHealthAnalyticsCustomModulesRequest DEFAULT_INSTANCE; + private static final com.google.cloud.securitycentermanagement.v1 + .ListSecurityHealthAnalyticsCustomModulesRequest + DEFAULT_INSTANCE; + static { - DEFAULT_INSTANCE = new com.google.cloud.securitycentermanagement.v1.ListSecurityHealthAnalyticsCustomModulesRequest(); + DEFAULT_INSTANCE = + new com.google.cloud.securitycentermanagement.v1 + .ListSecurityHealthAnalyticsCustomModulesRequest(); } - public static com.google.cloud.securitycentermanagement.v1.ListSecurityHealthAnalyticsCustomModulesRequest getDefaultInstance() { + public static com.google.cloud.securitycentermanagement.v1 + .ListSecurityHealthAnalyticsCustomModulesRequest + getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ListSecurityHealthAnalyticsCustomModulesRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + PARSER = + new com.google.protobuf.AbstractParser< + ListSecurityHealthAnalyticsCustomModulesRequest>() { + @java.lang.Override + public ListSecurityHealthAnalyticsCustomModulesRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException() + .setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; - public static com.google.protobuf.Parser parser() { + public static com.google.protobuf.Parser + parser() { return PARSER; } @java.lang.Override - public com.google.protobuf.Parser getParserForType() { + public com.google.protobuf.Parser + getParserForType() { return PARSER; } @java.lang.Override - public com.google.cloud.securitycentermanagement.v1.ListSecurityHealthAnalyticsCustomModulesRequest getDefaultInstanceForType() { + public com.google.cloud.securitycentermanagement.v1 + .ListSecurityHealthAnalyticsCustomModulesRequest + getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/java-securitycentermanagement/v1/proto-google-cloud-securitycentermanagement-v1/src/main/java/com/google/cloud/securitycentermanagement/v1/ListSecurityHealthAnalyticsCustomModulesRequestOrBuilder.java b/java-securitycentermanagement/proto-google-cloud-securitycentermanagement-v1/src/main/java/com/google/cloud/securitycentermanagement/v1/ListSecurityHealthAnalyticsCustomModulesRequestOrBuilder.java similarity index 63% rename from owl-bot-staging/java-securitycentermanagement/v1/proto-google-cloud-securitycentermanagement-v1/src/main/java/com/google/cloud/securitycentermanagement/v1/ListSecurityHealthAnalyticsCustomModulesRequestOrBuilder.java rename to java-securitycentermanagement/proto-google-cloud-securitycentermanagement-v1/src/main/java/com/google/cloud/securitycentermanagement/v1/ListSecurityHealthAnalyticsCustomModulesRequestOrBuilder.java index 22c486568751..e36aebd7909b 100644 --- a/owl-bot-staging/java-securitycentermanagement/v1/proto-google-cloud-securitycentermanagement-v1/src/main/java/com/google/cloud/securitycentermanagement/v1/ListSecurityHealthAnalyticsCustomModulesRequestOrBuilder.java +++ b/java-securitycentermanagement/proto-google-cloud-securitycentermanagement-v1/src/main/java/com/google/cloud/securitycentermanagement/v1/ListSecurityHealthAnalyticsCustomModulesRequestOrBuilder.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/securitycentermanagement/v1/security_center_management.proto package com.google.cloud.securitycentermanagement.v1; -public interface ListSecurityHealthAnalyticsCustomModulesRequestOrBuilder extends +public interface ListSecurityHealthAnalyticsCustomModulesRequestOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.securitycentermanagement.v1.ListSecurityHealthAnalyticsCustomModulesRequest) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * Required. Name of parent to list custom modules. Its format is
    * "organizations/{organization}/locations/{location}",
@@ -16,11 +34,16 @@ public interface ListSecurityHealthAnalyticsCustomModulesRequestOrBuilder extend
    * "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. Name of parent to list custom modules. Its format is
    * "organizations/{organization}/locations/{location}",
@@ -29,40 +52,50 @@ public interface ListSecurityHealthAnalyticsCustomModulesRequestOrBuilder extend
    * "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(); /** + * + * *
    * Optional. The maximum number of results to return in a single response.
    * Default is 10, minimum is 1, maximum is 1000.
    * 
* * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The pageSize. */ int getPageSize(); /** + * + * *
    * Optional. A token identifying a page of results the server should return.
    * 
* * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The pageToken. */ java.lang.String getPageToken(); /** + * + * *
    * Optional. A token identifying a page of results the server should return.
    * 
* * 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-securitycentermanagement/v1/proto-google-cloud-securitycentermanagement-v1/src/main/java/com/google/cloud/securitycentermanagement/v1/ListSecurityHealthAnalyticsCustomModulesResponse.java b/java-securitycentermanagement/proto-google-cloud-securitycentermanagement-v1/src/main/java/com/google/cloud/securitycentermanagement/v1/ListSecurityHealthAnalyticsCustomModulesResponse.java similarity index 50% rename from owl-bot-staging/java-securitycentermanagement/v1/proto-google-cloud-securitycentermanagement-v1/src/main/java/com/google/cloud/securitycentermanagement/v1/ListSecurityHealthAnalyticsCustomModulesResponse.java rename to java-securitycentermanagement/proto-google-cloud-securitycentermanagement-v1/src/main/java/com/google/cloud/securitycentermanagement/v1/ListSecurityHealthAnalyticsCustomModulesResponse.java index 5cf0ffb5215d..6805362378fb 100644 --- a/owl-bot-staging/java-securitycentermanagement/v1/proto-google-cloud-securitycentermanagement-v1/src/main/java/com/google/cloud/securitycentermanagement/v1/ListSecurityHealthAnalyticsCustomModulesResponse.java +++ b/java-securitycentermanagement/proto-google-cloud-securitycentermanagement-v1/src/main/java/com/google/cloud/securitycentermanagement/v1/ListSecurityHealthAnalyticsCustomModulesResponse.java @@ -1,24 +1,45 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/securitycentermanagement/v1/security_center_management.proto package com.google.cloud.securitycentermanagement.v1; /** + * + * *
  * Response message for listing Security Health Analytics custom modules.
  * 
* - * Protobuf type {@code google.cloud.securitycentermanagement.v1.ListSecurityHealthAnalyticsCustomModulesResponse} + * Protobuf type {@code + * google.cloud.securitycentermanagement.v1.ListSecurityHealthAnalyticsCustomModulesResponse} */ -public final class ListSecurityHealthAnalyticsCustomModulesResponse extends - com.google.protobuf.GeneratedMessageV3 implements +public final class ListSecurityHealthAnalyticsCustomModulesResponse + extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.securitycentermanagement.v1.ListSecurityHealthAnalyticsCustomModulesResponse) ListSecurityHealthAnalyticsCustomModulesResponseOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use ListSecurityHealthAnalyticsCustomModulesResponse.newBuilder() to construct. - private ListSecurityHealthAnalyticsCustomModulesResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { + private ListSecurityHealthAnalyticsCustomModulesResponse( + com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private ListSecurityHealthAnalyticsCustomModulesResponse() { securityHealthAnalyticsCustomModules_ = java.util.Collections.emptyList(); nextPageToken_ = ""; @@ -26,94 +47,130 @@ private ListSecurityHealthAnalyticsCustomModulesResponse() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new ListSecurityHealthAnalyticsCustomModulesResponse(); } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.securitycentermanagement.v1.SecurityCenterManagementProto.internal_static_google_cloud_securitycentermanagement_v1_ListSecurityHealthAnalyticsCustomModulesResponse_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.securitycentermanagement.v1.SecurityCenterManagementProto + .internal_static_google_cloud_securitycentermanagement_v1_ListSecurityHealthAnalyticsCustomModulesResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.securitycentermanagement.v1.SecurityCenterManagementProto.internal_static_google_cloud_securitycentermanagement_v1_ListSecurityHealthAnalyticsCustomModulesResponse_fieldAccessorTable + return com.google.cloud.securitycentermanagement.v1.SecurityCenterManagementProto + .internal_static_google_cloud_securitycentermanagement_v1_ListSecurityHealthAnalyticsCustomModulesResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.securitycentermanagement.v1.ListSecurityHealthAnalyticsCustomModulesResponse.class, com.google.cloud.securitycentermanagement.v1.ListSecurityHealthAnalyticsCustomModulesResponse.Builder.class); + com.google.cloud.securitycentermanagement.v1 + .ListSecurityHealthAnalyticsCustomModulesResponse.class, + com.google.cloud.securitycentermanagement.v1 + .ListSecurityHealthAnalyticsCustomModulesResponse.Builder.class); } public static final int SECURITY_HEALTH_ANALYTICS_CUSTOM_MODULES_FIELD_NUMBER = 1; + @SuppressWarnings("serial") - private java.util.List securityHealthAnalyticsCustomModules_; + private java.util.List< + com.google.cloud.securitycentermanagement.v1.SecurityHealthAnalyticsCustomModule> + securityHealthAnalyticsCustomModules_; /** + * + * *
    * The list of SecurityHealthAnalyticsCustomModules
    * 
* - * repeated .google.cloud.securitycentermanagement.v1.SecurityHealthAnalyticsCustomModule security_health_analytics_custom_modules = 1; + * + * repeated .google.cloud.securitycentermanagement.v1.SecurityHealthAnalyticsCustomModule security_health_analytics_custom_modules = 1; + * */ @java.lang.Override - public java.util.List getSecurityHealthAnalyticsCustomModulesList() { + public java.util.List< + com.google.cloud.securitycentermanagement.v1.SecurityHealthAnalyticsCustomModule> + getSecurityHealthAnalyticsCustomModulesList() { return securityHealthAnalyticsCustomModules_; } /** + * + * *
    * The list of SecurityHealthAnalyticsCustomModules
    * 
* - * repeated .google.cloud.securitycentermanagement.v1.SecurityHealthAnalyticsCustomModule security_health_analytics_custom_modules = 1; + * + * repeated .google.cloud.securitycentermanagement.v1.SecurityHealthAnalyticsCustomModule security_health_analytics_custom_modules = 1; + * */ @java.lang.Override - public java.util.List + public java.util.List< + ? extends + com.google.cloud.securitycentermanagement.v1 + .SecurityHealthAnalyticsCustomModuleOrBuilder> getSecurityHealthAnalyticsCustomModulesOrBuilderList() { return securityHealthAnalyticsCustomModules_; } /** + * + * *
    * The list of SecurityHealthAnalyticsCustomModules
    * 
* - * repeated .google.cloud.securitycentermanagement.v1.SecurityHealthAnalyticsCustomModule security_health_analytics_custom_modules = 1; + * + * repeated .google.cloud.securitycentermanagement.v1.SecurityHealthAnalyticsCustomModule security_health_analytics_custom_modules = 1; + * */ @java.lang.Override public int getSecurityHealthAnalyticsCustomModulesCount() { return securityHealthAnalyticsCustomModules_.size(); } /** + * + * *
    * The list of SecurityHealthAnalyticsCustomModules
    * 
* - * repeated .google.cloud.securitycentermanagement.v1.SecurityHealthAnalyticsCustomModule security_health_analytics_custom_modules = 1; + * + * repeated .google.cloud.securitycentermanagement.v1.SecurityHealthAnalyticsCustomModule security_health_analytics_custom_modules = 1; + * */ @java.lang.Override - public com.google.cloud.securitycentermanagement.v1.SecurityHealthAnalyticsCustomModule getSecurityHealthAnalyticsCustomModules(int index) { + public com.google.cloud.securitycentermanagement.v1.SecurityHealthAnalyticsCustomModule + getSecurityHealthAnalyticsCustomModules(int index) { return securityHealthAnalyticsCustomModules_.get(index); } /** + * + * *
    * The list of SecurityHealthAnalyticsCustomModules
    * 
* - * repeated .google.cloud.securitycentermanagement.v1.SecurityHealthAnalyticsCustomModule security_health_analytics_custom_modules = 1; + * + * repeated .google.cloud.securitycentermanagement.v1.SecurityHealthAnalyticsCustomModule security_health_analytics_custom_modules = 1; + * */ @java.lang.Override - public com.google.cloud.securitycentermanagement.v1.SecurityHealthAnalyticsCustomModuleOrBuilder getSecurityHealthAnalyticsCustomModulesOrBuilder( - int index) { + public com.google.cloud.securitycentermanagement.v1.SecurityHealthAnalyticsCustomModuleOrBuilder + getSecurityHealthAnalyticsCustomModulesOrBuilder(int index) { return securityHealthAnalyticsCustomModules_.get(index); } public static final int NEXT_PAGE_TOKEN_FIELD_NUMBER = 2; + @SuppressWarnings("serial") private volatile java.lang.Object nextPageToken_ = ""; /** + * + * *
    * A token identifying a page of results the server should return.
    * 
* * string next_page_token = 2; + * * @return The nextPageToken. */ @java.lang.Override @@ -122,29 +179,29 @@ 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 identifying a page of results the server should return.
    * 
* * 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 { @@ -153,6 +210,7 @@ public java.lang.String getNextPageToken() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -164,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 { for (int i = 0; i < securityHealthAnalyticsCustomModules_.size(); i++) { output.writeMessage(1, securityHealthAnalyticsCustomModules_.get(i)); } @@ -182,8 +239,9 @@ public int getSerializedSize() { size = 0; for (int i = 0; i < securityHealthAnalyticsCustomModules_.size(); i++) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, securityHealthAnalyticsCustomModules_.get(i)); + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 1, securityHealthAnalyticsCustomModules_.get(i)); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(nextPageToken_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, nextPageToken_); @@ -196,17 +254,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.securitycentermanagement.v1.ListSecurityHealthAnalyticsCustomModulesResponse)) { + if (!(obj + instanceof + com.google.cloud.securitycentermanagement.v1 + .ListSecurityHealthAnalyticsCustomModulesResponse)) { return super.equals(obj); } - com.google.cloud.securitycentermanagement.v1.ListSecurityHealthAnalyticsCustomModulesResponse other = (com.google.cloud.securitycentermanagement.v1.ListSecurityHealthAnalyticsCustomModulesResponse) obj; + com.google.cloud.securitycentermanagement.v1.ListSecurityHealthAnalyticsCustomModulesResponse + other = + (com.google.cloud.securitycentermanagement.v1 + .ListSecurityHealthAnalyticsCustomModulesResponse) + obj; if (!getSecurityHealthAnalyticsCustomModulesList() .equals(other.getSecurityHealthAnalyticsCustomModulesList())) return false; - if (!getNextPageToken() - .equals(other.getNextPageToken())) return false; + if (!getNextPageToken().equals(other.getNextPageToken())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -229,132 +293,161 @@ public int hashCode() { return hash; } - public static com.google.cloud.securitycentermanagement.v1.ListSecurityHealthAnalyticsCustomModulesResponse parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.securitycentermanagement.v1 + .ListSecurityHealthAnalyticsCustomModulesResponse + parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.securitycentermanagement.v1.ListSecurityHealthAnalyticsCustomModulesResponse parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.cloud.securitycentermanagement.v1 + .ListSecurityHealthAnalyticsCustomModulesResponse + 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.securitycentermanagement.v1.ListSecurityHealthAnalyticsCustomModulesResponse parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.cloud.securitycentermanagement.v1 + .ListSecurityHealthAnalyticsCustomModulesResponse + parseFrom(com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.securitycentermanagement.v1.ListSecurityHealthAnalyticsCustomModulesResponse parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.cloud.securitycentermanagement.v1 + .ListSecurityHealthAnalyticsCustomModulesResponse + parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.securitycentermanagement.v1.ListSecurityHealthAnalyticsCustomModulesResponse parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.cloud.securitycentermanagement.v1 + .ListSecurityHealthAnalyticsCustomModulesResponse + parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.securitycentermanagement.v1.ListSecurityHealthAnalyticsCustomModulesResponse parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.cloud.securitycentermanagement.v1 + .ListSecurityHealthAnalyticsCustomModulesResponse + parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.securitycentermanagement.v1.ListSecurityHealthAnalyticsCustomModulesResponse parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.securitycentermanagement.v1 + .ListSecurityHealthAnalyticsCustomModulesResponse + parseFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } - public static com.google.cloud.securitycentermanagement.v1.ListSecurityHealthAnalyticsCustomModulesResponse 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.securitycentermanagement.v1 + .ListSecurityHealthAnalyticsCustomModulesResponse + 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.securitycentermanagement.v1.ListSecurityHealthAnalyticsCustomModulesResponse parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.securitycentermanagement.v1 + .ListSecurityHealthAnalyticsCustomModulesResponse + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.securitycentermanagement.v1.ListSecurityHealthAnalyticsCustomModulesResponse parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + public static com.google.cloud.securitycentermanagement.v1 + .ListSecurityHealthAnalyticsCustomModulesResponse + parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.securitycentermanagement.v1.ListSecurityHealthAnalyticsCustomModulesResponse parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.securitycentermanagement.v1 + .ListSecurityHealthAnalyticsCustomModulesResponse + parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } - public static com.google.cloud.securitycentermanagement.v1.ListSecurityHealthAnalyticsCustomModulesResponse 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.securitycentermanagement.v1 + .ListSecurityHealthAnalyticsCustomModulesResponse + 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.securitycentermanagement.v1.ListSecurityHealthAnalyticsCustomModulesResponse prototype) { + + public static Builder newBuilder( + com.google.cloud.securitycentermanagement.v1.ListSecurityHealthAnalyticsCustomModulesResponse + prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected 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 listing Security Health Analytics custom modules.
    * 
* - * Protobuf type {@code google.cloud.securitycentermanagement.v1.ListSecurityHealthAnalyticsCustomModulesResponse} + * Protobuf type {@code + * google.cloud.securitycentermanagement.v1.ListSecurityHealthAnalyticsCustomModulesResponse} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.securitycentermanagement.v1.ListSecurityHealthAnalyticsCustomModulesResponse) - com.google.cloud.securitycentermanagement.v1.ListSecurityHealthAnalyticsCustomModulesResponseOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.securitycentermanagement.v1.SecurityCenterManagementProto.internal_static_google_cloud_securitycentermanagement_v1_ListSecurityHealthAnalyticsCustomModulesResponse_descriptor; + com.google.cloud.securitycentermanagement.v1 + .ListSecurityHealthAnalyticsCustomModulesResponseOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.securitycentermanagement.v1.SecurityCenterManagementProto + .internal_static_google_cloud_securitycentermanagement_v1_ListSecurityHealthAnalyticsCustomModulesResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.securitycentermanagement.v1.SecurityCenterManagementProto.internal_static_google_cloud_securitycentermanagement_v1_ListSecurityHealthAnalyticsCustomModulesResponse_fieldAccessorTable + return com.google.cloud.securitycentermanagement.v1.SecurityCenterManagementProto + .internal_static_google_cloud_securitycentermanagement_v1_ListSecurityHealthAnalyticsCustomModulesResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.securitycentermanagement.v1.ListSecurityHealthAnalyticsCustomModulesResponse.class, com.google.cloud.securitycentermanagement.v1.ListSecurityHealthAnalyticsCustomModulesResponse.Builder.class); + com.google.cloud.securitycentermanagement.v1 + .ListSecurityHealthAnalyticsCustomModulesResponse.class, + com.google.cloud.securitycentermanagement.v1 + .ListSecurityHealthAnalyticsCustomModulesResponse.Builder.class); } - // Construct using com.google.cloud.securitycentermanagement.v1.ListSecurityHealthAnalyticsCustomModulesResponse.newBuilder() - private Builder() { + // Construct using + // com.google.cloud.securitycentermanagement.v1.ListSecurityHealthAnalyticsCustomModulesResponse.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(); @@ -371,19 +464,25 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.securitycentermanagement.v1.SecurityCenterManagementProto.internal_static_google_cloud_securitycentermanagement_v1_ListSecurityHealthAnalyticsCustomModulesResponse_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.securitycentermanagement.v1.SecurityCenterManagementProto + .internal_static_google_cloud_securitycentermanagement_v1_ListSecurityHealthAnalyticsCustomModulesResponse_descriptor; } @java.lang.Override - public com.google.cloud.securitycentermanagement.v1.ListSecurityHealthAnalyticsCustomModulesResponse getDefaultInstanceForType() { - return com.google.cloud.securitycentermanagement.v1.ListSecurityHealthAnalyticsCustomModulesResponse.getDefaultInstance(); + public com.google.cloud.securitycentermanagement.v1 + .ListSecurityHealthAnalyticsCustomModulesResponse + getDefaultInstanceForType() { + return com.google.cloud.securitycentermanagement.v1 + .ListSecurityHealthAnalyticsCustomModulesResponse.getDefaultInstance(); } @java.lang.Override - public com.google.cloud.securitycentermanagement.v1.ListSecurityHealthAnalyticsCustomModulesResponse build() { - com.google.cloud.securitycentermanagement.v1.ListSecurityHealthAnalyticsCustomModulesResponse result = buildPartial(); + public com.google.cloud.securitycentermanagement.v1 + .ListSecurityHealthAnalyticsCustomModulesResponse + build() { + com.google.cloud.securitycentermanagement.v1.ListSecurityHealthAnalyticsCustomModulesResponse + result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } @@ -391,27 +490,42 @@ public com.google.cloud.securitycentermanagement.v1.ListSecurityHealthAnalyticsC } @java.lang.Override - public com.google.cloud.securitycentermanagement.v1.ListSecurityHealthAnalyticsCustomModulesResponse buildPartial() { - com.google.cloud.securitycentermanagement.v1.ListSecurityHealthAnalyticsCustomModulesResponse result = new com.google.cloud.securitycentermanagement.v1.ListSecurityHealthAnalyticsCustomModulesResponse(this); + public com.google.cloud.securitycentermanagement.v1 + .ListSecurityHealthAnalyticsCustomModulesResponse + buildPartial() { + com.google.cloud.securitycentermanagement.v1.ListSecurityHealthAnalyticsCustomModulesResponse + result = + new com.google.cloud.securitycentermanagement.v1 + .ListSecurityHealthAnalyticsCustomModulesResponse(this); buildPartialRepeatedFields(result); - if (bitField0_ != 0) { buildPartial0(result); } + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } - private void buildPartialRepeatedFields(com.google.cloud.securitycentermanagement.v1.ListSecurityHealthAnalyticsCustomModulesResponse result) { + private void buildPartialRepeatedFields( + com.google.cloud.securitycentermanagement.v1 + .ListSecurityHealthAnalyticsCustomModulesResponse + result) { if (securityHealthAnalyticsCustomModulesBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0)) { - securityHealthAnalyticsCustomModules_ = java.util.Collections.unmodifiableList(securityHealthAnalyticsCustomModules_); + securityHealthAnalyticsCustomModules_ = + java.util.Collections.unmodifiableList(securityHealthAnalyticsCustomModules_); bitField0_ = (bitField0_ & ~0x00000001); } result.securityHealthAnalyticsCustomModules_ = securityHealthAnalyticsCustomModules_; } else { - result.securityHealthAnalyticsCustomModules_ = securityHealthAnalyticsCustomModulesBuilder_.build(); + result.securityHealthAnalyticsCustomModules_ = + securityHealthAnalyticsCustomModulesBuilder_.build(); } } - private void buildPartial0(com.google.cloud.securitycentermanagement.v1.ListSecurityHealthAnalyticsCustomModulesResponse result) { + private void buildPartial0( + com.google.cloud.securitycentermanagement.v1 + .ListSecurityHealthAnalyticsCustomModulesResponse + result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000002) != 0)) { result.nextPageToken_ = nextPageToken_; @@ -422,46 +536,58 @@ private void buildPartial0(com.google.cloud.securitycentermanagement.v1.ListSecu public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.cloud.securitycentermanagement.v1.ListSecurityHealthAnalyticsCustomModulesResponse) { - return mergeFrom((com.google.cloud.securitycentermanagement.v1.ListSecurityHealthAnalyticsCustomModulesResponse)other); + if (other + instanceof + com.google.cloud.securitycentermanagement.v1 + .ListSecurityHealthAnalyticsCustomModulesResponse) { + return mergeFrom( + (com.google.cloud.securitycentermanagement.v1 + .ListSecurityHealthAnalyticsCustomModulesResponse) + other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom(com.google.cloud.securitycentermanagement.v1.ListSecurityHealthAnalyticsCustomModulesResponse other) { - if (other == com.google.cloud.securitycentermanagement.v1.ListSecurityHealthAnalyticsCustomModulesResponse.getDefaultInstance()) return this; + public Builder mergeFrom( + com.google.cloud.securitycentermanagement.v1 + .ListSecurityHealthAnalyticsCustomModulesResponse + other) { + if (other + == com.google.cloud.securitycentermanagement.v1 + .ListSecurityHealthAnalyticsCustomModulesResponse.getDefaultInstance()) return this; if (securityHealthAnalyticsCustomModulesBuilder_ == null) { if (!other.securityHealthAnalyticsCustomModules_.isEmpty()) { if (securityHealthAnalyticsCustomModules_.isEmpty()) { @@ -469,7 +595,8 @@ public Builder mergeFrom(com.google.cloud.securitycentermanagement.v1.ListSecuri bitField0_ = (bitField0_ & ~0x00000001); } else { ensureSecurityHealthAnalyticsCustomModulesIsMutable(); - securityHealthAnalyticsCustomModules_.addAll(other.securityHealthAnalyticsCustomModules_); + securityHealthAnalyticsCustomModules_.addAll( + other.securityHealthAnalyticsCustomModules_); } onChanged(); } @@ -480,11 +607,13 @@ public Builder mergeFrom(com.google.cloud.securitycentermanagement.v1.ListSecuri securityHealthAnalyticsCustomModulesBuilder_ = null; securityHealthAnalyticsCustomModules_ = other.securityHealthAnalyticsCustomModules_; bitField0_ = (bitField0_ & ~0x00000001); - securityHealthAnalyticsCustomModulesBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? - getSecurityHealthAnalyticsCustomModulesFieldBuilder() : null; + securityHealthAnalyticsCustomModulesBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getSecurityHealthAnalyticsCustomModulesFieldBuilder() + : null; } else { - securityHealthAnalyticsCustomModulesBuilder_.addAllMessages(other.securityHealthAnalyticsCustomModules_); + securityHealthAnalyticsCustomModulesBuilder_.addAllMessages( + other.securityHealthAnalyticsCustomModules_); } } } @@ -519,30 +648,34 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: { - com.google.cloud.securitycentermanagement.v1.SecurityHealthAnalyticsCustomModule m = - input.readMessage( - com.google.cloud.securitycentermanagement.v1.SecurityHealthAnalyticsCustomModule.parser(), - extensionRegistry); - if (securityHealthAnalyticsCustomModulesBuilder_ == null) { - ensureSecurityHealthAnalyticsCustomModulesIsMutable(); - securityHealthAnalyticsCustomModules_.add(m); - } else { - securityHealthAnalyticsCustomModulesBuilder_.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.securitycentermanagement.v1.SecurityHealthAnalyticsCustomModule m = + input.readMessage( + com.google.cloud.securitycentermanagement.v1 + .SecurityHealthAnalyticsCustomModule.parser(), + extensionRegistry); + if (securityHealthAnalyticsCustomModulesBuilder_ == null) { + ensureSecurityHealthAnalyticsCustomModulesIsMutable(); + securityHealthAnalyticsCustomModules_.add(m); + } else { + securityHealthAnalyticsCustomModulesBuilder_.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) { @@ -552,28 +685,45 @@ public Builder mergeFrom( } // finally return this; } + private int bitField0_; - private java.util.List securityHealthAnalyticsCustomModules_ = - java.util.Collections.emptyList(); + private java.util.List< + com.google.cloud.securitycentermanagement.v1.SecurityHealthAnalyticsCustomModule> + securityHealthAnalyticsCustomModules_ = java.util.Collections.emptyList(); + private void ensureSecurityHealthAnalyticsCustomModulesIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { - securityHealthAnalyticsCustomModules_ = new java.util.ArrayList(securityHealthAnalyticsCustomModules_); + securityHealthAnalyticsCustomModules_ = + new java.util.ArrayList< + com.google.cloud.securitycentermanagement.v1.SecurityHealthAnalyticsCustomModule>( + securityHealthAnalyticsCustomModules_); bitField0_ |= 0x00000001; - } + } } private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.securitycentermanagement.v1.SecurityHealthAnalyticsCustomModule, com.google.cloud.securitycentermanagement.v1.SecurityHealthAnalyticsCustomModule.Builder, com.google.cloud.securitycentermanagement.v1.SecurityHealthAnalyticsCustomModuleOrBuilder> securityHealthAnalyticsCustomModulesBuilder_; + com.google.cloud.securitycentermanagement.v1.SecurityHealthAnalyticsCustomModule, + com.google.cloud.securitycentermanagement.v1.SecurityHealthAnalyticsCustomModule + .Builder, + com.google.cloud.securitycentermanagement.v1 + .SecurityHealthAnalyticsCustomModuleOrBuilder> + securityHealthAnalyticsCustomModulesBuilder_; /** + * + * *
      * The list of SecurityHealthAnalyticsCustomModules
      * 
* - * repeated .google.cloud.securitycentermanagement.v1.SecurityHealthAnalyticsCustomModule security_health_analytics_custom_modules = 1; + * + * repeated .google.cloud.securitycentermanagement.v1.SecurityHealthAnalyticsCustomModule security_health_analytics_custom_modules = 1; + * */ - public java.util.List getSecurityHealthAnalyticsCustomModulesList() { + public java.util.List< + com.google.cloud.securitycentermanagement.v1.SecurityHealthAnalyticsCustomModule> + getSecurityHealthAnalyticsCustomModulesList() { if (securityHealthAnalyticsCustomModulesBuilder_ == null) { return java.util.Collections.unmodifiableList(securityHealthAnalyticsCustomModules_); } else { @@ -581,11 +731,15 @@ public java.util.List * The list of SecurityHealthAnalyticsCustomModules *
* - * repeated .google.cloud.securitycentermanagement.v1.SecurityHealthAnalyticsCustomModule security_health_analytics_custom_modules = 1; + * + * repeated .google.cloud.securitycentermanagement.v1.SecurityHealthAnalyticsCustomModule security_health_analytics_custom_modules = 1; + * */ public int getSecurityHealthAnalyticsCustomModulesCount() { if (securityHealthAnalyticsCustomModulesBuilder_ == null) { @@ -595,13 +749,18 @@ public int getSecurityHealthAnalyticsCustomModulesCount() { } } /** + * + * *
      * The list of SecurityHealthAnalyticsCustomModules
      * 
* - * repeated .google.cloud.securitycentermanagement.v1.SecurityHealthAnalyticsCustomModule security_health_analytics_custom_modules = 1; + * + * repeated .google.cloud.securitycentermanagement.v1.SecurityHealthAnalyticsCustomModule security_health_analytics_custom_modules = 1; + * */ - public com.google.cloud.securitycentermanagement.v1.SecurityHealthAnalyticsCustomModule getSecurityHealthAnalyticsCustomModules(int index) { + public com.google.cloud.securitycentermanagement.v1.SecurityHealthAnalyticsCustomModule + getSecurityHealthAnalyticsCustomModules(int index) { if (securityHealthAnalyticsCustomModulesBuilder_ == null) { return securityHealthAnalyticsCustomModules_.get(index); } else { @@ -609,14 +768,19 @@ public com.google.cloud.securitycentermanagement.v1.SecurityHealthAnalyticsCusto } } /** + * + * *
      * The list of SecurityHealthAnalyticsCustomModules
      * 
* - * repeated .google.cloud.securitycentermanagement.v1.SecurityHealthAnalyticsCustomModule security_health_analytics_custom_modules = 1; + * + * repeated .google.cloud.securitycentermanagement.v1.SecurityHealthAnalyticsCustomModule security_health_analytics_custom_modules = 1; + * */ public Builder setSecurityHealthAnalyticsCustomModules( - int index, com.google.cloud.securitycentermanagement.v1.SecurityHealthAnalyticsCustomModule value) { + int index, + com.google.cloud.securitycentermanagement.v1.SecurityHealthAnalyticsCustomModule value) { if (securityHealthAnalyticsCustomModulesBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -630,14 +794,20 @@ public Builder setSecurityHealthAnalyticsCustomModules( return this; } /** + * + * *
      * The list of SecurityHealthAnalyticsCustomModules
      * 
* - * repeated .google.cloud.securitycentermanagement.v1.SecurityHealthAnalyticsCustomModule security_health_analytics_custom_modules = 1; + * + * repeated .google.cloud.securitycentermanagement.v1.SecurityHealthAnalyticsCustomModule security_health_analytics_custom_modules = 1; + * */ public Builder setSecurityHealthAnalyticsCustomModules( - int index, com.google.cloud.securitycentermanagement.v1.SecurityHealthAnalyticsCustomModule.Builder builderForValue) { + int index, + com.google.cloud.securitycentermanagement.v1.SecurityHealthAnalyticsCustomModule.Builder + builderForValue) { if (securityHealthAnalyticsCustomModulesBuilder_ == null) { ensureSecurityHealthAnalyticsCustomModulesIsMutable(); securityHealthAnalyticsCustomModules_.set(index, builderForValue.build()); @@ -648,13 +818,18 @@ public Builder setSecurityHealthAnalyticsCustomModules( return this; } /** + * + * *
      * The list of SecurityHealthAnalyticsCustomModules
      * 
* - * repeated .google.cloud.securitycentermanagement.v1.SecurityHealthAnalyticsCustomModule security_health_analytics_custom_modules = 1; + * + * repeated .google.cloud.securitycentermanagement.v1.SecurityHealthAnalyticsCustomModule security_health_analytics_custom_modules = 1; + * */ - public Builder addSecurityHealthAnalyticsCustomModules(com.google.cloud.securitycentermanagement.v1.SecurityHealthAnalyticsCustomModule value) { + public Builder addSecurityHealthAnalyticsCustomModules( + com.google.cloud.securitycentermanagement.v1.SecurityHealthAnalyticsCustomModule value) { if (securityHealthAnalyticsCustomModulesBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -668,14 +843,19 @@ public Builder addSecurityHealthAnalyticsCustomModules(com.google.cloud.security return this; } /** + * + * *
      * The list of SecurityHealthAnalyticsCustomModules
      * 
* - * repeated .google.cloud.securitycentermanagement.v1.SecurityHealthAnalyticsCustomModule security_health_analytics_custom_modules = 1; + * + * repeated .google.cloud.securitycentermanagement.v1.SecurityHealthAnalyticsCustomModule security_health_analytics_custom_modules = 1; + * */ public Builder addSecurityHealthAnalyticsCustomModules( - int index, com.google.cloud.securitycentermanagement.v1.SecurityHealthAnalyticsCustomModule value) { + int index, + com.google.cloud.securitycentermanagement.v1.SecurityHealthAnalyticsCustomModule value) { if (securityHealthAnalyticsCustomModulesBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -689,14 +869,19 @@ public Builder addSecurityHealthAnalyticsCustomModules( return this; } /** + * + * *
      * The list of SecurityHealthAnalyticsCustomModules
      * 
* - * repeated .google.cloud.securitycentermanagement.v1.SecurityHealthAnalyticsCustomModule security_health_analytics_custom_modules = 1; + * + * repeated .google.cloud.securitycentermanagement.v1.SecurityHealthAnalyticsCustomModule security_health_analytics_custom_modules = 1; + * */ public Builder addSecurityHealthAnalyticsCustomModules( - com.google.cloud.securitycentermanagement.v1.SecurityHealthAnalyticsCustomModule.Builder builderForValue) { + com.google.cloud.securitycentermanagement.v1.SecurityHealthAnalyticsCustomModule.Builder + builderForValue) { if (securityHealthAnalyticsCustomModulesBuilder_ == null) { ensureSecurityHealthAnalyticsCustomModulesIsMutable(); securityHealthAnalyticsCustomModules_.add(builderForValue.build()); @@ -707,14 +892,20 @@ public Builder addSecurityHealthAnalyticsCustomModules( return this; } /** + * + * *
      * The list of SecurityHealthAnalyticsCustomModules
      * 
* - * repeated .google.cloud.securitycentermanagement.v1.SecurityHealthAnalyticsCustomModule security_health_analytics_custom_modules = 1; + * + * repeated .google.cloud.securitycentermanagement.v1.SecurityHealthAnalyticsCustomModule security_health_analytics_custom_modules = 1; + * */ public Builder addSecurityHealthAnalyticsCustomModules( - int index, com.google.cloud.securitycentermanagement.v1.SecurityHealthAnalyticsCustomModule.Builder builderForValue) { + int index, + com.google.cloud.securitycentermanagement.v1.SecurityHealthAnalyticsCustomModule.Builder + builderForValue) { if (securityHealthAnalyticsCustomModulesBuilder_ == null) { ensureSecurityHealthAnalyticsCustomModulesIsMutable(); securityHealthAnalyticsCustomModules_.add(index, builderForValue.build()); @@ -725,14 +916,22 @@ public Builder addSecurityHealthAnalyticsCustomModules( return this; } /** + * + * *
      * The list of SecurityHealthAnalyticsCustomModules
      * 
* - * repeated .google.cloud.securitycentermanagement.v1.SecurityHealthAnalyticsCustomModule security_health_analytics_custom_modules = 1; + * + * repeated .google.cloud.securitycentermanagement.v1.SecurityHealthAnalyticsCustomModule security_health_analytics_custom_modules = 1; + * */ public Builder addAllSecurityHealthAnalyticsCustomModules( - java.lang.Iterable values) { + java.lang.Iterable< + ? extends + com.google.cloud.securitycentermanagement.v1 + .SecurityHealthAnalyticsCustomModule> + values) { if (securityHealthAnalyticsCustomModulesBuilder_ == null) { ensureSecurityHealthAnalyticsCustomModulesIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( @@ -744,11 +943,15 @@ public Builder addAllSecurityHealthAnalyticsCustomModules( return this; } /** + * + * *
      * The list of SecurityHealthAnalyticsCustomModules
      * 
* - * repeated .google.cloud.securitycentermanagement.v1.SecurityHealthAnalyticsCustomModule security_health_analytics_custom_modules = 1; + * + * repeated .google.cloud.securitycentermanagement.v1.SecurityHealthAnalyticsCustomModule security_health_analytics_custom_modules = 1; + * */ public Builder clearSecurityHealthAnalyticsCustomModules() { if (securityHealthAnalyticsCustomModulesBuilder_ == null) { @@ -761,11 +964,15 @@ public Builder clearSecurityHealthAnalyticsCustomModules() { return this; } /** + * + * *
      * The list of SecurityHealthAnalyticsCustomModules
      * 
* - * repeated .google.cloud.securitycentermanagement.v1.SecurityHealthAnalyticsCustomModule security_health_analytics_custom_modules = 1; + * + * repeated .google.cloud.securitycentermanagement.v1.SecurityHealthAnalyticsCustomModule security_health_analytics_custom_modules = 1; + * */ public Builder removeSecurityHealthAnalyticsCustomModules(int index) { if (securityHealthAnalyticsCustomModulesBuilder_ == null) { @@ -778,39 +985,55 @@ public Builder removeSecurityHealthAnalyticsCustomModules(int index) { return this; } /** + * + * *
      * The list of SecurityHealthAnalyticsCustomModules
      * 
* - * repeated .google.cloud.securitycentermanagement.v1.SecurityHealthAnalyticsCustomModule security_health_analytics_custom_modules = 1; + * + * repeated .google.cloud.securitycentermanagement.v1.SecurityHealthAnalyticsCustomModule security_health_analytics_custom_modules = 1; + * */ - public com.google.cloud.securitycentermanagement.v1.SecurityHealthAnalyticsCustomModule.Builder getSecurityHealthAnalyticsCustomModulesBuilder( - int index) { + public com.google.cloud.securitycentermanagement.v1.SecurityHealthAnalyticsCustomModule.Builder + getSecurityHealthAnalyticsCustomModulesBuilder(int index) { return getSecurityHealthAnalyticsCustomModulesFieldBuilder().getBuilder(index); } /** + * + * *
      * The list of SecurityHealthAnalyticsCustomModules
      * 
* - * repeated .google.cloud.securitycentermanagement.v1.SecurityHealthAnalyticsCustomModule security_health_analytics_custom_modules = 1; + * + * repeated .google.cloud.securitycentermanagement.v1.SecurityHealthAnalyticsCustomModule security_health_analytics_custom_modules = 1; + * */ - public com.google.cloud.securitycentermanagement.v1.SecurityHealthAnalyticsCustomModuleOrBuilder getSecurityHealthAnalyticsCustomModulesOrBuilder( - int index) { + public com.google.cloud.securitycentermanagement.v1.SecurityHealthAnalyticsCustomModuleOrBuilder + getSecurityHealthAnalyticsCustomModulesOrBuilder(int index) { if (securityHealthAnalyticsCustomModulesBuilder_ == null) { - return securityHealthAnalyticsCustomModules_.get(index); } else { + return securityHealthAnalyticsCustomModules_.get(index); + } else { return securityHealthAnalyticsCustomModulesBuilder_.getMessageOrBuilder(index); } } /** + * + * *
      * The list of SecurityHealthAnalyticsCustomModules
      * 
* - * repeated .google.cloud.securitycentermanagement.v1.SecurityHealthAnalyticsCustomModule security_health_analytics_custom_modules = 1; + * + * repeated .google.cloud.securitycentermanagement.v1.SecurityHealthAnalyticsCustomModule security_health_analytics_custom_modules = 1; + * */ - public java.util.List - getSecurityHealthAnalyticsCustomModulesOrBuilderList() { + public java.util.List< + ? extends + com.google.cloud.securitycentermanagement.v1 + .SecurityHealthAnalyticsCustomModuleOrBuilder> + getSecurityHealthAnalyticsCustomModulesOrBuilderList() { if (securityHealthAnalyticsCustomModulesBuilder_ != null) { return securityHealthAnalyticsCustomModulesBuilder_.getMessageOrBuilderList(); } else { @@ -818,45 +1041,75 @@ public com.google.cloud.securitycentermanagement.v1.SecurityHealthAnalyticsCusto } } /** + * + * *
      * The list of SecurityHealthAnalyticsCustomModules
      * 
* - * repeated .google.cloud.securitycentermanagement.v1.SecurityHealthAnalyticsCustomModule security_health_analytics_custom_modules = 1; + * + * repeated .google.cloud.securitycentermanagement.v1.SecurityHealthAnalyticsCustomModule security_health_analytics_custom_modules = 1; + * */ - public com.google.cloud.securitycentermanagement.v1.SecurityHealthAnalyticsCustomModule.Builder addSecurityHealthAnalyticsCustomModulesBuilder() { - return getSecurityHealthAnalyticsCustomModulesFieldBuilder().addBuilder( - com.google.cloud.securitycentermanagement.v1.SecurityHealthAnalyticsCustomModule.getDefaultInstance()); + public com.google.cloud.securitycentermanagement.v1.SecurityHealthAnalyticsCustomModule.Builder + addSecurityHealthAnalyticsCustomModulesBuilder() { + return getSecurityHealthAnalyticsCustomModulesFieldBuilder() + .addBuilder( + com.google.cloud.securitycentermanagement.v1.SecurityHealthAnalyticsCustomModule + .getDefaultInstance()); } /** + * + * *
      * The list of SecurityHealthAnalyticsCustomModules
      * 
* - * repeated .google.cloud.securitycentermanagement.v1.SecurityHealthAnalyticsCustomModule security_health_analytics_custom_modules = 1; + * + * repeated .google.cloud.securitycentermanagement.v1.SecurityHealthAnalyticsCustomModule security_health_analytics_custom_modules = 1; + * */ - public com.google.cloud.securitycentermanagement.v1.SecurityHealthAnalyticsCustomModule.Builder addSecurityHealthAnalyticsCustomModulesBuilder( - int index) { - return getSecurityHealthAnalyticsCustomModulesFieldBuilder().addBuilder( - index, com.google.cloud.securitycentermanagement.v1.SecurityHealthAnalyticsCustomModule.getDefaultInstance()); + public com.google.cloud.securitycentermanagement.v1.SecurityHealthAnalyticsCustomModule.Builder + addSecurityHealthAnalyticsCustomModulesBuilder(int index) { + return getSecurityHealthAnalyticsCustomModulesFieldBuilder() + .addBuilder( + index, + com.google.cloud.securitycentermanagement.v1.SecurityHealthAnalyticsCustomModule + .getDefaultInstance()); } /** + * + * *
      * The list of SecurityHealthAnalyticsCustomModules
      * 
* - * repeated .google.cloud.securitycentermanagement.v1.SecurityHealthAnalyticsCustomModule security_health_analytics_custom_modules = 1; + * + * repeated .google.cloud.securitycentermanagement.v1.SecurityHealthAnalyticsCustomModule security_health_analytics_custom_modules = 1; + * */ - public java.util.List - getSecurityHealthAnalyticsCustomModulesBuilderList() { + public java.util.List< + com.google.cloud.securitycentermanagement.v1.SecurityHealthAnalyticsCustomModule + .Builder> + getSecurityHealthAnalyticsCustomModulesBuilderList() { return getSecurityHealthAnalyticsCustomModulesFieldBuilder().getBuilderList(); } + private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.securitycentermanagement.v1.SecurityHealthAnalyticsCustomModule, com.google.cloud.securitycentermanagement.v1.SecurityHealthAnalyticsCustomModule.Builder, com.google.cloud.securitycentermanagement.v1.SecurityHealthAnalyticsCustomModuleOrBuilder> + com.google.cloud.securitycentermanagement.v1.SecurityHealthAnalyticsCustomModule, + com.google.cloud.securitycentermanagement.v1.SecurityHealthAnalyticsCustomModule + .Builder, + com.google.cloud.securitycentermanagement.v1 + .SecurityHealthAnalyticsCustomModuleOrBuilder> getSecurityHealthAnalyticsCustomModulesFieldBuilder() { if (securityHealthAnalyticsCustomModulesBuilder_ == null) { - securityHealthAnalyticsCustomModulesBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.securitycentermanagement.v1.SecurityHealthAnalyticsCustomModule, com.google.cloud.securitycentermanagement.v1.SecurityHealthAnalyticsCustomModule.Builder, com.google.cloud.securitycentermanagement.v1.SecurityHealthAnalyticsCustomModuleOrBuilder>( + securityHealthAnalyticsCustomModulesBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.securitycentermanagement.v1.SecurityHealthAnalyticsCustomModule, + com.google.cloud.securitycentermanagement.v1.SecurityHealthAnalyticsCustomModule + .Builder, + com.google.cloud.securitycentermanagement.v1 + .SecurityHealthAnalyticsCustomModuleOrBuilder>( securityHealthAnalyticsCustomModules_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), @@ -868,18 +1121,20 @@ public com.google.cloud.securitycentermanagement.v1.SecurityHealthAnalyticsCusto private java.lang.Object nextPageToken_ = ""; /** + * + * *
      * A token identifying a page of results the server should return.
      * 
* * 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; @@ -888,20 +1143,21 @@ public java.lang.String getNextPageToken() { } } /** + * + * *
      * A token identifying a page of results the server should return.
      * 
* * 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 { @@ -909,28 +1165,35 @@ public java.lang.String getNextPageToken() { } } /** + * + * *
      * A token identifying a page of results the server should return.
      * 
* * 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 identifying a page of results the server should return.
      * 
* * string next_page_token = 2; + * * @return This builder for chaining. */ public Builder clearNextPageToken() { @@ -940,26 +1203,30 @@ public Builder clearNextPageToken() { return this; } /** + * + * *
      * A token identifying a page of results the server should return.
      * 
* * 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); } @@ -969,55 +1236,66 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.securitycentermanagement.v1.ListSecurityHealthAnalyticsCustomModulesResponse) } // @@protoc_insertion_point(class_scope:google.cloud.securitycentermanagement.v1.ListSecurityHealthAnalyticsCustomModulesResponse) - private static final com.google.cloud.securitycentermanagement.v1.ListSecurityHealthAnalyticsCustomModulesResponse DEFAULT_INSTANCE; + private static final com.google.cloud.securitycentermanagement.v1 + .ListSecurityHealthAnalyticsCustomModulesResponse + DEFAULT_INSTANCE; + static { - DEFAULT_INSTANCE = new com.google.cloud.securitycentermanagement.v1.ListSecurityHealthAnalyticsCustomModulesResponse(); + DEFAULT_INSTANCE = + new com.google.cloud.securitycentermanagement.v1 + .ListSecurityHealthAnalyticsCustomModulesResponse(); } - public static com.google.cloud.securitycentermanagement.v1.ListSecurityHealthAnalyticsCustomModulesResponse getDefaultInstance() { + public static com.google.cloud.securitycentermanagement.v1 + .ListSecurityHealthAnalyticsCustomModulesResponse + getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ListSecurityHealthAnalyticsCustomModulesResponse parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + PARSER = + new com.google.protobuf.AbstractParser< + ListSecurityHealthAnalyticsCustomModulesResponse>() { + @java.lang.Override + public ListSecurityHealthAnalyticsCustomModulesResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException() + .setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; - public static com.google.protobuf.Parser parser() { + public static com.google.protobuf.Parser + parser() { return PARSER; } @java.lang.Override - public com.google.protobuf.Parser getParserForType() { + public com.google.protobuf.Parser + getParserForType() { return PARSER; } @java.lang.Override - public com.google.cloud.securitycentermanagement.v1.ListSecurityHealthAnalyticsCustomModulesResponse getDefaultInstanceForType() { + public com.google.cloud.securitycentermanagement.v1 + .ListSecurityHealthAnalyticsCustomModulesResponse + getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/java-securitycentermanagement/proto-google-cloud-securitycentermanagement-v1/src/main/java/com/google/cloud/securitycentermanagement/v1/ListSecurityHealthAnalyticsCustomModulesResponseOrBuilder.java b/java-securitycentermanagement/proto-google-cloud-securitycentermanagement-v1/src/main/java/com/google/cloud/securitycentermanagement/v1/ListSecurityHealthAnalyticsCustomModulesResponseOrBuilder.java new file mode 100644 index 000000000000..ec091e535608 --- /dev/null +++ b/java-securitycentermanagement/proto-google-cloud-securitycentermanagement-v1/src/main/java/com/google/cloud/securitycentermanagement/v1/ListSecurityHealthAnalyticsCustomModulesResponseOrBuilder.java @@ -0,0 +1,118 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/securitycentermanagement/v1/security_center_management.proto + +package com.google.cloud.securitycentermanagement.v1; + +public interface ListSecurityHealthAnalyticsCustomModulesResponseOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.securitycentermanagement.v1.ListSecurityHealthAnalyticsCustomModulesResponse) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * The list of SecurityHealthAnalyticsCustomModules
+   * 
+ * + * + * repeated .google.cloud.securitycentermanagement.v1.SecurityHealthAnalyticsCustomModule security_health_analytics_custom_modules = 1; + * + */ + java.util.List + getSecurityHealthAnalyticsCustomModulesList(); + /** + * + * + *
+   * The list of SecurityHealthAnalyticsCustomModules
+   * 
+ * + * + * repeated .google.cloud.securitycentermanagement.v1.SecurityHealthAnalyticsCustomModule security_health_analytics_custom_modules = 1; + * + */ + com.google.cloud.securitycentermanagement.v1.SecurityHealthAnalyticsCustomModule + getSecurityHealthAnalyticsCustomModules(int index); + /** + * + * + *
+   * The list of SecurityHealthAnalyticsCustomModules
+   * 
+ * + * + * repeated .google.cloud.securitycentermanagement.v1.SecurityHealthAnalyticsCustomModule security_health_analytics_custom_modules = 1; + * + */ + int getSecurityHealthAnalyticsCustomModulesCount(); + /** + * + * + *
+   * The list of SecurityHealthAnalyticsCustomModules
+   * 
+ * + * + * repeated .google.cloud.securitycentermanagement.v1.SecurityHealthAnalyticsCustomModule security_health_analytics_custom_modules = 1; + * + */ + java.util.List< + ? extends + com.google.cloud.securitycentermanagement.v1 + .SecurityHealthAnalyticsCustomModuleOrBuilder> + getSecurityHealthAnalyticsCustomModulesOrBuilderList(); + /** + * + * + *
+   * The list of SecurityHealthAnalyticsCustomModules
+   * 
+ * + * + * repeated .google.cloud.securitycentermanagement.v1.SecurityHealthAnalyticsCustomModule security_health_analytics_custom_modules = 1; + * + */ + com.google.cloud.securitycentermanagement.v1.SecurityHealthAnalyticsCustomModuleOrBuilder + getSecurityHealthAnalyticsCustomModulesOrBuilder(int index); + + /** + * + * + *
+   * A token identifying a page of results the server should return.
+   * 
+ * + * string next_page_token = 2; + * + * @return The nextPageToken. + */ + java.lang.String getNextPageToken(); + /** + * + * + *
+   * A token identifying a page of results the server should return.
+   * 
+ * + * string next_page_token = 2; + * + * @return The bytes for nextPageToken. + */ + com.google.protobuf.ByteString getNextPageTokenBytes(); +} diff --git a/owl-bot-staging/java-securitycentermanagement/v1/proto-google-cloud-securitycentermanagement-v1/src/main/java/com/google/cloud/securitycentermanagement/v1/LocationName.java b/java-securitycentermanagement/proto-google-cloud-securitycentermanagement-v1/src/main/java/com/google/cloud/securitycentermanagement/v1/LocationName.java similarity index 100% rename from owl-bot-staging/java-securitycentermanagement/v1/proto-google-cloud-securitycentermanagement-v1/src/main/java/com/google/cloud/securitycentermanagement/v1/LocationName.java rename to java-securitycentermanagement/proto-google-cloud-securitycentermanagement-v1/src/main/java/com/google/cloud/securitycentermanagement/v1/LocationName.java diff --git a/owl-bot-staging/java-securitycentermanagement/v1/proto-google-cloud-securitycentermanagement-v1/src/main/java/com/google/cloud/securitycentermanagement/v1/OrganizationLocationName.java b/java-securitycentermanagement/proto-google-cloud-securitycentermanagement-v1/src/main/java/com/google/cloud/securitycentermanagement/v1/OrganizationLocationName.java similarity index 100% rename from owl-bot-staging/java-securitycentermanagement/v1/proto-google-cloud-securitycentermanagement-v1/src/main/java/com/google/cloud/securitycentermanagement/v1/OrganizationLocationName.java rename to java-securitycentermanagement/proto-google-cloud-securitycentermanagement-v1/src/main/java/com/google/cloud/securitycentermanagement/v1/OrganizationLocationName.java diff --git a/java-securitycentermanagement/proto-google-cloud-securitycentermanagement-v1/src/main/java/com/google/cloud/securitycentermanagement/v1/SecurityCenterManagementProto.java b/java-securitycentermanagement/proto-google-cloud-securitycentermanagement-v1/src/main/java/com/google/cloud/securitycentermanagement/v1/SecurityCenterManagementProto.java new file mode 100644 index 000000000000..c175b3265206 --- /dev/null +++ b/java-securitycentermanagement/proto-google-cloud-securitycentermanagement-v1/src/main/java/com/google/cloud/securitycentermanagement/v1/SecurityCenterManagementProto.java @@ -0,0 +1,1181 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/securitycentermanagement/v1/security_center_management.proto + +package com.google.cloud.securitycentermanagement.v1; + +public final class SecurityCenterManagementProto { + private SecurityCenterManagementProto() {} + + 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_securitycentermanagement_v1_EffectiveSecurityHealthAnalyticsCustomModule_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_securitycentermanagement_v1_EffectiveSecurityHealthAnalyticsCustomModule_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_securitycentermanagement_v1_ListEffectiveSecurityHealthAnalyticsCustomModulesRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_securitycentermanagement_v1_ListEffectiveSecurityHealthAnalyticsCustomModulesRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_securitycentermanagement_v1_ListEffectiveSecurityHealthAnalyticsCustomModulesResponse_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_securitycentermanagement_v1_ListEffectiveSecurityHealthAnalyticsCustomModulesResponse_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_securitycentermanagement_v1_GetEffectiveSecurityHealthAnalyticsCustomModuleRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_securitycentermanagement_v1_GetEffectiveSecurityHealthAnalyticsCustomModuleRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_securitycentermanagement_v1_SecurityHealthAnalyticsCustomModule_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_securitycentermanagement_v1_SecurityHealthAnalyticsCustomModule_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_securitycentermanagement_v1_CustomConfig_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_securitycentermanagement_v1_CustomConfig_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_securitycentermanagement_v1_CustomConfig_CustomOutputSpec_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_securitycentermanagement_v1_CustomConfig_CustomOutputSpec_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_securitycentermanagement_v1_CustomConfig_CustomOutputSpec_Property_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_securitycentermanagement_v1_CustomConfig_CustomOutputSpec_Property_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_securitycentermanagement_v1_CustomConfig_ResourceSelector_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_securitycentermanagement_v1_CustomConfig_ResourceSelector_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_securitycentermanagement_v1_ListSecurityHealthAnalyticsCustomModulesRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_securitycentermanagement_v1_ListSecurityHealthAnalyticsCustomModulesRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_securitycentermanagement_v1_ListSecurityHealthAnalyticsCustomModulesResponse_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_securitycentermanagement_v1_ListSecurityHealthAnalyticsCustomModulesResponse_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_securitycentermanagement_v1_ListDescendantSecurityHealthAnalyticsCustomModulesRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_securitycentermanagement_v1_ListDescendantSecurityHealthAnalyticsCustomModulesRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_securitycentermanagement_v1_ListDescendantSecurityHealthAnalyticsCustomModulesResponse_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_securitycentermanagement_v1_ListDescendantSecurityHealthAnalyticsCustomModulesResponse_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_securitycentermanagement_v1_GetSecurityHealthAnalyticsCustomModuleRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_securitycentermanagement_v1_GetSecurityHealthAnalyticsCustomModuleRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_securitycentermanagement_v1_CreateSecurityHealthAnalyticsCustomModuleRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_securitycentermanagement_v1_CreateSecurityHealthAnalyticsCustomModuleRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_securitycentermanagement_v1_UpdateSecurityHealthAnalyticsCustomModuleRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_securitycentermanagement_v1_UpdateSecurityHealthAnalyticsCustomModuleRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_securitycentermanagement_v1_DeleteSecurityHealthAnalyticsCustomModuleRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_securitycentermanagement_v1_DeleteSecurityHealthAnalyticsCustomModuleRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_securitycentermanagement_v1_SimulateSecurityHealthAnalyticsCustomModuleRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_securitycentermanagement_v1_SimulateSecurityHealthAnalyticsCustomModuleRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_securitycentermanagement_v1_SimulateSecurityHealthAnalyticsCustomModuleRequest_SimulatedResource_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_securitycentermanagement_v1_SimulateSecurityHealthAnalyticsCustomModuleRequest_SimulatedResource_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_securitycentermanagement_v1_SimulatedFinding_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_securitycentermanagement_v1_SimulatedFinding_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_securitycentermanagement_v1_SimulatedFinding_SourcePropertiesEntry_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_securitycentermanagement_v1_SimulatedFinding_SourcePropertiesEntry_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_securitycentermanagement_v1_SimulateSecurityHealthAnalyticsCustomModuleResponse_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_securitycentermanagement_v1_SimulateSecurityHealthAnalyticsCustomModuleResponse_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_securitycentermanagement_v1_SimulateSecurityHealthAnalyticsCustomModuleResponse_SimulatedResult_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_securitycentermanagement_v1_SimulateSecurityHealthAnalyticsCustomModuleResponse_SimulatedResult_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_securitycentermanagement_v1_EffectiveEventThreatDetectionCustomModule_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_securitycentermanagement_v1_EffectiveEventThreatDetectionCustomModule_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_securitycentermanagement_v1_ListEffectiveEventThreatDetectionCustomModulesRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_securitycentermanagement_v1_ListEffectiveEventThreatDetectionCustomModulesRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_securitycentermanagement_v1_ListEffectiveEventThreatDetectionCustomModulesResponse_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_securitycentermanagement_v1_ListEffectiveEventThreatDetectionCustomModulesResponse_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_securitycentermanagement_v1_GetEffectiveEventThreatDetectionCustomModuleRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_securitycentermanagement_v1_GetEffectiveEventThreatDetectionCustomModuleRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_securitycentermanagement_v1_EventThreatDetectionCustomModule_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_securitycentermanagement_v1_EventThreatDetectionCustomModule_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_securitycentermanagement_v1_ListEventThreatDetectionCustomModulesRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_securitycentermanagement_v1_ListEventThreatDetectionCustomModulesRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_securitycentermanagement_v1_ListEventThreatDetectionCustomModulesResponse_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_securitycentermanagement_v1_ListEventThreatDetectionCustomModulesResponse_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_securitycentermanagement_v1_ListDescendantEventThreatDetectionCustomModulesRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_securitycentermanagement_v1_ListDescendantEventThreatDetectionCustomModulesRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_securitycentermanagement_v1_ListDescendantEventThreatDetectionCustomModulesResponse_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_securitycentermanagement_v1_ListDescendantEventThreatDetectionCustomModulesResponse_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_securitycentermanagement_v1_GetEventThreatDetectionCustomModuleRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_securitycentermanagement_v1_GetEventThreatDetectionCustomModuleRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_securitycentermanagement_v1_CreateEventThreatDetectionCustomModuleRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_securitycentermanagement_v1_CreateEventThreatDetectionCustomModuleRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_securitycentermanagement_v1_UpdateEventThreatDetectionCustomModuleRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_securitycentermanagement_v1_UpdateEventThreatDetectionCustomModuleRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_securitycentermanagement_v1_DeleteEventThreatDetectionCustomModuleRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_securitycentermanagement_v1_DeleteEventThreatDetectionCustomModuleRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_securitycentermanagement_v1_ValidateEventThreatDetectionCustomModuleRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_securitycentermanagement_v1_ValidateEventThreatDetectionCustomModuleRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_securitycentermanagement_v1_ValidateEventThreatDetectionCustomModuleResponse_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_securitycentermanagement_v1_ValidateEventThreatDetectionCustomModuleResponse_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_securitycentermanagement_v1_ValidateEventThreatDetectionCustomModuleResponse_CustomModuleValidationError_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_securitycentermanagement_v1_ValidateEventThreatDetectionCustomModuleResponse_CustomModuleValidationError_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_securitycentermanagement_v1_ValidateEventThreatDetectionCustomModuleResponse_Position_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_securitycentermanagement_v1_ValidateEventThreatDetectionCustomModuleResponse_Position_fieldAccessorTable; + + public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + return descriptor; + } + + private static com.google.protobuf.Descriptors.FileDescriptor descriptor; + + static { + java.lang.String[] descriptorData = { + "\nIgoogle/cloud/securitycentermanagement/" + + "v1/security_center_management.proto\022(goo" + + "gle.cloud.securitycentermanagement.v1\032\034g" + + "oogle/api/annotations.proto\032\027google/api/" + + "client.proto\032\037google/api/field_behavior." + + "proto\032\031google/api/resource.proto\032\032google" + + "/iam/v1/policy.proto\032\033google/protobuf/em" + + "pty.proto\032 google/protobuf/field_mask.pr" + + "oto\032\034google/protobuf/struct.proto\032\037googl" + + "e/protobuf/timestamp.proto\032\027google/rpc/s" + + "tatus.proto\032\026google/type/expr.proto\"\362\007\n," + + "EffectiveSecurityHealthAnalyticsCustomMo" + + "dule\022\022\n\004name\030\001 \001(\tB\004\342A\001\003\022S\n\rcustom_confi" + + "g\030\002 \001(\01326.google.cloud.securitycenterman" + + "agement.v1.CustomConfigB\004\342A\001\003\022\206\001\n\020enable" + + "ment_state\030\003 \001(\0162f.google.cloud.security" + + "centermanagement.v1.EffectiveSecurityHea" + + "lthAnalyticsCustomModule.EnablementState" + + "B\004\342A\001\003\022\032\n\014display_name\030\004 \001(\tB\004\342A\001\003\"N\n\017En" + + "ablementState\022 \n\034ENABLEMENT_STATE_UNSPEC" + + "IFIED\020\000\022\013\n\007ENABLED\020\001\022\014\n\010DISABLED\020\002:\343\004\352A\337" + + "\004\nTsecuritycentermanagement.googleapis.c" + + "om/EffectiveSecurityHealthAnalyticsCusto" + + "mModule\022\223\001organizations/{organization}/l" + + "ocations/{location}/effectiveSecurityHea" + + "lthAnalyticsCustomModules/{effective_sec" + + "urity_health_analytics_custom_module}\022\211\001" + + "projects/{project}/locations/{location}/" + + "effectiveSecurityHealthAnalyticsCustomMo" + + "dules/{effective_security_health_analyti" + + "cs_custom_module}\022\207\001folders/{folder}/loc" + + "ations/{location}/effectiveSecurityHealt" + + "hAnalyticsCustomModules/{effective_secur" + + "ity_health_analytics_custom_module}*-eff" + + "ectiveSecurityHealthAnalyticsCustomModul" + + "es2,effectiveSecurityHealthAnalyticsCust" + + "omModule\"\334\001\n8ListEffectiveSecurityHealth" + + "AnalyticsCustomModulesRequest\022m\n\006parent\030" + + "\001 \001(\tB]\342A\001\002\372AV\022Tsecuritycentermanagement" + + ".googleapis.com/EffectiveSecurityHealthA" + + "nalyticsCustomModule\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\"\351\001\n9List" + + "EffectiveSecurityHealthAnalyticsCustomMo" + + "dulesResponse\022\222\001\n2effective_security_hea" + + "lth_analytics_custom_modules\030\001 \003(\0132V.goo" + + "gle.cloud.securitycentermanagement.v1.Ef" + + "fectiveSecurityHealthAnalyticsCustomModu" + + "le\022\027\n\017next_page_token\030\002 \001(\t\"\245\001\n6GetEffec" + + "tiveSecurityHealthAnalyticsCustomModuleR" + + "equest\022k\n\004name\030\001 \001(\tB]\342A\001\002\372AV\nTsecurityc" + + "entermanagement.googleapis.com/Effective" + + "SecurityHealthAnalyticsCustomModule\"\331\010\n#" + + "SecurityHealthAnalyticsCustomModule\022\022\n\004n" + + "ame\030\001 \001(\tB\004\342A\001\005\022\032\n\014display_name\030\002 \001(\tB\004\342" + + "A\001\001\022}\n\020enablement_state\030\003 \001(\0162].google.c" + + "loud.securitycentermanagement.v1.Securit" + + "yHealthAnalyticsCustomModule.EnablementS" + + "tateB\004\342A\001\001\0225\n\013update_time\030\004 \001(\0132\032.google" + + ".protobuf.TimestampB\004\342A\001\003\022\031\n\013last_editor" + + "\030\005 \001(\tB\004\342A\001\003\022m\n\017ancestor_module\030\006 \001(\tBT\342" + + "A\001\003\372AM\nKsecuritycentermanagement.googlea" + + "pis.com/SecurityHealthAnalyticsCustomMod" + + "ule\022S\n\rcustom_config\030\007 \001(\01326.google.clou" + + "d.securitycentermanagement.v1.CustomConf" + + "igB\004\342A\001\001\"]\n\017EnablementState\022 \n\034ENABLEMEN" + + "T_STATE_UNSPECIFIED\020\000\022\013\n\007ENABLED\020\001\022\014\n\010DI" + + "SABLED\020\002\022\r\n\tINHERITED\020\003:\215\004\352A\211\004\nKsecurity" + + "centermanagement.googleapis.com/Security" + + "HealthAnalyticsCustomModule\022\200\001organizati" + + "ons/{organization}/locations/{location}/" + + "securityHealthAnalyticsCustomModules/{se" + + "curity_health_analytics_custom_module}\022v" + + "projects/{project}/locations/{location}/" + + "securityHealthAnalyticsCustomModules/{se" + + "curity_health_analytics_custom_module}\022t" + + "folders/{folder}/locations/{location}/se" + + "curityHealthAnalyticsCustomModules/{secu" + + "rity_health_analytics_custom_module}*$se" + + "curityHealthAnalyticsCustomModules2#secu" + + "rityHealthAnalyticsCustomModule\"\365\005\n\014Cust" + + "omConfig\022*\n\tpredicate\030\001 \001(\0132\021.google.typ" + + "e.ExprB\004\342A\001\001\022d\n\rcustom_output\030\002 \001(\0132G.go" + + "ogle.cloud.securitycentermanagement.v1.C" + + "ustomConfig.CustomOutputSpecB\004\342A\001\001\022h\n\021re" + + "source_selector\030\003 \001(\0132G.google.cloud.sec" + + "uritycentermanagement.v1.CustomConfig.Re" + + "sourceSelectorB\004\342A\001\001\022W\n\010severity\030\004 \001(\0162?" + + ".google.cloud.securitycentermanagement.v" + + "1.CustomConfig.SeverityB\004\342A\001\001\022\031\n\013descrip" + + "tion\030\005 \001(\tB\004\342A\001\001\022\034\n\016recommendation\030\006 \001(\t" + + "B\004\342A\001\001\032\321\001\n\020CustomOutputSpec\022j\n\npropertie" + + "s\030\001 \003(\0132P.google.cloud.securitycenterman" + + "agement.v1.CustomConfig.CustomOutputSpec" + + ".PropertyB\004\342A\001\001\032Q\n\010Property\022\022\n\004name\030\001 \001(" + + "\tB\004\342A\001\001\0221\n\020value_expression\030\002 \001(\0132\021.goog" + + "le.type.ExprB\004\342A\001\001\0320\n\020ResourceSelector\022\034" + + "\n\016resource_types\030\001 \003(\tB\004\342A\001\001\"Q\n\010Severity" + + "\022\030\n\024SEVERITY_UNSPECIFIED\020\000\022\014\n\010CRITICAL\020\001" + + "\022\010\n\004HIGH\020\002\022\n\n\006MEDIUM\020\003\022\007\n\003LOW\020\004\"\312\001\n/List" + + "SecurityHealthAnalyticsCustomModulesRequ" + + "est\022d\n\006parent\030\001 \001(\tBT\342A\001\002\372AM\022Ksecurityce" + + "ntermanagement.googleapis.com/SecurityHe" + + "althAnalyticsCustomModule\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\"\314\001\n" + + "0ListSecurityHealthAnalyticsCustomModule" + + "sResponse\022\177\n(security_health_analytics_c" + + "ustom_modules\030\001 \003(\0132M.google.cloud.secur" + + "itycentermanagement.v1.SecurityHealthAna" + + "lyticsCustomModule\022\027\n\017next_page_token\030\002 " + + "\001(\t\"\324\001\n9ListDescendantSecurityHealthAnal" + + "yticsCustomModulesRequest\022d\n\006parent\030\001 \001(" + + "\tBT\342A\001\002\372AM\022Ksecuritycentermanagement.goo" + + "gleapis.com/SecurityHealthAnalyticsCusto" + + "mModule\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\"\326\001\n:ListDescendantSec" + + "urityHealthAnalyticsCustomModulesRespons" + + "e\022\177\n(security_health_analytics_custom_mo" + + "dules\030\001 \003(\0132M.google.cloud.securitycente" + + "rmanagement.v1.SecurityHealthAnalyticsCu" + + "stomModule\022\027\n\017next_page_token\030\002 \001(\t\"\223\001\n-" + + "GetSecurityHealthAnalyticsCustomModuleRe" + + "quest\022b\n\004name\030\001 \001(\tBT\342A\001\002\372AM\nKsecurityce" + + "ntermanagement.googleapis.com/SecurityHe" + + "althAnalyticsCustomModule\"\274\002\n0CreateSecu" + + "rityHealthAnalyticsCustomModuleRequest\022d" + + "\n\006parent\030\001 \001(\tBT\342A\001\002\372AM\022Ksecuritycenterm" + + "anagement.googleapis.com/SecurityHealthA" + + "nalyticsCustomModule\022\204\001\n\'security_health" + + "_analytics_custom_module\030\002 \001(\0132M.google." + + "cloud.securitycentermanagement.v1.Securi" + + "tyHealthAnalyticsCustomModuleB\004\342A\001\002\022\033\n\rv" + + "alidate_only\030\003 \001(\010B\004\342A\001\001\"\215\002\n0UpdateSecur" + + "ityHealthAnalyticsCustomModuleRequest\0225\n" + + "\013update_mask\030\001 \001(\0132\032.google.protobuf.Fie" + + "ldMaskB\004\342A\001\002\022\204\001\n\'security_health_analyti" + + "cs_custom_module\030\002 \001(\0132M.google.cloud.se" + + "curitycentermanagement.v1.SecurityHealth" + + "AnalyticsCustomModuleB\004\342A\001\002\022\033\n\rvalidate_" + + "only\030\003 \001(\010B\004\342A\001\001\"\263\001\n0DeleteSecurityHealt" + + "hAnalyticsCustomModuleRequest\022b\n\004name\030\001 " + + "\001(\tBT\342A\001\002\372AM\nKsecuritycentermanagement.g" + + "oogleapis.com/SecurityHealthAnalyticsCus" + + "tomModule\022\033\n\rvalidate_only\030\002 \001(\010B\004\342A\001\001\"\307" + + "\003\n2SimulateSecurityHealthAnalyticsCustom" + + "ModuleRequest\022\024\n\006parent\030\001 \001(\tB\004\342A\001\002\022S\n\rc" + + "ustom_config\030\002 \001(\01326.google.cloud.securi" + + "tycentermanagement.v1.CustomConfigB\004\342A\001\002" + + "\022\206\001\n\010resource\030\003 \001(\0132n.google.cloud.secur" + + "itycentermanagement.v1.SimulateSecurityH" + + "ealthAnalyticsCustomModuleRequest.Simula" + + "tedResourceB\004\342A\001\002\032\234\001\n\021SimulatedResource\022" + + "\033\n\rresource_type\030\001 \001(\tB\004\342A\001\002\0224\n\rresource" + + "_data\030\002 \001(\0132\027.google.protobuf.StructB\004\342A" + + "\001\001\0224\n\017iam_policy_data\030\003 \001(\0132\025.google.iam" + + ".v1.PolicyB\004\342A\001\001\"\365\010\n\020SimulatedFinding\022\022\n" + + "\004name\030\001 \001(\tB\004\342A\001\010\022\016\n\006parent\030\002 \001(\t\022\025\n\rres" + + "ource_name\030\003 \001(\t\022\020\n\010category\030\004 \001(\t\022U\n\005st" + + "ate\030\005 \001(\0162@.google.cloud.securitycenterm" + + "anagement.v1.SimulatedFinding.StateB\004\342A\001" + + "\003\022k\n\021source_properties\030\006 \003(\0132P.google.cl" + + "oud.securitycentermanagement.v1.Simulate" + + "dFinding.SourcePropertiesEntry\022.\n\nevent_" + + "time\030\007 \001(\0132\032.google.protobuf.Timestamp\022U" + + "\n\010severity\030\010 \001(\0162C.google.cloud.security" + + "centermanagement.v1.SimulatedFinding.Sev" + + "erity\022^\n\rfinding_class\030\t \001(\0162G.google.cl" + + "oud.securitycentermanagement.v1.Simulate" + + "dFinding.FindingClass\032O\n\025SourcePropertie" + + "sEntry\022\013\n\003key\030\001 \001(\t\022%\n\005value\030\002 \001(\0132\026.goo" + + "gle.protobuf.Value:\0028\001\"8\n\005State\022\025\n\021STATE" + + "_UNSPECIFIED\020\000\022\n\n\006ACTIVE\020\001\022\014\n\010INACTIVE\020\002" + + "\"Q\n\010Severity\022\030\n\024SEVERITY_UNSPECIFIED\020\000\022\014" + + "\n\010CRITICAL\020\001\022\010\n\004HIGH\020\002\022\n\n\006MEDIUM\020\003\022\007\n\003LO" + + "W\020\004\"\231\001\n\014FindingClass\022\035\n\031FINDING_CLASS_UN" + + "SPECIFIED\020\000\022\n\n\006THREAT\020\001\022\021\n\rVULNERABILITY" + + "\020\002\022\024\n\020MISCONFIGURATION\020\003\022\017\n\013OBSERVATION\020" + + "\004\022\r\n\tSCC_ERROR\020\005\022\025\n\021POSTURE_VIOLATION\020\006:" + + "\356\001\352A\352\001\n%securitycenter.googleapis.com/Fi" + + "nding\022@organizations/{organization}/sour" + + "ces/{source}/findings/{finding}\0224folders" + + "/{folder}/sources/{source}/findings/{fin" + + "ding}\0226projects/{project}/sources/{sourc" + + "e}/findings/{finding}*\010findings2\007finding" + + "\"\366\002\n3SimulateSecurityHealthAnalyticsCust" + + "omModuleResponse\022}\n\006result\030\001 \001(\0132m.googl" + + "e.cloud.securitycentermanagement.v1.Simu" + + "lateSecurityHealthAnalyticsCustomModuleR" + + "esponse.SimulatedResult\032\277\001\n\017SimulatedRes" + + "ult\022M\n\007finding\030\001 \001(\0132:.google.cloud.secu" + + "ritycentermanagement.v1.SimulatedFinding" + + "H\000\022.\n\014no_violation\030\002 \001(\0132\026.google.protob" + + "uf.EmptyH\000\022#\n\005error\030\003 \001(\0132\022.google.rpc.S" + + "tatusH\000B\010\n\006result\"\332\007\n)EffectiveEventThre" + + "atDetectionCustomModule\022\022\n\004name\030\001 \001(\tB\004\342" + + "A\001\005\022-\n\006config\030\002 \001(\0132\027.google.protobuf.St" + + "ructB\004\342A\001\003\022\203\001\n\020enablement_state\030\003 \001(\0162c." + + "google.cloud.securitycentermanagement.v1" + + ".EffectiveEventThreatDetectionCustomModu" + + "le.EnablementStateB\004\342A\001\003\022\022\n\004type\030\004 \001(\tB\004" + + "\342A\001\003\022\032\n\014display_name\030\005 \001(\tB\004\342A\001\003\022\031\n\013desc" + + "ription\030\006 \001(\tB\004\342A\001\003\"N\n\017EnablementState\022 " + + "\n\034ENABLEMENT_STATE_UNSPECIFIED\020\000\022\013\n\007ENAB" + + "LED\020\001\022\014\n\010DISABLED\020\002:\310\004\352A\304\004\nQsecuritycent" + + "ermanagement.googleapis.com/EffectiveEve" + + "ntThreatDetectionCustomModule\022\215\001organiza" + + "tions/{organization}/locations/{location" + + "}/effectiveEventThreatDetectionCustomMod" + + "ules/{effective_event_threat_detection_c" + + "ustom_module}\022\203\001projects/{project}/locat" + + "ions/{location}/effectiveEventThreatDete" + + "ctionCustomModules/{effective_event_thre" + + "at_detection_custom_module}\022\201\001folders/{f" + + "older}/locations/{location}/effectiveEve" + + "ntThreatDetectionCustomModules/{effectiv" + + "e_event_threat_detection_custom_module}*" + + "*effectiveEventThreatDetectionCustomModu" + + "les2)effectiveEventThreatDetectionCustom" + + "Module\"\326\001\n5ListEffectiveEventThreatDetec" + + "tionCustomModulesRequest\022j\n\006parent\030\001 \001(\t" + + "BZ\342A\001\002\372AS\022Qsecuritycentermanagement.goog" + + "leapis.com/EffectiveEventThreatDetection" + + "CustomModule\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\"\340\001\n6ListEffectiv" + + "eEventThreatDetectionCustomModulesRespon" + + "se\022\214\001\n/effective_event_threat_detection_" + + "custom_modules\030\001 \003(\0132S.google.cloud.secu" + + "ritycentermanagement.v1.EffectiveEventTh" + + "reatDetectionCustomModule\022\027\n\017next_page_t" + + "oken\030\002 \001(\t\"\237\001\n3GetEffectiveEventThreatDe" + + "tectionCustomModuleRequest\022h\n\004name\030\001 \001(\t" + + "BZ\342A\001\002\372AS\nQsecuritycentermanagement.goog" + + "leapis.com/EffectiveEventThreatDetection" + + "CustomModule\"\275\010\n EventThreatDetectionCus" + + "tomModule\022\022\n\004name\030\001 \001(\tB\004\342A\001\005\022-\n\006config\030" + + "\002 \001(\0132\027.google.protobuf.StructB\004\342A\001\001\022j\n\017" + + "ancestor_module\030\003 \001(\tBQ\342A\001\003\372AJ\nHsecurity" + + "centermanagement.googleapis.com/EventThr" + + "eatDetectionCustomModule\022z\n\020enablement_s" + + "tate\030\004 \001(\0162Z.google.cloud.securitycenter" + + "management.v1.EventThreatDetectionCustom" + + "Module.EnablementStateB\004\342A\001\001\022\022\n\004type\030\005 \001" + + "(\tB\004\342A\001\001\022\032\n\014display_name\030\006 \001(\tB\004\342A\001\001\022\031\n\013" + + "description\030\007 \001(\tB\004\342A\001\001\0225\n\013update_time\030\010" + + " \001(\0132\032.google.protobuf.TimestampB\004\342A\001\003\022\031" + + "\n\013last_editor\030\t \001(\tB\004\342A\001\003\"]\n\017EnablementS" + + "tate\022 \n\034ENABLEMENT_STATE_UNSPECIFIED\020\000\022\013" + + "\n\007ENABLED\020\001\022\014\n\010DISABLED\020\002\022\r\n\tINHERITED\020\003" + + ":\361\003\352A\355\003\nHsecuritycentermanagement.google" + + "apis.com/EventThreatDetectionCustomModul" + + "e\022zorganizations/{organization}/location" + + "s/{location}/eventThreatDetectionCustomM" + + "odules/{event_threat_detection_custom_mo" + + "dule}\022pprojects/{project}/locations/{loc" + + "ation}/eventThreatDetectionCustomModules" + + "/{event_threat_detection_custom_module}\022" + + "nfolders/{folder}/locations/{location}/e" + + "ventThreatDetectionCustomModules/{event_" + + "threat_detection_custom_module}*!eventTh" + + "reatDetectionCustomModules2 eventThreatD" + + "etectionCustomModule\"\304\001\n,ListEventThreat" + + "DetectionCustomModulesRequest\022a\n\006parent\030" + + "\001 \001(\tBQ\342A\001\002\372AJ\022Hsecuritycentermanagement" + + ".googleapis.com/EventThreatDetectionCust" + + "omModule\022\027\n\tpage_size\030\002 \001(\005B\004\342A\001\001\022\030\n\npag" + + "e_token\030\003 \001(\tB\004\342A\001\001\"\303\001\n-ListEventThreatD" + + "etectionCustomModulesResponse\022y\n%event_t" + + "hreat_detection_custom_modules\030\001 \003(\0132J.g" + + "oogle.cloud.securitycentermanagement.v1." + + "EventThreatDetectionCustomModule\022\027\n\017next" + + "_page_token\030\002 \001(\t\"\316\001\n6ListDescendantEven" + + "tThreatDetectionCustomModulesRequest\022a\n\006" + + "parent\030\001 \001(\tBQ\342A\001\002\372AJ\022Hsecuritycenterman" + + "agement.googleapis.com/EventThreatDetect" + + "ionCustomModule\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\"\315\001\n7ListDesce" + + "ndantEventThreatDetectionCustomModulesRe" + + "sponse\022y\n%event_threat_detection_custom_" + + "modules\030\001 \003(\0132J.google.cloud.securitycen" + + "termanagement.v1.EventThreatDetectionCus" + + "tomModule\022\027\n\017next_page_token\030\002 \001(\t\"\215\001\n*G" + + "etEventThreatDetectionCustomModuleReques" + + "t\022_\n\004name\030\001 \001(\tBQ\342A\001\002\372AJ\nHsecuritycenter" + + "management.googleapis.com/EventThreatDet" + + "ectionCustomModule\"\257\002\n-CreateEventThreat" + + "DetectionCustomModuleRequest\022a\n\006parent\030\001" + + " \001(\tBQ\342A\001\002\372AJ\022Hsecuritycentermanagement." + + "googleapis.com/EventThreatDetectionCusto" + + "mModule\022~\n$event_threat_detection_custom" + + "_module\030\003 \001(\0132J.google.cloud.securitycen" + + "termanagement.v1.EventThreatDetectionCus" + + "tomModuleB\004\342A\001\002\022\033\n\rvalidate_only\030\004 \001(\010B\004" + + "\342A\001\001\"\203\002\n-UpdateEventThreatDetectionCusto" + + "mModuleRequest\0225\n\013update_mask\030\001 \001(\0132\032.go" + + "ogle.protobuf.FieldMaskB\004\342A\001\002\022~\n$event_t" + + "hreat_detection_custom_module\030\002 \001(\0132J.go" + + "ogle.cloud.securitycentermanagement.v1.E" + + "ventThreatDetectionCustomModuleB\004\342A\001\002\022\033\n" + + "\rvalidate_only\030\003 \001(\010B\004\342A\001\001\"\255\001\n-DeleteEve" + + "ntThreatDetectionCustomModuleRequest\022_\n\004" + + "name\030\001 \001(\tBQ\342A\001\002\372AJ\nHsecuritycentermanag" + + "ement.googleapis.com/EventThreatDetectio" + + "nCustomModule\022\033\n\rvalidate_only\030\002 \001(\010B\004\342A" + + "\001\001\"\300\001\n/ValidateEventThreatDetectionCusto" + + "mModuleRequest\022a\n\006parent\030\001 \001(\tBQ\342A\001\002\372AJ\022" + + "Hsecuritycentermanagement.googleapis.com" + + "/EventThreatDetectionCustomModule\022\026\n\010raw" + + "_text\030\002 \001(\tB\004\342A\001\002\022\022\n\004type\030\003 \001(\tB\004\342A\001\002\"\276\004" + + "\n0ValidateEventThreatDetectionCustomModu" + + "leResponse\022\206\001\n\006errors\030\002 \003(\0132v.google.clo" + + "ud.securitycentermanagement.v1.ValidateE" + + "ventThreatDetectionCustomModuleResponse." + + "CustomModuleValidationError\032\310\002\n\033CustomMo" + + "duleValidationError\022\023\n\013description\030\001 \001(\t" + + "\022\022\n\nfield_path\030\002 \001(\t\022w\n\005start\030\003 \001(\0132c.go" + + "ogle.cloud.securitycentermanagement.v1.V" + + "alidateEventThreatDetectionCustomModuleR" + + "esponse.PositionH\000\210\001\001\022u\n\003end\030\004 \001(\0132c.goo" + + "gle.cloud.securitycentermanagement.v1.Va" + + "lidateEventThreatDetectionCustomModuleRe" + + "sponse.PositionH\001\210\001\001B\010\n\006_startB\006\n\004_end\0326" + + "\n\010Position\022\023\n\013line_number\030\001 \001(\005\022\025\n\rcolum" + + "n_number\030\002 \001(\0052\241K\n\030SecurityCenterManagem" + + "ent\022\220\004\n1ListEffectiveSecurityHealthAnaly" + + "ticsCustomModules\022b.google.cloud.securit" + + "ycentermanagement.v1.ListEffectiveSecuri" + + "tyHealthAnalyticsCustomModulesRequest\032c." + + "google.cloud.securitycentermanagement.v1" + + ".ListEffectiveSecurityHealthAnalyticsCus" + + "tomModulesResponse\"\221\002\332A\006parent\202\323\344\223\002\201\002\022Q/" + + "v1/{parent=projects/*/locations/*}/effec" + + "tiveSecurityHealthAnalyticsCustomModules" + + "ZR\022P/v1/{parent=folders/*/locations/*}/e" + + "ffectiveSecurityHealthAnalyticsCustomMod" + + "ulesZX\022V/v1/{parent=organizations/*/loca" + + "tions/*}/effectiveSecurityHealthAnalytic" + + "sCustomModules\022\375\003\n/GetEffectiveSecurityH" + + "ealthAnalyticsCustomModule\022`.google.clou" + + "d.securitycentermanagement.v1.GetEffecti" + + "veSecurityHealthAnalyticsCustomModuleReq" + + "uest\032V.google.cloud.securitycentermanage" + + "ment.v1.EffectiveSecurityHealthAnalytics" + + "CustomModule\"\217\002\332A\004name\202\323\344\223\002\201\002\022Q/v1/{name" + + "=projects/*/locations/*/effectiveSecurit" + + "yHealthAnalyticsCustomModules/*}ZR\022P/v1/" + + "{name=folders/*/locations/*/effectiveSec" + + "urityHealthAnalyticsCustomModules/*}ZX\022V" + + "/v1/{name=organizations/*/locations/*/ef" + + "fectiveSecurityHealthAnalyticsCustomModu" + + "les/*}\022\332\003\n(ListSecurityHealthAnalyticsCu" + + "stomModules\022Y.google.cloud.securitycente" + + "rmanagement.v1.ListSecurityHealthAnalyti" + + "csCustomModulesRequest\032Z.google.cloud.se" + + "curitycentermanagement.v1.ListSecurityHe" + + "althAnalyticsCustomModulesResponse\"\366\001\332A\006" + + "parent\202\323\344\223\002\346\001\022H/v1/{parent=projects/*/lo" + + "cations/*}/securityHealthAnalyticsCustom" + + "ModulesZI\022G/v1/{parent=folders/*/locatio" + + "ns/*}/securityHealthAnalyticsCustomModul" + + "esZO\022M/v1/{parent=organizations/*/locati" + + "ons/*}/securityHealthAnalyticsCustomModu" + + "les\022\245\004\n2ListDescendantSecurityHealthAnal" + + "yticsCustomModules\022c.google.cloud.securi" + + "tycentermanagement.v1.ListDescendantSecu" + + "rityHealthAnalyticsCustomModulesRequest\032" + + "d.google.cloud.securitycentermanagement." + + "v1.ListDescendantSecurityHealthAnalytics" + + "CustomModulesResponse\"\243\002\332A\006parent\202\323\344\223\002\223\002" + + "\022W/v1/{parent=projects/*/locations/*}/se" + + "curityHealthAnalyticsCustomModules:listD" + + "escendantZX\022V/v1/{parent=folders/*/locat" + + "ions/*}/securityHealthAnalyticsCustomMod" + + "ules:listDescendantZ^\022\\/v1/{parent=organ" + + "izations/*/locations/*}/securityHealthAn" + + "alyticsCustomModules:listDescendant\022\307\003\n&" + + "GetSecurityHealthAnalyticsCustomModule\022W" + + ".google.cloud.securitycentermanagement.v" + + "1.GetSecurityHealthAnalyticsCustomModule" + + "Request\032M.google.cloud.securitycenterman" + + "agement.v1.SecurityHealthAnalyticsCustom" + + "Module\"\364\001\332A\004name\202\323\344\223\002\346\001\022H/v1/{name=proje" + + "cts/*/locations/*/securityHealthAnalytic" + + "sCustomModules/*}ZI\022G/v1/{name=folders/*" + + "/locations/*/securityHealthAnalyticsCust" + + "omModules/*}ZO\022M/v1/{name=organizations/" + + "*/locations/*/securityHealthAnalyticsCus" + + "tomModules/*}\022\362\004\n)CreateSecurityHealthAn" + + "alyticsCustomModule\022Z.google.cloud.secur" + + "itycentermanagement.v1.CreateSecurityHea" + + "lthAnalyticsCustomModuleRequest\032M.google" + + ".cloud.securitycentermanagement.v1.Secur" + + "ityHealthAnalyticsCustomModule\"\231\003\332A.pare" + + "nt,security_health_analytics_custom_modu" + + "le\202\323\344\223\002\341\002\"H/v1/{parent=projects/*/locati" + + "ons/*}/securityHealthAnalyticsCustomModu" + + "les:\'security_health_analytics_custom_mo" + + "duleZr\"G/v1/{parent=folders/*/locations/" + + "*}/securityHealthAnalyticsCustomModules:" + + "\'security_health_analytics_custom_module" + + "Zx\"M/v1/{parent=organizations/*/location" + + "s/*}/securityHealthAnalyticsCustomModule", + "s:\'security_health_analytics_custom_modu" + + "le\022\361\005\n)UpdateSecurityHealthAnalyticsCust" + + "omModule\022Z.google.cloud.securitycenterma" + + "nagement.v1.UpdateSecurityHealthAnalytic" + + "sCustomModuleRequest\032M.google.cloud.secu" + + "ritycentermanagement.v1.SecurityHealthAn" + + "alyticsCustomModule\"\230\004\332A3security_health" + + "_analytics_custom_module,update_mask\202\323\344\223" + + "\002\333\0032p/v1/{security_health_analytics_cust" + + "om_module.name=projects/*/locations/*/se" + + "curityHealthAnalyticsCustomModules/*}:\'s" + + "ecurity_health_analytics_custom_moduleZ\232" + + "\0012o/v1/{security_health_analytics_custom" + + "_module.name=folders/*/locations/*/secur" + + "ityHealthAnalyticsCustomModules/*}:\'secu" + + "rity_health_analytics_custom_moduleZ\240\0012u" + + "/v1/{security_health_analytics_custom_mo" + + "dule.name=organizations/*/locations/*/se" + + "curityHealthAnalyticsCustomModules/*}:\'s" + + "ecurity_health_analytics_custom_module\022\226" + + "\003\n)DeleteSecurityHealthAnalyticsCustomMo" + + "dule\022Z.google.cloud.securitycentermanage" + + "ment.v1.DeleteSecurityHealthAnalyticsCus" + + "tomModuleRequest\032\026.google.protobuf.Empty" + + "\"\364\001\332A\004name\202\323\344\223\002\346\001*H/v1/{name=projects/*/" + + "locations/*/securityHealthAnalyticsCusto" + + "mModules/*}ZI*G/v1/{name=folders/*/locat" + + "ions/*/securityHealthAnalyticsCustomModu" + + "les/*}ZO*M/v1/{name=organizations/*/loca" + + "tions/*/securityHealthAnalyticsCustomMod" + + "ules/*}\022\236\004\n+SimulateSecurityHealthAnalyt" + + "icsCustomModule\022\\.google.cloud.securityc" + + "entermanagement.v1.SimulateSecurityHealt" + + "hAnalyticsCustomModuleRequest\032].google.c" + + "loud.securitycentermanagement.v1.Simulat" + + "eSecurityHealthAnalyticsCustomModuleResp" + + "onse\"\261\002\332A\035parent,custom_config,resource\202" + + "\323\344\223\002\212\002\"Q/v1/{parent=projects/*/locations" + + "/*}/securityHealthAnalyticsCustomModules" + + ":simulate:\001*ZU\"P/v1/{parent=folders/*/lo" + + "cations/*}/securityHealthAnalyticsCustom" + + "Modules:simulate:\001*Z[\"V/v1/{parent=organ" + + "izations/*/locations/*}/securityHealthAn" + + "alyticsCustomModules:simulate:\001*\022\376\003\n.Lis" + + "tEffectiveEventThreatDetectionCustomModu" + + "les\022_.google.cloud.securitycentermanagem" + + "ent.v1.ListEffectiveEventThreatDetection" + + "CustomModulesRequest\032`.google.cloud.secu" + + "ritycentermanagement.v1.ListEffectiveEve" + + "ntThreatDetectionCustomModulesResponse\"\210" + + "\002\332A\006parent\202\323\344\223\002\370\001\022N/v1/{parent=projects/" + + "*/locations/*}/effectiveEventThreatDetec" + + "tionCustomModulesZO\022M/v1/{parent=folders" + + "/*/locations/*}/effectiveEventThreatDete" + + "ctionCustomModulesZU\022S/v1/{parent=organi" + + "zations/*/locations/*}/effectiveEventThr" + + "eatDetectionCustomModules\022\353\003\n,GetEffecti" + + "veEventThreatDetectionCustomModule\022].goo" + + "gle.cloud.securitycentermanagement.v1.Ge" + + "tEffectiveEventThreatDetectionCustomModu" + + "leRequest\032S.google.cloud.securitycenterm" + + "anagement.v1.EffectiveEventThreatDetecti" + + "onCustomModule\"\206\002\332A\004name\202\323\344\223\002\370\001\022N/v1/{na" + + "me=projects/*/locations/*/effectiveEvent" + + "ThreatDetectionCustomModules/*}ZO\022M/v1/{" + + "name=folders/*/locations/*/effectiveEven" + + "tThreatDetectionCustomModules/*}ZU\022S/v1/" + + "{name=organizations/*/locations/*/effect" + + "iveEventThreatDetectionCustomModules/*}\022" + + "\310\003\n%ListEventThreatDetectionCustomModule" + + "s\022V.google.cloud.securitycentermanagemen" + + "t.v1.ListEventThreatDetectionCustomModul" + + "esRequest\032W.google.cloud.securitycenterm" + + "anagement.v1.ListEventThreatDetectionCus" + + "tomModulesResponse\"\355\001\332A\006parent\202\323\344\223\002\335\001\022E/" + + "v1/{parent=projects/*/locations/*}/event" + + "ThreatDetectionCustomModulesZF\022D/v1/{par" + + "ent=folders/*/locations/*}/eventThreatDe" + + "tectionCustomModulesZL\022J/v1/{parent=orga" + + "nizations/*/locations/*}/eventThreatDete" + + "ctionCustomModules\022\223\004\n/ListDescendantEve" + + "ntThreatDetectionCustomModules\022`.google." + + "cloud.securitycentermanagement.v1.ListDe" + + "scendantEventThreatDetectionCustomModule" + + "sRequest\032a.google.cloud.securitycenterma" + + "nagement.v1.ListDescendantEventThreatDet" + + "ectionCustomModulesResponse\"\232\002\332A\006parent\202" + + "\323\344\223\002\212\002\022T/v1/{parent=projects/*/locations" + + "/*}/eventThreatDetectionCustomModules:li" + + "stDescendantZU\022S/v1/{parent=folders/*/lo" + + "cations/*}/eventThreatDetectionCustomMod" + + "ules:listDescendantZ[\022Y/v1/{parent=organ" + + "izations/*/locations/*}/eventThreatDetec" + + "tionCustomModules:listDescendant\022\265\003\n#Get" + + "EventThreatDetectionCustomModule\022T.googl" + + "e.cloud.securitycentermanagement.v1.GetE" + + "ventThreatDetectionCustomModuleRequest\032J" + + ".google.cloud.securitycentermanagement.v" + + "1.EventThreatDetectionCustomModule\"\353\001\332A\004" + + "name\202\323\344\223\002\335\001\022E/v1/{name=projects/*/locati" + + "ons/*/eventThreatDetectionCustomModules/" + + "*}ZF\022D/v1/{name=folders/*/locations/*/ev" + + "entThreatDetectionCustomModules/*}ZL\022J/v" + + "1/{name=organizations/*/locations/*/even" + + "tThreatDetectionCustomModules/*}\022\324\004\n&Cre" + + "ateEventThreatDetectionCustomModule\022W.go" + + "ogle.cloud.securitycentermanagement.v1.C" + + "reateEventThreatDetectionCustomModuleReq" + + "uest\032J.google.cloud.securitycentermanage" + + "ment.v1.EventThreatDetectionCustomModule" + + "\"\204\003\332A+parent,event_threat_detection_cust" + + "om_module\202\323\344\223\002\317\002\"E/v1/{parent=projects/*" + + "/locations/*}/eventThreatDetectionCustom" + + "Modules:$event_threat_detection_custom_m" + + "oduleZl\"D/v1/{parent=folders/*/locations" + + "/*}/eventThreatDetectionCustomModules:$e" + + "vent_threat_detection_custom_moduleZr\"J/" + + "v1/{parent=organizations/*/locations/*}/" + + "eventThreatDetectionCustomModules:$event" + + "_threat_detection_custom_module\022\312\005\n&Upda" + + "teEventThreatDetectionCustomModule\022W.goo" + + "gle.cloud.securitycentermanagement.v1.Up" + + "dateEventThreatDetectionCustomModuleRequ" + + "est\032J.google.cloud.securitycentermanagem" + + "ent.v1.EventThreatDetectionCustomModule\"" + + "\372\003\332A0event_threat_detection_custom_modul" + + "e,update_mask\202\323\344\223\002\300\0032j/v1/{event_threat_" + + "detection_custom_module.name=projects/*/" + + "locations/*/eventThreatDetectionCustomMo" + + "dules/*}:$event_threat_detection_custom_" + + "moduleZ\221\0012i/v1/{event_threat_detection_c" + + "ustom_module.name=folders/*/locations/*/" + + "eventThreatDetectionCustomModules/*}:$ev" + + "ent_threat_detection_custom_moduleZ\227\0012o/" + + "v1/{event_threat_detection_custom_module" + + ".name=organizations/*/locations/*/eventT" + + "hreatDetectionCustomModules/*}:$event_th" + + "reat_detection_custom_module\022\207\003\n&DeleteE" + + "ventThreatDetectionCustomModule\022W.google" + + ".cloud.securitycentermanagement.v1.Delet" + + "eEventThreatDetectionCustomModuleRequest" + + "\032\026.google.protobuf.Empty\"\353\001\332A\004name\202\323\344\223\002\335" + + "\001*E/v1/{name=projects/*/locations/*/even" + + "tThreatDetectionCustomModules/*}ZF*D/v1/" + + "{name=folders/*/locations/*/eventThreatD" + + "etectionCustomModules/*}ZL*J/v1/{name=or" + + "ganizations/*/locations/*/eventThreatDet" + + "ectionCustomModules/*}\022\354\003\n(ValidateEvent" + + "ThreatDetectionCustomModule\022Y.google.clo" + + "ud.securitycentermanagement.v1.ValidateE" + + "ventThreatDetectionCustomModuleRequest\032Z" + + ".google.cloud.securitycentermanagement.v" + + "1.ValidateEventThreatDetectionCustomModu" + + "leResponse\"\210\002\202\323\344\223\002\201\002\"N/v1/{parent=projec" + + "ts/*/locations/*}/eventThreatDetectionCu" + + "stomModules:validate:\001*ZR\"M/v1/{parent=f" + + "olders/*/locations/*}/eventThreatDetecti" + + "onCustomModules:validate:\001*ZX\"S/v1/{pare" + + "nt=organizations/*/locations/*}/eventThr" + + "eatDetectionCustomModules:validate:\001*\032[\312" + + "A\'securitycentermanagement.googleapis.co" + + "m\322A.https://www.googleapis.com/auth/clou" + + "d-platformB\223\004\n,com.google.cloud.security" + + "centermanagement.v1B\035SecurityCenterManag" + + "ementProtoP\001Zhcloud.google.com/go/securi" + + "tycentermanagement/apiv1/securitycenterm" + + "anagementpb;securitycentermanagementpb\252\002" + + "(Google.Cloud.SecurityCenterManagement.V" + + "1\312\002(Google\\Cloud\\SecurityCenterManagemen" + + "t\\V1\352\002+Google::Cloud::SecurityCenterMana" + + "gement::V1\352Aq\n * Represents an instance of a Security Health Analytics custom module, * including its full module name, display name, enablement state, and last @@ -12,17 +29,21 @@ * level are inherited by the child folders and projects. *
* - * Protobuf type {@code google.cloud.securitycentermanagement.v1.SecurityHealthAnalyticsCustomModule} + * Protobuf type {@code + * google.cloud.securitycentermanagement.v1.SecurityHealthAnalyticsCustomModule} */ -public final class SecurityHealthAnalyticsCustomModule extends - com.google.protobuf.GeneratedMessageV3 implements +public final class SecurityHealthAnalyticsCustomModule + extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.securitycentermanagement.v1.SecurityHealthAnalyticsCustomModule) SecurityHealthAnalyticsCustomModuleOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use SecurityHealthAnalyticsCustomModule.newBuilder() to construct. - private SecurityHealthAnalyticsCustomModule(com.google.protobuf.GeneratedMessageV3.Builder builder) { + private SecurityHealthAnalyticsCustomModule( + com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private SecurityHealthAnalyticsCustomModule() { name_ = ""; displayName_ = ""; @@ -33,34 +54,40 @@ private SecurityHealthAnalyticsCustomModule() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new SecurityHealthAnalyticsCustomModule(); } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.securitycentermanagement.v1.SecurityCenterManagementProto.internal_static_google_cloud_securitycentermanagement_v1_SecurityHealthAnalyticsCustomModule_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.securitycentermanagement.v1.SecurityCenterManagementProto + .internal_static_google_cloud_securitycentermanagement_v1_SecurityHealthAnalyticsCustomModule_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.securitycentermanagement.v1.SecurityCenterManagementProto.internal_static_google_cloud_securitycentermanagement_v1_SecurityHealthAnalyticsCustomModule_fieldAccessorTable + return com.google.cloud.securitycentermanagement.v1.SecurityCenterManagementProto + .internal_static_google_cloud_securitycentermanagement_v1_SecurityHealthAnalyticsCustomModule_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.securitycentermanagement.v1.SecurityHealthAnalyticsCustomModule.class, com.google.cloud.securitycentermanagement.v1.SecurityHealthAnalyticsCustomModule.Builder.class); + com.google.cloud.securitycentermanagement.v1.SecurityHealthAnalyticsCustomModule.class, + com.google.cloud.securitycentermanagement.v1.SecurityHealthAnalyticsCustomModule.Builder + .class); } /** + * + * *
    * Possible enablement states of a custom module.
    * 
* - * Protobuf enum {@code google.cloud.securitycentermanagement.v1.SecurityHealthAnalyticsCustomModule.EnablementState} + * Protobuf enum {@code + * google.cloud.securitycentermanagement.v1.SecurityHealthAnalyticsCustomModule.EnablementState} */ - public enum EnablementState - implements com.google.protobuf.ProtocolMessageEnum { + public enum EnablementState implements com.google.protobuf.ProtocolMessageEnum { /** + * + * *
      * Unspecified enablement state.
      * 
@@ -69,6 +96,8 @@ public enum EnablementState */ ENABLEMENT_STATE_UNSPECIFIED(0), /** + * + * *
      * The module is enabled at the given CRM resource.
      * 
@@ -77,6 +106,8 @@ public enum EnablementState */ ENABLED(1), /** + * + * *
      * The module is disabled at the given CRM resource.
      * 
@@ -85,6 +116,8 @@ public enum EnablementState */ DISABLED(2), /** + * + * *
      * State is inherited from an ancestor module. The module will either
      * be effectively ENABLED or DISABLED based on its closest non-inherited
@@ -100,6 +133,8 @@ public enum EnablementState
     ;
 
     /**
+     *
+     *
      * 
      * Unspecified enablement state.
      * 
@@ -108,6 +143,8 @@ public enum EnablementState */ public static final int ENABLEMENT_STATE_UNSPECIFIED_VALUE = 0; /** + * + * *
      * The module is enabled at the given CRM resource.
      * 
@@ -116,6 +153,8 @@ public enum EnablementState */ public static final int ENABLED_VALUE = 1; /** + * + * *
      * The module is disabled at the given CRM resource.
      * 
@@ -124,6 +163,8 @@ public enum EnablementState */ public static final int DISABLED_VALUE = 2; /** + * + * *
      * State is inherited from an ancestor module. The module will either
      * be effectively ENABLED or DISABLED based on its closest non-inherited
@@ -136,7 +177,6 @@ public enum EnablementState
      */
     public static final int INHERITED_VALUE = 3;
 
-
     public final int getNumber() {
       if (this == UNRECOGNIZED) {
         throw new java.lang.IllegalArgumentException(
@@ -161,41 +201,48 @@ public static EnablementState valueOf(int value) {
      */
     public static EnablementState forNumber(int value) {
       switch (value) {
-        case 0: return ENABLEMENT_STATE_UNSPECIFIED;
-        case 1: return ENABLED;
-        case 2: return DISABLED;
-        case 3: return INHERITED;
-        default: return null;
+        case 0:
+          return ENABLEMENT_STATE_UNSPECIFIED;
+        case 1:
+          return ENABLED;
+        case 2:
+          return DISABLED;
+        case 3:
+          return INHERITED;
+        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<
-        EnablementState> internalValueMap =
-          new com.google.protobuf.Internal.EnumLiteMap() {
-            public EnablementState findValueByNumber(int number) {
-              return EnablementState.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 EnablementState findValueByNumber(int number) {
+                return EnablementState.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.securitycentermanagement.v1.SecurityHealthAnalyticsCustomModule.getDescriptor().getEnumTypes().get(0);
+
+    public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() {
+      return com.google.cloud.securitycentermanagement.v1.SecurityHealthAnalyticsCustomModule
+          .getDescriptor()
+          .getEnumTypes()
+          .get(0);
     }
 
     private static final EnablementState[] VALUES = values();
@@ -203,8 +250,7 @@ public EnablementState findValueByNumber(int number) {
     public static EnablementState 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;
@@ -222,9 +268,12 @@ private EnablementState(int value) {
   }
 
   public static final int NAME_FIELD_NUMBER = 1;
+
   @SuppressWarnings("serial")
   private volatile java.lang.Object name_ = "";
   /**
+   *
+   *
    * 
    * Immutable. The resource name of the custom module.
    * Its format is
@@ -239,6 +288,7 @@ private EnablementState(int value) {
    * 
* * string name = 1 [(.google.api.field_behavior) = IMMUTABLE]; + * * @return The name. */ @java.lang.Override @@ -247,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; } } /** + * + * *
    * Immutable. The resource name of the custom module.
    * Its format is
@@ -269,16 +320,15 @@ public java.lang.String getName() {
    * 
* * string name = 1 [(.google.api.field_behavior) = IMMUTABLE]; + * * @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 { @@ -287,9 +337,12 @@ public java.lang.String getName() { } public static final int DISPLAY_NAME_FIELD_NUMBER = 2; + @SuppressWarnings("serial") private volatile java.lang.Object displayName_ = ""; /** + * + * *
    * Optional. The display name of the Security Health Analytics custom module.
    * This display name becomes the finding category for all findings that are
@@ -299,6 +352,7 @@ public java.lang.String getName() {
    * 
* * string display_name = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The displayName. */ @java.lang.Override @@ -307,14 +361,15 @@ 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. The display name of the Security Health Analytics custom module.
    * This display name becomes the finding category for all findings that are
@@ -324,16 +379,15 @@ public java.lang.String getDisplayName() {
    * 
* * 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 { @@ -344,37 +398,61 @@ public java.lang.String getDisplayName() { public static final int ENABLEMENT_STATE_FIELD_NUMBER = 3; private int enablementState_ = 0; /** + * + * *
    * Optional. The enablement state of the custom module.
    * 
* - * .google.cloud.securitycentermanagement.v1.SecurityHealthAnalyticsCustomModule.EnablementState enablement_state = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.securitycentermanagement.v1.SecurityHealthAnalyticsCustomModule.EnablementState enablement_state = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return The enum numeric value on the wire for enablementState. */ - @java.lang.Override public int getEnablementStateValue() { + @java.lang.Override + public int getEnablementStateValue() { return enablementState_; } /** + * + * *
    * Optional. The enablement state of the custom module.
    * 
* - * .google.cloud.securitycentermanagement.v1.SecurityHealthAnalyticsCustomModule.EnablementState enablement_state = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.securitycentermanagement.v1.SecurityHealthAnalyticsCustomModule.EnablementState enablement_state = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return The enablementState. */ - @java.lang.Override public com.google.cloud.securitycentermanagement.v1.SecurityHealthAnalyticsCustomModule.EnablementState getEnablementState() { - com.google.cloud.securitycentermanagement.v1.SecurityHealthAnalyticsCustomModule.EnablementState result = com.google.cloud.securitycentermanagement.v1.SecurityHealthAnalyticsCustomModule.EnablementState.forNumber(enablementState_); - return result == null ? com.google.cloud.securitycentermanagement.v1.SecurityHealthAnalyticsCustomModule.EnablementState.UNRECOGNIZED : result; + @java.lang.Override + public com.google.cloud.securitycentermanagement.v1.SecurityHealthAnalyticsCustomModule + .EnablementState + getEnablementState() { + com.google.cloud.securitycentermanagement.v1.SecurityHealthAnalyticsCustomModule.EnablementState + result = + com.google.cloud.securitycentermanagement.v1.SecurityHealthAnalyticsCustomModule + .EnablementState.forNumber(enablementState_); + return result == null + ? com.google.cloud.securitycentermanagement.v1.SecurityHealthAnalyticsCustomModule + .EnablementState.UNRECOGNIZED + : result; } public static final int UPDATE_TIME_FIELD_NUMBER = 4; private com.google.protobuf.Timestamp updateTime_; /** + * + * *
    * Output only. The time at which the custom module was last updated.
    * 
* - * .google.protobuf.Timestamp update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return Whether the updateTime field is set. */ @java.lang.Override @@ -382,11 +460,15 @@ public boolean hasUpdateTime() { return updateTime_ != null; } /** + * + * *
    * Output only. The time at which the custom module was last updated.
    * 
* - * .google.protobuf.Timestamp update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The updateTime. */ @java.lang.Override @@ -394,11 +476,14 @@ public com.google.protobuf.Timestamp getUpdateTime() { return updateTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : updateTime_; } /** + * + * *
    * Output only. The time at which the custom module was last updated.
    * 
* - * .google.protobuf.Timestamp update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ @java.lang.Override public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() { @@ -406,14 +491,18 @@ public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() { } public static final int LAST_EDITOR_FIELD_NUMBER = 5; + @SuppressWarnings("serial") private volatile java.lang.Object lastEditor_ = ""; /** + * + * *
    * Output only. The editor that last updated the custom module.
    * 
* * string last_editor = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The lastEditor. */ @java.lang.Override @@ -422,29 +511,29 @@ public java.lang.String getLastEditor() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); lastEditor_ = s; return s; } } /** + * + * *
    * Output only. The editor that last updated the custom module.
    * 
* * string last_editor = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The bytes for lastEditor. */ @java.lang.Override - public com.google.protobuf.ByteString - getLastEditorBytes() { + public com.google.protobuf.ByteString getLastEditorBytes() { java.lang.Object ref = lastEditor_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); lastEditor_ = b; return b; } else { @@ -453,9 +542,12 @@ public java.lang.String getLastEditor() { } public static final int ANCESTOR_MODULE_FIELD_NUMBER = 6; + @SuppressWarnings("serial") private volatile java.lang.Object ancestorModule_ = ""; /** + * + * *
    * Output only. Specifies the organization or folder from which the custom
    * module is inherited. If empty, indicates that the custom module was created
@@ -463,7 +555,10 @@ public java.lang.String getLastEditor() {
    * module.
    * 
* - * string ancestor_module = 6 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * string ancestor_module = 6 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * * @return The ancestorModule. */ @java.lang.Override @@ -472,14 +567,15 @@ public java.lang.String getAncestorModule() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); ancestorModule_ = s; return s; } } /** + * + * *
    * Output only. Specifies the organization or folder from which the custom
    * module is inherited. If empty, indicates that the custom module was created
@@ -487,17 +583,18 @@ public java.lang.String getAncestorModule() {
    * module.
    * 
* - * string ancestor_module = 6 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * string ancestor_module = 6 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * * @return The bytes for ancestorModule. */ @java.lang.Override - public com.google.protobuf.ByteString - getAncestorModuleBytes() { + public com.google.protobuf.ByteString getAncestorModuleBytes() { java.lang.Object ref = ancestorModule_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); ancestorModule_ = b; return b; } else { @@ -508,11 +605,16 @@ public java.lang.String getAncestorModule() { public static final int CUSTOM_CONFIG_FIELD_NUMBER = 7; private com.google.cloud.securitycentermanagement.v1.CustomConfig customConfig_; /** + * + * *
    * Optional. The user specified custom configuration for the module.
    * 
* - * .google.cloud.securitycentermanagement.v1.CustomConfig custom_config = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.securitycentermanagement.v1.CustomConfig custom_config = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return Whether the customConfig field is set. */ @java.lang.Override @@ -520,30 +622,45 @@ public boolean hasCustomConfig() { return customConfig_ != null; } /** + * + * *
    * Optional. The user specified custom configuration for the module.
    * 
* - * .google.cloud.securitycentermanagement.v1.CustomConfig custom_config = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.securitycentermanagement.v1.CustomConfig custom_config = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return The customConfig. */ @java.lang.Override public com.google.cloud.securitycentermanagement.v1.CustomConfig getCustomConfig() { - return customConfig_ == null ? com.google.cloud.securitycentermanagement.v1.CustomConfig.getDefaultInstance() : customConfig_; + return customConfig_ == null + ? com.google.cloud.securitycentermanagement.v1.CustomConfig.getDefaultInstance() + : customConfig_; } /** + * + * *
    * Optional. The user specified custom configuration for the module.
    * 
* - * .google.cloud.securitycentermanagement.v1.CustomConfig custom_config = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.securitycentermanagement.v1.CustomConfig custom_config = 7 [(.google.api.field_behavior) = OPTIONAL]; + * */ @java.lang.Override - public com.google.cloud.securitycentermanagement.v1.CustomConfigOrBuilder getCustomConfigOrBuilder() { - return customConfig_ == null ? com.google.cloud.securitycentermanagement.v1.CustomConfig.getDefaultInstance() : customConfig_; + public com.google.cloud.securitycentermanagement.v1.CustomConfigOrBuilder + getCustomConfigOrBuilder() { + return customConfig_ == null + ? com.google.cloud.securitycentermanagement.v1.CustomConfig.getDefaultInstance() + : customConfig_; } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -555,15 +672,17 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.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 (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(displayName_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 2, displayName_); } - if (enablementState_ != com.google.cloud.securitycentermanagement.v1.SecurityHealthAnalyticsCustomModule.EnablementState.ENABLEMENT_STATE_UNSPECIFIED.getNumber()) { + if (enablementState_ + != com.google.cloud.securitycentermanagement.v1.SecurityHealthAnalyticsCustomModule + .EnablementState.ENABLEMENT_STATE_UNSPECIFIED + .getNumber()) { output.writeEnum(3, enablementState_); } if (updateTime_ != null) { @@ -593,13 +712,14 @@ public int getSerializedSize() { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(displayName_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, displayName_); } - if (enablementState_ != com.google.cloud.securitycentermanagement.v1.SecurityHealthAnalyticsCustomModule.EnablementState.ENABLEMENT_STATE_UNSPECIFIED.getNumber()) { - size += com.google.protobuf.CodedOutputStream - .computeEnumSize(3, enablementState_); + if (enablementState_ + != com.google.cloud.securitycentermanagement.v1.SecurityHealthAnalyticsCustomModule + .EnablementState.ENABLEMENT_STATE_UNSPECIFIED + .getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(3, enablementState_); } if (updateTime_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(4, getUpdateTime()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(4, getUpdateTime()); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(lastEditor_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, lastEditor_); @@ -608,8 +728,7 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(6, ancestorModule_); } if (customConfig_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(7, getCustomConfig()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(7, getCustomConfig()); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -619,31 +738,28 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } - if (!(obj instanceof com.google.cloud.securitycentermanagement.v1.SecurityHealthAnalyticsCustomModule)) { + if (!(obj + instanceof + com.google.cloud.securitycentermanagement.v1.SecurityHealthAnalyticsCustomModule)) { return super.equals(obj); } - com.google.cloud.securitycentermanagement.v1.SecurityHealthAnalyticsCustomModule other = (com.google.cloud.securitycentermanagement.v1.SecurityHealthAnalyticsCustomModule) obj; + com.google.cloud.securitycentermanagement.v1.SecurityHealthAnalyticsCustomModule other = + (com.google.cloud.securitycentermanagement.v1.SecurityHealthAnalyticsCustomModule) obj; - if (!getName() - .equals(other.getName())) return false; - if (!getDisplayName() - .equals(other.getDisplayName())) return false; + if (!getName().equals(other.getName())) return false; + if (!getDisplayName().equals(other.getDisplayName())) return false; if (enablementState_ != other.enablementState_) 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 (!getLastEditor() - .equals(other.getLastEditor())) return false; - if (!getAncestorModule() - .equals(other.getAncestorModule())) return false; + if (!getLastEditor().equals(other.getLastEditor())) return false; + if (!getAncestorModule().equals(other.getAncestorModule())) return false; if (hasCustomConfig() != other.hasCustomConfig()) return false; if (hasCustomConfig()) { - if (!getCustomConfig() - .equals(other.getCustomConfig())) return false; + if (!getCustomConfig().equals(other.getCustomConfig())) return false; } if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; @@ -679,99 +795,111 @@ public int hashCode() { return hash; } - public static com.google.cloud.securitycentermanagement.v1.SecurityHealthAnalyticsCustomModule parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.securitycentermanagement.v1.SecurityHealthAnalyticsCustomModule + parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.securitycentermanagement.v1.SecurityHealthAnalyticsCustomModule parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.cloud.securitycentermanagement.v1.SecurityHealthAnalyticsCustomModule + 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.securitycentermanagement.v1.SecurityHealthAnalyticsCustomModule parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.cloud.securitycentermanagement.v1.SecurityHealthAnalyticsCustomModule + parseFrom(com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.securitycentermanagement.v1.SecurityHealthAnalyticsCustomModule parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.cloud.securitycentermanagement.v1.SecurityHealthAnalyticsCustomModule + parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.securitycentermanagement.v1.SecurityHealthAnalyticsCustomModule parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.cloud.securitycentermanagement.v1.SecurityHealthAnalyticsCustomModule + parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.securitycentermanagement.v1.SecurityHealthAnalyticsCustomModule parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.cloud.securitycentermanagement.v1.SecurityHealthAnalyticsCustomModule + parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.securitycentermanagement.v1.SecurityHealthAnalyticsCustomModule parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.securitycentermanagement.v1.SecurityHealthAnalyticsCustomModule + parseFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } - public static com.google.cloud.securitycentermanagement.v1.SecurityHealthAnalyticsCustomModule 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.securitycentermanagement.v1.SecurityHealthAnalyticsCustomModule + 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.securitycentermanagement.v1.SecurityHealthAnalyticsCustomModule parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.securitycentermanagement.v1.SecurityHealthAnalyticsCustomModule + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.securitycentermanagement.v1.SecurityHealthAnalyticsCustomModule parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + public static com.google.cloud.securitycentermanagement.v1.SecurityHealthAnalyticsCustomModule + parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.securitycentermanagement.v1.SecurityHealthAnalyticsCustomModule parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.securitycentermanagement.v1.SecurityHealthAnalyticsCustomModule + parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } - public static com.google.cloud.securitycentermanagement.v1.SecurityHealthAnalyticsCustomModule 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.securitycentermanagement.v1.SecurityHealthAnalyticsCustomModule + 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.securitycentermanagement.v1.SecurityHealthAnalyticsCustomModule prototype) { + + public static Builder newBuilder( + com.google.cloud.securitycentermanagement.v1.SecurityHealthAnalyticsCustomModule prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected 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 an instance of a Security Health Analytics custom module,
    * including its full module name, display name, enablement state, and last
@@ -780,35 +908,38 @@ protected Builder newBuilderForType(
    * level are inherited by the child folders and projects.
    * 
* - * Protobuf type {@code google.cloud.securitycentermanagement.v1.SecurityHealthAnalyticsCustomModule} + * Protobuf type {@code + * google.cloud.securitycentermanagement.v1.SecurityHealthAnalyticsCustomModule} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.securitycentermanagement.v1.SecurityHealthAnalyticsCustomModule) com.google.cloud.securitycentermanagement.v1.SecurityHealthAnalyticsCustomModuleOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.securitycentermanagement.v1.SecurityCenterManagementProto.internal_static_google_cloud_securitycentermanagement_v1_SecurityHealthAnalyticsCustomModule_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.securitycentermanagement.v1.SecurityCenterManagementProto + .internal_static_google_cloud_securitycentermanagement_v1_SecurityHealthAnalyticsCustomModule_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.securitycentermanagement.v1.SecurityCenterManagementProto.internal_static_google_cloud_securitycentermanagement_v1_SecurityHealthAnalyticsCustomModule_fieldAccessorTable + return com.google.cloud.securitycentermanagement.v1.SecurityCenterManagementProto + .internal_static_google_cloud_securitycentermanagement_v1_SecurityHealthAnalyticsCustomModule_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.securitycentermanagement.v1.SecurityHealthAnalyticsCustomModule.class, com.google.cloud.securitycentermanagement.v1.SecurityHealthAnalyticsCustomModule.Builder.class); + com.google.cloud.securitycentermanagement.v1.SecurityHealthAnalyticsCustomModule + .class, + com.google.cloud.securitycentermanagement.v1.SecurityHealthAnalyticsCustomModule + .Builder.class); } - // Construct using com.google.cloud.securitycentermanagement.v1.SecurityHealthAnalyticsCustomModule.newBuilder() - private Builder() { - - } + // Construct using + // com.google.cloud.securitycentermanagement.v1.SecurityHealthAnalyticsCustomModule.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(); @@ -832,19 +963,23 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.securitycentermanagement.v1.SecurityCenterManagementProto.internal_static_google_cloud_securitycentermanagement_v1_SecurityHealthAnalyticsCustomModule_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.securitycentermanagement.v1.SecurityCenterManagementProto + .internal_static_google_cloud_securitycentermanagement_v1_SecurityHealthAnalyticsCustomModule_descriptor; } @java.lang.Override - public com.google.cloud.securitycentermanagement.v1.SecurityHealthAnalyticsCustomModule getDefaultInstanceForType() { - return com.google.cloud.securitycentermanagement.v1.SecurityHealthAnalyticsCustomModule.getDefaultInstance(); + public com.google.cloud.securitycentermanagement.v1.SecurityHealthAnalyticsCustomModule + getDefaultInstanceForType() { + return com.google.cloud.securitycentermanagement.v1.SecurityHealthAnalyticsCustomModule + .getDefaultInstance(); } @java.lang.Override - public com.google.cloud.securitycentermanagement.v1.SecurityHealthAnalyticsCustomModule build() { - com.google.cloud.securitycentermanagement.v1.SecurityHealthAnalyticsCustomModule result = buildPartial(); + public com.google.cloud.securitycentermanagement.v1.SecurityHealthAnalyticsCustomModule + build() { + com.google.cloud.securitycentermanagement.v1.SecurityHealthAnalyticsCustomModule result = + buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } @@ -852,14 +987,20 @@ public com.google.cloud.securitycentermanagement.v1.SecurityHealthAnalyticsCusto } @java.lang.Override - public com.google.cloud.securitycentermanagement.v1.SecurityHealthAnalyticsCustomModule buildPartial() { - com.google.cloud.securitycentermanagement.v1.SecurityHealthAnalyticsCustomModule result = new com.google.cloud.securitycentermanagement.v1.SecurityHealthAnalyticsCustomModule(this); - if (bitField0_ != 0) { buildPartial0(result); } + public com.google.cloud.securitycentermanagement.v1.SecurityHealthAnalyticsCustomModule + buildPartial() { + com.google.cloud.securitycentermanagement.v1.SecurityHealthAnalyticsCustomModule result = + new com.google.cloud.securitycentermanagement.v1.SecurityHealthAnalyticsCustomModule( + this); + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } - private void buildPartial0(com.google.cloud.securitycentermanagement.v1.SecurityHealthAnalyticsCustomModule result) { + private void buildPartial0( + com.google.cloud.securitycentermanagement.v1.SecurityHealthAnalyticsCustomModule result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000001) != 0)) { result.name_ = name_; @@ -871,9 +1012,7 @@ private void buildPartial0(com.google.cloud.securitycentermanagement.v1.Security result.enablementState_ = enablementState_; } if (((from_bitField0_ & 0x00000008) != 0)) { - result.updateTime_ = updateTimeBuilder_ == null - ? updateTime_ - : updateTimeBuilder_.build(); + result.updateTime_ = updateTimeBuilder_ == null ? updateTime_ : updateTimeBuilder_.build(); } if (((from_bitField0_ & 0x00000010) != 0)) { result.lastEditor_ = lastEditor_; @@ -882,9 +1021,8 @@ private void buildPartial0(com.google.cloud.securitycentermanagement.v1.Security result.ancestorModule_ = ancestorModule_; } if (((from_bitField0_ & 0x00000040) != 0)) { - result.customConfig_ = customConfigBuilder_ == null - ? customConfig_ - : customConfigBuilder_.build(); + result.customConfig_ = + customConfigBuilder_ == null ? customConfig_ : customConfigBuilder_.build(); } } @@ -892,46 +1030,54 @@ private void buildPartial0(com.google.cloud.securitycentermanagement.v1.Security public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.cloud.securitycentermanagement.v1.SecurityHealthAnalyticsCustomModule) { - return mergeFrom((com.google.cloud.securitycentermanagement.v1.SecurityHealthAnalyticsCustomModule)other); + if (other + instanceof + com.google.cloud.securitycentermanagement.v1.SecurityHealthAnalyticsCustomModule) { + return mergeFrom( + (com.google.cloud.securitycentermanagement.v1.SecurityHealthAnalyticsCustomModule) + other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom(com.google.cloud.securitycentermanagement.v1.SecurityHealthAnalyticsCustomModule other) { - if (other == com.google.cloud.securitycentermanagement.v1.SecurityHealthAnalyticsCustomModule.getDefaultInstance()) return this; + public Builder mergeFrom( + com.google.cloud.securitycentermanagement.v1.SecurityHealthAnalyticsCustomModule other) { + if (other + == com.google.cloud.securitycentermanagement.v1.SecurityHealthAnalyticsCustomModule + .getDefaultInstance()) return this; if (!other.getName().isEmpty()) { name_ = other.name_; bitField0_ |= 0x00000001; @@ -987,51 +1133,55 @@ 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: { - enablementState_ = input.readEnum(); - bitField0_ |= 0x00000004; - break; - } // case 24 - case 34: { - input.readMessage( - getUpdateTimeFieldBuilder().getBuilder(), - extensionRegistry); - bitField0_ |= 0x00000008; - break; - } // case 34 - case 42: { - lastEditor_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000010; - break; - } // case 42 - case 50: { - ancestorModule_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000020; - break; - } // case 50 - case 58: { - input.readMessage( - getCustomConfigFieldBuilder().getBuilder(), - extensionRegistry); - bitField0_ |= 0x00000040; - break; - } // case 58 - 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: + { + enablementState_ = input.readEnum(); + bitField0_ |= 0x00000004; + break; + } // case 24 + case 34: + { + input.readMessage(getUpdateTimeFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000008; + break; + } // case 34 + case 42: + { + lastEditor_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000010; + break; + } // case 42 + case 50: + { + ancestorModule_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000020; + break; + } // case 50 + case 58: + { + input.readMessage(getCustomConfigFieldBuilder().getBuilder(), extensionRegistry); + 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) { @@ -1041,10 +1191,13 @@ public Builder mergeFrom( } // finally return this; } + private int bitField0_; private java.lang.Object name_ = ""; /** + * + * *
      * Immutable. The resource name of the custom module.
      * Its format is
@@ -1059,13 +1212,13 @@ public Builder mergeFrom(
      * 
* * string name = 1 [(.google.api.field_behavior) = IMMUTABLE]; + * * @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; @@ -1074,6 +1227,8 @@ public java.lang.String getName() { } } /** + * + * *
      * Immutable. The resource name of the custom module.
      * Its format is
@@ -1088,15 +1243,14 @@ public java.lang.String getName() {
      * 
* * string name = 1 [(.google.api.field_behavior) = IMMUTABLE]; + * * @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 { @@ -1104,6 +1258,8 @@ public java.lang.String getName() { } } /** + * + * *
      * Immutable. The resource name of the custom module.
      * Its format is
@@ -1118,18 +1274,22 @@ public java.lang.String getName() {
      * 
* * string name = 1 [(.google.api.field_behavior) = IMMUTABLE]; + * * @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; } /** + * + * *
      * Immutable. The resource name of the custom module.
      * Its format is
@@ -1144,6 +1304,7 @@ public Builder setName(
      * 
* * string name = 1 [(.google.api.field_behavior) = IMMUTABLE]; + * * @return This builder for chaining. */ public Builder clearName() { @@ -1153,6 +1314,8 @@ public Builder clearName() { return this; } /** + * + * *
      * Immutable. The resource name of the custom module.
      * Its format is
@@ -1167,12 +1330,14 @@ public Builder clearName() {
      * 
* * string name = 1 [(.google.api.field_behavior) = IMMUTABLE]; + * * @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; @@ -1182,6 +1347,8 @@ public Builder setNameBytes( private java.lang.Object displayName_ = ""; /** + * + * *
      * Optional. The display name of the Security Health Analytics custom module.
      * This display name becomes the finding category for all findings that are
@@ -1191,13 +1358,13 @@ public Builder setNameBytes(
      * 
* * 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; @@ -1206,6 +1373,8 @@ public java.lang.String getDisplayName() { } } /** + * + * *
      * Optional. The display name of the Security Health Analytics custom module.
      * This display name becomes the finding category for all findings that are
@@ -1215,15 +1384,14 @@ public java.lang.String getDisplayName() {
      * 
* * 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 { @@ -1231,6 +1399,8 @@ public java.lang.String getDisplayName() { } } /** + * + * *
      * Optional. The display name of the Security Health Analytics custom module.
      * This display name becomes the finding category for all findings that are
@@ -1240,18 +1410,22 @@ public java.lang.String getDisplayName() {
      * 
* * 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. The display name of the Security Health Analytics custom module.
      * This display name becomes the finding category for all findings that are
@@ -1261,6 +1435,7 @@ public Builder setDisplayName(
      * 
* * string display_name = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @return This builder for chaining. */ public Builder clearDisplayName() { @@ -1270,6 +1445,8 @@ public Builder clearDisplayName() { return this; } /** + * + * *
      * Optional. The display name of the Security Health Analytics custom module.
      * This display name becomes the finding category for all findings that are
@@ -1279,12 +1456,14 @@ public Builder clearDisplayName() {
      * 
* * 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; @@ -1294,22 +1473,33 @@ public Builder setDisplayNameBytes( private int enablementState_ = 0; /** + * + * *
      * Optional. The enablement state of the custom module.
      * 
* - * .google.cloud.securitycentermanagement.v1.SecurityHealthAnalyticsCustomModule.EnablementState enablement_state = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.securitycentermanagement.v1.SecurityHealthAnalyticsCustomModule.EnablementState enablement_state = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return The enum numeric value on the wire for enablementState. */ - @java.lang.Override public int getEnablementStateValue() { + @java.lang.Override + public int getEnablementStateValue() { return enablementState_; } /** + * + * *
      * Optional. The enablement state of the custom module.
      * 
* - * .google.cloud.securitycentermanagement.v1.SecurityHealthAnalyticsCustomModule.EnablementState enablement_state = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.securitycentermanagement.v1.SecurityHealthAnalyticsCustomModule.EnablementState enablement_state = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @param value The enum numeric value on the wire for enablementState to set. * @return This builder for chaining. */ @@ -1320,28 +1510,50 @@ public Builder setEnablementStateValue(int value) { return this; } /** + * + * *
      * Optional. The enablement state of the custom module.
      * 
* - * .google.cloud.securitycentermanagement.v1.SecurityHealthAnalyticsCustomModule.EnablementState enablement_state = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.securitycentermanagement.v1.SecurityHealthAnalyticsCustomModule.EnablementState enablement_state = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return The enablementState. */ @java.lang.Override - public com.google.cloud.securitycentermanagement.v1.SecurityHealthAnalyticsCustomModule.EnablementState getEnablementState() { - com.google.cloud.securitycentermanagement.v1.SecurityHealthAnalyticsCustomModule.EnablementState result = com.google.cloud.securitycentermanagement.v1.SecurityHealthAnalyticsCustomModule.EnablementState.forNumber(enablementState_); - return result == null ? com.google.cloud.securitycentermanagement.v1.SecurityHealthAnalyticsCustomModule.EnablementState.UNRECOGNIZED : result; + public com.google.cloud.securitycentermanagement.v1.SecurityHealthAnalyticsCustomModule + .EnablementState + getEnablementState() { + com.google.cloud.securitycentermanagement.v1.SecurityHealthAnalyticsCustomModule + .EnablementState + result = + com.google.cloud.securitycentermanagement.v1.SecurityHealthAnalyticsCustomModule + .EnablementState.forNumber(enablementState_); + return result == null + ? com.google.cloud.securitycentermanagement.v1.SecurityHealthAnalyticsCustomModule + .EnablementState.UNRECOGNIZED + : result; } /** + * + * *
      * Optional. The enablement state of the custom module.
      * 
* - * .google.cloud.securitycentermanagement.v1.SecurityHealthAnalyticsCustomModule.EnablementState enablement_state = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.securitycentermanagement.v1.SecurityHealthAnalyticsCustomModule.EnablementState enablement_state = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @param value The enablementState to set. * @return This builder for chaining. */ - public Builder setEnablementState(com.google.cloud.securitycentermanagement.v1.SecurityHealthAnalyticsCustomModule.EnablementState value) { + public Builder setEnablementState( + com.google.cloud.securitycentermanagement.v1.SecurityHealthAnalyticsCustomModule + .EnablementState + value) { if (value == null) { throw new NullPointerException(); } @@ -1351,11 +1563,16 @@ public Builder setEnablementState(com.google.cloud.securitycentermanagement.v1.S return this; } /** + * + * *
      * Optional. The enablement state of the custom module.
      * 
* - * .google.cloud.securitycentermanagement.v1.SecurityHealthAnalyticsCustomModule.EnablementState enablement_state = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.securitycentermanagement.v1.SecurityHealthAnalyticsCustomModule.EnablementState enablement_state = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return This builder for chaining. */ public Builder clearEnablementState() { @@ -1367,39 +1584,58 @@ public Builder clearEnablementState() { 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 time at which the custom module was last updated.
      * 
* - * .google.protobuf.Timestamp update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return Whether the updateTime field is set. */ public boolean hasUpdateTime() { return ((bitField0_ & 0x00000008) != 0); } /** + * + * *
      * Output only. The time at which the custom module was last updated.
      * 
* - * .google.protobuf.Timestamp update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp update_time = 4 [(.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 time at which the custom module was last updated.
      * 
* - * .google.protobuf.Timestamp update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder setUpdateTime(com.google.protobuf.Timestamp value) { if (updateTimeBuilder_ == null) { @@ -1415,14 +1651,17 @@ public Builder setUpdateTime(com.google.protobuf.Timestamp value) { return this; } /** + * + * *
      * Output only. The time at which the custom module was last updated.
      * 
* - * .google.protobuf.Timestamp update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp update_time = 4 [(.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 { @@ -1433,17 +1672,21 @@ public Builder setUpdateTime( return this; } /** + * + * *
      * Output only. The time at which the custom module was last updated.
      * 
* - * .google.protobuf.Timestamp update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder mergeUpdateTime(com.google.protobuf.Timestamp value) { if (updateTimeBuilder_ == null) { - if (((bitField0_ & 0x00000008) != 0) && - updateTime_ != null && - updateTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { + if (((bitField0_ & 0x00000008) != 0) + && updateTime_ != null + && updateTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { getUpdateTimeBuilder().mergeFrom(value); } else { updateTime_ = value; @@ -1456,11 +1699,15 @@ public Builder mergeUpdateTime(com.google.protobuf.Timestamp value) { return this; } /** + * + * *
      * Output only. The time at which the custom module was last updated.
      * 
* - * .google.protobuf.Timestamp update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder clearUpdateTime() { bitField0_ = (bitField0_ & ~0x00000008); @@ -1473,11 +1720,15 @@ public Builder clearUpdateTime() { return this; } /** + * + * *
      * Output only. The time at which the custom module was last updated.
      * 
* - * .google.protobuf.Timestamp update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public com.google.protobuf.Timestamp.Builder getUpdateTimeBuilder() { bitField0_ |= 0x00000008; @@ -1485,36 +1736,48 @@ public com.google.protobuf.Timestamp.Builder getUpdateTimeBuilder() { return getUpdateTimeFieldBuilder().getBuilder(); } /** + * + * *
      * Output only. The time at which the custom module was last updated.
      * 
* - * .google.protobuf.Timestamp update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp update_time = 4 [(.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 time at which the custom module was last updated.
      * 
* - * .google.protobuf.Timestamp update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp update_time = 4 [(.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_; @@ -1522,18 +1785,20 @@ public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() { private java.lang.Object lastEditor_ = ""; /** + * + * *
      * Output only. The editor that last updated the custom module.
      * 
* * string last_editor = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The lastEditor. */ public java.lang.String getLastEditor() { java.lang.Object ref = lastEditor_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); lastEditor_ = s; return s; @@ -1542,20 +1807,21 @@ public java.lang.String getLastEditor() { } } /** + * + * *
      * Output only. The editor that last updated the custom module.
      * 
* * string last_editor = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The bytes for lastEditor. */ - public com.google.protobuf.ByteString - getLastEditorBytes() { + public com.google.protobuf.ByteString getLastEditorBytes() { java.lang.Object ref = lastEditor_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); lastEditor_ = b; return b; } else { @@ -1563,28 +1829,35 @@ public java.lang.String getLastEditor() { } } /** + * + * *
      * Output only. The editor that last updated the custom module.
      * 
* * string last_editor = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @param value The lastEditor to set. * @return This builder for chaining. */ - public Builder setLastEditor( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setLastEditor(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } lastEditor_ = value; bitField0_ |= 0x00000010; onChanged(); return this; } /** + * + * *
      * Output only. The editor that last updated the custom module.
      * 
* * string last_editor = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return This builder for chaining. */ public Builder clearLastEditor() { @@ -1594,17 +1867,21 @@ public Builder clearLastEditor() { return this; } /** + * + * *
      * Output only. The editor that last updated the custom module.
      * 
* * string last_editor = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @param value The bytes for lastEditor to set. * @return This builder for chaining. */ - public Builder setLastEditorBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder setLastEditorBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); lastEditor_ = value; bitField0_ |= 0x00000010; @@ -1614,6 +1891,8 @@ public Builder setLastEditorBytes( private java.lang.Object ancestorModule_ = ""; /** + * + * *
      * Output only. Specifies the organization or folder from which the custom
      * module is inherited. If empty, indicates that the custom module was created
@@ -1621,14 +1900,16 @@ public Builder setLastEditorBytes(
      * module.
      * 
* - * string ancestor_module = 6 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * string ancestor_module = 6 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * * @return The ancestorModule. */ public java.lang.String getAncestorModule() { java.lang.Object ref = ancestorModule_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); ancestorModule_ = s; return s; @@ -1637,6 +1918,8 @@ public java.lang.String getAncestorModule() { } } /** + * + * *
      * Output only. Specifies the organization or folder from which the custom
      * module is inherited. If empty, indicates that the custom module was created
@@ -1644,16 +1927,17 @@ public java.lang.String getAncestorModule() {
      * module.
      * 
* - * string ancestor_module = 6 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * string ancestor_module = 6 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * * @return The bytes for ancestorModule. */ - public com.google.protobuf.ByteString - getAncestorModuleBytes() { + public com.google.protobuf.ByteString getAncestorModuleBytes() { java.lang.Object ref = ancestorModule_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); ancestorModule_ = b; return b; } else { @@ -1661,6 +1945,8 @@ public java.lang.String getAncestorModule() { } } /** + * + * *
      * Output only. Specifies the organization or folder from which the custom
      * module is inherited. If empty, indicates that the custom module was created
@@ -1668,19 +1954,25 @@ public java.lang.String getAncestorModule() {
      * module.
      * 
* - * string ancestor_module = 6 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * string ancestor_module = 6 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * * @param value The ancestorModule to set. * @return This builder for chaining. */ - public Builder setAncestorModule( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setAncestorModule(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } ancestorModule_ = value; bitField0_ |= 0x00000020; onChanged(); return this; } /** + * + * *
      * Output only. Specifies the organization or folder from which the custom
      * module is inherited. If empty, indicates that the custom module was created
@@ -1688,7 +1980,10 @@ public Builder setAncestorModule(
      * module.
      * 
* - * string ancestor_module = 6 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * string ancestor_module = 6 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * * @return This builder for chaining. */ public Builder clearAncestorModule() { @@ -1698,6 +1993,8 @@ public Builder clearAncestorModule() { return this; } /** + * + * *
      * Output only. Specifies the organization or folder from which the custom
      * module is inherited. If empty, indicates that the custom module was created
@@ -1705,13 +2002,17 @@ public Builder clearAncestorModule() {
      * module.
      * 
* - * string ancestor_module = 6 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * string ancestor_module = 6 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * * @param value The bytes for ancestorModule to set. * @return This builder for chaining. */ - public Builder setAncestorModuleBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder setAncestorModuleBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); ancestorModule_ = value; bitField0_ |= 0x00000020; @@ -1721,41 +2022,61 @@ public Builder setAncestorModuleBytes( private com.google.cloud.securitycentermanagement.v1.CustomConfig customConfig_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.securitycentermanagement.v1.CustomConfig, com.google.cloud.securitycentermanagement.v1.CustomConfig.Builder, com.google.cloud.securitycentermanagement.v1.CustomConfigOrBuilder> customConfigBuilder_; + com.google.cloud.securitycentermanagement.v1.CustomConfig, + com.google.cloud.securitycentermanagement.v1.CustomConfig.Builder, + com.google.cloud.securitycentermanagement.v1.CustomConfigOrBuilder> + customConfigBuilder_; /** + * + * *
      * Optional. The user specified custom configuration for the module.
      * 
* - * .google.cloud.securitycentermanagement.v1.CustomConfig custom_config = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.securitycentermanagement.v1.CustomConfig custom_config = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return Whether the customConfig field is set. */ public boolean hasCustomConfig() { return ((bitField0_ & 0x00000040) != 0); } /** + * + * *
      * Optional. The user specified custom configuration for the module.
      * 
* - * .google.cloud.securitycentermanagement.v1.CustomConfig custom_config = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.securitycentermanagement.v1.CustomConfig custom_config = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return The customConfig. */ public com.google.cloud.securitycentermanagement.v1.CustomConfig getCustomConfig() { if (customConfigBuilder_ == null) { - return customConfig_ == null ? com.google.cloud.securitycentermanagement.v1.CustomConfig.getDefaultInstance() : customConfig_; + return customConfig_ == null + ? com.google.cloud.securitycentermanagement.v1.CustomConfig.getDefaultInstance() + : customConfig_; } else { return customConfigBuilder_.getMessage(); } } /** + * + * *
      * Optional. The user specified custom configuration for the module.
      * 
* - * .google.cloud.securitycentermanagement.v1.CustomConfig custom_config = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.securitycentermanagement.v1.CustomConfig custom_config = 7 [(.google.api.field_behavior) = OPTIONAL]; + * */ - public Builder setCustomConfig(com.google.cloud.securitycentermanagement.v1.CustomConfig value) { + public Builder setCustomConfig( + com.google.cloud.securitycentermanagement.v1.CustomConfig value) { if (customConfigBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -1769,11 +2090,15 @@ public Builder setCustomConfig(com.google.cloud.securitycentermanagement.v1.Cust return this; } /** + * + * *
      * Optional. The user specified custom configuration for the module.
      * 
* - * .google.cloud.securitycentermanagement.v1.CustomConfig custom_config = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.securitycentermanagement.v1.CustomConfig custom_config = 7 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder setCustomConfig( com.google.cloud.securitycentermanagement.v1.CustomConfig.Builder builderForValue) { @@ -1787,17 +2112,23 @@ public Builder setCustomConfig( return this; } /** + * + * *
      * Optional. The user specified custom configuration for the module.
      * 
* - * .google.cloud.securitycentermanagement.v1.CustomConfig custom_config = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.securitycentermanagement.v1.CustomConfig custom_config = 7 [(.google.api.field_behavior) = OPTIONAL]; + * */ - public Builder mergeCustomConfig(com.google.cloud.securitycentermanagement.v1.CustomConfig value) { + public Builder mergeCustomConfig( + com.google.cloud.securitycentermanagement.v1.CustomConfig value) { if (customConfigBuilder_ == null) { - if (((bitField0_ & 0x00000040) != 0) && - customConfig_ != null && - customConfig_ != com.google.cloud.securitycentermanagement.v1.CustomConfig.getDefaultInstance()) { + if (((bitField0_ & 0x00000040) != 0) + && customConfig_ != null + && customConfig_ + != com.google.cloud.securitycentermanagement.v1.CustomConfig.getDefaultInstance()) { getCustomConfigBuilder().mergeFrom(value); } else { customConfig_ = value; @@ -1810,11 +2141,15 @@ public Builder mergeCustomConfig(com.google.cloud.securitycentermanagement.v1.Cu return this; } /** + * + * *
      * Optional. The user specified custom configuration for the module.
      * 
* - * .google.cloud.securitycentermanagement.v1.CustomConfig custom_config = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.securitycentermanagement.v1.CustomConfig custom_config = 7 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder clearCustomConfig() { bitField0_ = (bitField0_ & ~0x00000040); @@ -1827,55 +2162,73 @@ public Builder clearCustomConfig() { return this; } /** + * + * *
      * Optional. The user specified custom configuration for the module.
      * 
* - * .google.cloud.securitycentermanagement.v1.CustomConfig custom_config = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.securitycentermanagement.v1.CustomConfig custom_config = 7 [(.google.api.field_behavior) = OPTIONAL]; + * */ - public com.google.cloud.securitycentermanagement.v1.CustomConfig.Builder getCustomConfigBuilder() { + public com.google.cloud.securitycentermanagement.v1.CustomConfig.Builder + getCustomConfigBuilder() { bitField0_ |= 0x00000040; onChanged(); return getCustomConfigFieldBuilder().getBuilder(); } /** + * + * *
      * Optional. The user specified custom configuration for the module.
      * 
* - * .google.cloud.securitycentermanagement.v1.CustomConfig custom_config = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.securitycentermanagement.v1.CustomConfig custom_config = 7 [(.google.api.field_behavior) = OPTIONAL]; + * */ - public com.google.cloud.securitycentermanagement.v1.CustomConfigOrBuilder getCustomConfigOrBuilder() { + public com.google.cloud.securitycentermanagement.v1.CustomConfigOrBuilder + getCustomConfigOrBuilder() { if (customConfigBuilder_ != null) { return customConfigBuilder_.getMessageOrBuilder(); } else { - return customConfig_ == null ? - com.google.cloud.securitycentermanagement.v1.CustomConfig.getDefaultInstance() : customConfig_; + return customConfig_ == null + ? com.google.cloud.securitycentermanagement.v1.CustomConfig.getDefaultInstance() + : customConfig_; } } /** + * + * *
      * Optional. The user specified custom configuration for the module.
      * 
* - * .google.cloud.securitycentermanagement.v1.CustomConfig custom_config = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.securitycentermanagement.v1.CustomConfig custom_config = 7 [(.google.api.field_behavior) = OPTIONAL]; + * */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.securitycentermanagement.v1.CustomConfig, com.google.cloud.securitycentermanagement.v1.CustomConfig.Builder, com.google.cloud.securitycentermanagement.v1.CustomConfigOrBuilder> + com.google.cloud.securitycentermanagement.v1.CustomConfig, + com.google.cloud.securitycentermanagement.v1.CustomConfig.Builder, + com.google.cloud.securitycentermanagement.v1.CustomConfigOrBuilder> getCustomConfigFieldBuilder() { if (customConfigBuilder_ == null) { - customConfigBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.securitycentermanagement.v1.CustomConfig, com.google.cloud.securitycentermanagement.v1.CustomConfig.Builder, com.google.cloud.securitycentermanagement.v1.CustomConfigOrBuilder>( - getCustomConfig(), - getParentForChildren(), - isClean()); + customConfigBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.securitycentermanagement.v1.CustomConfig, + com.google.cloud.securitycentermanagement.v1.CustomConfig.Builder, + com.google.cloud.securitycentermanagement.v1.CustomConfigOrBuilder>( + getCustomConfig(), getParentForChildren(), isClean()); customConfig_ = null; } return customConfigBuilder_; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1885,41 +2238,45 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.securitycentermanagement.v1.SecurityHealthAnalyticsCustomModule) } // @@protoc_insertion_point(class_scope:google.cloud.securitycentermanagement.v1.SecurityHealthAnalyticsCustomModule) - private static final com.google.cloud.securitycentermanagement.v1.SecurityHealthAnalyticsCustomModule DEFAULT_INSTANCE; + private static final com.google.cloud.securitycentermanagement.v1 + .SecurityHealthAnalyticsCustomModule + DEFAULT_INSTANCE; + static { - DEFAULT_INSTANCE = new com.google.cloud.securitycentermanagement.v1.SecurityHealthAnalyticsCustomModule(); + DEFAULT_INSTANCE = + new com.google.cloud.securitycentermanagement.v1.SecurityHealthAnalyticsCustomModule(); } - public static com.google.cloud.securitycentermanagement.v1.SecurityHealthAnalyticsCustomModule getDefaultInstance() { + public static com.google.cloud.securitycentermanagement.v1.SecurityHealthAnalyticsCustomModule + getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public SecurityHealthAnalyticsCustomModule parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public SecurityHealthAnalyticsCustomModule parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1931,9 +2288,8 @@ public com.google.protobuf.Parser getParser } @java.lang.Override - public com.google.cloud.securitycentermanagement.v1.SecurityHealthAnalyticsCustomModule getDefaultInstanceForType() { + public com.google.cloud.securitycentermanagement.v1.SecurityHealthAnalyticsCustomModule + getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/java-securitycentermanagement/v1/proto-google-cloud-securitycentermanagement-v1/src/main/java/com/google/cloud/securitycentermanagement/v1/SecurityHealthAnalyticsCustomModuleName.java b/java-securitycentermanagement/proto-google-cloud-securitycentermanagement-v1/src/main/java/com/google/cloud/securitycentermanagement/v1/SecurityHealthAnalyticsCustomModuleName.java similarity index 100% rename from owl-bot-staging/java-securitycentermanagement/v1/proto-google-cloud-securitycentermanagement-v1/src/main/java/com/google/cloud/securitycentermanagement/v1/SecurityHealthAnalyticsCustomModuleName.java rename to java-securitycentermanagement/proto-google-cloud-securitycentermanagement-v1/src/main/java/com/google/cloud/securitycentermanagement/v1/SecurityHealthAnalyticsCustomModuleName.java diff --git a/owl-bot-staging/java-securitycentermanagement/v1/proto-google-cloud-securitycentermanagement-v1/src/main/java/com/google/cloud/securitycentermanagement/v1/SecurityHealthAnalyticsCustomModuleOrBuilder.java b/java-securitycentermanagement/proto-google-cloud-securitycentermanagement-v1/src/main/java/com/google/cloud/securitycentermanagement/v1/SecurityHealthAnalyticsCustomModuleOrBuilder.java similarity index 70% rename from owl-bot-staging/java-securitycentermanagement/v1/proto-google-cloud-securitycentermanagement-v1/src/main/java/com/google/cloud/securitycentermanagement/v1/SecurityHealthAnalyticsCustomModuleOrBuilder.java rename to java-securitycentermanagement/proto-google-cloud-securitycentermanagement-v1/src/main/java/com/google/cloud/securitycentermanagement/v1/SecurityHealthAnalyticsCustomModuleOrBuilder.java index 642d64158e4c..5163b800faf6 100644 --- a/owl-bot-staging/java-securitycentermanagement/v1/proto-google-cloud-securitycentermanagement-v1/src/main/java/com/google/cloud/securitycentermanagement/v1/SecurityHealthAnalyticsCustomModuleOrBuilder.java +++ b/java-securitycentermanagement/proto-google-cloud-securitycentermanagement-v1/src/main/java/com/google/cloud/securitycentermanagement/v1/SecurityHealthAnalyticsCustomModuleOrBuilder.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/securitycentermanagement/v1/security_center_management.proto package com.google.cloud.securitycentermanagement.v1; -public interface SecurityHealthAnalyticsCustomModuleOrBuilder extends +public interface SecurityHealthAnalyticsCustomModuleOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.securitycentermanagement.v1.SecurityHealthAnalyticsCustomModule) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * Immutable. The resource name of the custom module.
    * Its format is
@@ -22,10 +40,13 @@ public interface SecurityHealthAnalyticsCustomModuleOrBuilder extends
    * 
* * string name = 1 [(.google.api.field_behavior) = IMMUTABLE]; + * * @return The name. */ java.lang.String getName(); /** + * + * *
    * Immutable. The resource name of the custom module.
    * Its format is
@@ -40,12 +61,14 @@ public interface SecurityHealthAnalyticsCustomModuleOrBuilder extends
    * 
* * string name = 1 [(.google.api.field_behavior) = IMMUTABLE]; + * * @return The bytes for name. */ - com.google.protobuf.ByteString - getNameBytes(); + com.google.protobuf.ByteString getNameBytes(); /** + * + * *
    * Optional. The display name of the Security Health Analytics custom module.
    * This display name becomes the finding category for all findings that are
@@ -55,10 +78,13 @@ public interface SecurityHealthAnalyticsCustomModuleOrBuilder extends
    * 
* * string display_name = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The displayName. */ java.lang.String getDisplayName(); /** + * + * *
    * Optional. The display name of the Security Health Analytics custom module.
    * This display name becomes the finding category for all findings that are
@@ -68,78 +94,107 @@ public interface SecurityHealthAnalyticsCustomModuleOrBuilder extends
    * 
* * string display_name = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The bytes for displayName. */ - com.google.protobuf.ByteString - getDisplayNameBytes(); + com.google.protobuf.ByteString getDisplayNameBytes(); /** + * + * *
    * Optional. The enablement state of the custom module.
    * 
* - * .google.cloud.securitycentermanagement.v1.SecurityHealthAnalyticsCustomModule.EnablementState enablement_state = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.securitycentermanagement.v1.SecurityHealthAnalyticsCustomModule.EnablementState enablement_state = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return The enum numeric value on the wire for enablementState. */ int getEnablementStateValue(); /** + * + * *
    * Optional. The enablement state of the custom module.
    * 
* - * .google.cloud.securitycentermanagement.v1.SecurityHealthAnalyticsCustomModule.EnablementState enablement_state = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.securitycentermanagement.v1.SecurityHealthAnalyticsCustomModule.EnablementState enablement_state = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return The enablementState. */ - com.google.cloud.securitycentermanagement.v1.SecurityHealthAnalyticsCustomModule.EnablementState getEnablementState(); + com.google.cloud.securitycentermanagement.v1.SecurityHealthAnalyticsCustomModule.EnablementState + getEnablementState(); /** + * + * *
    * Output only. The time at which the custom module was last updated.
    * 
* - * .google.protobuf.Timestamp update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return Whether the updateTime field is set. */ boolean hasUpdateTime(); /** + * + * *
    * Output only. The time at which the custom module was last updated.
    * 
* - * .google.protobuf.Timestamp update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The updateTime. */ com.google.protobuf.Timestamp getUpdateTime(); /** + * + * *
    * Output only. The time at which the custom module was last updated.
    * 
* - * .google.protobuf.Timestamp update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder(); /** + * + * *
    * Output only. The editor that last updated the custom module.
    * 
* * string last_editor = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The lastEditor. */ java.lang.String getLastEditor(); /** + * + * *
    * Output only. The editor that last updated the custom module.
    * 
* * string last_editor = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The bytes for lastEditor. */ - com.google.protobuf.ByteString - getLastEditorBytes(); + com.google.protobuf.ByteString getLastEditorBytes(); /** + * + * *
    * Output only. Specifies the organization or folder from which the custom
    * module is inherited. If empty, indicates that the custom module was created
@@ -147,11 +202,16 @@ public interface SecurityHealthAnalyticsCustomModuleOrBuilder extends
    * module.
    * 
* - * string ancestor_module = 6 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * string ancestor_module = 6 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * * @return The ancestorModule. */ java.lang.String getAncestorModule(); /** + * + * *
    * Output only. Specifies the organization or folder from which the custom
    * module is inherited. If empty, indicates that the custom module was created
@@ -159,36 +219,52 @@ public interface SecurityHealthAnalyticsCustomModuleOrBuilder extends
    * module.
    * 
* - * string ancestor_module = 6 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * string ancestor_module = 6 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * * @return The bytes for ancestorModule. */ - com.google.protobuf.ByteString - getAncestorModuleBytes(); + com.google.protobuf.ByteString getAncestorModuleBytes(); /** + * + * *
    * Optional. The user specified custom configuration for the module.
    * 
* - * .google.cloud.securitycentermanagement.v1.CustomConfig custom_config = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.securitycentermanagement.v1.CustomConfig custom_config = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return Whether the customConfig field is set. */ boolean hasCustomConfig(); /** + * + * *
    * Optional. The user specified custom configuration for the module.
    * 
* - * .google.cloud.securitycentermanagement.v1.CustomConfig custom_config = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.securitycentermanagement.v1.CustomConfig custom_config = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return The customConfig. */ com.google.cloud.securitycentermanagement.v1.CustomConfig getCustomConfig(); /** + * + * *
    * Optional. The user specified custom configuration for the module.
    * 
* - * .google.cloud.securitycentermanagement.v1.CustomConfig custom_config = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.securitycentermanagement.v1.CustomConfig custom_config = 7 [(.google.api.field_behavior) = OPTIONAL]; + * */ com.google.cloud.securitycentermanagement.v1.CustomConfigOrBuilder getCustomConfigOrBuilder(); } diff --git a/owl-bot-staging/java-securitycentermanagement/v1/proto-google-cloud-securitycentermanagement-v1/src/main/java/com/google/cloud/securitycentermanagement/v1/SimulateSecurityHealthAnalyticsCustomModuleRequest.java b/java-securitycentermanagement/proto-google-cloud-securitycentermanagement-v1/src/main/java/com/google/cloud/securitycentermanagement/v1/SimulateSecurityHealthAnalyticsCustomModuleRequest.java similarity index 53% rename from owl-bot-staging/java-securitycentermanagement/v1/proto-google-cloud-securitycentermanagement-v1/src/main/java/com/google/cloud/securitycentermanagement/v1/SimulateSecurityHealthAnalyticsCustomModuleRequest.java rename to java-securitycentermanagement/proto-google-cloud-securitycentermanagement-v1/src/main/java/com/google/cloud/securitycentermanagement/v1/SimulateSecurityHealthAnalyticsCustomModuleRequest.java index cdfb5febd2fe..4270c3a09765 100644 --- a/owl-bot-staging/java-securitycentermanagement/v1/proto-google-cloud-securitycentermanagement-v1/src/main/java/com/google/cloud/securitycentermanagement/v1/SimulateSecurityHealthAnalyticsCustomModuleRequest.java +++ b/java-securitycentermanagement/proto-google-cloud-securitycentermanagement-v1/src/main/java/com/google/cloud/securitycentermanagement/v1/SimulateSecurityHealthAnalyticsCustomModuleRequest.java @@ -1,184 +1,248 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/securitycentermanagement/v1/security_center_management.proto package com.google.cloud.securitycentermanagement.v1; /** + * + * *
  * Request message to simulate a CustomConfig against a given test resource.
  * Maximum size of the request is 4 MB by default.
  * 
* - * Protobuf type {@code google.cloud.securitycentermanagement.v1.SimulateSecurityHealthAnalyticsCustomModuleRequest} + * Protobuf type {@code + * google.cloud.securitycentermanagement.v1.SimulateSecurityHealthAnalyticsCustomModuleRequest} */ -public final class SimulateSecurityHealthAnalyticsCustomModuleRequest extends - com.google.protobuf.GeneratedMessageV3 implements +public final class SimulateSecurityHealthAnalyticsCustomModuleRequest + extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.securitycentermanagement.v1.SimulateSecurityHealthAnalyticsCustomModuleRequest) SimulateSecurityHealthAnalyticsCustomModuleRequestOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use SimulateSecurityHealthAnalyticsCustomModuleRequest.newBuilder() to construct. - private SimulateSecurityHealthAnalyticsCustomModuleRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + private SimulateSecurityHealthAnalyticsCustomModuleRequest( + com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private SimulateSecurityHealthAnalyticsCustomModuleRequest() { parent_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new SimulateSecurityHealthAnalyticsCustomModuleRequest(); } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.securitycentermanagement.v1.SecurityCenterManagementProto.internal_static_google_cloud_securitycentermanagement_v1_SimulateSecurityHealthAnalyticsCustomModuleRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.securitycentermanagement.v1.SecurityCenterManagementProto + .internal_static_google_cloud_securitycentermanagement_v1_SimulateSecurityHealthAnalyticsCustomModuleRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.securitycentermanagement.v1.SecurityCenterManagementProto.internal_static_google_cloud_securitycentermanagement_v1_SimulateSecurityHealthAnalyticsCustomModuleRequest_fieldAccessorTable + return com.google.cloud.securitycentermanagement.v1.SecurityCenterManagementProto + .internal_static_google_cloud_securitycentermanagement_v1_SimulateSecurityHealthAnalyticsCustomModuleRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.securitycentermanagement.v1.SimulateSecurityHealthAnalyticsCustomModuleRequest.class, com.google.cloud.securitycentermanagement.v1.SimulateSecurityHealthAnalyticsCustomModuleRequest.Builder.class); + com.google.cloud.securitycentermanagement.v1 + .SimulateSecurityHealthAnalyticsCustomModuleRequest.class, + com.google.cloud.securitycentermanagement.v1 + .SimulateSecurityHealthAnalyticsCustomModuleRequest.Builder.class); } - public interface SimulatedResourceOrBuilder extends + public interface SimulatedResourceOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.securitycentermanagement.v1.SimulateSecurityHealthAnalyticsCustomModuleRequest.SimulatedResource) com.google.protobuf.MessageOrBuilder { /** + * + * *
      * Required. The type of the resource, for example,
      * `compute.googleapis.com/Disk`.
      * 
* * string resource_type = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @return The resourceType. */ java.lang.String getResourceType(); /** + * + * *
      * Required. The type of the resource, for example,
      * `compute.googleapis.com/Disk`.
      * 
* * string resource_type = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @return The bytes for resourceType. */ - com.google.protobuf.ByteString - getResourceTypeBytes(); + com.google.protobuf.ByteString getResourceTypeBytes(); /** + * + * *
      * Optional. A representation of the Google Cloud resource. Should match the
      * Google Cloud resource JSON format.
      * 
* - * .google.protobuf.Struct resource_data = 2 [(.google.api.field_behavior) = OPTIONAL]; + * .google.protobuf.Struct resource_data = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return Whether the resourceData field is set. */ boolean hasResourceData(); /** + * + * *
      * Optional. A representation of the Google Cloud resource. Should match the
      * Google Cloud resource JSON format.
      * 
* - * .google.protobuf.Struct resource_data = 2 [(.google.api.field_behavior) = OPTIONAL]; + * .google.protobuf.Struct resource_data = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return The resourceData. */ com.google.protobuf.Struct getResourceData(); /** + * + * *
      * Optional. A representation of the Google Cloud resource. Should match the
      * Google Cloud resource JSON format.
      * 
* - * .google.protobuf.Struct resource_data = 2 [(.google.api.field_behavior) = OPTIONAL]; + * .google.protobuf.Struct resource_data = 2 [(.google.api.field_behavior) = OPTIONAL]; + * */ com.google.protobuf.StructOrBuilder getResourceDataOrBuilder(); /** + * + * *
      * Optional. A representation of the IAM policy.
      * 
* - * .google.iam.v1.Policy iam_policy_data = 3 [(.google.api.field_behavior) = OPTIONAL]; + * .google.iam.v1.Policy iam_policy_data = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return Whether the iamPolicyData field is set. */ boolean hasIamPolicyData(); /** + * + * *
      * Optional. A representation of the IAM policy.
      * 
* - * .google.iam.v1.Policy iam_policy_data = 3 [(.google.api.field_behavior) = OPTIONAL]; + * .google.iam.v1.Policy iam_policy_data = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return The iamPolicyData. */ com.google.iam.v1.Policy getIamPolicyData(); /** + * + * *
      * Optional. A representation of the IAM policy.
      * 
* - * .google.iam.v1.Policy iam_policy_data = 3 [(.google.api.field_behavior) = OPTIONAL]; + * .google.iam.v1.Policy iam_policy_data = 3 [(.google.api.field_behavior) = OPTIONAL]; + * */ com.google.iam.v1.PolicyOrBuilder getIamPolicyDataOrBuilder(); } /** + * + * *
    * Manually constructed resource name. If the custom module evaluates against
    * only the resource data, you can omit the `iam_policy_data` field. If it
    * evaluates only the `iam_policy_data` field, you can omit the resource data.
    * 
* - * Protobuf type {@code google.cloud.securitycentermanagement.v1.SimulateSecurityHealthAnalyticsCustomModuleRequest.SimulatedResource} + * Protobuf type {@code + * google.cloud.securitycentermanagement.v1.SimulateSecurityHealthAnalyticsCustomModuleRequest.SimulatedResource} */ - public static final class SimulatedResource extends - com.google.protobuf.GeneratedMessageV3 implements + public static final class SimulatedResource extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.securitycentermanagement.v1.SimulateSecurityHealthAnalyticsCustomModuleRequest.SimulatedResource) SimulatedResourceOrBuilder { - private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use SimulatedResource.newBuilder() to construct. private SimulatedResource(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private SimulatedResource() { resourceType_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new SimulatedResource(); } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.securitycentermanagement.v1.SecurityCenterManagementProto.internal_static_google_cloud_securitycentermanagement_v1_SimulateSecurityHealthAnalyticsCustomModuleRequest_SimulatedResource_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.securitycentermanagement.v1.SecurityCenterManagementProto + .internal_static_google_cloud_securitycentermanagement_v1_SimulateSecurityHealthAnalyticsCustomModuleRequest_SimulatedResource_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.securitycentermanagement.v1.SecurityCenterManagementProto.internal_static_google_cloud_securitycentermanagement_v1_SimulateSecurityHealthAnalyticsCustomModuleRequest_SimulatedResource_fieldAccessorTable + return com.google.cloud.securitycentermanagement.v1.SecurityCenterManagementProto + .internal_static_google_cloud_securitycentermanagement_v1_SimulateSecurityHealthAnalyticsCustomModuleRequest_SimulatedResource_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.securitycentermanagement.v1.SimulateSecurityHealthAnalyticsCustomModuleRequest.SimulatedResource.class, com.google.cloud.securitycentermanagement.v1.SimulateSecurityHealthAnalyticsCustomModuleRequest.SimulatedResource.Builder.class); + com.google.cloud.securitycentermanagement.v1 + .SimulateSecurityHealthAnalyticsCustomModuleRequest.SimulatedResource.class, + com.google.cloud.securitycentermanagement.v1 + .SimulateSecurityHealthAnalyticsCustomModuleRequest.SimulatedResource.Builder + .class); } public static final int RESOURCE_TYPE_FIELD_NUMBER = 1; + @SuppressWarnings("serial") private volatile java.lang.Object resourceType_ = ""; /** + * + * *
      * Required. The type of the resource, for example,
      * `compute.googleapis.com/Disk`.
      * 
* * string resource_type = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @return The resourceType. */ @java.lang.Override @@ -187,30 +251,30 @@ public java.lang.String getResourceType() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); resourceType_ = s; return s; } } /** + * + * *
      * Required. The type of the resource, for example,
      * `compute.googleapis.com/Disk`.
      * 
* * string resource_type = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @return The bytes for resourceType. */ @java.lang.Override - public com.google.protobuf.ByteString - getResourceTypeBytes() { + public com.google.protobuf.ByteString getResourceTypeBytes() { java.lang.Object ref = resourceType_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); resourceType_ = b; return b; } else { @@ -221,12 +285,16 @@ public java.lang.String getResourceType() { public static final int RESOURCE_DATA_FIELD_NUMBER = 2; private com.google.protobuf.Struct resourceData_; /** + * + * *
      * Optional. A representation of the Google Cloud resource. Should match the
      * Google Cloud resource JSON format.
      * 
* - * .google.protobuf.Struct resource_data = 2 [(.google.api.field_behavior) = OPTIONAL]; + * .google.protobuf.Struct resource_data = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return Whether the resourceData field is set. */ @java.lang.Override @@ -234,39 +302,54 @@ public boolean hasResourceData() { return resourceData_ != null; } /** + * + * *
      * Optional. A representation of the Google Cloud resource. Should match the
      * Google Cloud resource JSON format.
      * 
* - * .google.protobuf.Struct resource_data = 2 [(.google.api.field_behavior) = OPTIONAL]; + * .google.protobuf.Struct resource_data = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return The resourceData. */ @java.lang.Override public com.google.protobuf.Struct getResourceData() { - return resourceData_ == null ? com.google.protobuf.Struct.getDefaultInstance() : resourceData_; + return resourceData_ == null + ? com.google.protobuf.Struct.getDefaultInstance() + : resourceData_; } /** + * + * *
      * Optional. A representation of the Google Cloud resource. Should match the
      * Google Cloud resource JSON format.
      * 
* - * .google.protobuf.Struct resource_data = 2 [(.google.api.field_behavior) = OPTIONAL]; + * .google.protobuf.Struct resource_data = 2 [(.google.api.field_behavior) = OPTIONAL]; + * */ @java.lang.Override public com.google.protobuf.StructOrBuilder getResourceDataOrBuilder() { - return resourceData_ == null ? com.google.protobuf.Struct.getDefaultInstance() : resourceData_; + return resourceData_ == null + ? com.google.protobuf.Struct.getDefaultInstance() + : resourceData_; } public static final int IAM_POLICY_DATA_FIELD_NUMBER = 3; private com.google.iam.v1.Policy iamPolicyData_; /** + * + * *
      * Optional. A representation of the IAM policy.
      * 
* - * .google.iam.v1.Policy iam_policy_data = 3 [(.google.api.field_behavior) = OPTIONAL]; + * .google.iam.v1.Policy iam_policy_data = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return Whether the iamPolicyData field is set. */ @java.lang.Override @@ -274,30 +357,42 @@ public boolean hasIamPolicyData() { return iamPolicyData_ != null; } /** + * + * *
      * Optional. A representation of the IAM policy.
      * 
* - * .google.iam.v1.Policy iam_policy_data = 3 [(.google.api.field_behavior) = OPTIONAL]; + * .google.iam.v1.Policy iam_policy_data = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return The iamPolicyData. */ @java.lang.Override public com.google.iam.v1.Policy getIamPolicyData() { - return iamPolicyData_ == null ? com.google.iam.v1.Policy.getDefaultInstance() : iamPolicyData_; + return iamPolicyData_ == null + ? com.google.iam.v1.Policy.getDefaultInstance() + : iamPolicyData_; } /** + * + * *
      * Optional. A representation of the IAM policy.
      * 
* - * .google.iam.v1.Policy iam_policy_data = 3 [(.google.api.field_behavior) = OPTIONAL]; + * .google.iam.v1.Policy iam_policy_data = 3 [(.google.api.field_behavior) = OPTIONAL]; + * */ @java.lang.Override public com.google.iam.v1.PolicyOrBuilder getIamPolicyDataOrBuilder() { - return iamPolicyData_ == null ? com.google.iam.v1.Policy.getDefaultInstance() : iamPolicyData_; + return iamPolicyData_ == null + ? com.google.iam.v1.Policy.getDefaultInstance() + : iamPolicyData_; } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -309,8 +404,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(resourceType_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, resourceType_); } @@ -333,12 +427,10 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, resourceType_); } if (resourceData_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(2, getResourceData()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getResourceData()); } if (iamPolicyData_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(3, getIamPolicyData()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, getIamPolicyData()); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -348,24 +440,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.securitycentermanagement.v1.SimulateSecurityHealthAnalyticsCustomModuleRequest.SimulatedResource)) { + if (!(obj + instanceof + com.google.cloud.securitycentermanagement.v1 + .SimulateSecurityHealthAnalyticsCustomModuleRequest.SimulatedResource)) { return super.equals(obj); } - com.google.cloud.securitycentermanagement.v1.SimulateSecurityHealthAnalyticsCustomModuleRequest.SimulatedResource other = (com.google.cloud.securitycentermanagement.v1.SimulateSecurityHealthAnalyticsCustomModuleRequest.SimulatedResource) obj; + com.google.cloud.securitycentermanagement.v1 + .SimulateSecurityHealthAnalyticsCustomModuleRequest.SimulatedResource + other = + (com.google.cloud.securitycentermanagement.v1 + .SimulateSecurityHealthAnalyticsCustomModuleRequest.SimulatedResource) + obj; - if (!getResourceType() - .equals(other.getResourceType())) return false; + if (!getResourceType().equals(other.getResourceType())) return false; if (hasResourceData() != other.hasResourceData()) return false; if (hasResourceData()) { - if (!getResourceData() - .equals(other.getResourceData())) return false; + if (!getResourceData().equals(other.getResourceData())) return false; } if (hasIamPolicyData() != other.hasIamPolicyData()) return false; if (hasIamPolicyData()) { - if (!getIamPolicyData() - .equals(other.getIamPolicyData())) return false; + if (!getIamPolicyData().equals(other.getIamPolicyData())) return false; } if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; @@ -393,90 +490,115 @@ public int hashCode() { return hash; } - public static com.google.cloud.securitycentermanagement.v1.SimulateSecurityHealthAnalyticsCustomModuleRequest.SimulatedResource parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.securitycentermanagement.v1 + .SimulateSecurityHealthAnalyticsCustomModuleRequest.SimulatedResource + parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.securitycentermanagement.v1.SimulateSecurityHealthAnalyticsCustomModuleRequest.SimulatedResource parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.cloud.securitycentermanagement.v1 + .SimulateSecurityHealthAnalyticsCustomModuleRequest.SimulatedResource + 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.securitycentermanagement.v1.SimulateSecurityHealthAnalyticsCustomModuleRequest.SimulatedResource parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.cloud.securitycentermanagement.v1 + .SimulateSecurityHealthAnalyticsCustomModuleRequest.SimulatedResource + parseFrom(com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.securitycentermanagement.v1.SimulateSecurityHealthAnalyticsCustomModuleRequest.SimulatedResource parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.cloud.securitycentermanagement.v1 + .SimulateSecurityHealthAnalyticsCustomModuleRequest.SimulatedResource + parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.securitycentermanagement.v1.SimulateSecurityHealthAnalyticsCustomModuleRequest.SimulatedResource parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.cloud.securitycentermanagement.v1 + .SimulateSecurityHealthAnalyticsCustomModuleRequest.SimulatedResource + parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.securitycentermanagement.v1.SimulateSecurityHealthAnalyticsCustomModuleRequest.SimulatedResource parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.cloud.securitycentermanagement.v1 + .SimulateSecurityHealthAnalyticsCustomModuleRequest.SimulatedResource + parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.securitycentermanagement.v1.SimulateSecurityHealthAnalyticsCustomModuleRequest.SimulatedResource parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.securitycentermanagement.v1 + .SimulateSecurityHealthAnalyticsCustomModuleRequest.SimulatedResource + parseFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } - public static com.google.cloud.securitycentermanagement.v1.SimulateSecurityHealthAnalyticsCustomModuleRequest.SimulatedResource 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.securitycentermanagement.v1 + .SimulateSecurityHealthAnalyticsCustomModuleRequest.SimulatedResource + 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.securitycentermanagement.v1.SimulateSecurityHealthAnalyticsCustomModuleRequest.SimulatedResource parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.securitycentermanagement.v1 + .SimulateSecurityHealthAnalyticsCustomModuleRequest.SimulatedResource + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.securitycentermanagement.v1.SimulateSecurityHealthAnalyticsCustomModuleRequest.SimulatedResource parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + public static com.google.cloud.securitycentermanagement.v1 + .SimulateSecurityHealthAnalyticsCustomModuleRequest.SimulatedResource + parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.securitycentermanagement.v1.SimulateSecurityHealthAnalyticsCustomModuleRequest.SimulatedResource parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.securitycentermanagement.v1 + .SimulateSecurityHealthAnalyticsCustomModuleRequest.SimulatedResource + parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } - public static com.google.cloud.securitycentermanagement.v1.SimulateSecurityHealthAnalyticsCustomModuleRequest.SimulatedResource 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.securitycentermanagement.v1 + .SimulateSecurityHealthAnalyticsCustomModuleRequest.SimulatedResource + 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.securitycentermanagement.v1.SimulateSecurityHealthAnalyticsCustomModuleRequest.SimulatedResource prototype) { + + public static Builder newBuilder( + com.google.cloud.securitycentermanagement.v1 + .SimulateSecurityHealthAnalyticsCustomModuleRequest.SimulatedResource + prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override @@ -486,41 +608,49 @@ protected Builder newBuilderForType( return builder; } /** + * + * *
      * Manually constructed resource name. If the custom module evaluates against
      * only the resource data, you can omit the `iam_policy_data` field. If it
      * evaluates only the `iam_policy_data` field, you can omit the resource data.
      * 
* - * Protobuf type {@code google.cloud.securitycentermanagement.v1.SimulateSecurityHealthAnalyticsCustomModuleRequest.SimulatedResource} + * Protobuf type {@code + * google.cloud.securitycentermanagement.v1.SimulateSecurityHealthAnalyticsCustomModuleRequest.SimulatedResource} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder + extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.securitycentermanagement.v1.SimulateSecurityHealthAnalyticsCustomModuleRequest.SimulatedResource) - com.google.cloud.securitycentermanagement.v1.SimulateSecurityHealthAnalyticsCustomModuleRequest.SimulatedResourceOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.securitycentermanagement.v1.SecurityCenterManagementProto.internal_static_google_cloud_securitycentermanagement_v1_SimulateSecurityHealthAnalyticsCustomModuleRequest_SimulatedResource_descriptor; + com.google.cloud.securitycentermanagement.v1 + .SimulateSecurityHealthAnalyticsCustomModuleRequest.SimulatedResourceOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.securitycentermanagement.v1.SecurityCenterManagementProto + .internal_static_google_cloud_securitycentermanagement_v1_SimulateSecurityHealthAnalyticsCustomModuleRequest_SimulatedResource_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.securitycentermanagement.v1.SecurityCenterManagementProto.internal_static_google_cloud_securitycentermanagement_v1_SimulateSecurityHealthAnalyticsCustomModuleRequest_SimulatedResource_fieldAccessorTable + return com.google.cloud.securitycentermanagement.v1.SecurityCenterManagementProto + .internal_static_google_cloud_securitycentermanagement_v1_SimulateSecurityHealthAnalyticsCustomModuleRequest_SimulatedResource_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.securitycentermanagement.v1.SimulateSecurityHealthAnalyticsCustomModuleRequest.SimulatedResource.class, com.google.cloud.securitycentermanagement.v1.SimulateSecurityHealthAnalyticsCustomModuleRequest.SimulatedResource.Builder.class); + com.google.cloud.securitycentermanagement.v1 + .SimulateSecurityHealthAnalyticsCustomModuleRequest.SimulatedResource.class, + com.google.cloud.securitycentermanagement.v1 + .SimulateSecurityHealthAnalyticsCustomModuleRequest.SimulatedResource.Builder + .class); } - // Construct using com.google.cloud.securitycentermanagement.v1.SimulateSecurityHealthAnalyticsCustomModuleRequest.SimulatedResource.newBuilder() - private Builder() { + // Construct using + // com.google.cloud.securitycentermanagement.v1.SimulateSecurityHealthAnalyticsCustomModuleRequest.SimulatedResource.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(); @@ -540,19 +670,27 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.securitycentermanagement.v1.SecurityCenterManagementProto.internal_static_google_cloud_securitycentermanagement_v1_SimulateSecurityHealthAnalyticsCustomModuleRequest_SimulatedResource_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.securitycentermanagement.v1.SecurityCenterManagementProto + .internal_static_google_cloud_securitycentermanagement_v1_SimulateSecurityHealthAnalyticsCustomModuleRequest_SimulatedResource_descriptor; } @java.lang.Override - public com.google.cloud.securitycentermanagement.v1.SimulateSecurityHealthAnalyticsCustomModuleRequest.SimulatedResource getDefaultInstanceForType() { - return com.google.cloud.securitycentermanagement.v1.SimulateSecurityHealthAnalyticsCustomModuleRequest.SimulatedResource.getDefaultInstance(); + public com.google.cloud.securitycentermanagement.v1 + .SimulateSecurityHealthAnalyticsCustomModuleRequest.SimulatedResource + getDefaultInstanceForType() { + return com.google.cloud.securitycentermanagement.v1 + .SimulateSecurityHealthAnalyticsCustomModuleRequest.SimulatedResource + .getDefaultInstance(); } @java.lang.Override - public com.google.cloud.securitycentermanagement.v1.SimulateSecurityHealthAnalyticsCustomModuleRequest.SimulatedResource build() { - com.google.cloud.securitycentermanagement.v1.SimulateSecurityHealthAnalyticsCustomModuleRequest.SimulatedResource result = buildPartial(); + public com.google.cloud.securitycentermanagement.v1 + .SimulateSecurityHealthAnalyticsCustomModuleRequest.SimulatedResource + build() { + com.google.cloud.securitycentermanagement.v1 + .SimulateSecurityHealthAnalyticsCustomModuleRequest.SimulatedResource + result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } @@ -560,27 +698,36 @@ public com.google.cloud.securitycentermanagement.v1.SimulateSecurityHealthAnalyt } @java.lang.Override - public com.google.cloud.securitycentermanagement.v1.SimulateSecurityHealthAnalyticsCustomModuleRequest.SimulatedResource buildPartial() { - com.google.cloud.securitycentermanagement.v1.SimulateSecurityHealthAnalyticsCustomModuleRequest.SimulatedResource result = new com.google.cloud.securitycentermanagement.v1.SimulateSecurityHealthAnalyticsCustomModuleRequest.SimulatedResource(this); - if (bitField0_ != 0) { buildPartial0(result); } + public com.google.cloud.securitycentermanagement.v1 + .SimulateSecurityHealthAnalyticsCustomModuleRequest.SimulatedResource + buildPartial() { + com.google.cloud.securitycentermanagement.v1 + .SimulateSecurityHealthAnalyticsCustomModuleRequest.SimulatedResource + result = + new com.google.cloud.securitycentermanagement.v1 + .SimulateSecurityHealthAnalyticsCustomModuleRequest.SimulatedResource(this); + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } - private void buildPartial0(com.google.cloud.securitycentermanagement.v1.SimulateSecurityHealthAnalyticsCustomModuleRequest.SimulatedResource result) { + private void buildPartial0( + com.google.cloud.securitycentermanagement.v1 + .SimulateSecurityHealthAnalyticsCustomModuleRequest.SimulatedResource + result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000001) != 0)) { result.resourceType_ = resourceType_; } if (((from_bitField0_ & 0x00000002) != 0)) { - result.resourceData_ = resourceDataBuilder_ == null - ? resourceData_ - : resourceDataBuilder_.build(); + result.resourceData_ = + resourceDataBuilder_ == null ? resourceData_ : resourceDataBuilder_.build(); } if (((from_bitField0_ & 0x00000004) != 0)) { - result.iamPolicyData_ = iamPolicyDataBuilder_ == null - ? iamPolicyData_ - : iamPolicyDataBuilder_.build(); + result.iamPolicyData_ = + iamPolicyDataBuilder_ == null ? iamPolicyData_ : iamPolicyDataBuilder_.build(); } } @@ -588,46 +735,61 @@ private void buildPartial0(com.google.cloud.securitycentermanagement.v1.Simulate public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.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.securitycentermanagement.v1.SimulateSecurityHealthAnalyticsCustomModuleRequest.SimulatedResource) { - return mergeFrom((com.google.cloud.securitycentermanagement.v1.SimulateSecurityHealthAnalyticsCustomModuleRequest.SimulatedResource)other); + if (other + instanceof + com.google.cloud.securitycentermanagement.v1 + .SimulateSecurityHealthAnalyticsCustomModuleRequest.SimulatedResource) { + return mergeFrom( + (com.google.cloud.securitycentermanagement.v1 + .SimulateSecurityHealthAnalyticsCustomModuleRequest.SimulatedResource) + other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom(com.google.cloud.securitycentermanagement.v1.SimulateSecurityHealthAnalyticsCustomModuleRequest.SimulatedResource other) { - if (other == com.google.cloud.securitycentermanagement.v1.SimulateSecurityHealthAnalyticsCustomModuleRequest.SimulatedResource.getDefaultInstance()) return this; + public Builder mergeFrom( + com.google.cloud.securitycentermanagement.v1 + .SimulateSecurityHealthAnalyticsCustomModuleRequest.SimulatedResource + other) { + if (other + == com.google.cloud.securitycentermanagement.v1 + .SimulateSecurityHealthAnalyticsCustomModuleRequest.SimulatedResource + .getDefaultInstance()) return this; if (!other.getResourceType().isEmpty()) { resourceType_ = other.resourceType_; bitField0_ |= 0x00000001; @@ -665,31 +827,31 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: { - resourceType_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 18: { - input.readMessage( - getResourceDataFieldBuilder().getBuilder(), - extensionRegistry); - bitField0_ |= 0x00000002; - break; - } // case 18 - case 26: { - input.readMessage( - getIamPolicyDataFieldBuilder().getBuilder(), - extensionRegistry); - bitField0_ |= 0x00000004; - break; - } // case 26 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: + { + resourceType_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + input.readMessage(getResourceDataFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 26: + { + input.readMessage(getIamPolicyDataFieldBuilder().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) { @@ -699,23 +861,26 @@ public Builder mergeFrom( } // finally return this; } + private int bitField0_; private java.lang.Object resourceType_ = ""; /** + * + * *
        * Required. The type of the resource, for example,
        * `compute.googleapis.com/Disk`.
        * 
* * string resource_type = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @return The resourceType. */ public java.lang.String getResourceType() { java.lang.Object ref = resourceType_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); resourceType_ = s; return s; @@ -724,21 +889,22 @@ public java.lang.String getResourceType() { } } /** + * + * *
        * Required. The type of the resource, for example,
        * `compute.googleapis.com/Disk`.
        * 
* * string resource_type = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @return The bytes for resourceType. */ - public com.google.protobuf.ByteString - getResourceTypeBytes() { + public com.google.protobuf.ByteString getResourceTypeBytes() { java.lang.Object ref = resourceType_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); resourceType_ = b; return b; } else { @@ -746,30 +912,37 @@ public java.lang.String getResourceType() { } } /** + * + * *
        * Required. The type of the resource, for example,
        * `compute.googleapis.com/Disk`.
        * 
* * string resource_type = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @param value The resourceType to set. * @return This builder for chaining. */ - public Builder setResourceType( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setResourceType(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } resourceType_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** + * + * *
        * Required. The type of the resource, for example,
        * `compute.googleapis.com/Disk`.
        * 
* * string resource_type = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @return This builder for chaining. */ public Builder clearResourceType() { @@ -779,18 +952,22 @@ public Builder clearResourceType() { return this; } /** + * + * *
        * Required. The type of the resource, for example,
        * `compute.googleapis.com/Disk`.
        * 
* * string resource_type = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @param value The bytes for resourceType to set. * @return This builder for chaining. */ - public Builder setResourceTypeBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder setResourceTypeBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); resourceType_ = value; bitField0_ |= 0x00000001; @@ -800,42 +977,58 @@ public Builder setResourceTypeBytes( private com.google.protobuf.Struct resourceData_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Struct, com.google.protobuf.Struct.Builder, com.google.protobuf.StructOrBuilder> resourceDataBuilder_; + com.google.protobuf.Struct, + com.google.protobuf.Struct.Builder, + com.google.protobuf.StructOrBuilder> + resourceDataBuilder_; /** + * + * *
        * Optional. A representation of the Google Cloud resource. Should match the
        * Google Cloud resource JSON format.
        * 
* - * .google.protobuf.Struct resource_data = 2 [(.google.api.field_behavior) = OPTIONAL]; + * .google.protobuf.Struct resource_data = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return Whether the resourceData field is set. */ public boolean hasResourceData() { return ((bitField0_ & 0x00000002) != 0); } /** + * + * *
        * Optional. A representation of the Google Cloud resource. Should match the
        * Google Cloud resource JSON format.
        * 
* - * .google.protobuf.Struct resource_data = 2 [(.google.api.field_behavior) = OPTIONAL]; + * .google.protobuf.Struct resource_data = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return The resourceData. */ public com.google.protobuf.Struct getResourceData() { if (resourceDataBuilder_ == null) { - return resourceData_ == null ? com.google.protobuf.Struct.getDefaultInstance() : resourceData_; + return resourceData_ == null + ? com.google.protobuf.Struct.getDefaultInstance() + : resourceData_; } else { return resourceDataBuilder_.getMessage(); } } /** + * + * *
        * Optional. A representation of the Google Cloud resource. Should match the
        * Google Cloud resource JSON format.
        * 
* - * .google.protobuf.Struct resource_data = 2 [(.google.api.field_behavior) = OPTIONAL]; + * .google.protobuf.Struct resource_data = 2 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder setResourceData(com.google.protobuf.Struct value) { if (resourceDataBuilder_ == null) { @@ -851,15 +1044,17 @@ public Builder setResourceData(com.google.protobuf.Struct value) { return this; } /** + * + * *
        * Optional. A representation of the Google Cloud resource. Should match the
        * Google Cloud resource JSON format.
        * 
* - * .google.protobuf.Struct resource_data = 2 [(.google.api.field_behavior) = OPTIONAL]; + * .google.protobuf.Struct resource_data = 2 [(.google.api.field_behavior) = OPTIONAL]; + * */ - public Builder setResourceData( - com.google.protobuf.Struct.Builder builderForValue) { + public Builder setResourceData(com.google.protobuf.Struct.Builder builderForValue) { if (resourceDataBuilder_ == null) { resourceData_ = builderForValue.build(); } else { @@ -870,18 +1065,21 @@ public Builder setResourceData( return this; } /** + * + * *
        * Optional. A representation of the Google Cloud resource. Should match the
        * Google Cloud resource JSON format.
        * 
* - * .google.protobuf.Struct resource_data = 2 [(.google.api.field_behavior) = OPTIONAL]; + * .google.protobuf.Struct resource_data = 2 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder mergeResourceData(com.google.protobuf.Struct value) { if (resourceDataBuilder_ == null) { - if (((bitField0_ & 0x00000002) != 0) && - resourceData_ != null && - resourceData_ != com.google.protobuf.Struct.getDefaultInstance()) { + if (((bitField0_ & 0x00000002) != 0) + && resourceData_ != null + && resourceData_ != com.google.protobuf.Struct.getDefaultInstance()) { getResourceDataBuilder().mergeFrom(value); } else { resourceData_ = value; @@ -894,12 +1092,15 @@ public Builder mergeResourceData(com.google.protobuf.Struct value) { return this; } /** + * + * *
        * Optional. A representation of the Google Cloud resource. Should match the
        * Google Cloud resource JSON format.
        * 
* - * .google.protobuf.Struct resource_data = 2 [(.google.api.field_behavior) = OPTIONAL]; + * .google.protobuf.Struct resource_data = 2 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder clearResourceData() { bitField0_ = (bitField0_ & ~0x00000002); @@ -912,12 +1113,15 @@ public Builder clearResourceData() { return this; } /** + * + * *
        * Optional. A representation of the Google Cloud resource. Should match the
        * Google Cloud resource JSON format.
        * 
* - * .google.protobuf.Struct resource_data = 2 [(.google.api.field_behavior) = OPTIONAL]; + * .google.protobuf.Struct resource_data = 2 [(.google.api.field_behavior) = OPTIONAL]; + * */ public com.google.protobuf.Struct.Builder getResourceDataBuilder() { bitField0_ |= 0x00000002; @@ -925,38 +1129,48 @@ public com.google.protobuf.Struct.Builder getResourceDataBuilder() { return getResourceDataFieldBuilder().getBuilder(); } /** + * + * *
        * Optional. A representation of the Google Cloud resource. Should match the
        * Google Cloud resource JSON format.
        * 
* - * .google.protobuf.Struct resource_data = 2 [(.google.api.field_behavior) = OPTIONAL]; + * .google.protobuf.Struct resource_data = 2 [(.google.api.field_behavior) = OPTIONAL]; + * */ public com.google.protobuf.StructOrBuilder getResourceDataOrBuilder() { if (resourceDataBuilder_ != null) { return resourceDataBuilder_.getMessageOrBuilder(); } else { - return resourceData_ == null ? - com.google.protobuf.Struct.getDefaultInstance() : resourceData_; + return resourceData_ == null + ? com.google.protobuf.Struct.getDefaultInstance() + : resourceData_; } } /** + * + * *
        * Optional. A representation of the Google Cloud resource. Should match the
        * Google Cloud resource JSON format.
        * 
* - * .google.protobuf.Struct resource_data = 2 [(.google.api.field_behavior) = OPTIONAL]; + * .google.protobuf.Struct resource_data = 2 [(.google.api.field_behavior) = OPTIONAL]; + * */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Struct, com.google.protobuf.Struct.Builder, com.google.protobuf.StructOrBuilder> + com.google.protobuf.Struct, + com.google.protobuf.Struct.Builder, + com.google.protobuf.StructOrBuilder> getResourceDataFieldBuilder() { if (resourceDataBuilder_ == null) { - resourceDataBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Struct, com.google.protobuf.Struct.Builder, com.google.protobuf.StructOrBuilder>( - getResourceData(), - getParentForChildren(), - isClean()); + resourceDataBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Struct, + com.google.protobuf.Struct.Builder, + com.google.protobuf.StructOrBuilder>( + getResourceData(), getParentForChildren(), isClean()); resourceData_ = null; } return resourceDataBuilder_; @@ -964,39 +1178,55 @@ public com.google.protobuf.StructOrBuilder getResourceDataOrBuilder() { private com.google.iam.v1.Policy iamPolicyData_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.iam.v1.Policy, com.google.iam.v1.Policy.Builder, com.google.iam.v1.PolicyOrBuilder> iamPolicyDataBuilder_; + com.google.iam.v1.Policy, + com.google.iam.v1.Policy.Builder, + com.google.iam.v1.PolicyOrBuilder> + iamPolicyDataBuilder_; /** + * + * *
        * Optional. A representation of the IAM policy.
        * 
* - * .google.iam.v1.Policy iam_policy_data = 3 [(.google.api.field_behavior) = OPTIONAL]; + * .google.iam.v1.Policy iam_policy_data = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return Whether the iamPolicyData field is set. */ public boolean hasIamPolicyData() { return ((bitField0_ & 0x00000004) != 0); } /** + * + * *
        * Optional. A representation of the IAM policy.
        * 
* - * .google.iam.v1.Policy iam_policy_data = 3 [(.google.api.field_behavior) = OPTIONAL]; + * .google.iam.v1.Policy iam_policy_data = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return The iamPolicyData. */ public com.google.iam.v1.Policy getIamPolicyData() { if (iamPolicyDataBuilder_ == null) { - return iamPolicyData_ == null ? com.google.iam.v1.Policy.getDefaultInstance() : iamPolicyData_; + return iamPolicyData_ == null + ? com.google.iam.v1.Policy.getDefaultInstance() + : iamPolicyData_; } else { return iamPolicyDataBuilder_.getMessage(); } } /** + * + * *
        * Optional. A representation of the IAM policy.
        * 
* - * .google.iam.v1.Policy iam_policy_data = 3 [(.google.api.field_behavior) = OPTIONAL]; + * .google.iam.v1.Policy iam_policy_data = 3 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder setIamPolicyData(com.google.iam.v1.Policy value) { if (iamPolicyDataBuilder_ == null) { @@ -1012,14 +1242,16 @@ public Builder setIamPolicyData(com.google.iam.v1.Policy value) { return this; } /** + * + * *
        * Optional. A representation of the IAM policy.
        * 
* - * .google.iam.v1.Policy iam_policy_data = 3 [(.google.api.field_behavior) = OPTIONAL]; + * .google.iam.v1.Policy iam_policy_data = 3 [(.google.api.field_behavior) = OPTIONAL]; + * */ - public Builder setIamPolicyData( - com.google.iam.v1.Policy.Builder builderForValue) { + public Builder setIamPolicyData(com.google.iam.v1.Policy.Builder builderForValue) { if (iamPolicyDataBuilder_ == null) { iamPolicyData_ = builderForValue.build(); } else { @@ -1030,17 +1262,20 @@ public Builder setIamPolicyData( return this; } /** + * + * *
        * Optional. A representation of the IAM policy.
        * 
* - * .google.iam.v1.Policy iam_policy_data = 3 [(.google.api.field_behavior) = OPTIONAL]; + * .google.iam.v1.Policy iam_policy_data = 3 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder mergeIamPolicyData(com.google.iam.v1.Policy value) { if (iamPolicyDataBuilder_ == null) { - if (((bitField0_ & 0x00000004) != 0) && - iamPolicyData_ != null && - iamPolicyData_ != com.google.iam.v1.Policy.getDefaultInstance()) { + if (((bitField0_ & 0x00000004) != 0) + && iamPolicyData_ != null + && iamPolicyData_ != com.google.iam.v1.Policy.getDefaultInstance()) { getIamPolicyDataBuilder().mergeFrom(value); } else { iamPolicyData_ = value; @@ -1053,11 +1288,14 @@ public Builder mergeIamPolicyData(com.google.iam.v1.Policy value) { return this; } /** + * + * *
        * Optional. A representation of the IAM policy.
        * 
* - * .google.iam.v1.Policy iam_policy_data = 3 [(.google.api.field_behavior) = OPTIONAL]; + * .google.iam.v1.Policy iam_policy_data = 3 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder clearIamPolicyData() { bitField0_ = (bitField0_ & ~0x00000004); @@ -1070,11 +1308,14 @@ public Builder clearIamPolicyData() { return this; } /** + * + * *
        * Optional. A representation of the IAM policy.
        * 
* - * .google.iam.v1.Policy iam_policy_data = 3 [(.google.api.field_behavior) = OPTIONAL]; + * .google.iam.v1.Policy iam_policy_data = 3 [(.google.api.field_behavior) = OPTIONAL]; + * */ public com.google.iam.v1.Policy.Builder getIamPolicyDataBuilder() { bitField0_ |= 0x00000004; @@ -1082,40 +1323,51 @@ public com.google.iam.v1.Policy.Builder getIamPolicyDataBuilder() { return getIamPolicyDataFieldBuilder().getBuilder(); } /** + * + * *
        * Optional. A representation of the IAM policy.
        * 
* - * .google.iam.v1.Policy iam_policy_data = 3 [(.google.api.field_behavior) = OPTIONAL]; + * .google.iam.v1.Policy iam_policy_data = 3 [(.google.api.field_behavior) = OPTIONAL]; + * */ public com.google.iam.v1.PolicyOrBuilder getIamPolicyDataOrBuilder() { if (iamPolicyDataBuilder_ != null) { return iamPolicyDataBuilder_.getMessageOrBuilder(); } else { - return iamPolicyData_ == null ? - com.google.iam.v1.Policy.getDefaultInstance() : iamPolicyData_; + return iamPolicyData_ == null + ? com.google.iam.v1.Policy.getDefaultInstance() + : iamPolicyData_; } } /** + * + * *
        * Optional. A representation of the IAM policy.
        * 
* - * .google.iam.v1.Policy iam_policy_data = 3 [(.google.api.field_behavior) = OPTIONAL]; + * .google.iam.v1.Policy iam_policy_data = 3 [(.google.api.field_behavior) = OPTIONAL]; + * */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.iam.v1.Policy, com.google.iam.v1.Policy.Builder, com.google.iam.v1.PolicyOrBuilder> + com.google.iam.v1.Policy, + com.google.iam.v1.Policy.Builder, + com.google.iam.v1.PolicyOrBuilder> getIamPolicyDataFieldBuilder() { if (iamPolicyDataBuilder_ == null) { - iamPolicyDataBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.iam.v1.Policy, com.google.iam.v1.Policy.Builder, com.google.iam.v1.PolicyOrBuilder>( - getIamPolicyData(), - getParentForChildren(), - isClean()); + iamPolicyDataBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.iam.v1.Policy, + com.google.iam.v1.Policy.Builder, + com.google.iam.v1.PolicyOrBuilder>( + getIamPolicyData(), getParentForChildren(), isClean()); iamPolicyData_ = null; } return iamPolicyDataBuilder_; } + @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { @@ -1128,41 +1380,48 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.securitycentermanagement.v1.SimulateSecurityHealthAnalyticsCustomModuleRequest.SimulatedResource) } // @@protoc_insertion_point(class_scope:google.cloud.securitycentermanagement.v1.SimulateSecurityHealthAnalyticsCustomModuleRequest.SimulatedResource) - private static final com.google.cloud.securitycentermanagement.v1.SimulateSecurityHealthAnalyticsCustomModuleRequest.SimulatedResource DEFAULT_INSTANCE; + private static final com.google.cloud.securitycentermanagement.v1 + .SimulateSecurityHealthAnalyticsCustomModuleRequest.SimulatedResource + DEFAULT_INSTANCE; + static { - DEFAULT_INSTANCE = new com.google.cloud.securitycentermanagement.v1.SimulateSecurityHealthAnalyticsCustomModuleRequest.SimulatedResource(); + DEFAULT_INSTANCE = + new com.google.cloud.securitycentermanagement.v1 + .SimulateSecurityHealthAnalyticsCustomModuleRequest.SimulatedResource(); } - public static com.google.cloud.securitycentermanagement.v1.SimulateSecurityHealthAnalyticsCustomModuleRequest.SimulatedResource getDefaultInstance() { + public static com.google.cloud.securitycentermanagement.v1 + .SimulateSecurityHealthAnalyticsCustomModuleRequest.SimulatedResource + getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public SimulatedResource parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public SimulatedResource parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException() + .setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1174,16 +1433,20 @@ public com.google.protobuf.Parser getParserForType() { } @java.lang.Override - public com.google.cloud.securitycentermanagement.v1.SimulateSecurityHealthAnalyticsCustomModuleRequest.SimulatedResource getDefaultInstanceForType() { + public com.google.cloud.securitycentermanagement.v1 + .SimulateSecurityHealthAnalyticsCustomModuleRequest.SimulatedResource + getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } public static final int PARENT_FIELD_NUMBER = 1; + @SuppressWarnings("serial") private volatile java.lang.Object parent_ = ""; /** + * + * *
    * Required. The relative resource name of the organization, project, or
    * folder. For more information about relative resource names, see [Relative
@@ -1193,6 +1456,7 @@ public com.google.cloud.securitycentermanagement.v1.SimulateSecurityHealthAnalyt
    * 
* * string parent = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @return The parent. */ @java.lang.Override @@ -1201,14 +1465,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 relative resource name of the organization, project, or
    * folder. For more information about relative resource names, see [Relative
@@ -1218,16 +1483,15 @@ public java.lang.String getParent() {
    * 
* * string parent = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @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 { @@ -1238,11 +1502,16 @@ public java.lang.String getParent() { public static final int CUSTOM_CONFIG_FIELD_NUMBER = 2; private com.google.cloud.securitycentermanagement.v1.CustomConfig customConfig_; /** + * + * *
    * Required. The custom configuration that you need to test.
    * 
* - * .google.cloud.securitycentermanagement.v1.CustomConfig custom_config = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.securitycentermanagement.v1.CustomConfig custom_config = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return Whether the customConfig field is set. */ @java.lang.Override @@ -1250,37 +1519,58 @@ public boolean hasCustomConfig() { return customConfig_ != null; } /** + * + * *
    * Required. The custom configuration that you need to test.
    * 
* - * .google.cloud.securitycentermanagement.v1.CustomConfig custom_config = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.securitycentermanagement.v1.CustomConfig custom_config = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return The customConfig. */ @java.lang.Override public com.google.cloud.securitycentermanagement.v1.CustomConfig getCustomConfig() { - return customConfig_ == null ? com.google.cloud.securitycentermanagement.v1.CustomConfig.getDefaultInstance() : customConfig_; + return customConfig_ == null + ? com.google.cloud.securitycentermanagement.v1.CustomConfig.getDefaultInstance() + : customConfig_; } /** + * + * *
    * Required. The custom configuration that you need to test.
    * 
* - * .google.cloud.securitycentermanagement.v1.CustomConfig custom_config = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.securitycentermanagement.v1.CustomConfig custom_config = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ @java.lang.Override - public com.google.cloud.securitycentermanagement.v1.CustomConfigOrBuilder getCustomConfigOrBuilder() { - return customConfig_ == null ? com.google.cloud.securitycentermanagement.v1.CustomConfig.getDefaultInstance() : customConfig_; + public com.google.cloud.securitycentermanagement.v1.CustomConfigOrBuilder + getCustomConfigOrBuilder() { + return customConfig_ == null + ? com.google.cloud.securitycentermanagement.v1.CustomConfig.getDefaultInstance() + : customConfig_; } public static final int RESOURCE_FIELD_NUMBER = 3; - private com.google.cloud.securitycentermanagement.v1.SimulateSecurityHealthAnalyticsCustomModuleRequest.SimulatedResource resource_; + private com.google.cloud.securitycentermanagement.v1 + .SimulateSecurityHealthAnalyticsCustomModuleRequest.SimulatedResource + resource_; /** + * + * *
    * Required. Resource data to simulate custom module against.
    * 
* - * .google.cloud.securitycentermanagement.v1.SimulateSecurityHealthAnalyticsCustomModuleRequest.SimulatedResource resource = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.securitycentermanagement.v1.SimulateSecurityHealthAnalyticsCustomModuleRequest.SimulatedResource resource = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return Whether the resource field is set. */ @java.lang.Override @@ -1288,30 +1578,52 @@ public boolean hasResource() { return resource_ != null; } /** + * + * *
    * Required. Resource data to simulate custom module against.
    * 
* - * .google.cloud.securitycentermanagement.v1.SimulateSecurityHealthAnalyticsCustomModuleRequest.SimulatedResource resource = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.securitycentermanagement.v1.SimulateSecurityHealthAnalyticsCustomModuleRequest.SimulatedResource resource = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return The resource. */ @java.lang.Override - public com.google.cloud.securitycentermanagement.v1.SimulateSecurityHealthAnalyticsCustomModuleRequest.SimulatedResource getResource() { - return resource_ == null ? com.google.cloud.securitycentermanagement.v1.SimulateSecurityHealthAnalyticsCustomModuleRequest.SimulatedResource.getDefaultInstance() : resource_; + public com.google.cloud.securitycentermanagement.v1 + .SimulateSecurityHealthAnalyticsCustomModuleRequest.SimulatedResource + getResource() { + return resource_ == null + ? com.google.cloud.securitycentermanagement.v1 + .SimulateSecurityHealthAnalyticsCustomModuleRequest.SimulatedResource + .getDefaultInstance() + : resource_; } /** + * + * *
    * Required. Resource data to simulate custom module against.
    * 
* - * .google.cloud.securitycentermanagement.v1.SimulateSecurityHealthAnalyticsCustomModuleRequest.SimulatedResource resource = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.securitycentermanagement.v1.SimulateSecurityHealthAnalyticsCustomModuleRequest.SimulatedResource resource = 3 [(.google.api.field_behavior) = REQUIRED]; + * */ @java.lang.Override - public com.google.cloud.securitycentermanagement.v1.SimulateSecurityHealthAnalyticsCustomModuleRequest.SimulatedResourceOrBuilder getResourceOrBuilder() { - return resource_ == null ? com.google.cloud.securitycentermanagement.v1.SimulateSecurityHealthAnalyticsCustomModuleRequest.SimulatedResource.getDefaultInstance() : resource_; + public com.google.cloud.securitycentermanagement.v1 + .SimulateSecurityHealthAnalyticsCustomModuleRequest.SimulatedResourceOrBuilder + getResourceOrBuilder() { + return resource_ == null + ? com.google.cloud.securitycentermanagement.v1 + .SimulateSecurityHealthAnalyticsCustomModuleRequest.SimulatedResource + .getDefaultInstance() + : resource_; } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -1323,8 +1635,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.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_); } @@ -1347,12 +1658,10 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, parent_); } if (customConfig_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(2, getCustomConfig()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getCustomConfig()); } if (resource_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(3, getResource()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, getResource()); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -1362,24 +1671,28 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } - if (!(obj instanceof com.google.cloud.securitycentermanagement.v1.SimulateSecurityHealthAnalyticsCustomModuleRequest)) { + if (!(obj + instanceof + com.google.cloud.securitycentermanagement.v1 + .SimulateSecurityHealthAnalyticsCustomModuleRequest)) { return super.equals(obj); } - com.google.cloud.securitycentermanagement.v1.SimulateSecurityHealthAnalyticsCustomModuleRequest other = (com.google.cloud.securitycentermanagement.v1.SimulateSecurityHealthAnalyticsCustomModuleRequest) obj; + com.google.cloud.securitycentermanagement.v1.SimulateSecurityHealthAnalyticsCustomModuleRequest + other = + (com.google.cloud.securitycentermanagement.v1 + .SimulateSecurityHealthAnalyticsCustomModuleRequest) + obj; - if (!getParent() - .equals(other.getParent())) return false; + if (!getParent().equals(other.getParent())) return false; if (hasCustomConfig() != other.hasCustomConfig()) return false; if (hasCustomConfig()) { - if (!getCustomConfig() - .equals(other.getCustomConfig())) return false; + if (!getCustomConfig().equals(other.getCustomConfig())) return false; } if (hasResource() != other.hasResource()) return false; if (hasResource()) { - if (!getResource() - .equals(other.getResource())) return false; + if (!getResource().equals(other.getResource())) return false; } if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; @@ -1407,133 +1720,163 @@ public int hashCode() { return hash; } - public static com.google.cloud.securitycentermanagement.v1.SimulateSecurityHealthAnalyticsCustomModuleRequest parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.securitycentermanagement.v1 + .SimulateSecurityHealthAnalyticsCustomModuleRequest + parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.securitycentermanagement.v1.SimulateSecurityHealthAnalyticsCustomModuleRequest parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.cloud.securitycentermanagement.v1 + .SimulateSecurityHealthAnalyticsCustomModuleRequest + 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.securitycentermanagement.v1.SimulateSecurityHealthAnalyticsCustomModuleRequest parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.cloud.securitycentermanagement.v1 + .SimulateSecurityHealthAnalyticsCustomModuleRequest + parseFrom(com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.securitycentermanagement.v1.SimulateSecurityHealthAnalyticsCustomModuleRequest parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.cloud.securitycentermanagement.v1 + .SimulateSecurityHealthAnalyticsCustomModuleRequest + parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.securitycentermanagement.v1.SimulateSecurityHealthAnalyticsCustomModuleRequest parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.cloud.securitycentermanagement.v1 + .SimulateSecurityHealthAnalyticsCustomModuleRequest + parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.securitycentermanagement.v1.SimulateSecurityHealthAnalyticsCustomModuleRequest parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.cloud.securitycentermanagement.v1 + .SimulateSecurityHealthAnalyticsCustomModuleRequest + parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.securitycentermanagement.v1.SimulateSecurityHealthAnalyticsCustomModuleRequest parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.securitycentermanagement.v1 + .SimulateSecurityHealthAnalyticsCustomModuleRequest + parseFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } - public static com.google.cloud.securitycentermanagement.v1.SimulateSecurityHealthAnalyticsCustomModuleRequest 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.securitycentermanagement.v1 + .SimulateSecurityHealthAnalyticsCustomModuleRequest + 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.securitycentermanagement.v1.SimulateSecurityHealthAnalyticsCustomModuleRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.securitycentermanagement.v1 + .SimulateSecurityHealthAnalyticsCustomModuleRequest + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.securitycentermanagement.v1.SimulateSecurityHealthAnalyticsCustomModuleRequest parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + public static com.google.cloud.securitycentermanagement.v1 + .SimulateSecurityHealthAnalyticsCustomModuleRequest + parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.securitycentermanagement.v1.SimulateSecurityHealthAnalyticsCustomModuleRequest parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.securitycentermanagement.v1 + .SimulateSecurityHealthAnalyticsCustomModuleRequest + parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } - public static com.google.cloud.securitycentermanagement.v1.SimulateSecurityHealthAnalyticsCustomModuleRequest 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.securitycentermanagement.v1 + .SimulateSecurityHealthAnalyticsCustomModuleRequest + 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.securitycentermanagement.v1.SimulateSecurityHealthAnalyticsCustomModuleRequest prototype) { + + public static Builder newBuilder( + com.google.cloud.securitycentermanagement.v1 + .SimulateSecurityHealthAnalyticsCustomModuleRequest + prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected 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 to simulate a CustomConfig against a given test resource.
    * Maximum size of the request is 4 MB by default.
    * 
* - * Protobuf type {@code google.cloud.securitycentermanagement.v1.SimulateSecurityHealthAnalyticsCustomModuleRequest} + * Protobuf type {@code + * google.cloud.securitycentermanagement.v1.SimulateSecurityHealthAnalyticsCustomModuleRequest} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.securitycentermanagement.v1.SimulateSecurityHealthAnalyticsCustomModuleRequest) - com.google.cloud.securitycentermanagement.v1.SimulateSecurityHealthAnalyticsCustomModuleRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.securitycentermanagement.v1.SecurityCenterManagementProto.internal_static_google_cloud_securitycentermanagement_v1_SimulateSecurityHealthAnalyticsCustomModuleRequest_descriptor; + com.google.cloud.securitycentermanagement.v1 + .SimulateSecurityHealthAnalyticsCustomModuleRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.securitycentermanagement.v1.SecurityCenterManagementProto + .internal_static_google_cloud_securitycentermanagement_v1_SimulateSecurityHealthAnalyticsCustomModuleRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.securitycentermanagement.v1.SecurityCenterManagementProto.internal_static_google_cloud_securitycentermanagement_v1_SimulateSecurityHealthAnalyticsCustomModuleRequest_fieldAccessorTable + return com.google.cloud.securitycentermanagement.v1.SecurityCenterManagementProto + .internal_static_google_cloud_securitycentermanagement_v1_SimulateSecurityHealthAnalyticsCustomModuleRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.securitycentermanagement.v1.SimulateSecurityHealthAnalyticsCustomModuleRequest.class, com.google.cloud.securitycentermanagement.v1.SimulateSecurityHealthAnalyticsCustomModuleRequest.Builder.class); + com.google.cloud.securitycentermanagement.v1 + .SimulateSecurityHealthAnalyticsCustomModuleRequest.class, + com.google.cloud.securitycentermanagement.v1 + .SimulateSecurityHealthAnalyticsCustomModuleRequest.Builder.class); } - // Construct using com.google.cloud.securitycentermanagement.v1.SimulateSecurityHealthAnalyticsCustomModuleRequest.newBuilder() - private Builder() { + // Construct using + // com.google.cloud.securitycentermanagement.v1.SimulateSecurityHealthAnalyticsCustomModuleRequest.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(); @@ -1553,19 +1896,26 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.securitycentermanagement.v1.SecurityCenterManagementProto.internal_static_google_cloud_securitycentermanagement_v1_SimulateSecurityHealthAnalyticsCustomModuleRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.securitycentermanagement.v1.SecurityCenterManagementProto + .internal_static_google_cloud_securitycentermanagement_v1_SimulateSecurityHealthAnalyticsCustomModuleRequest_descriptor; } @java.lang.Override - public com.google.cloud.securitycentermanagement.v1.SimulateSecurityHealthAnalyticsCustomModuleRequest getDefaultInstanceForType() { - return com.google.cloud.securitycentermanagement.v1.SimulateSecurityHealthAnalyticsCustomModuleRequest.getDefaultInstance(); + public com.google.cloud.securitycentermanagement.v1 + .SimulateSecurityHealthAnalyticsCustomModuleRequest + getDefaultInstanceForType() { + return com.google.cloud.securitycentermanagement.v1 + .SimulateSecurityHealthAnalyticsCustomModuleRequest.getDefaultInstance(); } @java.lang.Override - public com.google.cloud.securitycentermanagement.v1.SimulateSecurityHealthAnalyticsCustomModuleRequest build() { - com.google.cloud.securitycentermanagement.v1.SimulateSecurityHealthAnalyticsCustomModuleRequest result = buildPartial(); + public com.google.cloud.securitycentermanagement.v1 + .SimulateSecurityHealthAnalyticsCustomModuleRequest + build() { + com.google.cloud.securitycentermanagement.v1 + .SimulateSecurityHealthAnalyticsCustomModuleRequest + result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } @@ -1573,27 +1923,35 @@ public com.google.cloud.securitycentermanagement.v1.SimulateSecurityHealthAnalyt } @java.lang.Override - public com.google.cloud.securitycentermanagement.v1.SimulateSecurityHealthAnalyticsCustomModuleRequest buildPartial() { - com.google.cloud.securitycentermanagement.v1.SimulateSecurityHealthAnalyticsCustomModuleRequest result = new com.google.cloud.securitycentermanagement.v1.SimulateSecurityHealthAnalyticsCustomModuleRequest(this); - if (bitField0_ != 0) { buildPartial0(result); } + public com.google.cloud.securitycentermanagement.v1 + .SimulateSecurityHealthAnalyticsCustomModuleRequest + buildPartial() { + com.google.cloud.securitycentermanagement.v1 + .SimulateSecurityHealthAnalyticsCustomModuleRequest + result = + new com.google.cloud.securitycentermanagement.v1 + .SimulateSecurityHealthAnalyticsCustomModuleRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } - private void buildPartial0(com.google.cloud.securitycentermanagement.v1.SimulateSecurityHealthAnalyticsCustomModuleRequest result) { + private void buildPartial0( + com.google.cloud.securitycentermanagement.v1 + .SimulateSecurityHealthAnalyticsCustomModuleRequest + result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000001) != 0)) { result.parent_ = parent_; } if (((from_bitField0_ & 0x00000002) != 0)) { - result.customConfig_ = customConfigBuilder_ == null - ? customConfig_ - : customConfigBuilder_.build(); + result.customConfig_ = + customConfigBuilder_ == null ? customConfig_ : customConfigBuilder_.build(); } if (((from_bitField0_ & 0x00000004) != 0)) { - result.resource_ = resourceBuilder_ == null - ? resource_ - : resourceBuilder_.build(); + result.resource_ = resourceBuilder_ == null ? resource_ : resourceBuilder_.build(); } } @@ -1601,46 +1959,58 @@ private void buildPartial0(com.google.cloud.securitycentermanagement.v1.Simulate public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.cloud.securitycentermanagement.v1.SimulateSecurityHealthAnalyticsCustomModuleRequest) { - return mergeFrom((com.google.cloud.securitycentermanagement.v1.SimulateSecurityHealthAnalyticsCustomModuleRequest)other); + if (other + instanceof + com.google.cloud.securitycentermanagement.v1 + .SimulateSecurityHealthAnalyticsCustomModuleRequest) { + return mergeFrom( + (com.google.cloud.securitycentermanagement.v1 + .SimulateSecurityHealthAnalyticsCustomModuleRequest) + other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom(com.google.cloud.securitycentermanagement.v1.SimulateSecurityHealthAnalyticsCustomModuleRequest other) { - if (other == com.google.cloud.securitycentermanagement.v1.SimulateSecurityHealthAnalyticsCustomModuleRequest.getDefaultInstance()) return this; + public Builder mergeFrom( + com.google.cloud.securitycentermanagement.v1 + .SimulateSecurityHealthAnalyticsCustomModuleRequest + other) { + if (other + == com.google.cloud.securitycentermanagement.v1 + .SimulateSecurityHealthAnalyticsCustomModuleRequest.getDefaultInstance()) return this; if (!other.getParent().isEmpty()) { parent_ = other.parent_; bitField0_ |= 0x00000001; @@ -1678,31 +2048,31 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: { - parent_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 18: { - input.readMessage( - getCustomConfigFieldBuilder().getBuilder(), - extensionRegistry); - bitField0_ |= 0x00000002; - break; - } // case 18 - case 26: { - input.readMessage( - getResourceFieldBuilder().getBuilder(), - extensionRegistry); - 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(getCustomConfigFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 26: + { + input.readMessage(getResourceFieldBuilder().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) { @@ -1712,10 +2082,13 @@ public Builder mergeFrom( } // finally return this; } + private int bitField0_; private java.lang.Object parent_ = ""; /** + * + * *
      * Required. The relative resource name of the organization, project, or
      * folder. For more information about relative resource names, see [Relative
@@ -1725,13 +2098,13 @@ public Builder mergeFrom(
      * 
* * string parent = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @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; @@ -1740,6 +2113,8 @@ public java.lang.String getParent() { } } /** + * + * *
      * Required. The relative resource name of the organization, project, or
      * folder. For more information about relative resource names, see [Relative
@@ -1749,15 +2124,14 @@ public java.lang.String getParent() {
      * 
* * string parent = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @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 { @@ -1765,6 +2139,8 @@ public java.lang.String getParent() { } } /** + * + * *
      * Required. The relative resource name of the organization, project, or
      * folder. For more information about relative resource names, see [Relative
@@ -1774,18 +2150,22 @@ public java.lang.String getParent() {
      * 
* * string parent = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @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 relative resource name of the organization, project, or
      * folder. For more information about relative resource names, see [Relative
@@ -1795,6 +2175,7 @@ public Builder setParent(
      * 
* * string parent = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @return This builder for chaining. */ public Builder clearParent() { @@ -1804,6 +2185,8 @@ public Builder clearParent() { return this; } /** + * + * *
      * Required. The relative resource name of the organization, project, or
      * folder. For more information about relative resource names, see [Relative
@@ -1813,12 +2196,14 @@ public Builder clearParent() {
      * 
* * string parent = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @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; @@ -1828,41 +2213,61 @@ public Builder setParentBytes( private com.google.cloud.securitycentermanagement.v1.CustomConfig customConfig_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.securitycentermanagement.v1.CustomConfig, com.google.cloud.securitycentermanagement.v1.CustomConfig.Builder, com.google.cloud.securitycentermanagement.v1.CustomConfigOrBuilder> customConfigBuilder_; + com.google.cloud.securitycentermanagement.v1.CustomConfig, + com.google.cloud.securitycentermanagement.v1.CustomConfig.Builder, + com.google.cloud.securitycentermanagement.v1.CustomConfigOrBuilder> + customConfigBuilder_; /** + * + * *
      * Required. The custom configuration that you need to test.
      * 
* - * .google.cloud.securitycentermanagement.v1.CustomConfig custom_config = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.securitycentermanagement.v1.CustomConfig custom_config = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return Whether the customConfig field is set. */ public boolean hasCustomConfig() { return ((bitField0_ & 0x00000002) != 0); } /** + * + * *
      * Required. The custom configuration that you need to test.
      * 
* - * .google.cloud.securitycentermanagement.v1.CustomConfig custom_config = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.securitycentermanagement.v1.CustomConfig custom_config = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return The customConfig. */ public com.google.cloud.securitycentermanagement.v1.CustomConfig getCustomConfig() { if (customConfigBuilder_ == null) { - return customConfig_ == null ? com.google.cloud.securitycentermanagement.v1.CustomConfig.getDefaultInstance() : customConfig_; + return customConfig_ == null + ? com.google.cloud.securitycentermanagement.v1.CustomConfig.getDefaultInstance() + : customConfig_; } else { return customConfigBuilder_.getMessage(); } } /** + * + * *
      * Required. The custom configuration that you need to test.
      * 
* - * .google.cloud.securitycentermanagement.v1.CustomConfig custom_config = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.securitycentermanagement.v1.CustomConfig custom_config = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ - public Builder setCustomConfig(com.google.cloud.securitycentermanagement.v1.CustomConfig value) { + public Builder setCustomConfig( + com.google.cloud.securitycentermanagement.v1.CustomConfig value) { if (customConfigBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -1876,11 +2281,15 @@ public Builder setCustomConfig(com.google.cloud.securitycentermanagement.v1.Cust return this; } /** + * + * *
      * Required. The custom configuration that you need to test.
      * 
* - * .google.cloud.securitycentermanagement.v1.CustomConfig custom_config = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.securitycentermanagement.v1.CustomConfig custom_config = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder setCustomConfig( com.google.cloud.securitycentermanagement.v1.CustomConfig.Builder builderForValue) { @@ -1894,17 +2303,23 @@ public Builder setCustomConfig( return this; } /** + * + * *
      * Required. The custom configuration that you need to test.
      * 
* - * .google.cloud.securitycentermanagement.v1.CustomConfig custom_config = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.securitycentermanagement.v1.CustomConfig custom_config = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ - public Builder mergeCustomConfig(com.google.cloud.securitycentermanagement.v1.CustomConfig value) { + public Builder mergeCustomConfig( + com.google.cloud.securitycentermanagement.v1.CustomConfig value) { if (customConfigBuilder_ == null) { - if (((bitField0_ & 0x00000002) != 0) && - customConfig_ != null && - customConfig_ != com.google.cloud.securitycentermanagement.v1.CustomConfig.getDefaultInstance()) { + if (((bitField0_ & 0x00000002) != 0) + && customConfig_ != null + && customConfig_ + != com.google.cloud.securitycentermanagement.v1.CustomConfig.getDefaultInstance()) { getCustomConfigBuilder().mergeFrom(value); } else { customConfig_ = value; @@ -1917,11 +2332,15 @@ public Builder mergeCustomConfig(com.google.cloud.securitycentermanagement.v1.Cu return this; } /** + * + * *
      * Required. The custom configuration that you need to test.
      * 
* - * .google.cloud.securitycentermanagement.v1.CustomConfig custom_config = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.securitycentermanagement.v1.CustomConfig custom_config = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder clearCustomConfig() { bitField0_ = (bitField0_ & ~0x00000002); @@ -1934,90 +2353,139 @@ public Builder clearCustomConfig() { return this; } /** + * + * *
      * Required. The custom configuration that you need to test.
      * 
* - * .google.cloud.securitycentermanagement.v1.CustomConfig custom_config = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.securitycentermanagement.v1.CustomConfig custom_config = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ - public com.google.cloud.securitycentermanagement.v1.CustomConfig.Builder getCustomConfigBuilder() { + public com.google.cloud.securitycentermanagement.v1.CustomConfig.Builder + getCustomConfigBuilder() { bitField0_ |= 0x00000002; onChanged(); return getCustomConfigFieldBuilder().getBuilder(); } /** + * + * *
      * Required. The custom configuration that you need to test.
      * 
* - * .google.cloud.securitycentermanagement.v1.CustomConfig custom_config = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.securitycentermanagement.v1.CustomConfig custom_config = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ - public com.google.cloud.securitycentermanagement.v1.CustomConfigOrBuilder getCustomConfigOrBuilder() { + public com.google.cloud.securitycentermanagement.v1.CustomConfigOrBuilder + getCustomConfigOrBuilder() { if (customConfigBuilder_ != null) { return customConfigBuilder_.getMessageOrBuilder(); } else { - return customConfig_ == null ? - com.google.cloud.securitycentermanagement.v1.CustomConfig.getDefaultInstance() : customConfig_; + return customConfig_ == null + ? com.google.cloud.securitycentermanagement.v1.CustomConfig.getDefaultInstance() + : customConfig_; } } /** + * + * *
      * Required. The custom configuration that you need to test.
      * 
* - * .google.cloud.securitycentermanagement.v1.CustomConfig custom_config = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.securitycentermanagement.v1.CustomConfig custom_config = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.securitycentermanagement.v1.CustomConfig, com.google.cloud.securitycentermanagement.v1.CustomConfig.Builder, com.google.cloud.securitycentermanagement.v1.CustomConfigOrBuilder> + com.google.cloud.securitycentermanagement.v1.CustomConfig, + com.google.cloud.securitycentermanagement.v1.CustomConfig.Builder, + com.google.cloud.securitycentermanagement.v1.CustomConfigOrBuilder> getCustomConfigFieldBuilder() { if (customConfigBuilder_ == null) { - customConfigBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.securitycentermanagement.v1.CustomConfig, com.google.cloud.securitycentermanagement.v1.CustomConfig.Builder, com.google.cloud.securitycentermanagement.v1.CustomConfigOrBuilder>( - getCustomConfig(), - getParentForChildren(), - isClean()); + customConfigBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.securitycentermanagement.v1.CustomConfig, + com.google.cloud.securitycentermanagement.v1.CustomConfig.Builder, + com.google.cloud.securitycentermanagement.v1.CustomConfigOrBuilder>( + getCustomConfig(), getParentForChildren(), isClean()); customConfig_ = null; } return customConfigBuilder_; } - private com.google.cloud.securitycentermanagement.v1.SimulateSecurityHealthAnalyticsCustomModuleRequest.SimulatedResource resource_; + private com.google.cloud.securitycentermanagement.v1 + .SimulateSecurityHealthAnalyticsCustomModuleRequest.SimulatedResource + resource_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.securitycentermanagement.v1.SimulateSecurityHealthAnalyticsCustomModuleRequest.SimulatedResource, com.google.cloud.securitycentermanagement.v1.SimulateSecurityHealthAnalyticsCustomModuleRequest.SimulatedResource.Builder, com.google.cloud.securitycentermanagement.v1.SimulateSecurityHealthAnalyticsCustomModuleRequest.SimulatedResourceOrBuilder> resourceBuilder_; + com.google.cloud.securitycentermanagement.v1 + .SimulateSecurityHealthAnalyticsCustomModuleRequest.SimulatedResource, + com.google.cloud.securitycentermanagement.v1 + .SimulateSecurityHealthAnalyticsCustomModuleRequest.SimulatedResource.Builder, + com.google.cloud.securitycentermanagement.v1 + .SimulateSecurityHealthAnalyticsCustomModuleRequest.SimulatedResourceOrBuilder> + resourceBuilder_; /** + * + * *
      * Required. Resource data to simulate custom module against.
      * 
* - * .google.cloud.securitycentermanagement.v1.SimulateSecurityHealthAnalyticsCustomModuleRequest.SimulatedResource resource = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.securitycentermanagement.v1.SimulateSecurityHealthAnalyticsCustomModuleRequest.SimulatedResource resource = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return Whether the resource field is set. */ public boolean hasResource() { return ((bitField0_ & 0x00000004) != 0); } /** + * + * *
      * Required. Resource data to simulate custom module against.
      * 
* - * .google.cloud.securitycentermanagement.v1.SimulateSecurityHealthAnalyticsCustomModuleRequest.SimulatedResource resource = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.securitycentermanagement.v1.SimulateSecurityHealthAnalyticsCustomModuleRequest.SimulatedResource resource = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return The resource. */ - public com.google.cloud.securitycentermanagement.v1.SimulateSecurityHealthAnalyticsCustomModuleRequest.SimulatedResource getResource() { + public com.google.cloud.securitycentermanagement.v1 + .SimulateSecurityHealthAnalyticsCustomModuleRequest.SimulatedResource + getResource() { if (resourceBuilder_ == null) { - return resource_ == null ? com.google.cloud.securitycentermanagement.v1.SimulateSecurityHealthAnalyticsCustomModuleRequest.SimulatedResource.getDefaultInstance() : resource_; + return resource_ == null + ? com.google.cloud.securitycentermanagement.v1 + .SimulateSecurityHealthAnalyticsCustomModuleRequest.SimulatedResource + .getDefaultInstance() + : resource_; } else { return resourceBuilder_.getMessage(); } } /** + * + * *
      * Required. Resource data to simulate custom module against.
      * 
* - * .google.cloud.securitycentermanagement.v1.SimulateSecurityHealthAnalyticsCustomModuleRequest.SimulatedResource resource = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.securitycentermanagement.v1.SimulateSecurityHealthAnalyticsCustomModuleRequest.SimulatedResource resource = 3 [(.google.api.field_behavior) = REQUIRED]; + * */ - public Builder setResource(com.google.cloud.securitycentermanagement.v1.SimulateSecurityHealthAnalyticsCustomModuleRequest.SimulatedResource value) { + public Builder setResource( + com.google.cloud.securitycentermanagement.v1 + .SimulateSecurityHealthAnalyticsCustomModuleRequest.SimulatedResource + value) { if (resourceBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -2031,14 +2499,20 @@ public Builder setResource(com.google.cloud.securitycentermanagement.v1.Simulate return this; } /** + * + * *
      * Required. Resource data to simulate custom module against.
      * 
* - * .google.cloud.securitycentermanagement.v1.SimulateSecurityHealthAnalyticsCustomModuleRequest.SimulatedResource resource = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.securitycentermanagement.v1.SimulateSecurityHealthAnalyticsCustomModuleRequest.SimulatedResource resource = 3 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder setResource( - com.google.cloud.securitycentermanagement.v1.SimulateSecurityHealthAnalyticsCustomModuleRequest.SimulatedResource.Builder builderForValue) { + com.google.cloud.securitycentermanagement.v1 + .SimulateSecurityHealthAnalyticsCustomModuleRequest.SimulatedResource.Builder + builderForValue) { if (resourceBuilder_ == null) { resource_ = builderForValue.build(); } else { @@ -2049,17 +2523,27 @@ public Builder setResource( return this; } /** + * + * *
      * Required. Resource data to simulate custom module against.
      * 
* - * .google.cloud.securitycentermanagement.v1.SimulateSecurityHealthAnalyticsCustomModuleRequest.SimulatedResource resource = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.securitycentermanagement.v1.SimulateSecurityHealthAnalyticsCustomModuleRequest.SimulatedResource resource = 3 [(.google.api.field_behavior) = REQUIRED]; + * */ - public Builder mergeResource(com.google.cloud.securitycentermanagement.v1.SimulateSecurityHealthAnalyticsCustomModuleRequest.SimulatedResource value) { + public Builder mergeResource( + com.google.cloud.securitycentermanagement.v1 + .SimulateSecurityHealthAnalyticsCustomModuleRequest.SimulatedResource + value) { if (resourceBuilder_ == null) { - if (((bitField0_ & 0x00000004) != 0) && - resource_ != null && - resource_ != com.google.cloud.securitycentermanagement.v1.SimulateSecurityHealthAnalyticsCustomModuleRequest.SimulatedResource.getDefaultInstance()) { + if (((bitField0_ & 0x00000004) != 0) + && resource_ != null + && resource_ + != com.google.cloud.securitycentermanagement.v1 + .SimulateSecurityHealthAnalyticsCustomModuleRequest.SimulatedResource + .getDefaultInstance()) { getResourceBuilder().mergeFrom(value); } else { resource_ = value; @@ -2072,11 +2556,15 @@ public Builder mergeResource(com.google.cloud.securitycentermanagement.v1.Simula return this; } /** + * + * *
      * Required. Resource data to simulate custom module against.
      * 
* - * .google.cloud.securitycentermanagement.v1.SimulateSecurityHealthAnalyticsCustomModuleRequest.SimulatedResource resource = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.securitycentermanagement.v1.SimulateSecurityHealthAnalyticsCustomModuleRequest.SimulatedResource resource = 3 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder clearResource() { bitField0_ = (bitField0_ & ~0x00000004); @@ -2089,55 +2577,83 @@ public Builder clearResource() { return this; } /** + * + * *
      * Required. Resource data to simulate custom module against.
      * 
* - * .google.cloud.securitycentermanagement.v1.SimulateSecurityHealthAnalyticsCustomModuleRequest.SimulatedResource resource = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.securitycentermanagement.v1.SimulateSecurityHealthAnalyticsCustomModuleRequest.SimulatedResource resource = 3 [(.google.api.field_behavior) = REQUIRED]; + * */ - public com.google.cloud.securitycentermanagement.v1.SimulateSecurityHealthAnalyticsCustomModuleRequest.SimulatedResource.Builder getResourceBuilder() { + public com.google.cloud.securitycentermanagement.v1 + .SimulateSecurityHealthAnalyticsCustomModuleRequest.SimulatedResource.Builder + getResourceBuilder() { bitField0_ |= 0x00000004; onChanged(); return getResourceFieldBuilder().getBuilder(); } /** + * + * *
      * Required. Resource data to simulate custom module against.
      * 
* - * .google.cloud.securitycentermanagement.v1.SimulateSecurityHealthAnalyticsCustomModuleRequest.SimulatedResource resource = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.securitycentermanagement.v1.SimulateSecurityHealthAnalyticsCustomModuleRequest.SimulatedResource resource = 3 [(.google.api.field_behavior) = REQUIRED]; + * */ - public com.google.cloud.securitycentermanagement.v1.SimulateSecurityHealthAnalyticsCustomModuleRequest.SimulatedResourceOrBuilder getResourceOrBuilder() { + public com.google.cloud.securitycentermanagement.v1 + .SimulateSecurityHealthAnalyticsCustomModuleRequest.SimulatedResourceOrBuilder + getResourceOrBuilder() { if (resourceBuilder_ != null) { return resourceBuilder_.getMessageOrBuilder(); } else { - return resource_ == null ? - com.google.cloud.securitycentermanagement.v1.SimulateSecurityHealthAnalyticsCustomModuleRequest.SimulatedResource.getDefaultInstance() : resource_; + return resource_ == null + ? com.google.cloud.securitycentermanagement.v1 + .SimulateSecurityHealthAnalyticsCustomModuleRequest.SimulatedResource + .getDefaultInstance() + : resource_; } } /** + * + * *
      * Required. Resource data to simulate custom module against.
      * 
* - * .google.cloud.securitycentermanagement.v1.SimulateSecurityHealthAnalyticsCustomModuleRequest.SimulatedResource resource = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.securitycentermanagement.v1.SimulateSecurityHealthAnalyticsCustomModuleRequest.SimulatedResource resource = 3 [(.google.api.field_behavior) = REQUIRED]; + * */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.securitycentermanagement.v1.SimulateSecurityHealthAnalyticsCustomModuleRequest.SimulatedResource, com.google.cloud.securitycentermanagement.v1.SimulateSecurityHealthAnalyticsCustomModuleRequest.SimulatedResource.Builder, com.google.cloud.securitycentermanagement.v1.SimulateSecurityHealthAnalyticsCustomModuleRequest.SimulatedResourceOrBuilder> + com.google.cloud.securitycentermanagement.v1 + .SimulateSecurityHealthAnalyticsCustomModuleRequest.SimulatedResource, + com.google.cloud.securitycentermanagement.v1 + .SimulateSecurityHealthAnalyticsCustomModuleRequest.SimulatedResource.Builder, + com.google.cloud.securitycentermanagement.v1 + .SimulateSecurityHealthAnalyticsCustomModuleRequest.SimulatedResourceOrBuilder> getResourceFieldBuilder() { if (resourceBuilder_ == null) { - resourceBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.securitycentermanagement.v1.SimulateSecurityHealthAnalyticsCustomModuleRequest.SimulatedResource, com.google.cloud.securitycentermanagement.v1.SimulateSecurityHealthAnalyticsCustomModuleRequest.SimulatedResource.Builder, com.google.cloud.securitycentermanagement.v1.SimulateSecurityHealthAnalyticsCustomModuleRequest.SimulatedResourceOrBuilder>( - getResource(), - getParentForChildren(), - isClean()); + resourceBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.securitycentermanagement.v1 + .SimulateSecurityHealthAnalyticsCustomModuleRequest.SimulatedResource, + com.google.cloud.securitycentermanagement.v1 + .SimulateSecurityHealthAnalyticsCustomModuleRequest.SimulatedResource.Builder, + com.google.cloud.securitycentermanagement.v1 + .SimulateSecurityHealthAnalyticsCustomModuleRequest.SimulatedResourceOrBuilder>( + getResource(), getParentForChildren(), isClean()); resource_ = null; } return resourceBuilder_; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -2147,55 +2663,67 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.securitycentermanagement.v1.SimulateSecurityHealthAnalyticsCustomModuleRequest) } // @@protoc_insertion_point(class_scope:google.cloud.securitycentermanagement.v1.SimulateSecurityHealthAnalyticsCustomModuleRequest) - private static final com.google.cloud.securitycentermanagement.v1.SimulateSecurityHealthAnalyticsCustomModuleRequest DEFAULT_INSTANCE; + private static final com.google.cloud.securitycentermanagement.v1 + .SimulateSecurityHealthAnalyticsCustomModuleRequest + DEFAULT_INSTANCE; + static { - DEFAULT_INSTANCE = new com.google.cloud.securitycentermanagement.v1.SimulateSecurityHealthAnalyticsCustomModuleRequest(); + DEFAULT_INSTANCE = + new com.google.cloud.securitycentermanagement.v1 + .SimulateSecurityHealthAnalyticsCustomModuleRequest(); } - public static com.google.cloud.securitycentermanagement.v1.SimulateSecurityHealthAnalyticsCustomModuleRequest getDefaultInstance() { + public static com.google.cloud.securitycentermanagement.v1 + .SimulateSecurityHealthAnalyticsCustomModuleRequest + getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public SimulateSecurityHealthAnalyticsCustomModuleRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser< + SimulateSecurityHealthAnalyticsCustomModuleRequest> + PARSER = + new com.google.protobuf.AbstractParser< + SimulateSecurityHealthAnalyticsCustomModuleRequest>() { + @java.lang.Override + public SimulateSecurityHealthAnalyticsCustomModuleRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException() + .setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; - public static com.google.protobuf.Parser parser() { + public static com.google.protobuf.Parser + parser() { return PARSER; } @java.lang.Override - public com.google.protobuf.Parser getParserForType() { + public com.google.protobuf.Parser + getParserForType() { return PARSER; } @java.lang.Override - public com.google.cloud.securitycentermanagement.v1.SimulateSecurityHealthAnalyticsCustomModuleRequest getDefaultInstanceForType() { + public com.google.cloud.securitycentermanagement.v1 + .SimulateSecurityHealthAnalyticsCustomModuleRequest + getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/java-securitycentermanagement/v1/proto-google-cloud-securitycentermanagement-v1/src/main/java/com/google/cloud/securitycentermanagement/v1/SimulateSecurityHealthAnalyticsCustomModuleRequestOrBuilder.java b/java-securitycentermanagement/proto-google-cloud-securitycentermanagement-v1/src/main/java/com/google/cloud/securitycentermanagement/v1/SimulateSecurityHealthAnalyticsCustomModuleRequestOrBuilder.java similarity index 55% rename from owl-bot-staging/java-securitycentermanagement/v1/proto-google-cloud-securitycentermanagement-v1/src/main/java/com/google/cloud/securitycentermanagement/v1/SimulateSecurityHealthAnalyticsCustomModuleRequestOrBuilder.java rename to java-securitycentermanagement/proto-google-cloud-securitycentermanagement-v1/src/main/java/com/google/cloud/securitycentermanagement/v1/SimulateSecurityHealthAnalyticsCustomModuleRequestOrBuilder.java index 0cb5fc524dca..1bb45790775b 100644 --- a/owl-bot-staging/java-securitycentermanagement/v1/proto-google-cloud-securitycentermanagement-v1/src/main/java/com/google/cloud/securitycentermanagement/v1/SimulateSecurityHealthAnalyticsCustomModuleRequestOrBuilder.java +++ b/java-securitycentermanagement/proto-google-cloud-securitycentermanagement-v1/src/main/java/com/google/cloud/securitycentermanagement/v1/SimulateSecurityHealthAnalyticsCustomModuleRequestOrBuilder.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/securitycentermanagement/v1/security_center_management.proto package com.google.cloud.securitycentermanagement.v1; -public interface SimulateSecurityHealthAnalyticsCustomModuleRequestOrBuilder extends +public interface SimulateSecurityHealthAnalyticsCustomModuleRequestOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.securitycentermanagement.v1.SimulateSecurityHealthAnalyticsCustomModuleRequest) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * Required. The relative resource name of the organization, project, or
    * folder. For more information about relative resource names, see [Relative
@@ -17,10 +35,13 @@ public interface SimulateSecurityHealthAnalyticsCustomModuleRequestOrBuilder ext
    * 
* * string parent = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @return The parent. */ java.lang.String getParent(); /** + * + * *
    * Required. The relative resource name of the organization, project, or
    * folder. For more information about relative resource names, see [Relative
@@ -30,62 +51,94 @@ public interface SimulateSecurityHealthAnalyticsCustomModuleRequestOrBuilder ext
    * 
* * string parent = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @return The bytes for parent. */ - com.google.protobuf.ByteString - getParentBytes(); + com.google.protobuf.ByteString getParentBytes(); /** + * + * *
    * Required. The custom configuration that you need to test.
    * 
* - * .google.cloud.securitycentermanagement.v1.CustomConfig custom_config = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.securitycentermanagement.v1.CustomConfig custom_config = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return Whether the customConfig field is set. */ boolean hasCustomConfig(); /** + * + * *
    * Required. The custom configuration that you need to test.
    * 
* - * .google.cloud.securitycentermanagement.v1.CustomConfig custom_config = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.securitycentermanagement.v1.CustomConfig custom_config = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return The customConfig. */ com.google.cloud.securitycentermanagement.v1.CustomConfig getCustomConfig(); /** + * + * *
    * Required. The custom configuration that you need to test.
    * 
* - * .google.cloud.securitycentermanagement.v1.CustomConfig custom_config = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.securitycentermanagement.v1.CustomConfig custom_config = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ com.google.cloud.securitycentermanagement.v1.CustomConfigOrBuilder getCustomConfigOrBuilder(); /** + * + * *
    * Required. Resource data to simulate custom module against.
    * 
* - * .google.cloud.securitycentermanagement.v1.SimulateSecurityHealthAnalyticsCustomModuleRequest.SimulatedResource resource = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.securitycentermanagement.v1.SimulateSecurityHealthAnalyticsCustomModuleRequest.SimulatedResource resource = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return Whether the resource field is set. */ boolean hasResource(); /** + * + * *
    * Required. Resource data to simulate custom module against.
    * 
* - * .google.cloud.securitycentermanagement.v1.SimulateSecurityHealthAnalyticsCustomModuleRequest.SimulatedResource resource = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.securitycentermanagement.v1.SimulateSecurityHealthAnalyticsCustomModuleRequest.SimulatedResource resource = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return The resource. */ - com.google.cloud.securitycentermanagement.v1.SimulateSecurityHealthAnalyticsCustomModuleRequest.SimulatedResource getResource(); + com.google.cloud.securitycentermanagement.v1.SimulateSecurityHealthAnalyticsCustomModuleRequest + .SimulatedResource + getResource(); /** + * + * *
    * Required. Resource data to simulate custom module against.
    * 
* - * .google.cloud.securitycentermanagement.v1.SimulateSecurityHealthAnalyticsCustomModuleRequest.SimulatedResource resource = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.securitycentermanagement.v1.SimulateSecurityHealthAnalyticsCustomModuleRequest.SimulatedResource resource = 3 [(.google.api.field_behavior) = REQUIRED]; + * */ - com.google.cloud.securitycentermanagement.v1.SimulateSecurityHealthAnalyticsCustomModuleRequest.SimulatedResourceOrBuilder getResourceOrBuilder(); + com.google.cloud.securitycentermanagement.v1.SimulateSecurityHealthAnalyticsCustomModuleRequest + .SimulatedResourceOrBuilder + getResourceOrBuilder(); } diff --git a/owl-bot-staging/java-securitycentermanagement/v1/proto-google-cloud-securitycentermanagement-v1/src/main/java/com/google/cloud/securitycentermanagement/v1/SimulateSecurityHealthAnalyticsCustomModuleResponse.java b/java-securitycentermanagement/proto-google-cloud-securitycentermanagement-v1/src/main/java/com/google/cloud/securitycentermanagement/v1/SimulateSecurityHealthAnalyticsCustomModuleResponse.java similarity index 53% rename from owl-bot-staging/java-securitycentermanagement/v1/proto-google-cloud-securitycentermanagement-v1/src/main/java/com/google/cloud/securitycentermanagement/v1/SimulateSecurityHealthAnalyticsCustomModuleResponse.java rename to java-securitycentermanagement/proto-google-cloud-securitycentermanagement-v1/src/main/java/com/google/cloud/securitycentermanagement/v1/SimulateSecurityHealthAnalyticsCustomModuleResponse.java index 574508be81aa..c4ab8ff32d5c 100644 --- a/owl-bot-staging/java-securitycentermanagement/v1/proto-google-cloud-securitycentermanagement-v1/src/main/java/com/google/cloud/securitycentermanagement/v1/SimulateSecurityHealthAnalyticsCustomModuleResponse.java +++ b/java-securitycentermanagement/proto-google-cloud-securitycentermanagement-v1/src/main/java/com/google/cloud/securitycentermanagement/v1/SimulateSecurityHealthAnalyticsCustomModuleResponse.java @@ -1,73 +1,105 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/securitycentermanagement/v1/security_center_management.proto package com.google.cloud.securitycentermanagement.v1; /** + * + * *
  * Response message for simulating a `SecurityHealthAnalyticsCustomModule`
  * against a given resource.
  * 
* - * Protobuf type {@code google.cloud.securitycentermanagement.v1.SimulateSecurityHealthAnalyticsCustomModuleResponse} + * Protobuf type {@code + * google.cloud.securitycentermanagement.v1.SimulateSecurityHealthAnalyticsCustomModuleResponse} */ -public final class SimulateSecurityHealthAnalyticsCustomModuleResponse extends - com.google.protobuf.GeneratedMessageV3 implements +public final class SimulateSecurityHealthAnalyticsCustomModuleResponse + extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.securitycentermanagement.v1.SimulateSecurityHealthAnalyticsCustomModuleResponse) SimulateSecurityHealthAnalyticsCustomModuleResponseOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use SimulateSecurityHealthAnalyticsCustomModuleResponse.newBuilder() to construct. - private SimulateSecurityHealthAnalyticsCustomModuleResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { + private SimulateSecurityHealthAnalyticsCustomModuleResponse( + com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private SimulateSecurityHealthAnalyticsCustomModuleResponse() { - } + + private SimulateSecurityHealthAnalyticsCustomModuleResponse() {} @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new SimulateSecurityHealthAnalyticsCustomModuleResponse(); } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.securitycentermanagement.v1.SecurityCenterManagementProto.internal_static_google_cloud_securitycentermanagement_v1_SimulateSecurityHealthAnalyticsCustomModuleResponse_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.securitycentermanagement.v1.SecurityCenterManagementProto + .internal_static_google_cloud_securitycentermanagement_v1_SimulateSecurityHealthAnalyticsCustomModuleResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.securitycentermanagement.v1.SecurityCenterManagementProto.internal_static_google_cloud_securitycentermanagement_v1_SimulateSecurityHealthAnalyticsCustomModuleResponse_fieldAccessorTable + return com.google.cloud.securitycentermanagement.v1.SecurityCenterManagementProto + .internal_static_google_cloud_securitycentermanagement_v1_SimulateSecurityHealthAnalyticsCustomModuleResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.securitycentermanagement.v1.SimulateSecurityHealthAnalyticsCustomModuleResponse.class, com.google.cloud.securitycentermanagement.v1.SimulateSecurityHealthAnalyticsCustomModuleResponse.Builder.class); + com.google.cloud.securitycentermanagement.v1 + .SimulateSecurityHealthAnalyticsCustomModuleResponse.class, + com.google.cloud.securitycentermanagement.v1 + .SimulateSecurityHealthAnalyticsCustomModuleResponse.Builder.class); } - public interface SimulatedResultOrBuilder extends + public interface SimulatedResultOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.securitycentermanagement.v1.SimulateSecurityHealthAnalyticsCustomModuleResponse.SimulatedResult) com.google.protobuf.MessageOrBuilder { /** + * + * *
      * Finding that would be published for the test case,
      * if a violation is detected.
      * 
* * .google.cloud.securitycentermanagement.v1.SimulatedFinding finding = 1; + * * @return Whether the finding field is set. */ boolean hasFinding(); /** + * + * *
      * Finding that would be published for the test case,
      * if a violation is detected.
      * 
* * .google.cloud.securitycentermanagement.v1.SimulatedFinding finding = 1; + * * @return The finding. */ com.google.cloud.securitycentermanagement.v1.SimulatedFinding getFinding(); /** + * + * *
      * Finding that would be published for the test case,
      * if a violation is detected.
@@ -78,24 +110,32 @@ public interface SimulatedResultOrBuilder extends
     com.google.cloud.securitycentermanagement.v1.SimulatedFindingOrBuilder getFindingOrBuilder();
 
     /**
+     *
+     *
      * 
      * Indicates that the test case does not trigger any violation.
      * 
* * .google.protobuf.Empty no_violation = 2; + * * @return Whether the noViolation field is set. */ boolean hasNoViolation(); /** + * + * *
      * Indicates that the test case does not trigger any violation.
      * 
* * .google.protobuf.Empty no_violation = 2; + * * @return The noViolation. */ com.google.protobuf.Empty getNoViolation(); /** + * + * *
      * Indicates that the test case does not trigger any violation.
      * 
@@ -105,24 +145,32 @@ public interface SimulatedResultOrBuilder extends com.google.protobuf.EmptyOrBuilder getNoViolationOrBuilder(); /** + * + * *
      * Error encountered during the test.
      * 
* * .google.rpc.Status error = 3; + * * @return Whether the error field is set. */ boolean hasError(); /** + * + * *
      * Error encountered during the test.
      * 
* * .google.rpc.Status error = 3; + * * @return The error. */ com.google.rpc.Status getError(); /** + * + * *
      * Error encountered during the test.
      * 
@@ -131,58 +179,71 @@ public interface SimulatedResultOrBuilder extends */ com.google.rpc.StatusOrBuilder getErrorOrBuilder(); - com.google.cloud.securitycentermanagement.v1.SimulateSecurityHealthAnalyticsCustomModuleResponse.SimulatedResult.ResultCase getResultCase(); + com.google.cloud.securitycentermanagement.v1.SimulateSecurityHealthAnalyticsCustomModuleResponse + .SimulatedResult.ResultCase + getResultCase(); } /** + * + * *
    * Possible test result.
    * 
* - * Protobuf type {@code google.cloud.securitycentermanagement.v1.SimulateSecurityHealthAnalyticsCustomModuleResponse.SimulatedResult} + * Protobuf type {@code + * google.cloud.securitycentermanagement.v1.SimulateSecurityHealthAnalyticsCustomModuleResponse.SimulatedResult} */ - public static final class SimulatedResult extends - com.google.protobuf.GeneratedMessageV3 implements + public static final class SimulatedResult extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.securitycentermanagement.v1.SimulateSecurityHealthAnalyticsCustomModuleResponse.SimulatedResult) SimulatedResultOrBuilder { - private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use SimulatedResult.newBuilder() to construct. private SimulatedResult(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private SimulatedResult() { - } + + private SimulatedResult() {} @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new SimulatedResult(); } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.securitycentermanagement.v1.SecurityCenterManagementProto.internal_static_google_cloud_securitycentermanagement_v1_SimulateSecurityHealthAnalyticsCustomModuleResponse_SimulatedResult_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.securitycentermanagement.v1.SecurityCenterManagementProto + .internal_static_google_cloud_securitycentermanagement_v1_SimulateSecurityHealthAnalyticsCustomModuleResponse_SimulatedResult_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.securitycentermanagement.v1.SecurityCenterManagementProto.internal_static_google_cloud_securitycentermanagement_v1_SimulateSecurityHealthAnalyticsCustomModuleResponse_SimulatedResult_fieldAccessorTable + return com.google.cloud.securitycentermanagement.v1.SecurityCenterManagementProto + .internal_static_google_cloud_securitycentermanagement_v1_SimulateSecurityHealthAnalyticsCustomModuleResponse_SimulatedResult_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.securitycentermanagement.v1.SimulateSecurityHealthAnalyticsCustomModuleResponse.SimulatedResult.class, com.google.cloud.securitycentermanagement.v1.SimulateSecurityHealthAnalyticsCustomModuleResponse.SimulatedResult.Builder.class); + com.google.cloud.securitycentermanagement.v1 + .SimulateSecurityHealthAnalyticsCustomModuleResponse.SimulatedResult.class, + com.google.cloud.securitycentermanagement.v1 + .SimulateSecurityHealthAnalyticsCustomModuleResponse.SimulatedResult.Builder + .class); } private int resultCase_ = 0; + @SuppressWarnings("serial") private java.lang.Object result_; + public enum ResultCase - implements com.google.protobuf.Internal.EnumLite, + implements + com.google.protobuf.Internal.EnumLite, com.google.protobuf.AbstractMessage.InternalOneOfEnum { FINDING(1), NO_VIOLATION(2), ERROR(3), RESULT_NOT_SET(0); private final int value; + private ResultCase(int value) { this.value = value; } @@ -198,32 +259,39 @@ public static ResultCase valueOf(int value) { public static ResultCase forNumber(int value) { switch (value) { - case 1: return FINDING; - case 2: return NO_VIOLATION; - case 3: return ERROR; - case 0: return RESULT_NOT_SET; - default: return null; + case 1: + return FINDING; + case 2: + return NO_VIOLATION; + case 3: + return ERROR; + case 0: + return RESULT_NOT_SET; + default: + return null; } } + public int getNumber() { return this.value; } }; - public ResultCase - getResultCase() { - return ResultCase.forNumber( - resultCase_); + public ResultCase getResultCase() { + return ResultCase.forNumber(resultCase_); } public static final int FINDING_FIELD_NUMBER = 1; /** + * + * *
      * Finding that would be published for the test case,
      * if a violation is detected.
      * 
* * .google.cloud.securitycentermanagement.v1.SimulatedFinding finding = 1; + * * @return Whether the finding field is set. */ @java.lang.Override @@ -231,22 +299,27 @@ public boolean hasFinding() { return resultCase_ == 1; } /** + * + * *
      * Finding that would be published for the test case,
      * if a violation is detected.
      * 
* * .google.cloud.securitycentermanagement.v1.SimulatedFinding finding = 1; + * * @return The finding. */ @java.lang.Override public com.google.cloud.securitycentermanagement.v1.SimulatedFinding getFinding() { if (resultCase_ == 1) { - return (com.google.cloud.securitycentermanagement.v1.SimulatedFinding) result_; + return (com.google.cloud.securitycentermanagement.v1.SimulatedFinding) result_; } return com.google.cloud.securitycentermanagement.v1.SimulatedFinding.getDefaultInstance(); } /** + * + * *
      * Finding that would be published for the test case,
      * if a violation is detected.
@@ -255,20 +328,24 @@ public com.google.cloud.securitycentermanagement.v1.SimulatedFinding getFinding(
      * .google.cloud.securitycentermanagement.v1.SimulatedFinding finding = 1;
      */
     @java.lang.Override
-    public com.google.cloud.securitycentermanagement.v1.SimulatedFindingOrBuilder getFindingOrBuilder() {
+    public com.google.cloud.securitycentermanagement.v1.SimulatedFindingOrBuilder
+        getFindingOrBuilder() {
       if (resultCase_ == 1) {
-         return (com.google.cloud.securitycentermanagement.v1.SimulatedFinding) result_;
+        return (com.google.cloud.securitycentermanagement.v1.SimulatedFinding) result_;
       }
       return com.google.cloud.securitycentermanagement.v1.SimulatedFinding.getDefaultInstance();
     }
 
     public static final int NO_VIOLATION_FIELD_NUMBER = 2;
     /**
+     *
+     *
      * 
      * Indicates that the test case does not trigger any violation.
      * 
* * .google.protobuf.Empty no_violation = 2; + * * @return Whether the noViolation field is set. */ @java.lang.Override @@ -276,21 +353,26 @@ public boolean hasNoViolation() { return resultCase_ == 2; } /** + * + * *
      * Indicates that the test case does not trigger any violation.
      * 
* * .google.protobuf.Empty no_violation = 2; + * * @return The noViolation. */ @java.lang.Override public com.google.protobuf.Empty getNoViolation() { if (resultCase_ == 2) { - return (com.google.protobuf.Empty) result_; + return (com.google.protobuf.Empty) result_; } return com.google.protobuf.Empty.getDefaultInstance(); } /** + * + * *
      * Indicates that the test case does not trigger any violation.
      * 
@@ -300,18 +382,21 @@ public com.google.protobuf.Empty getNoViolation() { @java.lang.Override public com.google.protobuf.EmptyOrBuilder getNoViolationOrBuilder() { if (resultCase_ == 2) { - return (com.google.protobuf.Empty) result_; + return (com.google.protobuf.Empty) result_; } return com.google.protobuf.Empty.getDefaultInstance(); } public static final int ERROR_FIELD_NUMBER = 3; /** + * + * *
      * Error encountered during the test.
      * 
* * .google.rpc.Status error = 3; + * * @return Whether the error field is set. */ @java.lang.Override @@ -319,21 +404,26 @@ public boolean hasError() { return resultCase_ == 3; } /** + * + * *
      * Error encountered during the test.
      * 
* * .google.rpc.Status error = 3; + * * @return The error. */ @java.lang.Override public com.google.rpc.Status getError() { if (resultCase_ == 3) { - return (com.google.rpc.Status) result_; + return (com.google.rpc.Status) result_; } return com.google.rpc.Status.getDefaultInstance(); } /** + * + * *
      * Error encountered during the test.
      * 
@@ -343,12 +433,13 @@ public com.google.rpc.Status getError() { @java.lang.Override public com.google.rpc.StatusOrBuilder getErrorOrBuilder() { if (resultCase_ == 3) { - return (com.google.rpc.Status) result_; + return (com.google.rpc.Status) result_; } return com.google.rpc.Status.getDefaultInstance(); } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -360,10 +451,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 (resultCase_ == 1) { - output.writeMessage(1, (com.google.cloud.securitycentermanagement.v1.SimulatedFinding) result_); + output.writeMessage( + 1, (com.google.cloud.securitycentermanagement.v1.SimulatedFinding) result_); } if (resultCase_ == 2) { output.writeMessage(2, (com.google.protobuf.Empty) result_); @@ -381,16 +472,19 @@ public int getSerializedSize() { size = 0; if (resultCase_ == 1) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, (com.google.cloud.securitycentermanagement.v1.SimulatedFinding) result_); + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 1, (com.google.cloud.securitycentermanagement.v1.SimulatedFinding) result_); } if (resultCase_ == 2) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(2, (com.google.protobuf.Empty) result_); + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 2, (com.google.protobuf.Empty) result_); } if (resultCase_ == 3) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(3, (com.google.rpc.Status) result_); + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 3, (com.google.rpc.Status) result_); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -400,26 +494,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.securitycentermanagement.v1.SimulateSecurityHealthAnalyticsCustomModuleResponse.SimulatedResult)) { + if (!(obj + instanceof + com.google.cloud.securitycentermanagement.v1 + .SimulateSecurityHealthAnalyticsCustomModuleResponse.SimulatedResult)) { return super.equals(obj); } - com.google.cloud.securitycentermanagement.v1.SimulateSecurityHealthAnalyticsCustomModuleResponse.SimulatedResult other = (com.google.cloud.securitycentermanagement.v1.SimulateSecurityHealthAnalyticsCustomModuleResponse.SimulatedResult) obj; + com.google.cloud.securitycentermanagement.v1 + .SimulateSecurityHealthAnalyticsCustomModuleResponse.SimulatedResult + other = + (com.google.cloud.securitycentermanagement.v1 + .SimulateSecurityHealthAnalyticsCustomModuleResponse.SimulatedResult) + obj; if (!getResultCase().equals(other.getResultCase())) return false; switch (resultCase_) { case 1: - if (!getFinding() - .equals(other.getFinding())) return false; + if (!getFinding().equals(other.getFinding())) return false; break; case 2: - if (!getNoViolation() - .equals(other.getNoViolation())) return false; + if (!getNoViolation().equals(other.getNoViolation())) return false; break; case 3: - if (!getError() - .equals(other.getError())) return false; + if (!getError().equals(other.getError())) return false; break; case 0: default: @@ -456,90 +555,115 @@ public int hashCode() { return hash; } - public static com.google.cloud.securitycentermanagement.v1.SimulateSecurityHealthAnalyticsCustomModuleResponse.SimulatedResult parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.securitycentermanagement.v1 + .SimulateSecurityHealthAnalyticsCustomModuleResponse.SimulatedResult + parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.securitycentermanagement.v1.SimulateSecurityHealthAnalyticsCustomModuleResponse.SimulatedResult parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.cloud.securitycentermanagement.v1 + .SimulateSecurityHealthAnalyticsCustomModuleResponse.SimulatedResult + 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.securitycentermanagement.v1.SimulateSecurityHealthAnalyticsCustomModuleResponse.SimulatedResult parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.cloud.securitycentermanagement.v1 + .SimulateSecurityHealthAnalyticsCustomModuleResponse.SimulatedResult + parseFrom(com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.securitycentermanagement.v1.SimulateSecurityHealthAnalyticsCustomModuleResponse.SimulatedResult parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.cloud.securitycentermanagement.v1 + .SimulateSecurityHealthAnalyticsCustomModuleResponse.SimulatedResult + parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.securitycentermanagement.v1.SimulateSecurityHealthAnalyticsCustomModuleResponse.SimulatedResult parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.cloud.securitycentermanagement.v1 + .SimulateSecurityHealthAnalyticsCustomModuleResponse.SimulatedResult + parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.securitycentermanagement.v1.SimulateSecurityHealthAnalyticsCustomModuleResponse.SimulatedResult parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.cloud.securitycentermanagement.v1 + .SimulateSecurityHealthAnalyticsCustomModuleResponse.SimulatedResult + parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.securitycentermanagement.v1.SimulateSecurityHealthAnalyticsCustomModuleResponse.SimulatedResult parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.securitycentermanagement.v1 + .SimulateSecurityHealthAnalyticsCustomModuleResponse.SimulatedResult + parseFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } - public static com.google.cloud.securitycentermanagement.v1.SimulateSecurityHealthAnalyticsCustomModuleResponse.SimulatedResult 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.securitycentermanagement.v1 + .SimulateSecurityHealthAnalyticsCustomModuleResponse.SimulatedResult + 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.securitycentermanagement.v1.SimulateSecurityHealthAnalyticsCustomModuleResponse.SimulatedResult parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.securitycentermanagement.v1 + .SimulateSecurityHealthAnalyticsCustomModuleResponse.SimulatedResult + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.securitycentermanagement.v1.SimulateSecurityHealthAnalyticsCustomModuleResponse.SimulatedResult parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + public static com.google.cloud.securitycentermanagement.v1 + .SimulateSecurityHealthAnalyticsCustomModuleResponse.SimulatedResult + parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.securitycentermanagement.v1.SimulateSecurityHealthAnalyticsCustomModuleResponse.SimulatedResult parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.securitycentermanagement.v1 + .SimulateSecurityHealthAnalyticsCustomModuleResponse.SimulatedResult + parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } - public static com.google.cloud.securitycentermanagement.v1.SimulateSecurityHealthAnalyticsCustomModuleResponse.SimulatedResult 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.securitycentermanagement.v1 + .SimulateSecurityHealthAnalyticsCustomModuleResponse.SimulatedResult + 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.securitycentermanagement.v1.SimulateSecurityHealthAnalyticsCustomModuleResponse.SimulatedResult prototype) { + + public static Builder newBuilder( + com.google.cloud.securitycentermanagement.v1 + .SimulateSecurityHealthAnalyticsCustomModuleResponse.SimulatedResult + prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override @@ -549,39 +673,47 @@ protected Builder newBuilderForType( return builder; } /** + * + * *
      * Possible test result.
      * 
* - * Protobuf type {@code google.cloud.securitycentermanagement.v1.SimulateSecurityHealthAnalyticsCustomModuleResponse.SimulatedResult} + * Protobuf type {@code + * google.cloud.securitycentermanagement.v1.SimulateSecurityHealthAnalyticsCustomModuleResponse.SimulatedResult} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder + extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.securitycentermanagement.v1.SimulateSecurityHealthAnalyticsCustomModuleResponse.SimulatedResult) - com.google.cloud.securitycentermanagement.v1.SimulateSecurityHealthAnalyticsCustomModuleResponse.SimulatedResultOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.securitycentermanagement.v1.SecurityCenterManagementProto.internal_static_google_cloud_securitycentermanagement_v1_SimulateSecurityHealthAnalyticsCustomModuleResponse_SimulatedResult_descriptor; + com.google.cloud.securitycentermanagement.v1 + .SimulateSecurityHealthAnalyticsCustomModuleResponse.SimulatedResultOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.securitycentermanagement.v1.SecurityCenterManagementProto + .internal_static_google_cloud_securitycentermanagement_v1_SimulateSecurityHealthAnalyticsCustomModuleResponse_SimulatedResult_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.securitycentermanagement.v1.SecurityCenterManagementProto.internal_static_google_cloud_securitycentermanagement_v1_SimulateSecurityHealthAnalyticsCustomModuleResponse_SimulatedResult_fieldAccessorTable + return com.google.cloud.securitycentermanagement.v1.SecurityCenterManagementProto + .internal_static_google_cloud_securitycentermanagement_v1_SimulateSecurityHealthAnalyticsCustomModuleResponse_SimulatedResult_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.securitycentermanagement.v1.SimulateSecurityHealthAnalyticsCustomModuleResponse.SimulatedResult.class, com.google.cloud.securitycentermanagement.v1.SimulateSecurityHealthAnalyticsCustomModuleResponse.SimulatedResult.Builder.class); + com.google.cloud.securitycentermanagement.v1 + .SimulateSecurityHealthAnalyticsCustomModuleResponse.SimulatedResult.class, + com.google.cloud.securitycentermanagement.v1 + .SimulateSecurityHealthAnalyticsCustomModuleResponse.SimulatedResult.Builder + .class); } - // Construct using com.google.cloud.securitycentermanagement.v1.SimulateSecurityHealthAnalyticsCustomModuleResponse.SimulatedResult.newBuilder() - private Builder() { + // Construct using + // com.google.cloud.securitycentermanagement.v1.SimulateSecurityHealthAnalyticsCustomModuleResponse.SimulatedResult.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(); @@ -601,19 +733,27 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.securitycentermanagement.v1.SecurityCenterManagementProto.internal_static_google_cloud_securitycentermanagement_v1_SimulateSecurityHealthAnalyticsCustomModuleResponse_SimulatedResult_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.securitycentermanagement.v1.SecurityCenterManagementProto + .internal_static_google_cloud_securitycentermanagement_v1_SimulateSecurityHealthAnalyticsCustomModuleResponse_SimulatedResult_descriptor; } @java.lang.Override - public com.google.cloud.securitycentermanagement.v1.SimulateSecurityHealthAnalyticsCustomModuleResponse.SimulatedResult getDefaultInstanceForType() { - return com.google.cloud.securitycentermanagement.v1.SimulateSecurityHealthAnalyticsCustomModuleResponse.SimulatedResult.getDefaultInstance(); + public com.google.cloud.securitycentermanagement.v1 + .SimulateSecurityHealthAnalyticsCustomModuleResponse.SimulatedResult + getDefaultInstanceForType() { + return com.google.cloud.securitycentermanagement.v1 + .SimulateSecurityHealthAnalyticsCustomModuleResponse.SimulatedResult + .getDefaultInstance(); } @java.lang.Override - public com.google.cloud.securitycentermanagement.v1.SimulateSecurityHealthAnalyticsCustomModuleResponse.SimulatedResult build() { - com.google.cloud.securitycentermanagement.v1.SimulateSecurityHealthAnalyticsCustomModuleResponse.SimulatedResult result = buildPartial(); + public com.google.cloud.securitycentermanagement.v1 + .SimulateSecurityHealthAnalyticsCustomModuleResponse.SimulatedResult + build() { + com.google.cloud.securitycentermanagement.v1 + .SimulateSecurityHealthAnalyticsCustomModuleResponse.SimulatedResult + result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } @@ -621,31 +761,42 @@ public com.google.cloud.securitycentermanagement.v1.SimulateSecurityHealthAnalyt } @java.lang.Override - public com.google.cloud.securitycentermanagement.v1.SimulateSecurityHealthAnalyticsCustomModuleResponse.SimulatedResult buildPartial() { - com.google.cloud.securitycentermanagement.v1.SimulateSecurityHealthAnalyticsCustomModuleResponse.SimulatedResult result = new com.google.cloud.securitycentermanagement.v1.SimulateSecurityHealthAnalyticsCustomModuleResponse.SimulatedResult(this); - if (bitField0_ != 0) { buildPartial0(result); } + public com.google.cloud.securitycentermanagement.v1 + .SimulateSecurityHealthAnalyticsCustomModuleResponse.SimulatedResult + buildPartial() { + com.google.cloud.securitycentermanagement.v1 + .SimulateSecurityHealthAnalyticsCustomModuleResponse.SimulatedResult + result = + new com.google.cloud.securitycentermanagement.v1 + .SimulateSecurityHealthAnalyticsCustomModuleResponse.SimulatedResult(this); + if (bitField0_ != 0) { + buildPartial0(result); + } buildPartialOneofs(result); onBuilt(); return result; } - private void buildPartial0(com.google.cloud.securitycentermanagement.v1.SimulateSecurityHealthAnalyticsCustomModuleResponse.SimulatedResult result) { + private void buildPartial0( + com.google.cloud.securitycentermanagement.v1 + .SimulateSecurityHealthAnalyticsCustomModuleResponse.SimulatedResult + result) { int from_bitField0_ = bitField0_; } - private void buildPartialOneofs(com.google.cloud.securitycentermanagement.v1.SimulateSecurityHealthAnalyticsCustomModuleResponse.SimulatedResult result) { + private void buildPartialOneofs( + com.google.cloud.securitycentermanagement.v1 + .SimulateSecurityHealthAnalyticsCustomModuleResponse.SimulatedResult + result) { result.resultCase_ = resultCase_; result.result_ = this.result_; - if (resultCase_ == 1 && - findingBuilder_ != null) { + if (resultCase_ == 1 && findingBuilder_ != null) { result.result_ = findingBuilder_.build(); } - if (resultCase_ == 2 && - noViolationBuilder_ != null) { + if (resultCase_ == 2 && noViolationBuilder_ != null) { result.result_ = noViolationBuilder_.build(); } - if (resultCase_ == 3 && - errorBuilder_ != null) { + if (resultCase_ == 3 && errorBuilder_ != null) { result.result_ = errorBuilder_.build(); } } @@ -654,62 +805,81 @@ private void buildPartialOneofs(com.google.cloud.securitycentermanagement.v1.Sim public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.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.securitycentermanagement.v1.SimulateSecurityHealthAnalyticsCustomModuleResponse.SimulatedResult) { - return mergeFrom((com.google.cloud.securitycentermanagement.v1.SimulateSecurityHealthAnalyticsCustomModuleResponse.SimulatedResult)other); + if (other + instanceof + com.google.cloud.securitycentermanagement.v1 + .SimulateSecurityHealthAnalyticsCustomModuleResponse.SimulatedResult) { + return mergeFrom( + (com.google.cloud.securitycentermanagement.v1 + .SimulateSecurityHealthAnalyticsCustomModuleResponse.SimulatedResult) + other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom(com.google.cloud.securitycentermanagement.v1.SimulateSecurityHealthAnalyticsCustomModuleResponse.SimulatedResult other) { - if (other == com.google.cloud.securitycentermanagement.v1.SimulateSecurityHealthAnalyticsCustomModuleResponse.SimulatedResult.getDefaultInstance()) return this; + public Builder mergeFrom( + com.google.cloud.securitycentermanagement.v1 + .SimulateSecurityHealthAnalyticsCustomModuleResponse.SimulatedResult + other) { + if (other + == com.google.cloud.securitycentermanagement.v1 + .SimulateSecurityHealthAnalyticsCustomModuleResponse.SimulatedResult + .getDefaultInstance()) return this; switch (other.getResultCase()) { - case FINDING: { - mergeFinding(other.getFinding()); - break; - } - case NO_VIOLATION: { - mergeNoViolation(other.getNoViolation()); - break; - } - case ERROR: { - mergeError(other.getError()); - break; - } - case RESULT_NOT_SET: { - break; - } + case FINDING: + { + mergeFinding(other.getFinding()); + break; + } + case NO_VIOLATION: + { + mergeNoViolation(other.getNoViolation()); + break; + } + case ERROR: + { + mergeError(other.getError()); + break; + } + case RESULT_NOT_SET: + { + break; + } } this.mergeUnknownFields(other.getUnknownFields()); onChanged(); @@ -737,33 +907,31 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: { - input.readMessage( - getFindingFieldBuilder().getBuilder(), - extensionRegistry); - resultCase_ = 1; - break; - } // case 10 - case 18: { - input.readMessage( - getNoViolationFieldBuilder().getBuilder(), - extensionRegistry); - resultCase_ = 2; - break; - } // case 18 - case 26: { - input.readMessage( - getErrorFieldBuilder().getBuilder(), - extensionRegistry); - resultCase_ = 3; - break; - } // case 26 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: + { + input.readMessage(getFindingFieldBuilder().getBuilder(), extensionRegistry); + resultCase_ = 1; + break; + } // case 10 + case 18: + { + input.readMessage(getNoViolationFieldBuilder().getBuilder(), extensionRegistry); + resultCase_ = 2; + break; + } // case 18 + case 26: + { + input.readMessage(getErrorFieldBuilder().getBuilder(), extensionRegistry); + resultCase_ = 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) { @@ -773,12 +941,12 @@ public Builder mergeFrom( } // finally return this; } + private int resultCase_ = 0; private java.lang.Object result_; - public ResultCase - getResultCase() { - return ResultCase.forNumber( - resultCase_); + + public ResultCase getResultCase() { + return ResultCase.forNumber(resultCase_); } public Builder clearResult() { @@ -791,14 +959,20 @@ public Builder clearResult() { private int bitField0_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.securitycentermanagement.v1.SimulatedFinding, com.google.cloud.securitycentermanagement.v1.SimulatedFinding.Builder, com.google.cloud.securitycentermanagement.v1.SimulatedFindingOrBuilder> findingBuilder_; + com.google.cloud.securitycentermanagement.v1.SimulatedFinding, + com.google.cloud.securitycentermanagement.v1.SimulatedFinding.Builder, + com.google.cloud.securitycentermanagement.v1.SimulatedFindingOrBuilder> + findingBuilder_; /** + * + * *
        * Finding that would be published for the test case,
        * if a violation is detected.
        * 
* * .google.cloud.securitycentermanagement.v1.SimulatedFinding finding = 1; + * * @return Whether the finding field is set. */ @java.lang.Override @@ -806,12 +980,15 @@ public boolean hasFinding() { return resultCase_ == 1; } /** + * + * *
        * Finding that would be published for the test case,
        * if a violation is detected.
        * 
* * .google.cloud.securitycentermanagement.v1.SimulatedFinding finding = 1; + * * @return The finding. */ @java.lang.Override @@ -829,6 +1006,8 @@ public com.google.cloud.securitycentermanagement.v1.SimulatedFinding getFinding( } } /** + * + * *
        * Finding that would be published for the test case,
        * if a violation is detected.
@@ -836,7 +1015,8 @@ public com.google.cloud.securitycentermanagement.v1.SimulatedFinding getFinding(
        *
        * .google.cloud.securitycentermanagement.v1.SimulatedFinding finding = 1;
        */
-      public Builder setFinding(com.google.cloud.securitycentermanagement.v1.SimulatedFinding value) {
+      public Builder setFinding(
+          com.google.cloud.securitycentermanagement.v1.SimulatedFinding value) {
         if (findingBuilder_ == null) {
           if (value == null) {
             throw new NullPointerException();
@@ -850,6 +1030,8 @@ public Builder setFinding(com.google.cloud.securitycentermanagement.v1.Simulated
         return this;
       }
       /**
+       *
+       *
        * 
        * Finding that would be published for the test case,
        * if a violation is detected.
@@ -869,6 +1051,8 @@ public Builder setFinding(
         return this;
       }
       /**
+       *
+       *
        * 
        * Finding that would be published for the test case,
        * if a violation is detected.
@@ -876,12 +1060,18 @@ public Builder setFinding(
        *
        * .google.cloud.securitycentermanagement.v1.SimulatedFinding finding = 1;
        */
-      public Builder mergeFinding(com.google.cloud.securitycentermanagement.v1.SimulatedFinding value) {
+      public Builder mergeFinding(
+          com.google.cloud.securitycentermanagement.v1.SimulatedFinding value) {
         if (findingBuilder_ == null) {
-          if (resultCase_ == 1 &&
-              result_ != com.google.cloud.securitycentermanagement.v1.SimulatedFinding.getDefaultInstance()) {
-            result_ = com.google.cloud.securitycentermanagement.v1.SimulatedFinding.newBuilder((com.google.cloud.securitycentermanagement.v1.SimulatedFinding) result_)
-                .mergeFrom(value).buildPartial();
+          if (resultCase_ == 1
+              && result_
+                  != com.google.cloud.securitycentermanagement.v1.SimulatedFinding
+                      .getDefaultInstance()) {
+            result_ =
+                com.google.cloud.securitycentermanagement.v1.SimulatedFinding.newBuilder(
+                        (com.google.cloud.securitycentermanagement.v1.SimulatedFinding) result_)
+                    .mergeFrom(value)
+                    .buildPartial();
           } else {
             result_ = value;
           }
@@ -897,6 +1087,8 @@ public Builder mergeFinding(com.google.cloud.securitycentermanagement.v1.Simulat
         return this;
       }
       /**
+       *
+       *
        * 
        * Finding that would be published for the test case,
        * if a violation is detected.
@@ -921,6 +1113,8 @@ public Builder clearFinding() {
         return this;
       }
       /**
+       *
+       *
        * 
        * Finding that would be published for the test case,
        * if a violation is detected.
@@ -928,10 +1122,13 @@ public Builder clearFinding() {
        *
        * .google.cloud.securitycentermanagement.v1.SimulatedFinding finding = 1;
        */
-      public com.google.cloud.securitycentermanagement.v1.SimulatedFinding.Builder getFindingBuilder() {
+      public com.google.cloud.securitycentermanagement.v1.SimulatedFinding.Builder
+          getFindingBuilder() {
         return getFindingFieldBuilder().getBuilder();
       }
       /**
+       *
+       *
        * 
        * Finding that would be published for the test case,
        * if a violation is detected.
@@ -940,7 +1137,8 @@ public com.google.cloud.securitycentermanagement.v1.SimulatedFinding.Builder get
        * .google.cloud.securitycentermanagement.v1.SimulatedFinding finding = 1;
        */
       @java.lang.Override
-      public com.google.cloud.securitycentermanagement.v1.SimulatedFindingOrBuilder getFindingOrBuilder() {
+      public com.google.cloud.securitycentermanagement.v1.SimulatedFindingOrBuilder
+          getFindingOrBuilder() {
         if ((resultCase_ == 1) && (findingBuilder_ != null)) {
           return findingBuilder_.getMessageOrBuilder();
         } else {
@@ -951,6 +1149,8 @@ public com.google.cloud.securitycentermanagement.v1.SimulatedFindingOrBuilder ge
         }
       }
       /**
+       *
+       *
        * 
        * Finding that would be published for the test case,
        * if a violation is detected.
@@ -959,14 +1159,20 @@ public com.google.cloud.securitycentermanagement.v1.SimulatedFindingOrBuilder ge
        * .google.cloud.securitycentermanagement.v1.SimulatedFinding finding = 1;
        */
       private com.google.protobuf.SingleFieldBuilderV3<
-          com.google.cloud.securitycentermanagement.v1.SimulatedFinding, com.google.cloud.securitycentermanagement.v1.SimulatedFinding.Builder, com.google.cloud.securitycentermanagement.v1.SimulatedFindingOrBuilder> 
+              com.google.cloud.securitycentermanagement.v1.SimulatedFinding,
+              com.google.cloud.securitycentermanagement.v1.SimulatedFinding.Builder,
+              com.google.cloud.securitycentermanagement.v1.SimulatedFindingOrBuilder>
           getFindingFieldBuilder() {
         if (findingBuilder_ == null) {
           if (!(resultCase_ == 1)) {
-            result_ = com.google.cloud.securitycentermanagement.v1.SimulatedFinding.getDefaultInstance();
+            result_ =
+                com.google.cloud.securitycentermanagement.v1.SimulatedFinding.getDefaultInstance();
           }
-          findingBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
-              com.google.cloud.securitycentermanagement.v1.SimulatedFinding, com.google.cloud.securitycentermanagement.v1.SimulatedFinding.Builder, com.google.cloud.securitycentermanagement.v1.SimulatedFindingOrBuilder>(
+          findingBuilder_ =
+              new com.google.protobuf.SingleFieldBuilderV3<
+                  com.google.cloud.securitycentermanagement.v1.SimulatedFinding,
+                  com.google.cloud.securitycentermanagement.v1.SimulatedFinding.Builder,
+                  com.google.cloud.securitycentermanagement.v1.SimulatedFindingOrBuilder>(
                   (com.google.cloud.securitycentermanagement.v1.SimulatedFinding) result_,
                   getParentForChildren(),
                   isClean());
@@ -978,13 +1184,19 @@ public com.google.cloud.securitycentermanagement.v1.SimulatedFindingOrBuilder ge
       }
 
       private com.google.protobuf.SingleFieldBuilderV3<
-          com.google.protobuf.Empty, com.google.protobuf.Empty.Builder, com.google.protobuf.EmptyOrBuilder> noViolationBuilder_;
+              com.google.protobuf.Empty,
+              com.google.protobuf.Empty.Builder,
+              com.google.protobuf.EmptyOrBuilder>
+          noViolationBuilder_;
       /**
+       *
+       *
        * 
        * Indicates that the test case does not trigger any violation.
        * 
* * .google.protobuf.Empty no_violation = 2; + * * @return Whether the noViolation field is set. */ @java.lang.Override @@ -992,11 +1204,14 @@ public boolean hasNoViolation() { return resultCase_ == 2; } /** + * + * *
        * Indicates that the test case does not trigger any violation.
        * 
* * .google.protobuf.Empty no_violation = 2; + * * @return The noViolation. */ @java.lang.Override @@ -1014,6 +1229,8 @@ public com.google.protobuf.Empty getNoViolation() { } } /** + * + * *
        * Indicates that the test case does not trigger any violation.
        * 
@@ -1034,14 +1251,15 @@ public Builder setNoViolation(com.google.protobuf.Empty value) { return this; } /** + * + * *
        * Indicates that the test case does not trigger any violation.
        * 
* * .google.protobuf.Empty no_violation = 2; */ - public Builder setNoViolation( - com.google.protobuf.Empty.Builder builderForValue) { + public Builder setNoViolation(com.google.protobuf.Empty.Builder builderForValue) { if (noViolationBuilder_ == null) { result_ = builderForValue.build(); onChanged(); @@ -1052,6 +1270,8 @@ public Builder setNoViolation( return this; } /** + * + * *
        * Indicates that the test case does not trigger any violation.
        * 
@@ -1060,10 +1280,11 @@ public Builder setNoViolation( */ public Builder mergeNoViolation(com.google.protobuf.Empty value) { if (noViolationBuilder_ == null) { - if (resultCase_ == 2 && - result_ != com.google.protobuf.Empty.getDefaultInstance()) { - result_ = com.google.protobuf.Empty.newBuilder((com.google.protobuf.Empty) result_) - .mergeFrom(value).buildPartial(); + if (resultCase_ == 2 && result_ != com.google.protobuf.Empty.getDefaultInstance()) { + result_ = + com.google.protobuf.Empty.newBuilder((com.google.protobuf.Empty) result_) + .mergeFrom(value) + .buildPartial(); } else { result_ = value; } @@ -1079,6 +1300,8 @@ public Builder mergeNoViolation(com.google.protobuf.Empty value) { return this; } /** + * + * *
        * Indicates that the test case does not trigger any violation.
        * 
@@ -1102,6 +1325,8 @@ public Builder clearNoViolation() { return this; } /** + * + * *
        * Indicates that the test case does not trigger any violation.
        * 
@@ -1112,6 +1337,8 @@ public com.google.protobuf.Empty.Builder getNoViolationBuilder() { return getNoViolationFieldBuilder().getBuilder(); } /** + * + * *
        * Indicates that the test case does not trigger any violation.
        * 
@@ -1130,6 +1357,8 @@ public com.google.protobuf.EmptyOrBuilder getNoViolationOrBuilder() { } } /** + * + * *
        * Indicates that the test case does not trigger any violation.
        * 
@@ -1137,17 +1366,20 @@ public com.google.protobuf.EmptyOrBuilder getNoViolationOrBuilder() { * .google.protobuf.Empty no_violation = 2; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Empty, com.google.protobuf.Empty.Builder, com.google.protobuf.EmptyOrBuilder> + com.google.protobuf.Empty, + com.google.protobuf.Empty.Builder, + com.google.protobuf.EmptyOrBuilder> getNoViolationFieldBuilder() { if (noViolationBuilder_ == null) { if (!(resultCase_ == 2)) { result_ = com.google.protobuf.Empty.getDefaultInstance(); } - noViolationBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Empty, com.google.protobuf.Empty.Builder, com.google.protobuf.EmptyOrBuilder>( - (com.google.protobuf.Empty) result_, - getParentForChildren(), - isClean()); + noViolationBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Empty, + com.google.protobuf.Empty.Builder, + com.google.protobuf.EmptyOrBuilder>( + (com.google.protobuf.Empty) result_, getParentForChildren(), isClean()); result_ = null; } resultCase_ = 2; @@ -1156,13 +1388,17 @@ public com.google.protobuf.EmptyOrBuilder getNoViolationOrBuilder() { } private com.google.protobuf.SingleFieldBuilderV3< - com.google.rpc.Status, com.google.rpc.Status.Builder, com.google.rpc.StatusOrBuilder> errorBuilder_; + com.google.rpc.Status, com.google.rpc.Status.Builder, com.google.rpc.StatusOrBuilder> + errorBuilder_; /** + * + * *
        * Error encountered during the test.
        * 
* * .google.rpc.Status error = 3; + * * @return Whether the error field is set. */ @java.lang.Override @@ -1170,11 +1406,14 @@ public boolean hasError() { return resultCase_ == 3; } /** + * + * *
        * Error encountered during the test.
        * 
* * .google.rpc.Status error = 3; + * * @return The error. */ @java.lang.Override @@ -1192,6 +1431,8 @@ public com.google.rpc.Status getError() { } } /** + * + * *
        * Error encountered during the test.
        * 
@@ -1212,14 +1453,15 @@ public Builder setError(com.google.rpc.Status value) { return this; } /** + * + * *
        * Error encountered during the test.
        * 
* * .google.rpc.Status error = 3; */ - public Builder setError( - com.google.rpc.Status.Builder builderForValue) { + public Builder setError(com.google.rpc.Status.Builder builderForValue) { if (errorBuilder_ == null) { result_ = builderForValue.build(); onChanged(); @@ -1230,6 +1472,8 @@ public Builder setError( return this; } /** + * + * *
        * Error encountered during the test.
        * 
@@ -1238,10 +1482,11 @@ public Builder setError( */ public Builder mergeError(com.google.rpc.Status value) { if (errorBuilder_ == null) { - if (resultCase_ == 3 && - result_ != com.google.rpc.Status.getDefaultInstance()) { - result_ = com.google.rpc.Status.newBuilder((com.google.rpc.Status) result_) - .mergeFrom(value).buildPartial(); + if (resultCase_ == 3 && result_ != com.google.rpc.Status.getDefaultInstance()) { + result_ = + com.google.rpc.Status.newBuilder((com.google.rpc.Status) result_) + .mergeFrom(value) + .buildPartial(); } else { result_ = value; } @@ -1257,6 +1502,8 @@ public Builder mergeError(com.google.rpc.Status value) { return this; } /** + * + * *
        * Error encountered during the test.
        * 
@@ -1280,6 +1527,8 @@ public Builder clearError() { return this; } /** + * + * *
        * Error encountered during the test.
        * 
@@ -1290,6 +1539,8 @@ public com.google.rpc.Status.Builder getErrorBuilder() { return getErrorFieldBuilder().getBuilder(); } /** + * + * *
        * Error encountered during the test.
        * 
@@ -1308,6 +1559,8 @@ public com.google.rpc.StatusOrBuilder getErrorOrBuilder() { } } /** + * + * *
        * Error encountered during the test.
        * 
@@ -1315,23 +1568,25 @@ public com.google.rpc.StatusOrBuilder getErrorOrBuilder() { * .google.rpc.Status error = 3; */ private com.google.protobuf.SingleFieldBuilderV3< - 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> getErrorFieldBuilder() { if (errorBuilder_ == null) { if (!(resultCase_ == 3)) { result_ = com.google.rpc.Status.getDefaultInstance(); } - errorBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.rpc.Status, com.google.rpc.Status.Builder, com.google.rpc.StatusOrBuilder>( - (com.google.rpc.Status) result_, - getParentForChildren(), - isClean()); + errorBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.rpc.Status, + com.google.rpc.Status.Builder, + com.google.rpc.StatusOrBuilder>( + (com.google.rpc.Status) result_, getParentForChildren(), isClean()); result_ = null; } resultCase_ = 3; onChanged(); return errorBuilder_; } + @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { @@ -1344,41 +1599,48 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.securitycentermanagement.v1.SimulateSecurityHealthAnalyticsCustomModuleResponse.SimulatedResult) } // @@protoc_insertion_point(class_scope:google.cloud.securitycentermanagement.v1.SimulateSecurityHealthAnalyticsCustomModuleResponse.SimulatedResult) - private static final com.google.cloud.securitycentermanagement.v1.SimulateSecurityHealthAnalyticsCustomModuleResponse.SimulatedResult DEFAULT_INSTANCE; + private static final com.google.cloud.securitycentermanagement.v1 + .SimulateSecurityHealthAnalyticsCustomModuleResponse.SimulatedResult + DEFAULT_INSTANCE; + static { - DEFAULT_INSTANCE = new com.google.cloud.securitycentermanagement.v1.SimulateSecurityHealthAnalyticsCustomModuleResponse.SimulatedResult(); + DEFAULT_INSTANCE = + new com.google.cloud.securitycentermanagement.v1 + .SimulateSecurityHealthAnalyticsCustomModuleResponse.SimulatedResult(); } - public static com.google.cloud.securitycentermanagement.v1.SimulateSecurityHealthAnalyticsCustomModuleResponse.SimulatedResult getDefaultInstance() { + public static com.google.cloud.securitycentermanagement.v1 + .SimulateSecurityHealthAnalyticsCustomModuleResponse.SimulatedResult + getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public SimulatedResult parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public SimulatedResult parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException() + .setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.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,20 +1652,28 @@ public com.google.protobuf.Parser getParserForType() { } @java.lang.Override - public com.google.cloud.securitycentermanagement.v1.SimulateSecurityHealthAnalyticsCustomModuleResponse.SimulatedResult getDefaultInstanceForType() { + public com.google.cloud.securitycentermanagement.v1 + .SimulateSecurityHealthAnalyticsCustomModuleResponse.SimulatedResult + getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } public static final int RESULT_FIELD_NUMBER = 1; - private com.google.cloud.securitycentermanagement.v1.SimulateSecurityHealthAnalyticsCustomModuleResponse.SimulatedResult result_; + private com.google.cloud.securitycentermanagement.v1 + .SimulateSecurityHealthAnalyticsCustomModuleResponse.SimulatedResult + result_; /** + * + * *
    * Result for test case in the corresponding request.
    * 
* - * .google.cloud.securitycentermanagement.v1.SimulateSecurityHealthAnalyticsCustomModuleResponse.SimulatedResult result = 1; + * + * .google.cloud.securitycentermanagement.v1.SimulateSecurityHealthAnalyticsCustomModuleResponse.SimulatedResult result = 1; + * + * * @return Whether the result field is set. */ @java.lang.Override @@ -1411,30 +1681,52 @@ public boolean hasResult() { return result_ != null; } /** + * + * *
    * Result for test case in the corresponding request.
    * 
* - * .google.cloud.securitycentermanagement.v1.SimulateSecurityHealthAnalyticsCustomModuleResponse.SimulatedResult result = 1; + * + * .google.cloud.securitycentermanagement.v1.SimulateSecurityHealthAnalyticsCustomModuleResponse.SimulatedResult result = 1; + * + * * @return The result. */ @java.lang.Override - public com.google.cloud.securitycentermanagement.v1.SimulateSecurityHealthAnalyticsCustomModuleResponse.SimulatedResult getResult() { - return result_ == null ? com.google.cloud.securitycentermanagement.v1.SimulateSecurityHealthAnalyticsCustomModuleResponse.SimulatedResult.getDefaultInstance() : result_; + public com.google.cloud.securitycentermanagement.v1 + .SimulateSecurityHealthAnalyticsCustomModuleResponse.SimulatedResult + getResult() { + return result_ == null + ? com.google.cloud.securitycentermanagement.v1 + .SimulateSecurityHealthAnalyticsCustomModuleResponse.SimulatedResult + .getDefaultInstance() + : result_; } /** + * + * *
    * Result for test case in the corresponding request.
    * 
* - * .google.cloud.securitycentermanagement.v1.SimulateSecurityHealthAnalyticsCustomModuleResponse.SimulatedResult result = 1; + * + * .google.cloud.securitycentermanagement.v1.SimulateSecurityHealthAnalyticsCustomModuleResponse.SimulatedResult result = 1; + * */ @java.lang.Override - public com.google.cloud.securitycentermanagement.v1.SimulateSecurityHealthAnalyticsCustomModuleResponse.SimulatedResultOrBuilder getResultOrBuilder() { - return result_ == null ? com.google.cloud.securitycentermanagement.v1.SimulateSecurityHealthAnalyticsCustomModuleResponse.SimulatedResult.getDefaultInstance() : result_; + public com.google.cloud.securitycentermanagement.v1 + .SimulateSecurityHealthAnalyticsCustomModuleResponse.SimulatedResultOrBuilder + getResultOrBuilder() { + return result_ == null + ? com.google.cloud.securitycentermanagement.v1 + .SimulateSecurityHealthAnalyticsCustomModuleResponse.SimulatedResult + .getDefaultInstance() + : result_; } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -1446,8 +1738,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (result_ != null) { output.writeMessage(1, getResult()); } @@ -1461,8 +1752,7 @@ public int getSerializedSize() { size = 0; if (result_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, getResult()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getResult()); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -1472,17 +1762,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.securitycentermanagement.v1.SimulateSecurityHealthAnalyticsCustomModuleResponse)) { + if (!(obj + instanceof + com.google.cloud.securitycentermanagement.v1 + .SimulateSecurityHealthAnalyticsCustomModuleResponse)) { return super.equals(obj); } - com.google.cloud.securitycentermanagement.v1.SimulateSecurityHealthAnalyticsCustomModuleResponse other = (com.google.cloud.securitycentermanagement.v1.SimulateSecurityHealthAnalyticsCustomModuleResponse) obj; + com.google.cloud.securitycentermanagement.v1.SimulateSecurityHealthAnalyticsCustomModuleResponse + other = + (com.google.cloud.securitycentermanagement.v1 + .SimulateSecurityHealthAnalyticsCustomModuleResponse) + obj; if (hasResult() != other.hasResult()) return false; if (hasResult()) { - if (!getResult() - .equals(other.getResult())) return false; + if (!getResult().equals(other.getResult())) return false; } if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; @@ -1504,133 +1800,163 @@ public int hashCode() { return hash; } - public static com.google.cloud.securitycentermanagement.v1.SimulateSecurityHealthAnalyticsCustomModuleResponse parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.securitycentermanagement.v1 + .SimulateSecurityHealthAnalyticsCustomModuleResponse + parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.securitycentermanagement.v1.SimulateSecurityHealthAnalyticsCustomModuleResponse parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.cloud.securitycentermanagement.v1 + .SimulateSecurityHealthAnalyticsCustomModuleResponse + 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.securitycentermanagement.v1.SimulateSecurityHealthAnalyticsCustomModuleResponse parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.cloud.securitycentermanagement.v1 + .SimulateSecurityHealthAnalyticsCustomModuleResponse + parseFrom(com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.securitycentermanagement.v1.SimulateSecurityHealthAnalyticsCustomModuleResponse parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.cloud.securitycentermanagement.v1 + .SimulateSecurityHealthAnalyticsCustomModuleResponse + parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.securitycentermanagement.v1.SimulateSecurityHealthAnalyticsCustomModuleResponse parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.cloud.securitycentermanagement.v1 + .SimulateSecurityHealthAnalyticsCustomModuleResponse + parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.securitycentermanagement.v1.SimulateSecurityHealthAnalyticsCustomModuleResponse parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.cloud.securitycentermanagement.v1 + .SimulateSecurityHealthAnalyticsCustomModuleResponse + parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.securitycentermanagement.v1.SimulateSecurityHealthAnalyticsCustomModuleResponse parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.securitycentermanagement.v1 + .SimulateSecurityHealthAnalyticsCustomModuleResponse + parseFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } - public static com.google.cloud.securitycentermanagement.v1.SimulateSecurityHealthAnalyticsCustomModuleResponse 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.securitycentermanagement.v1 + .SimulateSecurityHealthAnalyticsCustomModuleResponse + 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.securitycentermanagement.v1.SimulateSecurityHealthAnalyticsCustomModuleResponse parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.securitycentermanagement.v1 + .SimulateSecurityHealthAnalyticsCustomModuleResponse + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.securitycentermanagement.v1.SimulateSecurityHealthAnalyticsCustomModuleResponse parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + public static com.google.cloud.securitycentermanagement.v1 + .SimulateSecurityHealthAnalyticsCustomModuleResponse + parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.securitycentermanagement.v1.SimulateSecurityHealthAnalyticsCustomModuleResponse parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.securitycentermanagement.v1 + .SimulateSecurityHealthAnalyticsCustomModuleResponse + parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } - public static com.google.cloud.securitycentermanagement.v1.SimulateSecurityHealthAnalyticsCustomModuleResponse 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.securitycentermanagement.v1 + .SimulateSecurityHealthAnalyticsCustomModuleResponse + 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.securitycentermanagement.v1.SimulateSecurityHealthAnalyticsCustomModuleResponse prototype) { + + public static Builder newBuilder( + com.google.cloud.securitycentermanagement.v1 + .SimulateSecurityHealthAnalyticsCustomModuleResponse + prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected 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 simulating a `SecurityHealthAnalyticsCustomModule`
    * against a given resource.
    * 
* - * Protobuf type {@code google.cloud.securitycentermanagement.v1.SimulateSecurityHealthAnalyticsCustomModuleResponse} + * Protobuf type {@code + * google.cloud.securitycentermanagement.v1.SimulateSecurityHealthAnalyticsCustomModuleResponse} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.securitycentermanagement.v1.SimulateSecurityHealthAnalyticsCustomModuleResponse) - com.google.cloud.securitycentermanagement.v1.SimulateSecurityHealthAnalyticsCustomModuleResponseOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.securitycentermanagement.v1.SecurityCenterManagementProto.internal_static_google_cloud_securitycentermanagement_v1_SimulateSecurityHealthAnalyticsCustomModuleResponse_descriptor; + com.google.cloud.securitycentermanagement.v1 + .SimulateSecurityHealthAnalyticsCustomModuleResponseOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.securitycentermanagement.v1.SecurityCenterManagementProto + .internal_static_google_cloud_securitycentermanagement_v1_SimulateSecurityHealthAnalyticsCustomModuleResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.securitycentermanagement.v1.SecurityCenterManagementProto.internal_static_google_cloud_securitycentermanagement_v1_SimulateSecurityHealthAnalyticsCustomModuleResponse_fieldAccessorTable + return com.google.cloud.securitycentermanagement.v1.SecurityCenterManagementProto + .internal_static_google_cloud_securitycentermanagement_v1_SimulateSecurityHealthAnalyticsCustomModuleResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.securitycentermanagement.v1.SimulateSecurityHealthAnalyticsCustomModuleResponse.class, com.google.cloud.securitycentermanagement.v1.SimulateSecurityHealthAnalyticsCustomModuleResponse.Builder.class); + com.google.cloud.securitycentermanagement.v1 + .SimulateSecurityHealthAnalyticsCustomModuleResponse.class, + com.google.cloud.securitycentermanagement.v1 + .SimulateSecurityHealthAnalyticsCustomModuleResponse.Builder.class); } - // Construct using com.google.cloud.securitycentermanagement.v1.SimulateSecurityHealthAnalyticsCustomModuleResponse.newBuilder() - private Builder() { - - } + // Construct using + // com.google.cloud.securitycentermanagement.v1.SimulateSecurityHealthAnalyticsCustomModuleResponse.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(); @@ -1644,19 +1970,26 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.securitycentermanagement.v1.SecurityCenterManagementProto.internal_static_google_cloud_securitycentermanagement_v1_SimulateSecurityHealthAnalyticsCustomModuleResponse_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.securitycentermanagement.v1.SecurityCenterManagementProto + .internal_static_google_cloud_securitycentermanagement_v1_SimulateSecurityHealthAnalyticsCustomModuleResponse_descriptor; } @java.lang.Override - public com.google.cloud.securitycentermanagement.v1.SimulateSecurityHealthAnalyticsCustomModuleResponse getDefaultInstanceForType() { - return com.google.cloud.securitycentermanagement.v1.SimulateSecurityHealthAnalyticsCustomModuleResponse.getDefaultInstance(); + public com.google.cloud.securitycentermanagement.v1 + .SimulateSecurityHealthAnalyticsCustomModuleResponse + getDefaultInstanceForType() { + return com.google.cloud.securitycentermanagement.v1 + .SimulateSecurityHealthAnalyticsCustomModuleResponse.getDefaultInstance(); } @java.lang.Override - public com.google.cloud.securitycentermanagement.v1.SimulateSecurityHealthAnalyticsCustomModuleResponse build() { - com.google.cloud.securitycentermanagement.v1.SimulateSecurityHealthAnalyticsCustomModuleResponse result = buildPartial(); + public com.google.cloud.securitycentermanagement.v1 + .SimulateSecurityHealthAnalyticsCustomModuleResponse + build() { + com.google.cloud.securitycentermanagement.v1 + .SimulateSecurityHealthAnalyticsCustomModuleResponse + result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } @@ -1664,19 +1997,28 @@ public com.google.cloud.securitycentermanagement.v1.SimulateSecurityHealthAnalyt } @java.lang.Override - public com.google.cloud.securitycentermanagement.v1.SimulateSecurityHealthAnalyticsCustomModuleResponse buildPartial() { - com.google.cloud.securitycentermanagement.v1.SimulateSecurityHealthAnalyticsCustomModuleResponse result = new com.google.cloud.securitycentermanagement.v1.SimulateSecurityHealthAnalyticsCustomModuleResponse(this); - if (bitField0_ != 0) { buildPartial0(result); } + public com.google.cloud.securitycentermanagement.v1 + .SimulateSecurityHealthAnalyticsCustomModuleResponse + buildPartial() { + com.google.cloud.securitycentermanagement.v1 + .SimulateSecurityHealthAnalyticsCustomModuleResponse + result = + new com.google.cloud.securitycentermanagement.v1 + .SimulateSecurityHealthAnalyticsCustomModuleResponse(this); + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } - private void buildPartial0(com.google.cloud.securitycentermanagement.v1.SimulateSecurityHealthAnalyticsCustomModuleResponse result) { + private void buildPartial0( + com.google.cloud.securitycentermanagement.v1 + .SimulateSecurityHealthAnalyticsCustomModuleResponse + result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000001) != 0)) { - result.result_ = resultBuilder_ == null - ? result_ - : resultBuilder_.build(); + result.result_ = resultBuilder_ == null ? result_ : resultBuilder_.build(); } } @@ -1684,46 +2026,59 @@ private void buildPartial0(com.google.cloud.securitycentermanagement.v1.Simulate public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.cloud.securitycentermanagement.v1.SimulateSecurityHealthAnalyticsCustomModuleResponse) { - return mergeFrom((com.google.cloud.securitycentermanagement.v1.SimulateSecurityHealthAnalyticsCustomModuleResponse)other); + if (other + instanceof + com.google.cloud.securitycentermanagement.v1 + .SimulateSecurityHealthAnalyticsCustomModuleResponse) { + return mergeFrom( + (com.google.cloud.securitycentermanagement.v1 + .SimulateSecurityHealthAnalyticsCustomModuleResponse) + other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom(com.google.cloud.securitycentermanagement.v1.SimulateSecurityHealthAnalyticsCustomModuleResponse other) { - if (other == com.google.cloud.securitycentermanagement.v1.SimulateSecurityHealthAnalyticsCustomModuleResponse.getDefaultInstance()) return this; + public Builder mergeFrom( + com.google.cloud.securitycentermanagement.v1 + .SimulateSecurityHealthAnalyticsCustomModuleResponse + other) { + if (other + == com.google.cloud.securitycentermanagement.v1 + .SimulateSecurityHealthAnalyticsCustomModuleResponse.getDefaultInstance()) + return this; if (other.hasResult()) { mergeResult(other.getResult()); } @@ -1753,19 +2108,19 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: { - input.readMessage( - getResultFieldBuilder().getBuilder(), - extensionRegistry); - bitField0_ |= 0x00000001; - break; - } // case 10 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: + { + input.readMessage(getResultFieldBuilder().getBuilder(), extensionRegistry); + 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) { @@ -1775,45 +2130,77 @@ public Builder mergeFrom( } // finally return this; } + private int bitField0_; - private com.google.cloud.securitycentermanagement.v1.SimulateSecurityHealthAnalyticsCustomModuleResponse.SimulatedResult result_; + private com.google.cloud.securitycentermanagement.v1 + .SimulateSecurityHealthAnalyticsCustomModuleResponse.SimulatedResult + result_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.securitycentermanagement.v1.SimulateSecurityHealthAnalyticsCustomModuleResponse.SimulatedResult, com.google.cloud.securitycentermanagement.v1.SimulateSecurityHealthAnalyticsCustomModuleResponse.SimulatedResult.Builder, com.google.cloud.securitycentermanagement.v1.SimulateSecurityHealthAnalyticsCustomModuleResponse.SimulatedResultOrBuilder> resultBuilder_; + com.google.cloud.securitycentermanagement.v1 + .SimulateSecurityHealthAnalyticsCustomModuleResponse.SimulatedResult, + com.google.cloud.securitycentermanagement.v1 + .SimulateSecurityHealthAnalyticsCustomModuleResponse.SimulatedResult.Builder, + com.google.cloud.securitycentermanagement.v1 + .SimulateSecurityHealthAnalyticsCustomModuleResponse.SimulatedResultOrBuilder> + resultBuilder_; /** + * + * *
      * Result for test case in the corresponding request.
      * 
* - * .google.cloud.securitycentermanagement.v1.SimulateSecurityHealthAnalyticsCustomModuleResponse.SimulatedResult result = 1; + * + * .google.cloud.securitycentermanagement.v1.SimulateSecurityHealthAnalyticsCustomModuleResponse.SimulatedResult result = 1; + * + * * @return Whether the result field is set. */ public boolean hasResult() { return ((bitField0_ & 0x00000001) != 0); } /** + * + * *
      * Result for test case in the corresponding request.
      * 
* - * .google.cloud.securitycentermanagement.v1.SimulateSecurityHealthAnalyticsCustomModuleResponse.SimulatedResult result = 1; + * + * .google.cloud.securitycentermanagement.v1.SimulateSecurityHealthAnalyticsCustomModuleResponse.SimulatedResult result = 1; + * + * * @return The result. */ - public com.google.cloud.securitycentermanagement.v1.SimulateSecurityHealthAnalyticsCustomModuleResponse.SimulatedResult getResult() { + public com.google.cloud.securitycentermanagement.v1 + .SimulateSecurityHealthAnalyticsCustomModuleResponse.SimulatedResult + getResult() { if (resultBuilder_ == null) { - return result_ == null ? com.google.cloud.securitycentermanagement.v1.SimulateSecurityHealthAnalyticsCustomModuleResponse.SimulatedResult.getDefaultInstance() : result_; + return result_ == null + ? com.google.cloud.securitycentermanagement.v1 + .SimulateSecurityHealthAnalyticsCustomModuleResponse.SimulatedResult + .getDefaultInstance() + : result_; } else { return resultBuilder_.getMessage(); } } /** + * + * *
      * Result for test case in the corresponding request.
      * 
* - * .google.cloud.securitycentermanagement.v1.SimulateSecurityHealthAnalyticsCustomModuleResponse.SimulatedResult result = 1; + * + * .google.cloud.securitycentermanagement.v1.SimulateSecurityHealthAnalyticsCustomModuleResponse.SimulatedResult result = 1; + * */ - public Builder setResult(com.google.cloud.securitycentermanagement.v1.SimulateSecurityHealthAnalyticsCustomModuleResponse.SimulatedResult value) { + public Builder setResult( + com.google.cloud.securitycentermanagement.v1 + .SimulateSecurityHealthAnalyticsCustomModuleResponse.SimulatedResult + value) { if (resultBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -1827,14 +2214,20 @@ public Builder setResult(com.google.cloud.securitycentermanagement.v1.SimulateSe return this; } /** + * + * *
      * Result for test case in the corresponding request.
      * 
* - * .google.cloud.securitycentermanagement.v1.SimulateSecurityHealthAnalyticsCustomModuleResponse.SimulatedResult result = 1; + * + * .google.cloud.securitycentermanagement.v1.SimulateSecurityHealthAnalyticsCustomModuleResponse.SimulatedResult result = 1; + * */ public Builder setResult( - com.google.cloud.securitycentermanagement.v1.SimulateSecurityHealthAnalyticsCustomModuleResponse.SimulatedResult.Builder builderForValue) { + com.google.cloud.securitycentermanagement.v1 + .SimulateSecurityHealthAnalyticsCustomModuleResponse.SimulatedResult.Builder + builderForValue) { if (resultBuilder_ == null) { result_ = builderForValue.build(); } else { @@ -1845,17 +2238,27 @@ public Builder setResult( return this; } /** + * + * *
      * Result for test case in the corresponding request.
      * 
* - * .google.cloud.securitycentermanagement.v1.SimulateSecurityHealthAnalyticsCustomModuleResponse.SimulatedResult result = 1; + * + * .google.cloud.securitycentermanagement.v1.SimulateSecurityHealthAnalyticsCustomModuleResponse.SimulatedResult result = 1; + * */ - public Builder mergeResult(com.google.cloud.securitycentermanagement.v1.SimulateSecurityHealthAnalyticsCustomModuleResponse.SimulatedResult value) { + public Builder mergeResult( + com.google.cloud.securitycentermanagement.v1 + .SimulateSecurityHealthAnalyticsCustomModuleResponse.SimulatedResult + value) { if (resultBuilder_ == null) { - if (((bitField0_ & 0x00000001) != 0) && - result_ != null && - result_ != com.google.cloud.securitycentermanagement.v1.SimulateSecurityHealthAnalyticsCustomModuleResponse.SimulatedResult.getDefaultInstance()) { + if (((bitField0_ & 0x00000001) != 0) + && result_ != null + && result_ + != com.google.cloud.securitycentermanagement.v1 + .SimulateSecurityHealthAnalyticsCustomModuleResponse.SimulatedResult + .getDefaultInstance()) { getResultBuilder().mergeFrom(value); } else { result_ = value; @@ -1868,11 +2271,15 @@ public Builder mergeResult(com.google.cloud.securitycentermanagement.v1.Simulate return this; } /** + * + * *
      * Result for test case in the corresponding request.
      * 
* - * .google.cloud.securitycentermanagement.v1.SimulateSecurityHealthAnalyticsCustomModuleResponse.SimulatedResult result = 1; + * + * .google.cloud.securitycentermanagement.v1.SimulateSecurityHealthAnalyticsCustomModuleResponse.SimulatedResult result = 1; + * */ public Builder clearResult() { bitField0_ = (bitField0_ & ~0x00000001); @@ -1885,55 +2292,83 @@ public Builder clearResult() { return this; } /** + * + * *
      * Result for test case in the corresponding request.
      * 
* - * .google.cloud.securitycentermanagement.v1.SimulateSecurityHealthAnalyticsCustomModuleResponse.SimulatedResult result = 1; + * + * .google.cloud.securitycentermanagement.v1.SimulateSecurityHealthAnalyticsCustomModuleResponse.SimulatedResult result = 1; + * */ - public com.google.cloud.securitycentermanagement.v1.SimulateSecurityHealthAnalyticsCustomModuleResponse.SimulatedResult.Builder getResultBuilder() { + public com.google.cloud.securitycentermanagement.v1 + .SimulateSecurityHealthAnalyticsCustomModuleResponse.SimulatedResult.Builder + getResultBuilder() { bitField0_ |= 0x00000001; onChanged(); return getResultFieldBuilder().getBuilder(); } /** + * + * *
      * Result for test case in the corresponding request.
      * 
* - * .google.cloud.securitycentermanagement.v1.SimulateSecurityHealthAnalyticsCustomModuleResponse.SimulatedResult result = 1; + * + * .google.cloud.securitycentermanagement.v1.SimulateSecurityHealthAnalyticsCustomModuleResponse.SimulatedResult result = 1; + * */ - public com.google.cloud.securitycentermanagement.v1.SimulateSecurityHealthAnalyticsCustomModuleResponse.SimulatedResultOrBuilder getResultOrBuilder() { + public com.google.cloud.securitycentermanagement.v1 + .SimulateSecurityHealthAnalyticsCustomModuleResponse.SimulatedResultOrBuilder + getResultOrBuilder() { if (resultBuilder_ != null) { return resultBuilder_.getMessageOrBuilder(); } else { - return result_ == null ? - com.google.cloud.securitycentermanagement.v1.SimulateSecurityHealthAnalyticsCustomModuleResponse.SimulatedResult.getDefaultInstance() : result_; + return result_ == null + ? com.google.cloud.securitycentermanagement.v1 + .SimulateSecurityHealthAnalyticsCustomModuleResponse.SimulatedResult + .getDefaultInstance() + : result_; } } /** + * + * *
      * Result for test case in the corresponding request.
      * 
* - * .google.cloud.securitycentermanagement.v1.SimulateSecurityHealthAnalyticsCustomModuleResponse.SimulatedResult result = 1; + * + * .google.cloud.securitycentermanagement.v1.SimulateSecurityHealthAnalyticsCustomModuleResponse.SimulatedResult result = 1; + * */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.securitycentermanagement.v1.SimulateSecurityHealthAnalyticsCustomModuleResponse.SimulatedResult, com.google.cloud.securitycentermanagement.v1.SimulateSecurityHealthAnalyticsCustomModuleResponse.SimulatedResult.Builder, com.google.cloud.securitycentermanagement.v1.SimulateSecurityHealthAnalyticsCustomModuleResponse.SimulatedResultOrBuilder> + com.google.cloud.securitycentermanagement.v1 + .SimulateSecurityHealthAnalyticsCustomModuleResponse.SimulatedResult, + com.google.cloud.securitycentermanagement.v1 + .SimulateSecurityHealthAnalyticsCustomModuleResponse.SimulatedResult.Builder, + com.google.cloud.securitycentermanagement.v1 + .SimulateSecurityHealthAnalyticsCustomModuleResponse.SimulatedResultOrBuilder> getResultFieldBuilder() { if (resultBuilder_ == null) { - resultBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.securitycentermanagement.v1.SimulateSecurityHealthAnalyticsCustomModuleResponse.SimulatedResult, com.google.cloud.securitycentermanagement.v1.SimulateSecurityHealthAnalyticsCustomModuleResponse.SimulatedResult.Builder, com.google.cloud.securitycentermanagement.v1.SimulateSecurityHealthAnalyticsCustomModuleResponse.SimulatedResultOrBuilder>( - getResult(), - getParentForChildren(), - isClean()); + resultBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.securitycentermanagement.v1 + .SimulateSecurityHealthAnalyticsCustomModuleResponse.SimulatedResult, + com.google.cloud.securitycentermanagement.v1 + .SimulateSecurityHealthAnalyticsCustomModuleResponse.SimulatedResult.Builder, + com.google.cloud.securitycentermanagement.v1 + .SimulateSecurityHealthAnalyticsCustomModuleResponse.SimulatedResultOrBuilder>( + getResult(), getParentForChildren(), isClean()); result_ = null; } return resultBuilder_; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1943,55 +2378,67 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.securitycentermanagement.v1.SimulateSecurityHealthAnalyticsCustomModuleResponse) } // @@protoc_insertion_point(class_scope:google.cloud.securitycentermanagement.v1.SimulateSecurityHealthAnalyticsCustomModuleResponse) - private static final com.google.cloud.securitycentermanagement.v1.SimulateSecurityHealthAnalyticsCustomModuleResponse DEFAULT_INSTANCE; + private static final com.google.cloud.securitycentermanagement.v1 + .SimulateSecurityHealthAnalyticsCustomModuleResponse + DEFAULT_INSTANCE; + static { - DEFAULT_INSTANCE = new com.google.cloud.securitycentermanagement.v1.SimulateSecurityHealthAnalyticsCustomModuleResponse(); + DEFAULT_INSTANCE = + new com.google.cloud.securitycentermanagement.v1 + .SimulateSecurityHealthAnalyticsCustomModuleResponse(); } - public static com.google.cloud.securitycentermanagement.v1.SimulateSecurityHealthAnalyticsCustomModuleResponse getDefaultInstance() { + public static com.google.cloud.securitycentermanagement.v1 + .SimulateSecurityHealthAnalyticsCustomModuleResponse + getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public SimulateSecurityHealthAnalyticsCustomModuleResponse parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser< + SimulateSecurityHealthAnalyticsCustomModuleResponse> + PARSER = + new com.google.protobuf.AbstractParser< + SimulateSecurityHealthAnalyticsCustomModuleResponse>() { + @java.lang.Override + public SimulateSecurityHealthAnalyticsCustomModuleResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException() + .setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; - public static com.google.protobuf.Parser parser() { + public static com.google.protobuf.Parser + parser() { return PARSER; } @java.lang.Override - public com.google.protobuf.Parser getParserForType() { + public com.google.protobuf.Parser + getParserForType() { return PARSER; } @java.lang.Override - public com.google.cloud.securitycentermanagement.v1.SimulateSecurityHealthAnalyticsCustomModuleResponse getDefaultInstanceForType() { + public com.google.cloud.securitycentermanagement.v1 + .SimulateSecurityHealthAnalyticsCustomModuleResponse + getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/java-securitycentermanagement/proto-google-cloud-securitycentermanagement-v1/src/main/java/com/google/cloud/securitycentermanagement/v1/SimulateSecurityHealthAnalyticsCustomModuleResponseOrBuilder.java b/java-securitycentermanagement/proto-google-cloud-securitycentermanagement-v1/src/main/java/com/google/cloud/securitycentermanagement/v1/SimulateSecurityHealthAnalyticsCustomModuleResponseOrBuilder.java new file mode 100644 index 000000000000..fd52d3c3cf96 --- /dev/null +++ b/java-securitycentermanagement/proto-google-cloud-securitycentermanagement-v1/src/main/java/com/google/cloud/securitycentermanagement/v1/SimulateSecurityHealthAnalyticsCustomModuleResponseOrBuilder.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/securitycentermanagement/v1/security_center_management.proto + +package com.google.cloud.securitycentermanagement.v1; + +public interface SimulateSecurityHealthAnalyticsCustomModuleResponseOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.securitycentermanagement.v1.SimulateSecurityHealthAnalyticsCustomModuleResponse) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Result for test case in the corresponding request.
+   * 
+ * + * + * .google.cloud.securitycentermanagement.v1.SimulateSecurityHealthAnalyticsCustomModuleResponse.SimulatedResult result = 1; + * + * + * @return Whether the result field is set. + */ + boolean hasResult(); + /** + * + * + *
+   * Result for test case in the corresponding request.
+   * 
+ * + * + * .google.cloud.securitycentermanagement.v1.SimulateSecurityHealthAnalyticsCustomModuleResponse.SimulatedResult result = 1; + * + * + * @return The result. + */ + com.google.cloud.securitycentermanagement.v1.SimulateSecurityHealthAnalyticsCustomModuleResponse + .SimulatedResult + getResult(); + /** + * + * + *
+   * Result for test case in the corresponding request.
+   * 
+ * + * + * .google.cloud.securitycentermanagement.v1.SimulateSecurityHealthAnalyticsCustomModuleResponse.SimulatedResult result = 1; + * + */ + com.google.cloud.securitycentermanagement.v1.SimulateSecurityHealthAnalyticsCustomModuleResponse + .SimulatedResultOrBuilder + getResultOrBuilder(); +} diff --git a/owl-bot-staging/java-securitycentermanagement/v1/proto-google-cloud-securitycentermanagement-v1/src/main/java/com/google/cloud/securitycentermanagement/v1/SimulatedFinding.java b/java-securitycentermanagement/proto-google-cloud-securitycentermanagement-v1/src/main/java/com/google/cloud/securitycentermanagement/v1/SimulatedFinding.java similarity index 73% rename from owl-bot-staging/java-securitycentermanagement/v1/proto-google-cloud-securitycentermanagement-v1/src/main/java/com/google/cloud/securitycentermanagement/v1/SimulatedFinding.java rename to java-securitycentermanagement/proto-google-cloud-securitycentermanagement-v1/src/main/java/com/google/cloud/securitycentermanagement/v1/SimulatedFinding.java index 183abe42cfff..4ddd706272cc 100644 --- a/owl-bot-staging/java-securitycentermanagement/v1/proto-google-cloud-securitycentermanagement-v1/src/main/java/com/google/cloud/securitycentermanagement/v1/SimulatedFinding.java +++ b/java-securitycentermanagement/proto-google-cloud-securitycentermanagement-v1/src/main/java/com/google/cloud/securitycentermanagement/v1/SimulatedFinding.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/securitycentermanagement/v1/security_center_management.proto package com.google.cloud.securitycentermanagement.v1; /** + * + * *
  * A subset of the fields of the Security Center Finding proto. The minimum set
  * of fields needed to represent a simulated finding from a SHA custom module.
@@ -11,15 +28,16 @@
  *
  * Protobuf type {@code google.cloud.securitycentermanagement.v1.SimulatedFinding}
  */
-public final class SimulatedFinding extends
-    com.google.protobuf.GeneratedMessageV3 implements
+public final class SimulatedFinding extends com.google.protobuf.GeneratedMessageV3
+    implements
     // @@protoc_insertion_point(message_implements:google.cloud.securitycentermanagement.v1.SimulatedFinding)
     SimulatedFindingOrBuilder {
-private static final long serialVersionUID = 0L;
+  private static final long serialVersionUID = 0L;
   // Use SimulatedFinding.newBuilder() to construct.
   private SimulatedFinding(com.google.protobuf.GeneratedMessageV3.Builder builder) {
     super(builder);
   }
+
   private SimulatedFinding() {
     name_ = "";
     parent_ = "";
@@ -32,46 +50,49 @@ private SimulatedFinding() {
 
   @java.lang.Override
   @SuppressWarnings({"unused"})
-  protected java.lang.Object newInstance(
-      UnusedPrivateParameter unused) {
+  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
     return new SimulatedFinding();
   }
 
-  public static final com.google.protobuf.Descriptors.Descriptor
-      getDescriptor() {
-    return com.google.cloud.securitycentermanagement.v1.SecurityCenterManagementProto.internal_static_google_cloud_securitycentermanagement_v1_SimulatedFinding_descriptor;
+  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+    return com.google.cloud.securitycentermanagement.v1.SecurityCenterManagementProto
+        .internal_static_google_cloud_securitycentermanagement_v1_SimulatedFinding_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 6:
         return internalGetSourceProperties();
       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.securitycentermanagement.v1.SecurityCenterManagementProto.internal_static_google_cloud_securitycentermanagement_v1_SimulatedFinding_fieldAccessorTable
+    return com.google.cloud.securitycentermanagement.v1.SecurityCenterManagementProto
+        .internal_static_google_cloud_securitycentermanagement_v1_SimulatedFinding_fieldAccessorTable
         .ensureFieldAccessorsInitialized(
-            com.google.cloud.securitycentermanagement.v1.SimulatedFinding.class, com.google.cloud.securitycentermanagement.v1.SimulatedFinding.Builder.class);
+            com.google.cloud.securitycentermanagement.v1.SimulatedFinding.class,
+            com.google.cloud.securitycentermanagement.v1.SimulatedFinding.Builder.class);
   }
 
   /**
+   *
+   *
    * 
    * The state of the finding.
    * 
* * Protobuf enum {@code google.cloud.securitycentermanagement.v1.SimulatedFinding.State} */ - public enum State - implements com.google.protobuf.ProtocolMessageEnum { + public enum State implements com.google.protobuf.ProtocolMessageEnum { /** + * + * *
      * Unspecified state.
      * 
@@ -80,6 +101,8 @@ public enum State */ STATE_UNSPECIFIED(0), /** + * + * *
      * The finding requires attention and has not been addressed yet.
      * 
@@ -88,6 +111,8 @@ public enum State */ ACTIVE(1), /** + * + * *
      * The finding has been fixed, triaged as a non-issue or otherwise addressed
      * and is no longer active.
@@ -100,6 +125,8 @@ public enum State
     ;
 
     /**
+     *
+     *
      * 
      * Unspecified state.
      * 
@@ -108,6 +135,8 @@ public enum State */ public static final int STATE_UNSPECIFIED_VALUE = 0; /** + * + * *
      * The finding requires attention and has not been addressed yet.
      * 
@@ -116,6 +145,8 @@ public enum State */ public static final int ACTIVE_VALUE = 1; /** + * + * *
      * The finding has been fixed, triaged as a non-issue or otherwise addressed
      * and is no longer active.
@@ -125,7 +156,6 @@ public enum State
      */
     public static final int INACTIVE_VALUE = 2;
 
-
     public final int getNumber() {
       if (this == UNRECOGNIZED) {
         throw new java.lang.IllegalArgumentException(
@@ -150,49 +180,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 INACTIVE;
-        default: return null;
+        case 0:
+          return STATE_UNSPECIFIED;
+        case 1:
+          return ACTIVE;
+        case 2:
+          return INACTIVE;
+        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.securitycentermanagement.v1.SimulatedFinding.getDescriptor().getEnumTypes().get(0);
+
+    public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() {
+      return com.google.cloud.securitycentermanagement.v1.SimulatedFinding.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;
@@ -210,15 +242,18 @@ private State(int value) {
   }
 
   /**
+   *
+   *
    * 
    * The severity of the finding.
    * 
* * Protobuf enum {@code google.cloud.securitycentermanagement.v1.SimulatedFinding.Severity} */ - public enum Severity - implements com.google.protobuf.ProtocolMessageEnum { + public enum Severity implements com.google.protobuf.ProtocolMessageEnum { /** + * + * *
      * This value is used for findings when a source doesn't write a severity
      * value.
@@ -228,6 +263,8 @@ public enum Severity
      */
     SEVERITY_UNSPECIFIED(0),
     /**
+     *
+     *
      * 
      * Vulnerability:
      * A critical vulnerability is easily discoverable by an external actor,
@@ -246,6 +283,8 @@ public enum Severity
      */
     CRITICAL(1),
     /**
+     *
+     *
      * 
      * Vulnerability:
      * A high risk vulnerability can be easily discovered and exploited in
@@ -266,6 +305,8 @@ public enum Severity
      */
     HIGH(2),
     /**
+     *
+     *
      * 
      * Vulnerability:
      * A medium risk vulnerability could be used by an actor to gain access to
@@ -285,6 +326,8 @@ public enum Severity
      */
     MEDIUM(3),
     /**
+     *
+     *
      * 
      * Vulnerability:
      * A low risk vulnerability hampers a security organization's ability to
@@ -304,6 +347,8 @@ public enum Severity
     ;
 
     /**
+     *
+     *
      * 
      * This value is used for findings when a source doesn't write a severity
      * value.
@@ -313,6 +358,8 @@ public enum Severity
      */
     public static final int SEVERITY_UNSPECIFIED_VALUE = 0;
     /**
+     *
+     *
      * 
      * Vulnerability:
      * A critical vulnerability is easily discoverable by an external actor,
@@ -331,6 +378,8 @@ public enum Severity
      */
     public static final int CRITICAL_VALUE = 1;
     /**
+     *
+     *
      * 
      * Vulnerability:
      * A high risk vulnerability can be easily discovered and exploited in
@@ -351,6 +400,8 @@ public enum Severity
      */
     public static final int HIGH_VALUE = 2;
     /**
+     *
+     *
      * 
      * Vulnerability:
      * A medium risk vulnerability could be used by an actor to gain access to
@@ -370,6 +421,8 @@ public enum Severity
      */
     public static final int MEDIUM_VALUE = 3;
     /**
+     *
+     *
      * 
      * Vulnerability:
      * A low risk vulnerability hampers a security organization's ability to
@@ -386,7 +439,6 @@ public enum Severity
      */
     public static final int LOW_VALUE = 4;
 
-
     public final int getNumber() {
       if (this == UNRECOGNIZED) {
         throw new java.lang.IllegalArgumentException(
@@ -411,51 +463,55 @@ 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() {
-      return com.google.cloud.securitycentermanagement.v1.SimulatedFinding.getDescriptor().getEnumTypes().get(1);
+
+    public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() {
+      return com.google.cloud.securitycentermanagement.v1.SimulatedFinding.getDescriptor()
+          .getEnumTypes()
+          .get(1);
     }
 
     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;
@@ -473,15 +529,18 @@ private Severity(int value) {
   }
 
   /**
+   *
+   *
    * 
    * Represents what kind of Finding it is.
    * 
* * Protobuf enum {@code google.cloud.securitycentermanagement.v1.SimulatedFinding.FindingClass} */ - public enum FindingClass - implements com.google.protobuf.ProtocolMessageEnum { + public enum FindingClass implements com.google.protobuf.ProtocolMessageEnum { /** + * + * *
      * Unspecified finding class.
      * 
@@ -490,6 +549,8 @@ public enum FindingClass */ FINDING_CLASS_UNSPECIFIED(0), /** + * + * *
      * Describes unwanted or malicious activity.
      * 
@@ -498,6 +559,8 @@ public enum FindingClass */ THREAT(1), /** + * + * *
      * Describes a potential weakness in software that increases risk to
      * Confidentiality & Integrity & Availability.
@@ -507,6 +570,8 @@ public enum FindingClass
      */
     VULNERABILITY(2),
     /**
+     *
+     *
      * 
      * Describes a potential weakness in cloud resource/asset configuration that
      * increases risk.
@@ -516,6 +581,8 @@ public enum FindingClass
      */
     MISCONFIGURATION(3),
     /**
+     *
+     *
      * 
      * Describes a security observation that is for informational purposes.
      * 
@@ -524,6 +591,8 @@ public enum FindingClass */ OBSERVATION(4), /** + * + * *
      * Describes an error that prevents some SCC functionality.
      * 
@@ -532,6 +601,8 @@ public enum FindingClass */ SCC_ERROR(5), /** + * + * *
      * Describes a potential security risk due to a change in the security
      * posture.
@@ -544,6 +615,8 @@ public enum FindingClass
     ;
 
     /**
+     *
+     *
      * 
      * Unspecified finding class.
      * 
@@ -552,6 +625,8 @@ public enum FindingClass */ public static final int FINDING_CLASS_UNSPECIFIED_VALUE = 0; /** + * + * *
      * Describes unwanted or malicious activity.
      * 
@@ -560,6 +635,8 @@ public enum FindingClass */ public static final int THREAT_VALUE = 1; /** + * + * *
      * Describes a potential weakness in software that increases risk to
      * Confidentiality & Integrity & Availability.
@@ -569,6 +646,8 @@ public enum FindingClass
      */
     public static final int VULNERABILITY_VALUE = 2;
     /**
+     *
+     *
      * 
      * Describes a potential weakness in cloud resource/asset configuration that
      * increases risk.
@@ -578,6 +657,8 @@ public enum FindingClass
      */
     public static final int MISCONFIGURATION_VALUE = 3;
     /**
+     *
+     *
      * 
      * Describes a security observation that is for informational purposes.
      * 
@@ -586,6 +667,8 @@ public enum FindingClass */ public static final int OBSERVATION_VALUE = 4; /** + * + * *
      * Describes an error that prevents some SCC functionality.
      * 
@@ -594,6 +677,8 @@ public enum FindingClass */ public static final int SCC_ERROR_VALUE = 5; /** + * + * *
      * Describes a potential security risk due to a change in the security
      * posture.
@@ -603,7 +688,6 @@ public enum FindingClass
      */
     public static final int POSTURE_VIOLATION_VALUE = 6;
 
-
     public final int getNumber() {
       if (this == UNRECOGNIZED) {
         throw new java.lang.IllegalArgumentException(
@@ -628,53 +712,59 @@ public static FindingClass valueOf(int value) {
      */
     public static FindingClass forNumber(int value) {
       switch (value) {
-        case 0: return FINDING_CLASS_UNSPECIFIED;
-        case 1: return THREAT;
-        case 2: return VULNERABILITY;
-        case 3: return MISCONFIGURATION;
-        case 4: return OBSERVATION;
-        case 5: return SCC_ERROR;
-        case 6: return POSTURE_VIOLATION;
-        default: return null;
+        case 0:
+          return FINDING_CLASS_UNSPECIFIED;
+        case 1:
+          return THREAT;
+        case 2:
+          return VULNERABILITY;
+        case 3:
+          return MISCONFIGURATION;
+        case 4:
+          return OBSERVATION;
+        case 5:
+          return SCC_ERROR;
+        case 6:
+          return POSTURE_VIOLATION;
+        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<
-        FindingClass> internalValueMap =
-          new com.google.protobuf.Internal.EnumLiteMap() {
-            public FindingClass findValueByNumber(int number) {
-              return FindingClass.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 FindingClass findValueByNumber(int number) {
+            return FindingClass.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.securitycentermanagement.v1.SimulatedFinding.getDescriptor().getEnumTypes().get(2);
+
+    public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() {
+      return com.google.cloud.securitycentermanagement.v1.SimulatedFinding.getDescriptor()
+          .getEnumTypes()
+          .get(2);
     }
 
     private static final FindingClass[] VALUES = values();
 
-    public static FindingClass valueOf(
-        com.google.protobuf.Descriptors.EnumValueDescriptor desc) {
+    public static FindingClass 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;
@@ -692,9 +782,12 @@ private FindingClass(int value) {
   }
 
   public static final int NAME_FIELD_NUMBER = 1;
+
   @SuppressWarnings("serial")
   private volatile java.lang.Object name_ = "";
   /**
+   *
+   *
    * 
    * Identifier. The [relative resource
    * name](https://cloud.google.com/apis/design/resource_names#relative_resource_name)
@@ -705,6 +798,7 @@ private FindingClass(int value) {
    * 
* * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; + * * @return The name. */ @java.lang.Override @@ -713,14 +807,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; } } /** + * + * *
    * Identifier. The [relative resource
    * name](https://cloud.google.com/apis/design/resource_names#relative_resource_name)
@@ -731,16 +826,15 @@ public java.lang.String getName() {
    * 
* * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; + * * @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 { @@ -749,9 +843,12 @@ public java.lang.String getName() { } public static final int PARENT_FIELD_NUMBER = 2; + @SuppressWarnings("serial") private volatile java.lang.Object parent_ = ""; /** + * + * *
    * The relative resource name of the source the finding belongs to. See:
    * https://cloud.google.com/apis/design/resource_names#relative_resource_name
@@ -761,6 +858,7 @@ public java.lang.String getName() {
    * 
* * string parent = 2; + * * @return The parent. */ @java.lang.Override @@ -769,14 +867,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; } } /** + * + * *
    * The relative resource name of the source the finding belongs to. See:
    * https://cloud.google.com/apis/design/resource_names#relative_resource_name
@@ -786,16 +885,15 @@ public java.lang.String getParent() {
    * 
* * string parent = 2; + * * @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 { @@ -804,9 +902,12 @@ public java.lang.String getParent() { } public static final int RESOURCE_NAME_FIELD_NUMBER = 3; + @SuppressWarnings("serial") private volatile java.lang.Object resourceName_ = ""; /** + * + * *
    * For findings on Google Cloud resources, the full resource
    * name of the Google Cloud resource this finding is for. See:
@@ -817,6 +918,7 @@ public java.lang.String getParent() {
    * 
* * string resource_name = 3; + * * @return The resourceName. */ @java.lang.Override @@ -825,14 +927,15 @@ public java.lang.String getResourceName() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); resourceName_ = s; return s; } } /** + * + * *
    * For findings on Google Cloud resources, the full resource
    * name of the Google Cloud resource this finding is for. See:
@@ -843,16 +946,15 @@ public java.lang.String getResourceName() {
    * 
* * string resource_name = 3; + * * @return The bytes for resourceName. */ @java.lang.Override - public com.google.protobuf.ByteString - getResourceNameBytes() { + public com.google.protobuf.ByteString getResourceNameBytes() { java.lang.Object ref = resourceName_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); resourceName_ = b; return b; } else { @@ -861,9 +963,12 @@ public java.lang.String getResourceName() { } public static final int CATEGORY_FIELD_NUMBER = 4; + @SuppressWarnings("serial") private volatile java.lang.Object category_ = ""; /** + * + * *
    * The additional taxonomy group within findings from a given source.
    * This field is immutable after creation time.
@@ -871,6 +976,7 @@ public java.lang.String getResourceName() {
    * 
* * string category = 4; + * * @return The category. */ @java.lang.Override @@ -879,14 +985,15 @@ public java.lang.String getCategory() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); category_ = s; return s; } } /** + * + * *
    * The additional taxonomy group within findings from a given source.
    * This field is immutable after creation time.
@@ -894,16 +1001,15 @@ public java.lang.String getCategory() {
    * 
* * string category = 4; + * * @return The bytes for category. */ @java.lang.Override - public com.google.protobuf.ByteString - getCategoryBytes() { + public com.google.protobuf.ByteString getCategoryBytes() { java.lang.Object ref = category_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); category_ = b; return b; } else { @@ -914,56 +1020,78 @@ public java.lang.String getCategory() { public static final int STATE_FIELD_NUMBER = 5; private int state_ = 0; /** + * + * *
    * Output only. The state of the finding.
    * 
* - * .google.cloud.securitycentermanagement.v1.SimulatedFinding.State state = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.securitycentermanagement.v1.SimulatedFinding.State state = 5 [(.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. The state of the finding.
    * 
* - * .google.cloud.securitycentermanagement.v1.SimulatedFinding.State state = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.securitycentermanagement.v1.SimulatedFinding.State state = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The state. */ - @java.lang.Override public com.google.cloud.securitycentermanagement.v1.SimulatedFinding.State getState() { - com.google.cloud.securitycentermanagement.v1.SimulatedFinding.State result = com.google.cloud.securitycentermanagement.v1.SimulatedFinding.State.forNumber(state_); - return result == null ? com.google.cloud.securitycentermanagement.v1.SimulatedFinding.State.UNRECOGNIZED : result; + @java.lang.Override + public com.google.cloud.securitycentermanagement.v1.SimulatedFinding.State getState() { + com.google.cloud.securitycentermanagement.v1.SimulatedFinding.State result = + com.google.cloud.securitycentermanagement.v1.SimulatedFinding.State.forNumber(state_); + return result == null + ? com.google.cloud.securitycentermanagement.v1.SimulatedFinding.State.UNRECOGNIZED + : result; } public static final int SOURCE_PROPERTIES_FIELD_NUMBER = 6; + private static final class SourcePropertiesDefaultEntryHolder { - static final com.google.protobuf.MapEntry< - java.lang.String, com.google.protobuf.Value> defaultEntry = + static final com.google.protobuf.MapEntry + defaultEntry = com.google.protobuf.MapEntry - .newDefaultInstance( - com.google.cloud.securitycentermanagement.v1.SecurityCenterManagementProto.internal_static_google_cloud_securitycentermanagement_v1_SimulatedFinding_SourcePropertiesEntry_descriptor, - com.google.protobuf.WireFormat.FieldType.STRING, - "", - com.google.protobuf.WireFormat.FieldType.MESSAGE, - com.google.protobuf.Value.getDefaultInstance()); + .newDefaultInstance( + com.google.cloud.securitycentermanagement.v1.SecurityCenterManagementProto + .internal_static_google_cloud_securitycentermanagement_v1_SimulatedFinding_SourcePropertiesEntry_descriptor, + com.google.protobuf.WireFormat.FieldType.STRING, + "", + com.google.protobuf.WireFormat.FieldType.MESSAGE, + com.google.protobuf.Value.getDefaultInstance()); } + @SuppressWarnings("serial") - private com.google.protobuf.MapField< - java.lang.String, com.google.protobuf.Value> sourceProperties_; private com.google.protobuf.MapField - internalGetSourceProperties() { + sourceProperties_; + + private com.google.protobuf.MapField + internalGetSourceProperties() { if (sourceProperties_ == null) { return com.google.protobuf.MapField.emptyMapField( SourcePropertiesDefaultEntryHolder.defaultEntry); } return sourceProperties_; } + public int getSourcePropertiesCount() { return internalGetSourceProperties().getMap().size(); } /** + * + * *
    * Source specific properties. These properties are managed by the source
    * that writes the finding. The key names in the source_properties map must be
@@ -974,20 +1102,21 @@ public int getSourcePropertiesCount() {
    * map<string, .google.protobuf.Value> source_properties = 6;
    */
   @java.lang.Override
-  public boolean containsSourceProperties(
-      java.lang.String key) {
-    if (key == null) { throw new NullPointerException("map key"); }
+  public boolean containsSourceProperties(java.lang.String key) {
+    if (key == null) {
+      throw new NullPointerException("map key");
+    }
     return internalGetSourceProperties().getMap().containsKey(key);
   }
-  /**
-   * Use {@link #getSourcePropertiesMap()} instead.
-   */
+  /** Use {@link #getSourcePropertiesMap()} instead. */
   @java.lang.Override
   @java.lang.Deprecated
   public java.util.Map getSourceProperties() {
     return getSourcePropertiesMap();
   }
   /**
+   *
+   *
    * 
    * Source specific properties. These properties are managed by the source
    * that writes the finding. The key names in the source_properties map must be
@@ -1002,6 +1131,8 @@ public java.util.Map getSourcePrope
     return internalGetSourceProperties().getMap();
   }
   /**
+   *
+   *
    * 
    * Source specific properties. These properties are managed by the source
    * that writes the finding. The key names in the source_properties map must be
@@ -1012,17 +1143,20 @@ public java.util.Map getSourcePrope
    * map<string, .google.protobuf.Value> source_properties = 6;
    */
   @java.lang.Override
-  public /* nullable */
-com.google.protobuf.Value getSourcePropertiesOrDefault(
+  public /* nullable */ com.google.protobuf.Value getSourcePropertiesOrDefault(
       java.lang.String key,
       /* nullable */
-com.google.protobuf.Value defaultValue) {
-    if (key == null) { throw new NullPointerException("map key"); }
+      com.google.protobuf.Value defaultValue) {
+    if (key == null) {
+      throw new NullPointerException("map key");
+    }
     java.util.Map map =
         internalGetSourceProperties().getMap();
     return map.containsKey(key) ? map.get(key) : defaultValue;
   }
   /**
+   *
+   *
    * 
    * Source specific properties. These properties are managed by the source
    * that writes the finding. The key names in the source_properties map must be
@@ -1033,9 +1167,10 @@ com.google.protobuf.Value getSourcePropertiesOrDefault(
    * map<string, .google.protobuf.Value> source_properties = 6;
    */
   @java.lang.Override
-  public com.google.protobuf.Value getSourcePropertiesOrThrow(
-      java.lang.String key) {
-    if (key == null) { throw new NullPointerException("map key"); }
+  public com.google.protobuf.Value getSourcePropertiesOrThrow(java.lang.String key) {
+    if (key == null) {
+      throw new NullPointerException("map key");
+    }
     java.util.Map map =
         internalGetSourceProperties().getMap();
     if (!map.containsKey(key)) {
@@ -1047,6 +1182,8 @@ public com.google.protobuf.Value getSourcePropertiesOrThrow(
   public static final int EVENT_TIME_FIELD_NUMBER = 7;
   private com.google.protobuf.Timestamp eventTime_;
   /**
+   *
+   *
    * 
    * The time the finding was first detected. If an existing finding is updated,
    * then this is the time the update occurred.
@@ -1058,6 +1195,7 @@ public com.google.protobuf.Value getSourcePropertiesOrThrow(
    * 
* * .google.protobuf.Timestamp event_time = 7; + * * @return Whether the eventTime field is set. */ @java.lang.Override @@ -1065,6 +1203,8 @@ public boolean hasEventTime() { return eventTime_ != null; } /** + * + * *
    * The time the finding was first detected. If an existing finding is updated,
    * then this is the time the update occurred.
@@ -1076,6 +1216,7 @@ public boolean hasEventTime() {
    * 
* * .google.protobuf.Timestamp event_time = 7; + * * @return The eventTime. */ @java.lang.Override @@ -1083,6 +1224,8 @@ public com.google.protobuf.Timestamp getEventTime() { return eventTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : eventTime_; } /** + * + * *
    * The time the finding was first detected. If an existing finding is updated,
    * then this is the time the update occurred.
@@ -1103,58 +1246,87 @@ public com.google.protobuf.TimestampOrBuilder getEventTimeOrBuilder() {
   public static final int SEVERITY_FIELD_NUMBER = 8;
   private int severity_ = 0;
   /**
+   *
+   *
    * 
    * The severity of the finding. This field is managed by the source that
    * writes the finding.
    * 
* * .google.cloud.securitycentermanagement.v1.SimulatedFinding.Severity severity = 8; + * * @return The enum numeric value on the wire for severity. */ - @java.lang.Override public int getSeverityValue() { + @java.lang.Override + public int getSeverityValue() { return severity_; } /** + * + * *
    * The severity of the finding. This field is managed by the source that
    * writes the finding.
    * 
* * .google.cloud.securitycentermanagement.v1.SimulatedFinding.Severity severity = 8; + * * @return The severity. */ - @java.lang.Override public com.google.cloud.securitycentermanagement.v1.SimulatedFinding.Severity getSeverity() { - com.google.cloud.securitycentermanagement.v1.SimulatedFinding.Severity result = com.google.cloud.securitycentermanagement.v1.SimulatedFinding.Severity.forNumber(severity_); - return result == null ? com.google.cloud.securitycentermanagement.v1.SimulatedFinding.Severity.UNRECOGNIZED : result; + @java.lang.Override + public com.google.cloud.securitycentermanagement.v1.SimulatedFinding.Severity getSeverity() { + com.google.cloud.securitycentermanagement.v1.SimulatedFinding.Severity result = + com.google.cloud.securitycentermanagement.v1.SimulatedFinding.Severity.forNumber(severity_); + return result == null + ? com.google.cloud.securitycentermanagement.v1.SimulatedFinding.Severity.UNRECOGNIZED + : result; } public static final int FINDING_CLASS_FIELD_NUMBER = 9; private int findingClass_ = 0; /** + * + * *
    * The class of the finding.
    * 
* - * .google.cloud.securitycentermanagement.v1.SimulatedFinding.FindingClass finding_class = 9; + * + * .google.cloud.securitycentermanagement.v1.SimulatedFinding.FindingClass finding_class = 9; + * + * * @return The enum numeric value on the wire for findingClass. */ - @java.lang.Override public int getFindingClassValue() { + @java.lang.Override + public int getFindingClassValue() { return findingClass_; } /** + * + * *
    * The class of the finding.
    * 
* - * .google.cloud.securitycentermanagement.v1.SimulatedFinding.FindingClass finding_class = 9; + * + * .google.cloud.securitycentermanagement.v1.SimulatedFinding.FindingClass finding_class = 9; + * + * * @return The findingClass. */ - @java.lang.Override public com.google.cloud.securitycentermanagement.v1.SimulatedFinding.FindingClass getFindingClass() { - com.google.cloud.securitycentermanagement.v1.SimulatedFinding.FindingClass result = com.google.cloud.securitycentermanagement.v1.SimulatedFinding.FindingClass.forNumber(findingClass_); - return result == null ? com.google.cloud.securitycentermanagement.v1.SimulatedFinding.FindingClass.UNRECOGNIZED : result; + @java.lang.Override + public com.google.cloud.securitycentermanagement.v1.SimulatedFinding.FindingClass + getFindingClass() { + com.google.cloud.securitycentermanagement.v1.SimulatedFinding.FindingClass result = + com.google.cloud.securitycentermanagement.v1.SimulatedFinding.FindingClass.forNumber( + findingClass_); + return result == null + ? com.google.cloud.securitycentermanagement.v1.SimulatedFinding.FindingClass.UNRECOGNIZED + : result; } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -1166,8 +1338,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.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_); } @@ -1180,22 +1351,26 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(category_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 4, category_); } - if (state_ != com.google.cloud.securitycentermanagement.v1.SimulatedFinding.State.STATE_UNSPECIFIED.getNumber()) { + if (state_ + != com.google.cloud.securitycentermanagement.v1.SimulatedFinding.State.STATE_UNSPECIFIED + .getNumber()) { output.writeEnum(5, state_); } - com.google.protobuf.GeneratedMessageV3 - .serializeStringMapTo( - output, - internalGetSourceProperties(), - SourcePropertiesDefaultEntryHolder.defaultEntry, - 6); + com.google.protobuf.GeneratedMessageV3.serializeStringMapTo( + output, internalGetSourceProperties(), SourcePropertiesDefaultEntryHolder.defaultEntry, 6); if (eventTime_ != null) { output.writeMessage(7, getEventTime()); } - if (severity_ != com.google.cloud.securitycentermanagement.v1.SimulatedFinding.Severity.SEVERITY_UNSPECIFIED.getNumber()) { + if (severity_ + != com.google.cloud.securitycentermanagement.v1.SimulatedFinding.Severity + .SEVERITY_UNSPECIFIED + .getNumber()) { output.writeEnum(8, severity_); } - if (findingClass_ != com.google.cloud.securitycentermanagement.v1.SimulatedFinding.FindingClass.FINDING_CLASS_UNSPECIFIED.getNumber()) { + if (findingClass_ + != com.google.cloud.securitycentermanagement.v1.SimulatedFinding.FindingClass + .FINDING_CLASS_UNSPECIFIED + .getNumber()) { output.writeEnum(9, findingClass_); } getUnknownFields().writeTo(output); @@ -1219,31 +1394,35 @@ public int getSerializedSize() { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(category_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, category_); } - if (state_ != com.google.cloud.securitycentermanagement.v1.SimulatedFinding.State.STATE_UNSPECIFIED.getNumber()) { - size += com.google.protobuf.CodedOutputStream - .computeEnumSize(5, state_); - } - for (java.util.Map.Entry entry - : internalGetSourceProperties().getMap().entrySet()) { - com.google.protobuf.MapEntry - sourceProperties__ = SourcePropertiesDefaultEntryHolder.defaultEntry.newBuilderForType() - .setKey(entry.getKey()) - .setValue(entry.getValue()) - .build(); - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(6, sourceProperties__); + if (state_ + != com.google.cloud.securitycentermanagement.v1.SimulatedFinding.State.STATE_UNSPECIFIED + .getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(5, state_); + } + for (java.util.Map.Entry entry : + internalGetSourceProperties().getMap().entrySet()) { + com.google.protobuf.MapEntry sourceProperties__ = + SourcePropertiesDefaultEntryHolder.defaultEntry + .newBuilderForType() + .setKey(entry.getKey()) + .setValue(entry.getValue()) + .build(); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(6, sourceProperties__); } if (eventTime_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(7, getEventTime()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(7, getEventTime()); } - if (severity_ != com.google.cloud.securitycentermanagement.v1.SimulatedFinding.Severity.SEVERITY_UNSPECIFIED.getNumber()) { - size += com.google.protobuf.CodedOutputStream - .computeEnumSize(8, severity_); + if (severity_ + != com.google.cloud.securitycentermanagement.v1.SimulatedFinding.Severity + .SEVERITY_UNSPECIFIED + .getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(8, severity_); } - if (findingClass_ != com.google.cloud.securitycentermanagement.v1.SimulatedFinding.FindingClass.FINDING_CLASS_UNSPECIFIED.getNumber()) { - size += com.google.protobuf.CodedOutputStream - .computeEnumSize(9, findingClass_); + if (findingClass_ + != com.google.cloud.securitycentermanagement.v1.SimulatedFinding.FindingClass + .FINDING_CLASS_UNSPECIFIED + .getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(9, findingClass_); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -1253,28 +1432,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.securitycentermanagement.v1.SimulatedFinding)) { return super.equals(obj); } - com.google.cloud.securitycentermanagement.v1.SimulatedFinding other = (com.google.cloud.securitycentermanagement.v1.SimulatedFinding) obj; + com.google.cloud.securitycentermanagement.v1.SimulatedFinding other = + (com.google.cloud.securitycentermanagement.v1.SimulatedFinding) obj; - if (!getName() - .equals(other.getName())) return false; - if (!getParent() - .equals(other.getParent())) return false; - if (!getResourceName() - .equals(other.getResourceName())) return false; - if (!getCategory() - .equals(other.getCategory())) return false; + if (!getName().equals(other.getName())) return false; + if (!getParent().equals(other.getParent())) return false; + if (!getResourceName().equals(other.getResourceName())) return false; + if (!getCategory().equals(other.getCategory())) return false; if (state_ != other.state_) return false; - if (!internalGetSourceProperties().equals( - other.internalGetSourceProperties())) return false; + if (!internalGetSourceProperties().equals(other.internalGetSourceProperties())) return false; if (hasEventTime() != other.hasEventTime()) return false; if (hasEventTime()) { - if (!getEventTime() - .equals(other.getEventTime())) return false; + if (!getEventTime().equals(other.getEventTime())) return false; } if (severity_ != other.severity_) return false; if (findingClass_ != other.findingClass_) return false; @@ -1317,98 +1491,104 @@ public int hashCode() { } public static com.google.cloud.securitycentermanagement.v1.SimulatedFinding parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.securitycentermanagement.v1.SimulatedFinding parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.securitycentermanagement.v1.SimulatedFinding parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.securitycentermanagement.v1.SimulatedFinding parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.securitycentermanagement.v1.SimulatedFinding parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.securitycentermanagement.v1.SimulatedFinding parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.securitycentermanagement.v1.SimulatedFinding parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.securitycentermanagement.v1.SimulatedFinding parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.securitycentermanagement.v1.SimulatedFinding parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.securitycentermanagement.v1.SimulatedFinding parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.securitycentermanagement.v1.SimulatedFinding parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } public static com.google.cloud.securitycentermanagement.v1.SimulatedFinding parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.securitycentermanagement.v1.SimulatedFinding parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.securitycentermanagement.v1.SimulatedFinding parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.securitycentermanagement.v1.SimulatedFinding prototype) { + + public static Builder newBuilder( + com.google.cloud.securitycentermanagement.v1.SimulatedFinding prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected 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 subset of the fields of the Security Center Finding proto. The minimum set
    * of fields needed to represent a simulated finding from a SHA custom module.
@@ -1416,55 +1596,52 @@ protected Builder newBuilderForType(
    *
    * Protobuf type {@code google.cloud.securitycentermanagement.v1.SimulatedFinding}
    */
-  public static final class Builder extends
-      com.google.protobuf.GeneratedMessageV3.Builder implements
+  public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
+      implements
       // @@protoc_insertion_point(builder_implements:google.cloud.securitycentermanagement.v1.SimulatedFinding)
       com.google.cloud.securitycentermanagement.v1.SimulatedFindingOrBuilder {
-    public static final com.google.protobuf.Descriptors.Descriptor
-        getDescriptor() {
-      return com.google.cloud.securitycentermanagement.v1.SecurityCenterManagementProto.internal_static_google_cloud_securitycentermanagement_v1_SimulatedFinding_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+      return com.google.cloud.securitycentermanagement.v1.SecurityCenterManagementProto
+          .internal_static_google_cloud_securitycentermanagement_v1_SimulatedFinding_descriptor;
     }
 
     @SuppressWarnings({"rawtypes"})
-    protected com.google.protobuf.MapField internalGetMapField(
-        int number) {
+    protected com.google.protobuf.MapField internalGetMapField(int number) {
       switch (number) {
         case 6:
           return internalGetSourceProperties();
         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 6:
           return internalGetMutableSourceProperties();
         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.securitycentermanagement.v1.SecurityCenterManagementProto.internal_static_google_cloud_securitycentermanagement_v1_SimulatedFinding_fieldAccessorTable
+      return com.google.cloud.securitycentermanagement.v1.SecurityCenterManagementProto
+          .internal_static_google_cloud_securitycentermanagement_v1_SimulatedFinding_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.cloud.securitycentermanagement.v1.SimulatedFinding.class, com.google.cloud.securitycentermanagement.v1.SimulatedFinding.Builder.class);
+              com.google.cloud.securitycentermanagement.v1.SimulatedFinding.class,
+              com.google.cloud.securitycentermanagement.v1.SimulatedFinding.Builder.class);
     }
 
     // Construct using com.google.cloud.securitycentermanagement.v1.SimulatedFinding.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();
@@ -1486,13 +1663,14 @@ public Builder clear() {
     }
 
     @java.lang.Override
-    public com.google.protobuf.Descriptors.Descriptor
-        getDescriptorForType() {
-      return com.google.cloud.securitycentermanagement.v1.SecurityCenterManagementProto.internal_static_google_cloud_securitycentermanagement_v1_SimulatedFinding_descriptor;
+    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
+      return com.google.cloud.securitycentermanagement.v1.SecurityCenterManagementProto
+          .internal_static_google_cloud_securitycentermanagement_v1_SimulatedFinding_descriptor;
     }
 
     @java.lang.Override
-    public com.google.cloud.securitycentermanagement.v1.SimulatedFinding getDefaultInstanceForType() {
+    public com.google.cloud.securitycentermanagement.v1.SimulatedFinding
+        getDefaultInstanceForType() {
       return com.google.cloud.securitycentermanagement.v1.SimulatedFinding.getDefaultInstance();
     }
 
@@ -1507,13 +1685,17 @@ public com.google.cloud.securitycentermanagement.v1.SimulatedFinding build() {
 
     @java.lang.Override
     public com.google.cloud.securitycentermanagement.v1.SimulatedFinding buildPartial() {
-      com.google.cloud.securitycentermanagement.v1.SimulatedFinding result = new com.google.cloud.securitycentermanagement.v1.SimulatedFinding(this);
-      if (bitField0_ != 0) { buildPartial0(result); }
+      com.google.cloud.securitycentermanagement.v1.SimulatedFinding result =
+          new com.google.cloud.securitycentermanagement.v1.SimulatedFinding(this);
+      if (bitField0_ != 0) {
+        buildPartial0(result);
+      }
       onBuilt();
       return result;
     }
 
-    private void buildPartial0(com.google.cloud.securitycentermanagement.v1.SimulatedFinding result) {
+    private void buildPartial0(
+        com.google.cloud.securitycentermanagement.v1.SimulatedFinding result) {
       int from_bitField0_ = bitField0_;
       if (((from_bitField0_ & 0x00000001) != 0)) {
         result.name_ = name_;
@@ -1535,9 +1717,7 @@ private void buildPartial0(com.google.cloud.securitycentermanagement.v1.Simulate
         result.sourceProperties_.makeImmutable();
       }
       if (((from_bitField0_ & 0x00000040) != 0)) {
-        result.eventTime_ = eventTimeBuilder_ == null
-            ? eventTime_
-            : eventTimeBuilder_.build();
+        result.eventTime_ = eventTimeBuilder_ == null ? eventTime_ : eventTimeBuilder_.build();
       }
       if (((from_bitField0_ & 0x00000080) != 0)) {
         result.severity_ = severity_;
@@ -1551,38 +1731,39 @@ private void buildPartial0(com.google.cloud.securitycentermanagement.v1.Simulate
     public Builder clone() {
       return super.clone();
     }
+
     @java.lang.Override
     public Builder setField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
       return super.setField(field, value);
     }
+
     @java.lang.Override
-    public Builder clearField(
-        com.google.protobuf.Descriptors.FieldDescriptor field) {
+    public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
       return super.clearField(field);
     }
+
     @java.lang.Override
-    public Builder clearOneof(
-        com.google.protobuf.Descriptors.OneofDescriptor oneof) {
+    public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
       return super.clearOneof(oneof);
     }
+
     @java.lang.Override
     public Builder setRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        int index, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) {
       return super.setRepeatedField(field, index, value);
     }
+
     @java.lang.Override
     public Builder addRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
       return super.addRepeatedField(field, value);
     }
+
     @java.lang.Override
     public Builder mergeFrom(com.google.protobuf.Message other) {
       if (other instanceof com.google.cloud.securitycentermanagement.v1.SimulatedFinding) {
-        return mergeFrom((com.google.cloud.securitycentermanagement.v1.SimulatedFinding)other);
+        return mergeFrom((com.google.cloud.securitycentermanagement.v1.SimulatedFinding) other);
       } else {
         super.mergeFrom(other);
         return this;
@@ -1590,7 +1771,9 @@ public Builder mergeFrom(com.google.protobuf.Message other) {
     }
 
     public Builder mergeFrom(com.google.cloud.securitycentermanagement.v1.SimulatedFinding other) {
-      if (other == com.google.cloud.securitycentermanagement.v1.SimulatedFinding.getDefaultInstance()) return this;
+      if (other
+          == com.google.cloud.securitycentermanagement.v1.SimulatedFinding.getDefaultInstance())
+        return this;
       if (!other.getName().isEmpty()) {
         name_ = other.name_;
         bitField0_ |= 0x00000001;
@@ -1614,8 +1797,7 @@ public Builder mergeFrom(com.google.cloud.securitycentermanagement.v1.SimulatedF
       if (other.state_ != 0) {
         setStateValue(other.getStateValue());
       }
-      internalGetMutableSourceProperties().mergeFrom(
-          other.internalGetSourceProperties());
+      internalGetMutableSourceProperties().mergeFrom(other.internalGetSourceProperties());
       bitField0_ |= 0x00000020;
       if (other.hasEventTime()) {
         mergeEventTime(other.getEventTime());
@@ -1652,63 +1834,74 @@ public Builder mergeFrom(
             case 0:
               done = true;
               break;
-            case 10: {
-              name_ = input.readStringRequireUtf8();
-              bitField0_ |= 0x00000001;
-              break;
-            } // case 10
-            case 18: {
-              parent_ = input.readStringRequireUtf8();
-              bitField0_ |= 0x00000002;
-              break;
-            } // case 18
-            case 26: {
-              resourceName_ = input.readStringRequireUtf8();
-              bitField0_ |= 0x00000004;
-              break;
-            } // case 26
-            case 34: {
-              category_ = input.readStringRequireUtf8();
-              bitField0_ |= 0x00000008;
-              break;
-            } // case 34
-            case 40: {
-              state_ = input.readEnum();
-              bitField0_ |= 0x00000010;
-              break;
-            } // case 40
-            case 50: {
-              com.google.protobuf.MapEntry
-              sourceProperties__ = input.readMessage(
-                  SourcePropertiesDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry);
-              internalGetMutableSourceProperties().getMutableMap().put(
-                  sourceProperties__.getKey(), sourceProperties__.getValue());
-              bitField0_ |= 0x00000020;
-              break;
-            } // case 50
-            case 58: {
-              input.readMessage(
-                  getEventTimeFieldBuilder().getBuilder(),
-                  extensionRegistry);
-              bitField0_ |= 0x00000040;
-              break;
-            } // case 58
-            case 64: {
-              severity_ = input.readEnum();
-              bitField0_ |= 0x00000080;
-              break;
-            } // case 64
-            case 72: {
-              findingClass_ = input.readEnum();
-              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 18:
+              {
+                parent_ = input.readStringRequireUtf8();
+                bitField0_ |= 0x00000002;
+                break;
+              } // case 18
+            case 26:
+              {
+                resourceName_ = input.readStringRequireUtf8();
+                bitField0_ |= 0x00000004;
+                break;
+              } // case 26
+            case 34:
+              {
+                category_ = input.readStringRequireUtf8();
+                bitField0_ |= 0x00000008;
+                break;
+              } // case 34
+            case 40:
+              {
+                state_ = input.readEnum();
+                bitField0_ |= 0x00000010;
+                break;
+              } // case 40
+            case 50:
+              {
+                com.google.protobuf.MapEntry
+                    sourceProperties__ =
+                        input.readMessage(
+                            SourcePropertiesDefaultEntryHolder.defaultEntry.getParserForType(),
+                            extensionRegistry);
+                internalGetMutableSourceProperties()
+                    .getMutableMap()
+                    .put(sourceProperties__.getKey(), sourceProperties__.getValue());
+                bitField0_ |= 0x00000020;
+                break;
+              } // case 50
+            case 58:
+              {
+                input.readMessage(getEventTimeFieldBuilder().getBuilder(), extensionRegistry);
+                bitField0_ |= 0x00000040;
+                break;
+              } // case 58
+            case 64:
+              {
+                severity_ = input.readEnum();
+                bitField0_ |= 0x00000080;
+                break;
+              } // case 64
+            case 72:
+              {
+                findingClass_ = input.readEnum();
+                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) {
@@ -1718,10 +1911,13 @@ public Builder mergeFrom(
       } // finally
       return this;
     }
+
     private int bitField0_;
 
     private java.lang.Object name_ = "";
     /**
+     *
+     *
      * 
      * Identifier. The [relative resource
      * name](https://cloud.google.com/apis/design/resource_names#relative_resource_name)
@@ -1732,13 +1928,13 @@ public Builder mergeFrom(
      * 
* * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; + * * @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; @@ -1747,6 +1943,8 @@ public java.lang.String getName() { } } /** + * + * *
      * Identifier. The [relative resource
      * name](https://cloud.google.com/apis/design/resource_names#relative_resource_name)
@@ -1757,15 +1955,14 @@ public java.lang.String getName() {
      * 
* * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; + * * @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 { @@ -1773,6 +1970,8 @@ public java.lang.String getName() { } } /** + * + * *
      * Identifier. The [relative resource
      * name](https://cloud.google.com/apis/design/resource_names#relative_resource_name)
@@ -1783,18 +1982,22 @@ public java.lang.String getName() {
      * 
* * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; + * * @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; } /** + * + * *
      * Identifier. The [relative resource
      * name](https://cloud.google.com/apis/design/resource_names#relative_resource_name)
@@ -1805,6 +2008,7 @@ public Builder setName(
      * 
* * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; + * * @return This builder for chaining. */ public Builder clearName() { @@ -1814,6 +2018,8 @@ public Builder clearName() { return this; } /** + * + * *
      * Identifier. The [relative resource
      * name](https://cloud.google.com/apis/design/resource_names#relative_resource_name)
@@ -1824,12 +2030,14 @@ public Builder clearName() {
      * 
* * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; + * * @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; @@ -1839,6 +2047,8 @@ public Builder setNameBytes( private java.lang.Object parent_ = ""; /** + * + * *
      * The relative resource name of the source the finding belongs to. See:
      * https://cloud.google.com/apis/design/resource_names#relative_resource_name
@@ -1848,13 +2058,13 @@ public Builder setNameBytes(
      * 
* * string parent = 2; + * * @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; @@ -1863,6 +2073,8 @@ public java.lang.String getParent() { } } /** + * + * *
      * The relative resource name of the source the finding belongs to. See:
      * https://cloud.google.com/apis/design/resource_names#relative_resource_name
@@ -1872,15 +2084,14 @@ public java.lang.String getParent() {
      * 
* * string parent = 2; + * * @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 { @@ -1888,6 +2099,8 @@ public java.lang.String getParent() { } } /** + * + * *
      * The relative resource name of the source the finding belongs to. See:
      * https://cloud.google.com/apis/design/resource_names#relative_resource_name
@@ -1897,18 +2110,22 @@ public java.lang.String getParent() {
      * 
* * string parent = 2; + * * @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_ |= 0x00000002; onChanged(); return this; } /** + * + * *
      * The relative resource name of the source the finding belongs to. See:
      * https://cloud.google.com/apis/design/resource_names#relative_resource_name
@@ -1918,6 +2135,7 @@ public Builder setParent(
      * 
* * string parent = 2; + * * @return This builder for chaining. */ public Builder clearParent() { @@ -1927,6 +2145,8 @@ public Builder clearParent() { return this; } /** + * + * *
      * The relative resource name of the source the finding belongs to. See:
      * https://cloud.google.com/apis/design/resource_names#relative_resource_name
@@ -1936,12 +2156,14 @@ public Builder clearParent() {
      * 
* * string parent = 2; + * * @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_ |= 0x00000002; @@ -1951,6 +2173,8 @@ public Builder setParentBytes( private java.lang.Object resourceName_ = ""; /** + * + * *
      * For findings on Google Cloud resources, the full resource
      * name of the Google Cloud resource this finding is for. See:
@@ -1961,13 +2185,13 @@ public Builder setParentBytes(
      * 
* * string resource_name = 3; + * * @return The resourceName. */ public java.lang.String getResourceName() { java.lang.Object ref = resourceName_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); resourceName_ = s; return s; @@ -1976,6 +2200,8 @@ public java.lang.String getResourceName() { } } /** + * + * *
      * For findings on Google Cloud resources, the full resource
      * name of the Google Cloud resource this finding is for. See:
@@ -1986,15 +2212,14 @@ public java.lang.String getResourceName() {
      * 
* * string resource_name = 3; + * * @return The bytes for resourceName. */ - public com.google.protobuf.ByteString - getResourceNameBytes() { + public com.google.protobuf.ByteString getResourceNameBytes() { java.lang.Object ref = resourceName_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); resourceName_ = b; return b; } else { @@ -2002,6 +2227,8 @@ public java.lang.String getResourceName() { } } /** + * + * *
      * For findings on Google Cloud resources, the full resource
      * name of the Google Cloud resource this finding is for. See:
@@ -2012,18 +2239,22 @@ public java.lang.String getResourceName() {
      * 
* * string resource_name = 3; + * * @param value The resourceName to set. * @return This builder for chaining. */ - public Builder setResourceName( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setResourceName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } resourceName_ = value; bitField0_ |= 0x00000004; onChanged(); return this; } /** + * + * *
      * For findings on Google Cloud resources, the full resource
      * name of the Google Cloud resource this finding is for. See:
@@ -2034,6 +2265,7 @@ public Builder setResourceName(
      * 
* * string resource_name = 3; + * * @return This builder for chaining. */ public Builder clearResourceName() { @@ -2043,6 +2275,8 @@ public Builder clearResourceName() { return this; } /** + * + * *
      * For findings on Google Cloud resources, the full resource
      * name of the Google Cloud resource this finding is for. See:
@@ -2053,12 +2287,14 @@ public Builder clearResourceName() {
      * 
* * string resource_name = 3; + * * @param value The bytes for resourceName to set. * @return This builder for chaining. */ - public Builder setResourceNameBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder setResourceNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); resourceName_ = value; bitField0_ |= 0x00000004; @@ -2068,6 +2304,8 @@ public Builder setResourceNameBytes( private java.lang.Object category_ = ""; /** + * + * *
      * The additional taxonomy group within findings from a given source.
      * This field is immutable after creation time.
@@ -2075,13 +2313,13 @@ public Builder setResourceNameBytes(
      * 
* * string category = 4; + * * @return The category. */ public java.lang.String getCategory() { java.lang.Object ref = category_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); category_ = s; return s; @@ -2090,6 +2328,8 @@ public java.lang.String getCategory() { } } /** + * + * *
      * The additional taxonomy group within findings from a given source.
      * This field is immutable after creation time.
@@ -2097,15 +2337,14 @@ public java.lang.String getCategory() {
      * 
* * string category = 4; + * * @return The bytes for category. */ - public com.google.protobuf.ByteString - getCategoryBytes() { + public com.google.protobuf.ByteString getCategoryBytes() { java.lang.Object ref = category_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); category_ = b; return b; } else { @@ -2113,6 +2352,8 @@ public java.lang.String getCategory() { } } /** + * + * *
      * The additional taxonomy group within findings from a given source.
      * This field is immutable after creation time.
@@ -2120,18 +2361,22 @@ public java.lang.String getCategory() {
      * 
* * string category = 4; + * * @param value The category to set. * @return This builder for chaining. */ - public Builder setCategory( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setCategory(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } category_ = value; bitField0_ |= 0x00000008; onChanged(); return this; } /** + * + * *
      * The additional taxonomy group within findings from a given source.
      * This field is immutable after creation time.
@@ -2139,6 +2384,7 @@ public Builder setCategory(
      * 
* * string category = 4; + * * @return This builder for chaining. */ public Builder clearCategory() { @@ -2148,6 +2394,8 @@ public Builder clearCategory() { return this; } /** + * + * *
      * The additional taxonomy group within findings from a given source.
      * This field is immutable after creation time.
@@ -2155,12 +2403,14 @@ public Builder clearCategory() {
      * 
* * string category = 4; + * * @param value The bytes for category to set. * @return This builder for chaining. */ - public Builder setCategoryBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder setCategoryBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); category_ = value; bitField0_ |= 0x00000008; @@ -2170,22 +2420,33 @@ public Builder setCategoryBytes( private int state_ = 0; /** + * + * *
      * Output only. The state of the finding.
      * 
* - * .google.cloud.securitycentermanagement.v1.SimulatedFinding.State state = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.securitycentermanagement.v1.SimulatedFinding.State state = 5 [(.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. The state of the finding.
      * 
* - * .google.cloud.securitycentermanagement.v1.SimulatedFinding.State state = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.securitycentermanagement.v1.SimulatedFinding.State state = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @param value The enum numeric value on the wire for state to set. * @return This builder for chaining. */ @@ -2196,28 +2457,42 @@ public Builder setStateValue(int value) { return this; } /** + * + * *
      * Output only. The state of the finding.
      * 
* - * .google.cloud.securitycentermanagement.v1.SimulatedFinding.State state = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.securitycentermanagement.v1.SimulatedFinding.State state = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The state. */ @java.lang.Override public com.google.cloud.securitycentermanagement.v1.SimulatedFinding.State getState() { - com.google.cloud.securitycentermanagement.v1.SimulatedFinding.State result = com.google.cloud.securitycentermanagement.v1.SimulatedFinding.State.forNumber(state_); - return result == null ? com.google.cloud.securitycentermanagement.v1.SimulatedFinding.State.UNRECOGNIZED : result; + com.google.cloud.securitycentermanagement.v1.SimulatedFinding.State result = + com.google.cloud.securitycentermanagement.v1.SimulatedFinding.State.forNumber(state_); + return result == null + ? com.google.cloud.securitycentermanagement.v1.SimulatedFinding.State.UNRECOGNIZED + : result; } /** + * + * *
      * Output only. The state of the finding.
      * 
* - * .google.cloud.securitycentermanagement.v1.SimulatedFinding.State state = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.securitycentermanagement.v1.SimulatedFinding.State state = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @param value The state to set. * @return This builder for chaining. */ - public Builder setState(com.google.cloud.securitycentermanagement.v1.SimulatedFinding.State value) { + public Builder setState( + com.google.cloud.securitycentermanagement.v1.SimulatedFinding.State value) { if (value == null) { throw new NullPointerException(); } @@ -2227,11 +2502,16 @@ public Builder setState(com.google.cloud.securitycentermanagement.v1.SimulatedFi return this; } /** + * + * *
      * Output only. The state of the finding.
      * 
* - * .google.cloud.securitycentermanagement.v1.SimulatedFinding.State state = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.securitycentermanagement.v1.SimulatedFinding.State state = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return This builder for chaining. */ public Builder clearState() { @@ -2241,8 +2521,9 @@ public Builder clearState() { return this; } - private com.google.protobuf.MapField< - java.lang.String, com.google.protobuf.Value> sourceProperties_; + private com.google.protobuf.MapField + sourceProperties_; + private com.google.protobuf.MapField internalGetSourceProperties() { if (sourceProperties_ == null) { @@ -2251,11 +2532,13 @@ public Builder clearState() { } return sourceProperties_; } + private com.google.protobuf.MapField internalGetMutableSourceProperties() { if (sourceProperties_ == null) { - sourceProperties_ = com.google.protobuf.MapField.newMapField( - SourcePropertiesDefaultEntryHolder.defaultEntry); + sourceProperties_ = + com.google.protobuf.MapField.newMapField( + SourcePropertiesDefaultEntryHolder.defaultEntry); } if (!sourceProperties_.isMutable()) { sourceProperties_ = sourceProperties_.copy(); @@ -2264,10 +2547,13 @@ public Builder clearState() { onChanged(); return sourceProperties_; } + public int getSourcePropertiesCount() { return internalGetSourceProperties().getMap().size(); } /** + * + * *
      * Source specific properties. These properties are managed by the source
      * that writes the finding. The key names in the source_properties map must be
@@ -2278,20 +2564,21 @@ public int getSourcePropertiesCount() {
      * map<string, .google.protobuf.Value> source_properties = 6;
      */
     @java.lang.Override
-    public boolean containsSourceProperties(
-        java.lang.String key) {
-      if (key == null) { throw new NullPointerException("map key"); }
+    public boolean containsSourceProperties(java.lang.String key) {
+      if (key == null) {
+        throw new NullPointerException("map key");
+      }
       return internalGetSourceProperties().getMap().containsKey(key);
     }
-    /**
-     * Use {@link #getSourcePropertiesMap()} instead.
-     */
+    /** Use {@link #getSourcePropertiesMap()} instead. */
     @java.lang.Override
     @java.lang.Deprecated
     public java.util.Map getSourceProperties() {
       return getSourcePropertiesMap();
     }
     /**
+     *
+     *
      * 
      * Source specific properties. These properties are managed by the source
      * that writes the finding. The key names in the source_properties map must be
@@ -2306,6 +2593,8 @@ public java.util.Map getSourcePrope
       return internalGetSourceProperties().getMap();
     }
     /**
+     *
+     *
      * 
      * Source specific properties. These properties are managed by the source
      * that writes the finding. The key names in the source_properties map must be
@@ -2316,17 +2605,20 @@ public java.util.Map getSourcePrope
      * map<string, .google.protobuf.Value> source_properties = 6;
      */
     @java.lang.Override
-    public /* nullable */
-com.google.protobuf.Value getSourcePropertiesOrDefault(
+    public /* nullable */ com.google.protobuf.Value getSourcePropertiesOrDefault(
         java.lang.String key,
         /* nullable */
-com.google.protobuf.Value defaultValue) {
-      if (key == null) { throw new NullPointerException("map key"); }
+        com.google.protobuf.Value defaultValue) {
+      if (key == null) {
+        throw new NullPointerException("map key");
+      }
       java.util.Map map =
           internalGetSourceProperties().getMap();
       return map.containsKey(key) ? map.get(key) : defaultValue;
     }
     /**
+     *
+     *
      * 
      * Source specific properties. These properties are managed by the source
      * that writes the finding. The key names in the source_properties map must be
@@ -2337,9 +2629,10 @@ com.google.protobuf.Value getSourcePropertiesOrDefault(
      * map<string, .google.protobuf.Value> source_properties = 6;
      */
     @java.lang.Override
-    public com.google.protobuf.Value getSourcePropertiesOrThrow(
-        java.lang.String key) {
-      if (key == null) { throw new NullPointerException("map key"); }
+    public com.google.protobuf.Value getSourcePropertiesOrThrow(java.lang.String key) {
+      if (key == null) {
+        throw new NullPointerException("map key");
+      }
       java.util.Map map =
           internalGetSourceProperties().getMap();
       if (!map.containsKey(key)) {
@@ -2347,13 +2640,15 @@ public com.google.protobuf.Value getSourcePropertiesOrThrow(
       }
       return map.get(key);
     }
+
     public Builder clearSourceProperties() {
       bitField0_ = (bitField0_ & ~0x00000020);
-      internalGetMutableSourceProperties().getMutableMap()
-          .clear();
+      internalGetMutableSourceProperties().getMutableMap().clear();
       return this;
     }
     /**
+     *
+     *
      * 
      * Source specific properties. These properties are managed by the source
      * that writes the finding. The key names in the source_properties map must be
@@ -2363,23 +2658,22 @@ public Builder clearSourceProperties() {
      *
      * map<string, .google.protobuf.Value> source_properties = 6;
      */
-    public Builder removeSourceProperties(
-        java.lang.String key) {
-      if (key == null) { throw new NullPointerException("map key"); }
-      internalGetMutableSourceProperties().getMutableMap()
-          .remove(key);
+    public Builder removeSourceProperties(java.lang.String key) {
+      if (key == null) {
+        throw new NullPointerException("map key");
+      }
+      internalGetMutableSourceProperties().getMutableMap().remove(key);
       return this;
     }
-    /**
-     * Use alternate mutation accessors instead.
-     */
+    /** Use alternate mutation accessors instead. */
     @java.lang.Deprecated
-    public java.util.Map
-        getMutableSourceProperties() {
+    public java.util.Map getMutableSourceProperties() {
       bitField0_ |= 0x00000020;
       return internalGetMutableSourceProperties().getMutableMap();
     }
     /**
+     *
+     *
      * 
      * Source specific properties. These properties are managed by the source
      * that writes the finding. The key names in the source_properties map must be
@@ -2389,17 +2683,20 @@ public Builder removeSourceProperties(
      *
      * map<string, .google.protobuf.Value> source_properties = 6;
      */
-    public Builder putSourceProperties(
-        java.lang.String key,
-        com.google.protobuf.Value value) {
-      if (key == null) { throw new NullPointerException("map key"); }
-      if (value == null) { throw new NullPointerException("map value"); }
-      internalGetMutableSourceProperties().getMutableMap()
-          .put(key, value);
+    public Builder putSourceProperties(java.lang.String key, com.google.protobuf.Value value) {
+      if (key == null) {
+        throw new NullPointerException("map key");
+      }
+      if (value == null) {
+        throw new NullPointerException("map value");
+      }
+      internalGetMutableSourceProperties().getMutableMap().put(key, value);
       bitField0_ |= 0x00000020;
       return this;
     }
     /**
+     *
+     *
      * 
      * Source specific properties. These properties are managed by the source
      * that writes the finding. The key names in the source_properties map must be
@@ -2411,16 +2708,20 @@ public Builder putSourceProperties(
      */
     public Builder putAllSourceProperties(
         java.util.Map values) {
-      internalGetMutableSourceProperties().getMutableMap()
-          .putAll(values);
+      internalGetMutableSourceProperties().getMutableMap().putAll(values);
       bitField0_ |= 0x00000020;
       return this;
     }
 
     private com.google.protobuf.Timestamp eventTime_;
     private com.google.protobuf.SingleFieldBuilderV3<
-        com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> eventTimeBuilder_;
+            com.google.protobuf.Timestamp,
+            com.google.protobuf.Timestamp.Builder,
+            com.google.protobuf.TimestampOrBuilder>
+        eventTimeBuilder_;
     /**
+     *
+     *
      * 
      * The time the finding was first detected. If an existing finding is updated,
      * then this is the time the update occurred.
@@ -2432,12 +2733,15 @@ public Builder putAllSourceProperties(
      * 
* * .google.protobuf.Timestamp event_time = 7; + * * @return Whether the eventTime field is set. */ public boolean hasEventTime() { return ((bitField0_ & 0x00000040) != 0); } /** + * + * *
      * The time the finding was first detected. If an existing finding is updated,
      * then this is the time the update occurred.
@@ -2449,6 +2753,7 @@ public boolean hasEventTime() {
      * 
* * .google.protobuf.Timestamp event_time = 7; + * * @return The eventTime. */ public com.google.protobuf.Timestamp getEventTime() { @@ -2459,6 +2764,8 @@ public com.google.protobuf.Timestamp getEventTime() { } } /** + * + * *
      * The time the finding was first detected. If an existing finding is updated,
      * then this is the time the update occurred.
@@ -2485,6 +2792,8 @@ public Builder setEventTime(com.google.protobuf.Timestamp value) {
       return this;
     }
     /**
+     *
+     *
      * 
      * The time the finding was first detected. If an existing finding is updated,
      * then this is the time the update occurred.
@@ -2497,8 +2806,7 @@ public Builder setEventTime(com.google.protobuf.Timestamp value) {
      *
      * .google.protobuf.Timestamp event_time = 7;
      */
-    public Builder setEventTime(
-        com.google.protobuf.Timestamp.Builder builderForValue) {
+    public Builder setEventTime(com.google.protobuf.Timestamp.Builder builderForValue) {
       if (eventTimeBuilder_ == null) {
         eventTime_ = builderForValue.build();
       } else {
@@ -2509,6 +2817,8 @@ public Builder setEventTime(
       return this;
     }
     /**
+     *
+     *
      * 
      * The time the finding was first detected. If an existing finding is updated,
      * then this is the time the update occurred.
@@ -2523,9 +2833,9 @@ public Builder setEventTime(
      */
     public Builder mergeEventTime(com.google.protobuf.Timestamp value) {
       if (eventTimeBuilder_ == null) {
-        if (((bitField0_ & 0x00000040) != 0) &&
-          eventTime_ != null &&
-          eventTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) {
+        if (((bitField0_ & 0x00000040) != 0)
+            && eventTime_ != null
+            && eventTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) {
           getEventTimeBuilder().mergeFrom(value);
         } else {
           eventTime_ = value;
@@ -2538,6 +2848,8 @@ public Builder mergeEventTime(com.google.protobuf.Timestamp value) {
       return this;
     }
     /**
+     *
+     *
      * 
      * The time the finding was first detected. If an existing finding is updated,
      * then this is the time the update occurred.
@@ -2561,6 +2873,8 @@ public Builder clearEventTime() {
       return this;
     }
     /**
+     *
+     *
      * 
      * The time the finding was first detected. If an existing finding is updated,
      * then this is the time the update occurred.
@@ -2579,6 +2893,8 @@ public com.google.protobuf.Timestamp.Builder getEventTimeBuilder() {
       return getEventTimeFieldBuilder().getBuilder();
     }
     /**
+     *
+     *
      * 
      * The time the finding was first detected. If an existing finding is updated,
      * then this is the time the update occurred.
@@ -2595,11 +2911,12 @@ public com.google.protobuf.TimestampOrBuilder getEventTimeOrBuilder() {
       if (eventTimeBuilder_ != null) {
         return eventTimeBuilder_.getMessageOrBuilder();
       } else {
-        return eventTime_ == null ?
-            com.google.protobuf.Timestamp.getDefaultInstance() : eventTime_;
+        return eventTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : eventTime_;
       }
     }
     /**
+     *
+     *
      * 
      * The time the finding was first detected. If an existing finding is updated,
      * then this is the time the update occurred.
@@ -2613,14 +2930,17 @@ public com.google.protobuf.TimestampOrBuilder getEventTimeOrBuilder() {
      * .google.protobuf.Timestamp event_time = 7;
      */
     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>
         getEventTimeFieldBuilder() {
       if (eventTimeBuilder_ == null) {
-        eventTimeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
-            com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>(
-                getEventTime(),
-                getParentForChildren(),
-                isClean());
+        eventTimeBuilder_ =
+            new com.google.protobuf.SingleFieldBuilderV3<
+                com.google.protobuf.Timestamp,
+                com.google.protobuf.Timestamp.Builder,
+                com.google.protobuf.TimestampOrBuilder>(
+                getEventTime(), getParentForChildren(), isClean());
         eventTime_ = null;
       }
       return eventTimeBuilder_;
@@ -2628,24 +2948,33 @@ public com.google.protobuf.TimestampOrBuilder getEventTimeOrBuilder() {
 
     private int severity_ = 0;
     /**
+     *
+     *
      * 
      * The severity of the finding. This field is managed by the source that
      * writes the finding.
      * 
* - * .google.cloud.securitycentermanagement.v1.SimulatedFinding.Severity severity = 8; + * .google.cloud.securitycentermanagement.v1.SimulatedFinding.Severity severity = 8; + * + * * @return The enum numeric value on the wire for severity. */ - @java.lang.Override public int getSeverityValue() { + @java.lang.Override + public int getSeverityValue() { return severity_; } /** + * + * *
      * The severity of the finding. This field is managed by the source that
      * writes the finding.
      * 
* - * .google.cloud.securitycentermanagement.v1.SimulatedFinding.Severity severity = 8; + * .google.cloud.securitycentermanagement.v1.SimulatedFinding.Severity severity = 8; + * + * * @param value The enum numeric value on the wire for severity to set. * @return This builder for chaining. */ @@ -2656,30 +2985,43 @@ public Builder setSeverityValue(int value) { return this; } /** + * + * *
      * The severity of the finding. This field is managed by the source that
      * writes the finding.
      * 
* - * .google.cloud.securitycentermanagement.v1.SimulatedFinding.Severity severity = 8; + * .google.cloud.securitycentermanagement.v1.SimulatedFinding.Severity severity = 8; + * + * * @return The severity. */ @java.lang.Override public com.google.cloud.securitycentermanagement.v1.SimulatedFinding.Severity getSeverity() { - com.google.cloud.securitycentermanagement.v1.SimulatedFinding.Severity result = com.google.cloud.securitycentermanagement.v1.SimulatedFinding.Severity.forNumber(severity_); - return result == null ? com.google.cloud.securitycentermanagement.v1.SimulatedFinding.Severity.UNRECOGNIZED : result; + com.google.cloud.securitycentermanagement.v1.SimulatedFinding.Severity result = + com.google.cloud.securitycentermanagement.v1.SimulatedFinding.Severity.forNumber( + severity_); + return result == null + ? com.google.cloud.securitycentermanagement.v1.SimulatedFinding.Severity.UNRECOGNIZED + : result; } /** + * + * *
      * The severity of the finding. This field is managed by the source that
      * writes the finding.
      * 
* - * .google.cloud.securitycentermanagement.v1.SimulatedFinding.Severity severity = 8; + * .google.cloud.securitycentermanagement.v1.SimulatedFinding.Severity severity = 8; + * + * * @param value The severity to set. * @return This builder for chaining. */ - public Builder setSeverity(com.google.cloud.securitycentermanagement.v1.SimulatedFinding.Severity value) { + public Builder setSeverity( + com.google.cloud.securitycentermanagement.v1.SimulatedFinding.Severity value) { if (value == null) { throw new NullPointerException(); } @@ -2689,12 +3031,16 @@ public Builder setSeverity(com.google.cloud.securitycentermanagement.v1.Simulate return this; } /** + * + * *
      * The severity of the finding. This field is managed by the source that
      * writes the finding.
      * 
* - * .google.cloud.securitycentermanagement.v1.SimulatedFinding.Severity severity = 8; + * .google.cloud.securitycentermanagement.v1.SimulatedFinding.Severity severity = 8; + * + * * @return This builder for chaining. */ public Builder clearSeverity() { @@ -2706,22 +3052,33 @@ public Builder clearSeverity() { private int findingClass_ = 0; /** + * + * *
      * The class of the finding.
      * 
* - * .google.cloud.securitycentermanagement.v1.SimulatedFinding.FindingClass finding_class = 9; + * + * .google.cloud.securitycentermanagement.v1.SimulatedFinding.FindingClass finding_class = 9; + * + * * @return The enum numeric value on the wire for findingClass. */ - @java.lang.Override public int getFindingClassValue() { + @java.lang.Override + public int getFindingClassValue() { return findingClass_; } /** + * + * *
      * The class of the finding.
      * 
* - * .google.cloud.securitycentermanagement.v1.SimulatedFinding.FindingClass finding_class = 9; + * + * .google.cloud.securitycentermanagement.v1.SimulatedFinding.FindingClass finding_class = 9; + * + * * @param value The enum numeric value on the wire for findingClass to set. * @return This builder for chaining. */ @@ -2732,28 +3089,44 @@ public Builder setFindingClassValue(int value) { return this; } /** + * + * *
      * The class of the finding.
      * 
* - * .google.cloud.securitycentermanagement.v1.SimulatedFinding.FindingClass finding_class = 9; + * + * .google.cloud.securitycentermanagement.v1.SimulatedFinding.FindingClass finding_class = 9; + * + * * @return The findingClass. */ @java.lang.Override - public com.google.cloud.securitycentermanagement.v1.SimulatedFinding.FindingClass getFindingClass() { - com.google.cloud.securitycentermanagement.v1.SimulatedFinding.FindingClass result = com.google.cloud.securitycentermanagement.v1.SimulatedFinding.FindingClass.forNumber(findingClass_); - return result == null ? com.google.cloud.securitycentermanagement.v1.SimulatedFinding.FindingClass.UNRECOGNIZED : result; + public com.google.cloud.securitycentermanagement.v1.SimulatedFinding.FindingClass + getFindingClass() { + com.google.cloud.securitycentermanagement.v1.SimulatedFinding.FindingClass result = + com.google.cloud.securitycentermanagement.v1.SimulatedFinding.FindingClass.forNumber( + findingClass_); + return result == null + ? com.google.cloud.securitycentermanagement.v1.SimulatedFinding.FindingClass.UNRECOGNIZED + : result; } /** + * + * *
      * The class of the finding.
      * 
* - * .google.cloud.securitycentermanagement.v1.SimulatedFinding.FindingClass finding_class = 9; + * + * .google.cloud.securitycentermanagement.v1.SimulatedFinding.FindingClass finding_class = 9; + * + * * @param value The findingClass to set. * @return This builder for chaining. */ - public Builder setFindingClass(com.google.cloud.securitycentermanagement.v1.SimulatedFinding.FindingClass value) { + public Builder setFindingClass( + com.google.cloud.securitycentermanagement.v1.SimulatedFinding.FindingClass value) { if (value == null) { throw new NullPointerException(); } @@ -2763,11 +3136,16 @@ public Builder setFindingClass(com.google.cloud.securitycentermanagement.v1.Simu return this; } /** + * + * *
      * The class of the finding.
      * 
* - * .google.cloud.securitycentermanagement.v1.SimulatedFinding.FindingClass finding_class = 9; + * + * .google.cloud.securitycentermanagement.v1.SimulatedFinding.FindingClass finding_class = 9; + * + * * @return This builder for chaining. */ public Builder clearFindingClass() { @@ -2776,9 +3154,9 @@ public Builder clearFindingClass() { onChanged(); return this; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -2788,12 +3166,13 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.securitycentermanagement.v1.SimulatedFinding) } // @@protoc_insertion_point(class_scope:google.cloud.securitycentermanagement.v1.SimulatedFinding) - private static final com.google.cloud.securitycentermanagement.v1.SimulatedFinding DEFAULT_INSTANCE; + private static final com.google.cloud.securitycentermanagement.v1.SimulatedFinding + DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.securitycentermanagement.v1.SimulatedFinding(); } @@ -2802,27 +3181,27 @@ public static com.google.cloud.securitycentermanagement.v1.SimulatedFinding getD return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public SimulatedFinding parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public SimulatedFinding parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -2837,6 +3216,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.securitycentermanagement.v1.SimulatedFinding getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/java-securitycentermanagement/v1/proto-google-cloud-securitycentermanagement-v1/src/main/java/com/google/cloud/securitycentermanagement/v1/SimulatedFindingOrBuilder.java b/java-securitycentermanagement/proto-google-cloud-securitycentermanagement-v1/src/main/java/com/google/cloud/securitycentermanagement/v1/SimulatedFindingOrBuilder.java similarity index 81% rename from owl-bot-staging/java-securitycentermanagement/v1/proto-google-cloud-securitycentermanagement-v1/src/main/java/com/google/cloud/securitycentermanagement/v1/SimulatedFindingOrBuilder.java rename to java-securitycentermanagement/proto-google-cloud-securitycentermanagement-v1/src/main/java/com/google/cloud/securitycentermanagement/v1/SimulatedFindingOrBuilder.java index b05d500e5ccc..33a61cd7ce1a 100644 --- a/owl-bot-staging/java-securitycentermanagement/v1/proto-google-cloud-securitycentermanagement-v1/src/main/java/com/google/cloud/securitycentermanagement/v1/SimulatedFindingOrBuilder.java +++ b/java-securitycentermanagement/proto-google-cloud-securitycentermanagement-v1/src/main/java/com/google/cloud/securitycentermanagement/v1/SimulatedFindingOrBuilder.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/securitycentermanagement/v1/security_center_management.proto package com.google.cloud.securitycentermanagement.v1; -public interface SimulatedFindingOrBuilder extends +public interface SimulatedFindingOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.securitycentermanagement.v1.SimulatedFinding) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * Identifier. The [relative resource
    * name](https://cloud.google.com/apis/design/resource_names#relative_resource_name)
@@ -18,10 +36,13 @@ public interface SimulatedFindingOrBuilder extends
    * 
* * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; + * * @return The name. */ java.lang.String getName(); /** + * + * *
    * Identifier. The [relative resource
    * name](https://cloud.google.com/apis/design/resource_names#relative_resource_name)
@@ -32,12 +53,14 @@ public interface SimulatedFindingOrBuilder extends
    * 
* * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; + * * @return The bytes for name. */ - com.google.protobuf.ByteString - getNameBytes(); + com.google.protobuf.ByteString getNameBytes(); /** + * + * *
    * The relative resource name of the source the finding belongs to. See:
    * https://cloud.google.com/apis/design/resource_names#relative_resource_name
@@ -47,10 +70,13 @@ public interface SimulatedFindingOrBuilder extends
    * 
* * string parent = 2; + * * @return The parent. */ java.lang.String getParent(); /** + * + * *
    * The relative resource name of the source the finding belongs to. See:
    * https://cloud.google.com/apis/design/resource_names#relative_resource_name
@@ -60,12 +86,14 @@ public interface SimulatedFindingOrBuilder extends
    * 
* * string parent = 2; + * * @return The bytes for parent. */ - com.google.protobuf.ByteString - getParentBytes(); + com.google.protobuf.ByteString getParentBytes(); /** + * + * *
    * For findings on Google Cloud resources, the full resource
    * name of the Google Cloud resource this finding is for. See:
@@ -76,10 +104,13 @@ public interface SimulatedFindingOrBuilder extends
    * 
* * string resource_name = 3; + * * @return The resourceName. */ java.lang.String getResourceName(); /** + * + * *
    * For findings on Google Cloud resources, the full resource
    * name of the Google Cloud resource this finding is for. See:
@@ -90,12 +121,14 @@ public interface SimulatedFindingOrBuilder extends
    * 
* * string resource_name = 3; + * * @return The bytes for resourceName. */ - com.google.protobuf.ByteString - getResourceNameBytes(); + com.google.protobuf.ByteString getResourceNameBytes(); /** + * + * *
    * The additional taxonomy group within findings from a given source.
    * This field is immutable after creation time.
@@ -103,10 +136,13 @@ public interface SimulatedFindingOrBuilder extends
    * 
* * string category = 4; + * * @return The category. */ java.lang.String getCategory(); /** + * + * *
    * The additional taxonomy group within findings from a given source.
    * This field is immutable after creation time.
@@ -114,31 +150,43 @@ public interface SimulatedFindingOrBuilder extends
    * 
* * string category = 4; + * * @return The bytes for category. */ - com.google.protobuf.ByteString - getCategoryBytes(); + com.google.protobuf.ByteString getCategoryBytes(); /** + * + * *
    * Output only. The state of the finding.
    * 
* - * .google.cloud.securitycentermanagement.v1.SimulatedFinding.State state = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.securitycentermanagement.v1.SimulatedFinding.State state = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The enum numeric value on the wire for state. */ int getStateValue(); /** + * + * *
    * Output only. The state of the finding.
    * 
* - * .google.cloud.securitycentermanagement.v1.SimulatedFinding.State state = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.securitycentermanagement.v1.SimulatedFinding.State state = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The state. */ com.google.cloud.securitycentermanagement.v1.SimulatedFinding.State getState(); /** + * + * *
    * Source specific properties. These properties are managed by the source
    * that writes the finding. The key names in the source_properties map must be
@@ -150,6 +198,8 @@ public interface SimulatedFindingOrBuilder extends
    */
   int getSourcePropertiesCount();
   /**
+   *
+   *
    * 
    * Source specific properties. These properties are managed by the source
    * that writes the finding. The key names in the source_properties map must be
@@ -159,15 +209,13 @@ public interface SimulatedFindingOrBuilder extends
    *
    * map<string, .google.protobuf.Value> source_properties = 6;
    */
-  boolean containsSourceProperties(
-      java.lang.String key);
-  /**
-   * Use {@link #getSourcePropertiesMap()} instead.
-   */
+  boolean containsSourceProperties(java.lang.String key);
+  /** Use {@link #getSourcePropertiesMap()} instead. */
   @java.lang.Deprecated
-  java.util.Map
-  getSourceProperties();
+  java.util.Map getSourceProperties();
   /**
+   *
+   *
    * 
    * Source specific properties. These properties are managed by the source
    * that writes the finding. The key names in the source_properties map must be
@@ -177,9 +225,10 @@ boolean containsSourceProperties(
    *
    * map<string, .google.protobuf.Value> source_properties = 6;
    */
-  java.util.Map
-  getSourcePropertiesMap();
+  java.util.Map getSourcePropertiesMap();
   /**
+   *
+   *
    * 
    * Source specific properties. These properties are managed by the source
    * that writes the finding. The key names in the source_properties map must be
@@ -190,11 +239,13 @@ boolean containsSourceProperties(
    * map<string, .google.protobuf.Value> source_properties = 6;
    */
   /* nullable */
-com.google.protobuf.Value getSourcePropertiesOrDefault(
+  com.google.protobuf.Value getSourcePropertiesOrDefault(
       java.lang.String key,
       /* nullable */
-com.google.protobuf.Value defaultValue);
+      com.google.protobuf.Value defaultValue);
   /**
+   *
+   *
    * 
    * Source specific properties. These properties are managed by the source
    * that writes the finding. The key names in the source_properties map must be
@@ -204,10 +255,11 @@ com.google.protobuf.Value getSourcePropertiesOrDefault(
    *
    * map<string, .google.protobuf.Value> source_properties = 6;
    */
-  com.google.protobuf.Value getSourcePropertiesOrThrow(
-      java.lang.String key);
+  com.google.protobuf.Value getSourcePropertiesOrThrow(java.lang.String key);
 
   /**
+   *
+   *
    * 
    * The time the finding was first detected. If an existing finding is updated,
    * then this is the time the update occurred.
@@ -219,10 +271,13 @@ com.google.protobuf.Value getSourcePropertiesOrThrow(
    * 
* * .google.protobuf.Timestamp event_time = 7; + * * @return Whether the eventTime field is set. */ boolean hasEventTime(); /** + * + * *
    * The time the finding was first detected. If an existing finding is updated,
    * then this is the time the update occurred.
@@ -234,10 +289,13 @@ com.google.protobuf.Value getSourcePropertiesOrThrow(
    * 
* * .google.protobuf.Timestamp event_time = 7; + * * @return The eventTime. */ com.google.protobuf.Timestamp getEventTime(); /** + * + * *
    * The time the finding was first detected. If an existing finding is updated,
    * then this is the time the update occurred.
@@ -253,41 +311,57 @@ com.google.protobuf.Value getSourcePropertiesOrThrow(
   com.google.protobuf.TimestampOrBuilder getEventTimeOrBuilder();
 
   /**
+   *
+   *
    * 
    * The severity of the finding. This field is managed by the source that
    * writes the finding.
    * 
* * .google.cloud.securitycentermanagement.v1.SimulatedFinding.Severity severity = 8; + * * @return The enum numeric value on the wire for severity. */ int getSeverityValue(); /** + * + * *
    * The severity of the finding. This field is managed by the source that
    * writes the finding.
    * 
* * .google.cloud.securitycentermanagement.v1.SimulatedFinding.Severity severity = 8; + * * @return The severity. */ com.google.cloud.securitycentermanagement.v1.SimulatedFinding.Severity getSeverity(); /** + * + * *
    * The class of the finding.
    * 
* - * .google.cloud.securitycentermanagement.v1.SimulatedFinding.FindingClass finding_class = 9; + * + * .google.cloud.securitycentermanagement.v1.SimulatedFinding.FindingClass finding_class = 9; + * + * * @return The enum numeric value on the wire for findingClass. */ int getFindingClassValue(); /** + * + * *
    * The class of the finding.
    * 
* - * .google.cloud.securitycentermanagement.v1.SimulatedFinding.FindingClass finding_class = 9; + * + * .google.cloud.securitycentermanagement.v1.SimulatedFinding.FindingClass finding_class = 9; + * + * * @return The findingClass. */ com.google.cloud.securitycentermanagement.v1.SimulatedFinding.FindingClass getFindingClass(); diff --git a/owl-bot-staging/java-securitycentermanagement/v1/proto-google-cloud-securitycentermanagement-v1/src/main/java/com/google/cloud/securitycentermanagement/v1/UpdateEventThreatDetectionCustomModuleRequest.java b/java-securitycentermanagement/proto-google-cloud-securitycentermanagement-v1/src/main/java/com/google/cloud/securitycentermanagement/v1/UpdateEventThreatDetectionCustomModuleRequest.java similarity index 56% rename from owl-bot-staging/java-securitycentermanagement/v1/proto-google-cloud-securitycentermanagement-v1/src/main/java/com/google/cloud/securitycentermanagement/v1/UpdateEventThreatDetectionCustomModuleRequest.java rename to java-securitycentermanagement/proto-google-cloud-securitycentermanagement-v1/src/main/java/com/google/cloud/securitycentermanagement/v1/UpdateEventThreatDetectionCustomModuleRequest.java index d9d06266ded9..51d21b2b703d 100644 --- a/owl-bot-staging/java-securitycentermanagement/v1/proto-google-cloud-securitycentermanagement-v1/src/main/java/com/google/cloud/securitycentermanagement/v1/UpdateEventThreatDetectionCustomModuleRequest.java +++ b/java-securitycentermanagement/proto-google-cloud-securitycentermanagement-v1/src/main/java/com/google/cloud/securitycentermanagement/v1/UpdateEventThreatDetectionCustomModuleRequest.java @@ -1,50 +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/securitycentermanagement/v1/security_center_management.proto package com.google.cloud.securitycentermanagement.v1; /** + * + * *
  * Message for updating a EventThreatDetectionCustomModule
  * 
* - * Protobuf type {@code google.cloud.securitycentermanagement.v1.UpdateEventThreatDetectionCustomModuleRequest} + * Protobuf type {@code + * google.cloud.securitycentermanagement.v1.UpdateEventThreatDetectionCustomModuleRequest} */ -public final class UpdateEventThreatDetectionCustomModuleRequest extends - com.google.protobuf.GeneratedMessageV3 implements +public final class UpdateEventThreatDetectionCustomModuleRequest + extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.securitycentermanagement.v1.UpdateEventThreatDetectionCustomModuleRequest) UpdateEventThreatDetectionCustomModuleRequestOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use UpdateEventThreatDetectionCustomModuleRequest.newBuilder() to construct. - private UpdateEventThreatDetectionCustomModuleRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + private UpdateEventThreatDetectionCustomModuleRequest( + com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private UpdateEventThreatDetectionCustomModuleRequest() { - } + + private UpdateEventThreatDetectionCustomModuleRequest() {} @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new UpdateEventThreatDetectionCustomModuleRequest(); } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.securitycentermanagement.v1.SecurityCenterManagementProto.internal_static_google_cloud_securitycentermanagement_v1_UpdateEventThreatDetectionCustomModuleRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.securitycentermanagement.v1.SecurityCenterManagementProto + .internal_static_google_cloud_securitycentermanagement_v1_UpdateEventThreatDetectionCustomModuleRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.securitycentermanagement.v1.SecurityCenterManagementProto.internal_static_google_cloud_securitycentermanagement_v1_UpdateEventThreatDetectionCustomModuleRequest_fieldAccessorTable + return com.google.cloud.securitycentermanagement.v1.SecurityCenterManagementProto + .internal_static_google_cloud_securitycentermanagement_v1_UpdateEventThreatDetectionCustomModuleRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.securitycentermanagement.v1.UpdateEventThreatDetectionCustomModuleRequest.class, com.google.cloud.securitycentermanagement.v1.UpdateEventThreatDetectionCustomModuleRequest.Builder.class); + com.google.cloud.securitycentermanagement.v1 + .UpdateEventThreatDetectionCustomModuleRequest.class, + com.google.cloud.securitycentermanagement.v1 + .UpdateEventThreatDetectionCustomModuleRequest.Builder.class); } public static final int UPDATE_MASK_FIELD_NUMBER = 1; private com.google.protobuf.FieldMask updateMask_; /** + * + * *
    * Required. Field mask is used to specify the fields to be overwritten in the
    * EventThreatDetectionCustomModule resource by the update.
@@ -53,7 +78,9 @@ protected java.lang.Object newInstance(
    * user does not provide a mask then all fields will be overwritten.
    * 
* - * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = REQUIRED]; + * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return Whether the updateMask field is set. */ @java.lang.Override @@ -61,6 +88,8 @@ public boolean hasUpdateMask() { return updateMask_ != null; } /** + * + * *
    * Required. Field mask is used to specify the fields to be overwritten in the
    * EventThreatDetectionCustomModule resource by the update.
@@ -69,7 +98,9 @@ public boolean hasUpdateMask() {
    * user does not provide a mask then all fields will be overwritten.
    * 
* - * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = REQUIRED]; + * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return The updateMask. */ @java.lang.Override @@ -77,6 +108,8 @@ public com.google.protobuf.FieldMask getUpdateMask() { return updateMask_ == null ? com.google.protobuf.FieldMask.getDefaultInstance() : updateMask_; } /** + * + * *
    * Required. Field mask is used to specify the fields to be overwritten in the
    * EventThreatDetectionCustomModule resource by the update.
@@ -85,7 +118,8 @@ public com.google.protobuf.FieldMask getUpdateMask() {
    * user does not provide a mask then all fields will be overwritten.
    * 
* - * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = REQUIRED]; + * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ @java.lang.Override public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() { @@ -93,13 +127,19 @@ public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() { } public static final int EVENT_THREAT_DETECTION_CUSTOM_MODULE_FIELD_NUMBER = 2; - private com.google.cloud.securitycentermanagement.v1.EventThreatDetectionCustomModule eventThreatDetectionCustomModule_; + private com.google.cloud.securitycentermanagement.v1.EventThreatDetectionCustomModule + eventThreatDetectionCustomModule_; /** + * + * *
    * Required. The module being updated
    * 
* - * .google.cloud.securitycentermanagement.v1.EventThreatDetectionCustomModule event_threat_detection_custom_module = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.securitycentermanagement.v1.EventThreatDetectionCustomModule event_threat_detection_custom_module = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return Whether the eventThreatDetectionCustomModule field is set. */ @java.lang.Override @@ -107,32 +147,51 @@ public boolean hasEventThreatDetectionCustomModule() { return eventThreatDetectionCustomModule_ != null; } /** + * + * *
    * Required. The module being updated
    * 
* - * .google.cloud.securitycentermanagement.v1.EventThreatDetectionCustomModule event_threat_detection_custom_module = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.securitycentermanagement.v1.EventThreatDetectionCustomModule event_threat_detection_custom_module = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return The eventThreatDetectionCustomModule. */ @java.lang.Override - public com.google.cloud.securitycentermanagement.v1.EventThreatDetectionCustomModule getEventThreatDetectionCustomModule() { - return eventThreatDetectionCustomModule_ == null ? com.google.cloud.securitycentermanagement.v1.EventThreatDetectionCustomModule.getDefaultInstance() : eventThreatDetectionCustomModule_; + public com.google.cloud.securitycentermanagement.v1.EventThreatDetectionCustomModule + getEventThreatDetectionCustomModule() { + return eventThreatDetectionCustomModule_ == null + ? com.google.cloud.securitycentermanagement.v1.EventThreatDetectionCustomModule + .getDefaultInstance() + : eventThreatDetectionCustomModule_; } /** + * + * *
    * Required. The module being updated
    * 
* - * .google.cloud.securitycentermanagement.v1.EventThreatDetectionCustomModule event_threat_detection_custom_module = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.securitycentermanagement.v1.EventThreatDetectionCustomModule event_threat_detection_custom_module = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ @java.lang.Override - public com.google.cloud.securitycentermanagement.v1.EventThreatDetectionCustomModuleOrBuilder getEventThreatDetectionCustomModuleOrBuilder() { - return eventThreatDetectionCustomModule_ == null ? com.google.cloud.securitycentermanagement.v1.EventThreatDetectionCustomModule.getDefaultInstance() : eventThreatDetectionCustomModule_; + public com.google.cloud.securitycentermanagement.v1.EventThreatDetectionCustomModuleOrBuilder + getEventThreatDetectionCustomModuleOrBuilder() { + return eventThreatDetectionCustomModule_ == null + ? com.google.cloud.securitycentermanagement.v1.EventThreatDetectionCustomModule + .getDefaultInstance() + : eventThreatDetectionCustomModule_; } public static final int VALIDATE_ONLY_FIELD_NUMBER = 3; private boolean validateOnly_ = false; /** + * + * *
    * Optional. When set to true, only validations (including IAM checks) will
    * done for the request (module will not be updated). An OK response indicates
@@ -144,6 +203,7 @@ public com.google.cloud.securitycentermanagement.v1.EventThreatDetectionCustomMo
    * 
* * bool validate_only = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The validateOnly. */ @java.lang.Override @@ -152,6 +212,7 @@ public boolean getValidateOnly() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -163,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 (updateMask_ != null) { output.writeMessage(1, getUpdateMask()); } @@ -184,16 +244,15 @@ public int getSerializedSize() { size = 0; if (updateMask_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, getUpdateMask()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getUpdateMask()); } if (eventThreatDetectionCustomModule_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(2, getEventThreatDetectionCustomModule()); + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 2, getEventThreatDetectionCustomModule()); } if (validateOnly_ != false) { - size += com.google.protobuf.CodedOutputStream - .computeBoolSize(3, validateOnly_); + size += com.google.protobuf.CodedOutputStream.computeBoolSize(3, validateOnly_); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -203,25 +262,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.securitycentermanagement.v1.UpdateEventThreatDetectionCustomModuleRequest)) { + if (!(obj + instanceof + com.google.cloud.securitycentermanagement.v1 + .UpdateEventThreatDetectionCustomModuleRequest)) { return super.equals(obj); } - com.google.cloud.securitycentermanagement.v1.UpdateEventThreatDetectionCustomModuleRequest other = (com.google.cloud.securitycentermanagement.v1.UpdateEventThreatDetectionCustomModuleRequest) obj; + com.google.cloud.securitycentermanagement.v1.UpdateEventThreatDetectionCustomModuleRequest + other = + (com.google.cloud.securitycentermanagement.v1 + .UpdateEventThreatDetectionCustomModuleRequest) + obj; if (hasUpdateMask() != other.hasUpdateMask()) return false; if (hasUpdateMask()) { - if (!getUpdateMask() - .equals(other.getUpdateMask())) return false; + if (!getUpdateMask().equals(other.getUpdateMask())) return false; } - if (hasEventThreatDetectionCustomModule() != other.hasEventThreatDetectionCustomModule()) return false; + if (hasEventThreatDetectionCustomModule() != other.hasEventThreatDetectionCustomModule()) + return false; if (hasEventThreatDetectionCustomModule()) { if (!getEventThreatDetectionCustomModule() .equals(other.getEventThreatDetectionCustomModule())) return false; } - if (getValidateOnly() - != other.getValidateOnly()) return false; + if (getValidateOnly() != other.getValidateOnly()) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -242,139 +307,167 @@ public int hashCode() { hash = (53 * hash) + getEventThreatDetectionCustomModule().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.securitycentermanagement.v1.UpdateEventThreatDetectionCustomModuleRequest parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.securitycentermanagement.v1 + .UpdateEventThreatDetectionCustomModuleRequest + parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.securitycentermanagement.v1.UpdateEventThreatDetectionCustomModuleRequest parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.cloud.securitycentermanagement.v1 + .UpdateEventThreatDetectionCustomModuleRequest + 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.securitycentermanagement.v1.UpdateEventThreatDetectionCustomModuleRequest parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.cloud.securitycentermanagement.v1 + .UpdateEventThreatDetectionCustomModuleRequest + parseFrom(com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.securitycentermanagement.v1.UpdateEventThreatDetectionCustomModuleRequest parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.cloud.securitycentermanagement.v1 + .UpdateEventThreatDetectionCustomModuleRequest + parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.securitycentermanagement.v1.UpdateEventThreatDetectionCustomModuleRequest parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.cloud.securitycentermanagement.v1 + .UpdateEventThreatDetectionCustomModuleRequest + parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.securitycentermanagement.v1.UpdateEventThreatDetectionCustomModuleRequest parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.cloud.securitycentermanagement.v1 + .UpdateEventThreatDetectionCustomModuleRequest + parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.securitycentermanagement.v1.UpdateEventThreatDetectionCustomModuleRequest parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.securitycentermanagement.v1 + .UpdateEventThreatDetectionCustomModuleRequest + parseFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } - public static com.google.cloud.securitycentermanagement.v1.UpdateEventThreatDetectionCustomModuleRequest 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.securitycentermanagement.v1 + .UpdateEventThreatDetectionCustomModuleRequest + 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.securitycentermanagement.v1.UpdateEventThreatDetectionCustomModuleRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.securitycentermanagement.v1 + .UpdateEventThreatDetectionCustomModuleRequest + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.securitycentermanagement.v1.UpdateEventThreatDetectionCustomModuleRequest parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + public static com.google.cloud.securitycentermanagement.v1 + .UpdateEventThreatDetectionCustomModuleRequest + parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.securitycentermanagement.v1.UpdateEventThreatDetectionCustomModuleRequest parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.securitycentermanagement.v1 + .UpdateEventThreatDetectionCustomModuleRequest + parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } - public static com.google.cloud.securitycentermanagement.v1.UpdateEventThreatDetectionCustomModuleRequest 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.securitycentermanagement.v1 + .UpdateEventThreatDetectionCustomModuleRequest + 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.securitycentermanagement.v1.UpdateEventThreatDetectionCustomModuleRequest prototype) { + + public static Builder newBuilder( + com.google.cloud.securitycentermanagement.v1.UpdateEventThreatDetectionCustomModuleRequest + prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected 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 updating a EventThreatDetectionCustomModule
    * 
* - * Protobuf type {@code google.cloud.securitycentermanagement.v1.UpdateEventThreatDetectionCustomModuleRequest} + * Protobuf type {@code + * google.cloud.securitycentermanagement.v1.UpdateEventThreatDetectionCustomModuleRequest} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.securitycentermanagement.v1.UpdateEventThreatDetectionCustomModuleRequest) - com.google.cloud.securitycentermanagement.v1.UpdateEventThreatDetectionCustomModuleRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.securitycentermanagement.v1.SecurityCenterManagementProto.internal_static_google_cloud_securitycentermanagement_v1_UpdateEventThreatDetectionCustomModuleRequest_descriptor; + com.google.cloud.securitycentermanagement.v1 + .UpdateEventThreatDetectionCustomModuleRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.securitycentermanagement.v1.SecurityCenterManagementProto + .internal_static_google_cloud_securitycentermanagement_v1_UpdateEventThreatDetectionCustomModuleRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.securitycentermanagement.v1.SecurityCenterManagementProto.internal_static_google_cloud_securitycentermanagement_v1_UpdateEventThreatDetectionCustomModuleRequest_fieldAccessorTable + return com.google.cloud.securitycentermanagement.v1.SecurityCenterManagementProto + .internal_static_google_cloud_securitycentermanagement_v1_UpdateEventThreatDetectionCustomModuleRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.securitycentermanagement.v1.UpdateEventThreatDetectionCustomModuleRequest.class, com.google.cloud.securitycentermanagement.v1.UpdateEventThreatDetectionCustomModuleRequest.Builder.class); + com.google.cloud.securitycentermanagement.v1 + .UpdateEventThreatDetectionCustomModuleRequest.class, + com.google.cloud.securitycentermanagement.v1 + .UpdateEventThreatDetectionCustomModuleRequest.Builder.class); } - // Construct using com.google.cloud.securitycentermanagement.v1.UpdateEventThreatDetectionCustomModuleRequest.newBuilder() - private Builder() { + // Construct using + // com.google.cloud.securitycentermanagement.v1.UpdateEventThreatDetectionCustomModuleRequest.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(); @@ -394,19 +487,25 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.securitycentermanagement.v1.SecurityCenterManagementProto.internal_static_google_cloud_securitycentermanagement_v1_UpdateEventThreatDetectionCustomModuleRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.securitycentermanagement.v1.SecurityCenterManagementProto + .internal_static_google_cloud_securitycentermanagement_v1_UpdateEventThreatDetectionCustomModuleRequest_descriptor; } @java.lang.Override - public com.google.cloud.securitycentermanagement.v1.UpdateEventThreatDetectionCustomModuleRequest getDefaultInstanceForType() { - return com.google.cloud.securitycentermanagement.v1.UpdateEventThreatDetectionCustomModuleRequest.getDefaultInstance(); + public com.google.cloud.securitycentermanagement.v1 + .UpdateEventThreatDetectionCustomModuleRequest + getDefaultInstanceForType() { + return com.google.cloud.securitycentermanagement.v1 + .UpdateEventThreatDetectionCustomModuleRequest.getDefaultInstance(); } @java.lang.Override - public com.google.cloud.securitycentermanagement.v1.UpdateEventThreatDetectionCustomModuleRequest build() { - com.google.cloud.securitycentermanagement.v1.UpdateEventThreatDetectionCustomModuleRequest result = buildPartial(); + public com.google.cloud.securitycentermanagement.v1 + .UpdateEventThreatDetectionCustomModuleRequest + build() { + com.google.cloud.securitycentermanagement.v1.UpdateEventThreatDetectionCustomModuleRequest + result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } @@ -414,24 +513,32 @@ public com.google.cloud.securitycentermanagement.v1.UpdateEventThreatDetectionCu } @java.lang.Override - public com.google.cloud.securitycentermanagement.v1.UpdateEventThreatDetectionCustomModuleRequest buildPartial() { - com.google.cloud.securitycentermanagement.v1.UpdateEventThreatDetectionCustomModuleRequest result = new com.google.cloud.securitycentermanagement.v1.UpdateEventThreatDetectionCustomModuleRequest(this); - if (bitField0_ != 0) { buildPartial0(result); } + public com.google.cloud.securitycentermanagement.v1 + .UpdateEventThreatDetectionCustomModuleRequest + buildPartial() { + com.google.cloud.securitycentermanagement.v1.UpdateEventThreatDetectionCustomModuleRequest + result = + new com.google.cloud.securitycentermanagement.v1 + .UpdateEventThreatDetectionCustomModuleRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } - private void buildPartial0(com.google.cloud.securitycentermanagement.v1.UpdateEventThreatDetectionCustomModuleRequest result) { + private void buildPartial0( + com.google.cloud.securitycentermanagement.v1.UpdateEventThreatDetectionCustomModuleRequest + result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000001) != 0)) { - result.updateMask_ = updateMaskBuilder_ == null - ? updateMask_ - : updateMaskBuilder_.build(); + result.updateMask_ = updateMaskBuilder_ == null ? updateMask_ : updateMaskBuilder_.build(); } if (((from_bitField0_ & 0x00000002) != 0)) { - result.eventThreatDetectionCustomModule_ = eventThreatDetectionCustomModuleBuilder_ == null - ? eventThreatDetectionCustomModule_ - : eventThreatDetectionCustomModuleBuilder_.build(); + result.eventThreatDetectionCustomModule_ = + eventThreatDetectionCustomModuleBuilder_ == null + ? eventThreatDetectionCustomModule_ + : eventThreatDetectionCustomModuleBuilder_.build(); } if (((from_bitField0_ & 0x00000004) != 0)) { result.validateOnly_ = validateOnly_; @@ -442,46 +549,57 @@ private void buildPartial0(com.google.cloud.securitycentermanagement.v1.UpdateEv public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.cloud.securitycentermanagement.v1.UpdateEventThreatDetectionCustomModuleRequest) { - return mergeFrom((com.google.cloud.securitycentermanagement.v1.UpdateEventThreatDetectionCustomModuleRequest)other); + if (other + instanceof + com.google.cloud.securitycentermanagement.v1 + .UpdateEventThreatDetectionCustomModuleRequest) { + return mergeFrom( + (com.google.cloud.securitycentermanagement.v1 + .UpdateEventThreatDetectionCustomModuleRequest) + other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom(com.google.cloud.securitycentermanagement.v1.UpdateEventThreatDetectionCustomModuleRequest other) { - if (other == com.google.cloud.securitycentermanagement.v1.UpdateEventThreatDetectionCustomModuleRequest.getDefaultInstance()) return this; + public Builder mergeFrom( + com.google.cloud.securitycentermanagement.v1.UpdateEventThreatDetectionCustomModuleRequest + other) { + if (other + == com.google.cloud.securitycentermanagement.v1 + .UpdateEventThreatDetectionCustomModuleRequest.getDefaultInstance()) return this; if (other.hasUpdateMask()) { mergeUpdateMask(other.getUpdateMask()); } @@ -517,31 +635,33 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: { - input.readMessage( - getUpdateMaskFieldBuilder().getBuilder(), - extensionRegistry); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 18: { - input.readMessage( - getEventThreatDetectionCustomModuleFieldBuilder().getBuilder(), - extensionRegistry); - bitField0_ |= 0x00000002; - break; - } // case 18 - case 24: { - validateOnly_ = input.readBool(); - bitField0_ |= 0x00000004; - break; - } // case 24 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: + { + input.readMessage(getUpdateMaskFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + input.readMessage( + getEventThreatDetectionCustomModuleFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 24: + { + validateOnly_ = 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) { @@ -551,12 +671,18 @@ public Builder mergeFrom( } // finally return this; } + private int bitField0_; 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. Field mask is used to specify the fields to be overwritten in the
      * EventThreatDetectionCustomModule resource by the update.
@@ -565,13 +691,17 @@ public Builder mergeFrom(
      * user does not provide a mask then all fields will be overwritten.
      * 
* - * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = REQUIRED]; + * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return Whether the updateMask field is set. */ public boolean hasUpdateMask() { return ((bitField0_ & 0x00000001) != 0); } /** + * + * *
      * Required. Field mask is used to specify the fields to be overwritten in the
      * EventThreatDetectionCustomModule resource by the update.
@@ -580,17 +710,23 @@ public boolean hasUpdateMask() {
      * user does not provide a mask then all fields will be overwritten.
      * 
* - * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = REQUIRED]; + * .google.protobuf.FieldMask update_mask = 1 [(.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. Field mask is used to specify the fields to be overwritten in the
      * EventThreatDetectionCustomModule resource by the update.
@@ -599,7 +735,8 @@ public com.google.protobuf.FieldMask getUpdateMask() {
      * user does not provide a mask then all fields will be overwritten.
      * 
* - * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = REQUIRED]; + * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder setUpdateMask(com.google.protobuf.FieldMask value) { if (updateMaskBuilder_ == null) { @@ -615,6 +752,8 @@ public Builder setUpdateMask(com.google.protobuf.FieldMask value) { return this; } /** + * + * *
      * Required. Field mask is used to specify the fields to be overwritten in the
      * EventThreatDetectionCustomModule resource by the update.
@@ -623,10 +762,10 @@ public Builder setUpdateMask(com.google.protobuf.FieldMask value) {
      * user does not provide a mask then all fields will be overwritten.
      * 
* - * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = REQUIRED]; + * .google.protobuf.FieldMask update_mask = 1 [(.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 { @@ -637,6 +776,8 @@ public Builder setUpdateMask( return this; } /** + * + * *
      * Required. Field mask is used to specify the fields to be overwritten in the
      * EventThreatDetectionCustomModule resource by the update.
@@ -645,13 +786,14 @@ public Builder setUpdateMask(
      * user does not provide a mask then all fields will be overwritten.
      * 
* - * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = REQUIRED]; + * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder mergeUpdateMask(com.google.protobuf.FieldMask value) { if (updateMaskBuilder_ == null) { - if (((bitField0_ & 0x00000001) != 0) && - updateMask_ != null && - updateMask_ != com.google.protobuf.FieldMask.getDefaultInstance()) { + if (((bitField0_ & 0x00000001) != 0) + && updateMask_ != null + && updateMask_ != com.google.protobuf.FieldMask.getDefaultInstance()) { getUpdateMaskBuilder().mergeFrom(value); } else { updateMask_ = value; @@ -664,6 +806,8 @@ public Builder mergeUpdateMask(com.google.protobuf.FieldMask value) { return this; } /** + * + * *
      * Required. Field mask is used to specify the fields to be overwritten in the
      * EventThreatDetectionCustomModule resource by the update.
@@ -672,7 +816,8 @@ public Builder mergeUpdateMask(com.google.protobuf.FieldMask value) {
      * user does not provide a mask then all fields will be overwritten.
      * 
* - * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = REQUIRED]; + * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder clearUpdateMask() { bitField0_ = (bitField0_ & ~0x00000001); @@ -685,6 +830,8 @@ public Builder clearUpdateMask() { return this; } /** + * + * *
      * Required. Field mask is used to specify the fields to be overwritten in the
      * EventThreatDetectionCustomModule resource by the update.
@@ -693,7 +840,8 @@ public Builder clearUpdateMask() {
      * user does not provide a mask then all fields will be overwritten.
      * 
* - * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = REQUIRED]; + * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ public com.google.protobuf.FieldMask.Builder getUpdateMaskBuilder() { bitField0_ |= 0x00000001; @@ -701,6 +849,8 @@ public com.google.protobuf.FieldMask.Builder getUpdateMaskBuilder() { return getUpdateMaskFieldBuilder().getBuilder(); } /** + * + * *
      * Required. Field mask is used to specify the fields to be overwritten in the
      * EventThreatDetectionCustomModule resource by the update.
@@ -709,17 +859,21 @@ public com.google.protobuf.FieldMask.Builder getUpdateMaskBuilder() {
      * user does not provide a mask then all fields will be overwritten.
      * 
* - * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = REQUIRED]; + * .google.protobuf.FieldMask update_mask = 1 [(.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. Field mask is used to specify the fields to be overwritten in the
      * EventThreatDetectionCustomModule resource by the update.
@@ -728,59 +882,86 @@ public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() {
      * user does not provide a mask then all fields will be overwritten.
      * 
* - * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = REQUIRED]; + * .google.protobuf.FieldMask update_mask = 1 [(.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 com.google.cloud.securitycentermanagement.v1.EventThreatDetectionCustomModule eventThreatDetectionCustomModule_; + private com.google.cloud.securitycentermanagement.v1.EventThreatDetectionCustomModule + eventThreatDetectionCustomModule_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.securitycentermanagement.v1.EventThreatDetectionCustomModule, com.google.cloud.securitycentermanagement.v1.EventThreatDetectionCustomModule.Builder, com.google.cloud.securitycentermanagement.v1.EventThreatDetectionCustomModuleOrBuilder> eventThreatDetectionCustomModuleBuilder_; + com.google.cloud.securitycentermanagement.v1.EventThreatDetectionCustomModule, + com.google.cloud.securitycentermanagement.v1.EventThreatDetectionCustomModule.Builder, + com.google.cloud.securitycentermanagement.v1.EventThreatDetectionCustomModuleOrBuilder> + eventThreatDetectionCustomModuleBuilder_; /** + * + * *
      * Required. The module being updated
      * 
* - * .google.cloud.securitycentermanagement.v1.EventThreatDetectionCustomModule event_threat_detection_custom_module = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.securitycentermanagement.v1.EventThreatDetectionCustomModule event_threat_detection_custom_module = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return Whether the eventThreatDetectionCustomModule field is set. */ public boolean hasEventThreatDetectionCustomModule() { return ((bitField0_ & 0x00000002) != 0); } /** + * + * *
      * Required. The module being updated
      * 
* - * .google.cloud.securitycentermanagement.v1.EventThreatDetectionCustomModule event_threat_detection_custom_module = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.securitycentermanagement.v1.EventThreatDetectionCustomModule event_threat_detection_custom_module = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return The eventThreatDetectionCustomModule. */ - public com.google.cloud.securitycentermanagement.v1.EventThreatDetectionCustomModule getEventThreatDetectionCustomModule() { + public com.google.cloud.securitycentermanagement.v1.EventThreatDetectionCustomModule + getEventThreatDetectionCustomModule() { if (eventThreatDetectionCustomModuleBuilder_ == null) { - return eventThreatDetectionCustomModule_ == null ? com.google.cloud.securitycentermanagement.v1.EventThreatDetectionCustomModule.getDefaultInstance() : eventThreatDetectionCustomModule_; + return eventThreatDetectionCustomModule_ == null + ? com.google.cloud.securitycentermanagement.v1.EventThreatDetectionCustomModule + .getDefaultInstance() + : eventThreatDetectionCustomModule_; } else { return eventThreatDetectionCustomModuleBuilder_.getMessage(); } } /** + * + * *
      * Required. The module being updated
      * 
* - * .google.cloud.securitycentermanagement.v1.EventThreatDetectionCustomModule event_threat_detection_custom_module = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.securitycentermanagement.v1.EventThreatDetectionCustomModule event_threat_detection_custom_module = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ - public Builder setEventThreatDetectionCustomModule(com.google.cloud.securitycentermanagement.v1.EventThreatDetectionCustomModule value) { + public Builder setEventThreatDetectionCustomModule( + com.google.cloud.securitycentermanagement.v1.EventThreatDetectionCustomModule value) { if (eventThreatDetectionCustomModuleBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -794,14 +975,19 @@ public Builder setEventThreatDetectionCustomModule(com.google.cloud.securitycent return this; } /** + * + * *
      * Required. The module being updated
      * 
* - * .google.cloud.securitycentermanagement.v1.EventThreatDetectionCustomModule event_threat_detection_custom_module = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.securitycentermanagement.v1.EventThreatDetectionCustomModule event_threat_detection_custom_module = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder setEventThreatDetectionCustomModule( - com.google.cloud.securitycentermanagement.v1.EventThreatDetectionCustomModule.Builder builderForValue) { + com.google.cloud.securitycentermanagement.v1.EventThreatDetectionCustomModule.Builder + builderForValue) { if (eventThreatDetectionCustomModuleBuilder_ == null) { eventThreatDetectionCustomModule_ = builderForValue.build(); } else { @@ -812,17 +998,24 @@ public Builder setEventThreatDetectionCustomModule( return this; } /** + * + * *
      * Required. The module being updated
      * 
* - * .google.cloud.securitycentermanagement.v1.EventThreatDetectionCustomModule event_threat_detection_custom_module = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.securitycentermanagement.v1.EventThreatDetectionCustomModule event_threat_detection_custom_module = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ - public Builder mergeEventThreatDetectionCustomModule(com.google.cloud.securitycentermanagement.v1.EventThreatDetectionCustomModule value) { + public Builder mergeEventThreatDetectionCustomModule( + com.google.cloud.securitycentermanagement.v1.EventThreatDetectionCustomModule value) { if (eventThreatDetectionCustomModuleBuilder_ == null) { - if (((bitField0_ & 0x00000002) != 0) && - eventThreatDetectionCustomModule_ != null && - eventThreatDetectionCustomModule_ != com.google.cloud.securitycentermanagement.v1.EventThreatDetectionCustomModule.getDefaultInstance()) { + if (((bitField0_ & 0x00000002) != 0) + && eventThreatDetectionCustomModule_ != null + && eventThreatDetectionCustomModule_ + != com.google.cloud.securitycentermanagement.v1.EventThreatDetectionCustomModule + .getDefaultInstance()) { getEventThreatDetectionCustomModuleBuilder().mergeFrom(value); } else { eventThreatDetectionCustomModule_ = value; @@ -835,11 +1028,15 @@ public Builder mergeEventThreatDetectionCustomModule(com.google.cloud.securityce return this; } /** + * + * *
      * Required. The module being updated
      * 
* - * .google.cloud.securitycentermanagement.v1.EventThreatDetectionCustomModule event_threat_detection_custom_module = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.securitycentermanagement.v1.EventThreatDetectionCustomModule event_threat_detection_custom_module = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder clearEventThreatDetectionCustomModule() { bitField0_ = (bitField0_ & ~0x00000002); @@ -852,55 +1049,78 @@ public Builder clearEventThreatDetectionCustomModule() { return this; } /** + * + * *
      * Required. The module being updated
      * 
* - * .google.cloud.securitycentermanagement.v1.EventThreatDetectionCustomModule event_threat_detection_custom_module = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.securitycentermanagement.v1.EventThreatDetectionCustomModule event_threat_detection_custom_module = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ - public com.google.cloud.securitycentermanagement.v1.EventThreatDetectionCustomModule.Builder getEventThreatDetectionCustomModuleBuilder() { + public com.google.cloud.securitycentermanagement.v1.EventThreatDetectionCustomModule.Builder + getEventThreatDetectionCustomModuleBuilder() { bitField0_ |= 0x00000002; onChanged(); return getEventThreatDetectionCustomModuleFieldBuilder().getBuilder(); } /** + * + * *
      * Required. The module being updated
      * 
* - * .google.cloud.securitycentermanagement.v1.EventThreatDetectionCustomModule event_threat_detection_custom_module = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.securitycentermanagement.v1.EventThreatDetectionCustomModule event_threat_detection_custom_module = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ - public com.google.cloud.securitycentermanagement.v1.EventThreatDetectionCustomModuleOrBuilder getEventThreatDetectionCustomModuleOrBuilder() { + public com.google.cloud.securitycentermanagement.v1.EventThreatDetectionCustomModuleOrBuilder + getEventThreatDetectionCustomModuleOrBuilder() { if (eventThreatDetectionCustomModuleBuilder_ != null) { return eventThreatDetectionCustomModuleBuilder_.getMessageOrBuilder(); } else { - return eventThreatDetectionCustomModule_ == null ? - com.google.cloud.securitycentermanagement.v1.EventThreatDetectionCustomModule.getDefaultInstance() : eventThreatDetectionCustomModule_; + return eventThreatDetectionCustomModule_ == null + ? com.google.cloud.securitycentermanagement.v1.EventThreatDetectionCustomModule + .getDefaultInstance() + : eventThreatDetectionCustomModule_; } } /** + * + * *
      * Required. The module being updated
      * 
* - * .google.cloud.securitycentermanagement.v1.EventThreatDetectionCustomModule event_threat_detection_custom_module = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.securitycentermanagement.v1.EventThreatDetectionCustomModule event_threat_detection_custom_module = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.securitycentermanagement.v1.EventThreatDetectionCustomModule, com.google.cloud.securitycentermanagement.v1.EventThreatDetectionCustomModule.Builder, com.google.cloud.securitycentermanagement.v1.EventThreatDetectionCustomModuleOrBuilder> + com.google.cloud.securitycentermanagement.v1.EventThreatDetectionCustomModule, + com.google.cloud.securitycentermanagement.v1.EventThreatDetectionCustomModule.Builder, + com.google.cloud.securitycentermanagement.v1.EventThreatDetectionCustomModuleOrBuilder> getEventThreatDetectionCustomModuleFieldBuilder() { if (eventThreatDetectionCustomModuleBuilder_ == null) { - eventThreatDetectionCustomModuleBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.securitycentermanagement.v1.EventThreatDetectionCustomModule, com.google.cloud.securitycentermanagement.v1.EventThreatDetectionCustomModule.Builder, com.google.cloud.securitycentermanagement.v1.EventThreatDetectionCustomModuleOrBuilder>( - getEventThreatDetectionCustomModule(), - getParentForChildren(), - isClean()); + eventThreatDetectionCustomModuleBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.securitycentermanagement.v1.EventThreatDetectionCustomModule, + com.google.cloud.securitycentermanagement.v1.EventThreatDetectionCustomModule + .Builder, + com.google.cloud.securitycentermanagement.v1 + .EventThreatDetectionCustomModuleOrBuilder>( + getEventThreatDetectionCustomModule(), getParentForChildren(), isClean()); eventThreatDetectionCustomModule_ = null; } return eventThreatDetectionCustomModuleBuilder_; } - private boolean validateOnly_ ; + private boolean validateOnly_; /** + * + * *
      * Optional. When set to true, only validations (including IAM checks) will
      * done for the request (module will not be updated). An OK response indicates
@@ -912,6 +1132,7 @@ public com.google.cloud.securitycentermanagement.v1.EventThreatDetectionCustomMo
      * 
* * bool validate_only = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The validateOnly. */ @java.lang.Override @@ -919,6 +1140,8 @@ public boolean getValidateOnly() { return validateOnly_; } /** + * + * *
      * Optional. When set to true, only validations (including IAM checks) will
      * done for the request (module will not be updated). An OK response indicates
@@ -930,6 +1153,7 @@ public boolean getValidateOnly() {
      * 
* * bool validate_only = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @param value The validateOnly to set. * @return This builder for chaining. */ @@ -941,6 +1165,8 @@ public Builder setValidateOnly(boolean value) { return this; } /** + * + * *
      * Optional. When set to true, only validations (including IAM checks) will
      * done for the request (module will not be updated). An OK response indicates
@@ -952,6 +1178,7 @@ public Builder setValidateOnly(boolean value) {
      * 
* * bool validate_only = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @return This builder for chaining. */ public Builder clearValidateOnly() { @@ -960,9 +1187,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); } @@ -972,55 +1199,63 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.securitycentermanagement.v1.UpdateEventThreatDetectionCustomModuleRequest) } // @@protoc_insertion_point(class_scope:google.cloud.securitycentermanagement.v1.UpdateEventThreatDetectionCustomModuleRequest) - private static final com.google.cloud.securitycentermanagement.v1.UpdateEventThreatDetectionCustomModuleRequest DEFAULT_INSTANCE; + private static final com.google.cloud.securitycentermanagement.v1 + .UpdateEventThreatDetectionCustomModuleRequest + DEFAULT_INSTANCE; + static { - DEFAULT_INSTANCE = new com.google.cloud.securitycentermanagement.v1.UpdateEventThreatDetectionCustomModuleRequest(); + DEFAULT_INSTANCE = + new com.google.cloud.securitycentermanagement.v1 + .UpdateEventThreatDetectionCustomModuleRequest(); } - public static com.google.cloud.securitycentermanagement.v1.UpdateEventThreatDetectionCustomModuleRequest getDefaultInstance() { + public static com.google.cloud.securitycentermanagement.v1 + .UpdateEventThreatDetectionCustomModuleRequest + getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public UpdateEventThreatDetectionCustomModuleRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public UpdateEventThreatDetectionCustomModuleRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException() + .setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; } @java.lang.Override - public com.google.protobuf.Parser getParserForType() { + public com.google.protobuf.Parser + getParserForType() { return PARSER; } @java.lang.Override - public com.google.cloud.securitycentermanagement.v1.UpdateEventThreatDetectionCustomModuleRequest getDefaultInstanceForType() { + public com.google.cloud.securitycentermanagement.v1.UpdateEventThreatDetectionCustomModuleRequest + getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/java-securitycentermanagement/v1/proto-google-cloud-securitycentermanagement-v1/src/main/java/com/google/cloud/securitycentermanagement/v1/UpdateEventThreatDetectionCustomModuleRequestOrBuilder.java b/java-securitycentermanagement/proto-google-cloud-securitycentermanagement-v1/src/main/java/com/google/cloud/securitycentermanagement/v1/UpdateEventThreatDetectionCustomModuleRequestOrBuilder.java similarity index 67% rename from owl-bot-staging/java-securitycentermanagement/v1/proto-google-cloud-securitycentermanagement-v1/src/main/java/com/google/cloud/securitycentermanagement/v1/UpdateEventThreatDetectionCustomModuleRequestOrBuilder.java rename to java-securitycentermanagement/proto-google-cloud-securitycentermanagement-v1/src/main/java/com/google/cloud/securitycentermanagement/v1/UpdateEventThreatDetectionCustomModuleRequestOrBuilder.java index 00ff1b4f9277..4e8c7b8072eb 100644 --- a/owl-bot-staging/java-securitycentermanagement/v1/proto-google-cloud-securitycentermanagement-v1/src/main/java/com/google/cloud/securitycentermanagement/v1/UpdateEventThreatDetectionCustomModuleRequestOrBuilder.java +++ b/java-securitycentermanagement/proto-google-cloud-securitycentermanagement-v1/src/main/java/com/google/cloud/securitycentermanagement/v1/UpdateEventThreatDetectionCustomModuleRequestOrBuilder.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/securitycentermanagement/v1/security_center_management.proto package com.google.cloud.securitycentermanagement.v1; -public interface UpdateEventThreatDetectionCustomModuleRequestOrBuilder extends +public interface UpdateEventThreatDetectionCustomModuleRequestOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.securitycentermanagement.v1.UpdateEventThreatDetectionCustomModuleRequest) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * Required. Field mask is used to specify the fields to be overwritten in the
    * EventThreatDetectionCustomModule resource by the update.
@@ -16,11 +34,15 @@ public interface UpdateEventThreatDetectionCustomModuleRequestOrBuilder extends
    * user does not provide a mask then all fields will be overwritten.
    * 
* - * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = REQUIRED]; + * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return Whether the updateMask field is set. */ boolean hasUpdateMask(); /** + * + * *
    * Required. Field mask is used to specify the fields to be overwritten in the
    * EventThreatDetectionCustomModule resource by the update.
@@ -29,11 +51,15 @@ public interface UpdateEventThreatDetectionCustomModuleRequestOrBuilder extends
    * user does not provide a mask then all fields will be overwritten.
    * 
* - * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = REQUIRED]; + * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return The updateMask. */ com.google.protobuf.FieldMask getUpdateMask(); /** + * + * *
    * Required. Field mask is used to specify the fields to be overwritten in the
    * EventThreatDetectionCustomModule resource by the update.
@@ -42,38 +68,57 @@ public interface UpdateEventThreatDetectionCustomModuleRequestOrBuilder extends
    * user does not provide a mask then all fields will be overwritten.
    * 
* - * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = REQUIRED]; + * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder(); /** + * + * *
    * Required. The module being updated
    * 
* - * .google.cloud.securitycentermanagement.v1.EventThreatDetectionCustomModule event_threat_detection_custom_module = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.securitycentermanagement.v1.EventThreatDetectionCustomModule event_threat_detection_custom_module = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return Whether the eventThreatDetectionCustomModule field is set. */ boolean hasEventThreatDetectionCustomModule(); /** + * + * *
    * Required. The module being updated
    * 
* - * .google.cloud.securitycentermanagement.v1.EventThreatDetectionCustomModule event_threat_detection_custom_module = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.securitycentermanagement.v1.EventThreatDetectionCustomModule event_threat_detection_custom_module = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return The eventThreatDetectionCustomModule. */ - com.google.cloud.securitycentermanagement.v1.EventThreatDetectionCustomModule getEventThreatDetectionCustomModule(); + com.google.cloud.securitycentermanagement.v1.EventThreatDetectionCustomModule + getEventThreatDetectionCustomModule(); /** + * + * *
    * Required. The module being updated
    * 
* - * .google.cloud.securitycentermanagement.v1.EventThreatDetectionCustomModule event_threat_detection_custom_module = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.securitycentermanagement.v1.EventThreatDetectionCustomModule event_threat_detection_custom_module = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ - com.google.cloud.securitycentermanagement.v1.EventThreatDetectionCustomModuleOrBuilder getEventThreatDetectionCustomModuleOrBuilder(); + com.google.cloud.securitycentermanagement.v1.EventThreatDetectionCustomModuleOrBuilder + getEventThreatDetectionCustomModuleOrBuilder(); /** + * + * *
    * Optional. When set to true, only validations (including IAM checks) will
    * done for the request (module will not be updated). An OK response indicates
@@ -85,6 +130,7 @@ public interface UpdateEventThreatDetectionCustomModuleRequestOrBuilder extends
    * 
* * bool validate_only = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The validateOnly. */ boolean getValidateOnly(); diff --git a/owl-bot-staging/java-securitycentermanagement/v1/proto-google-cloud-securitycentermanagement-v1/src/main/java/com/google/cloud/securitycentermanagement/v1/UpdateSecurityHealthAnalyticsCustomModuleRequest.java b/java-securitycentermanagement/proto-google-cloud-securitycentermanagement-v1/src/main/java/com/google/cloud/securitycentermanagement/v1/UpdateSecurityHealthAnalyticsCustomModuleRequest.java similarity index 53% rename from owl-bot-staging/java-securitycentermanagement/v1/proto-google-cloud-securitycentermanagement-v1/src/main/java/com/google/cloud/securitycentermanagement/v1/UpdateSecurityHealthAnalyticsCustomModuleRequest.java rename to java-securitycentermanagement/proto-google-cloud-securitycentermanagement-v1/src/main/java/com/google/cloud/securitycentermanagement/v1/UpdateSecurityHealthAnalyticsCustomModuleRequest.java index 822df9258d14..ffaecbae6c27 100644 --- a/owl-bot-staging/java-securitycentermanagement/v1/proto-google-cloud-securitycentermanagement-v1/src/main/java/com/google/cloud/securitycentermanagement/v1/UpdateSecurityHealthAnalyticsCustomModuleRequest.java +++ b/java-securitycentermanagement/proto-google-cloud-securitycentermanagement-v1/src/main/java/com/google/cloud/securitycentermanagement/v1/UpdateSecurityHealthAnalyticsCustomModuleRequest.java @@ -1,50 +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/securitycentermanagement/v1/security_center_management.proto package com.google.cloud.securitycentermanagement.v1; /** + * + * *
  * Message for updating a SecurityHealthAnalyticsCustomModule
  * 
* - * Protobuf type {@code google.cloud.securitycentermanagement.v1.UpdateSecurityHealthAnalyticsCustomModuleRequest} + * Protobuf type {@code + * google.cloud.securitycentermanagement.v1.UpdateSecurityHealthAnalyticsCustomModuleRequest} */ -public final class UpdateSecurityHealthAnalyticsCustomModuleRequest extends - com.google.protobuf.GeneratedMessageV3 implements +public final class UpdateSecurityHealthAnalyticsCustomModuleRequest + extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.securitycentermanagement.v1.UpdateSecurityHealthAnalyticsCustomModuleRequest) UpdateSecurityHealthAnalyticsCustomModuleRequestOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use UpdateSecurityHealthAnalyticsCustomModuleRequest.newBuilder() to construct. - private UpdateSecurityHealthAnalyticsCustomModuleRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + private UpdateSecurityHealthAnalyticsCustomModuleRequest( + com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private UpdateSecurityHealthAnalyticsCustomModuleRequest() { - } + + private UpdateSecurityHealthAnalyticsCustomModuleRequest() {} @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new UpdateSecurityHealthAnalyticsCustomModuleRequest(); } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.securitycentermanagement.v1.SecurityCenterManagementProto.internal_static_google_cloud_securitycentermanagement_v1_UpdateSecurityHealthAnalyticsCustomModuleRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.securitycentermanagement.v1.SecurityCenterManagementProto + .internal_static_google_cloud_securitycentermanagement_v1_UpdateSecurityHealthAnalyticsCustomModuleRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.securitycentermanagement.v1.SecurityCenterManagementProto.internal_static_google_cloud_securitycentermanagement_v1_UpdateSecurityHealthAnalyticsCustomModuleRequest_fieldAccessorTable + return com.google.cloud.securitycentermanagement.v1.SecurityCenterManagementProto + .internal_static_google_cloud_securitycentermanagement_v1_UpdateSecurityHealthAnalyticsCustomModuleRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.securitycentermanagement.v1.UpdateSecurityHealthAnalyticsCustomModuleRequest.class, com.google.cloud.securitycentermanagement.v1.UpdateSecurityHealthAnalyticsCustomModuleRequest.Builder.class); + com.google.cloud.securitycentermanagement.v1 + .UpdateSecurityHealthAnalyticsCustomModuleRequest.class, + com.google.cloud.securitycentermanagement.v1 + .UpdateSecurityHealthAnalyticsCustomModuleRequest.Builder.class); } public static final int UPDATE_MASK_FIELD_NUMBER = 1; private com.google.protobuf.FieldMask updateMask_; /** + * + * *
    * Required. The list of fields to be updated. The only fields that can be
    * updated are `enablement_state` and `custom_config`. If empty or set to the
@@ -52,7 +77,9 @@ protected java.lang.Object newInstance(
    * updated.
    * 
* - * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = REQUIRED]; + * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return Whether the updateMask field is set. */ @java.lang.Override @@ -60,6 +87,8 @@ public boolean hasUpdateMask() { return updateMask_ != null; } /** + * + * *
    * Required. The list of fields to be updated. The only fields that can be
    * updated are `enablement_state` and `custom_config`. If empty or set to the
@@ -67,7 +96,9 @@ public boolean hasUpdateMask() {
    * updated.
    * 
* - * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = REQUIRED]; + * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return The updateMask. */ @java.lang.Override @@ -75,6 +106,8 @@ public com.google.protobuf.FieldMask getUpdateMask() { return updateMask_ == null ? com.google.protobuf.FieldMask.getDefaultInstance() : updateMask_; } /** + * + * *
    * Required. The list of fields to be updated. The only fields that can be
    * updated are `enablement_state` and `custom_config`. If empty or set to the
@@ -82,7 +115,8 @@ public com.google.protobuf.FieldMask getUpdateMask() {
    * updated.
    * 
* - * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = REQUIRED]; + * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ @java.lang.Override public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() { @@ -90,13 +124,19 @@ public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() { } public static final int SECURITY_HEALTH_ANALYTICS_CUSTOM_MODULE_FIELD_NUMBER = 2; - private com.google.cloud.securitycentermanagement.v1.SecurityHealthAnalyticsCustomModule securityHealthAnalyticsCustomModule_; + private com.google.cloud.securitycentermanagement.v1.SecurityHealthAnalyticsCustomModule + securityHealthAnalyticsCustomModule_; /** + * + * *
    * Required. The resource being updated
    * 
* - * .google.cloud.securitycentermanagement.v1.SecurityHealthAnalyticsCustomModule security_health_analytics_custom_module = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.securitycentermanagement.v1.SecurityHealthAnalyticsCustomModule security_health_analytics_custom_module = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return Whether the securityHealthAnalyticsCustomModule field is set. */ @java.lang.Override @@ -104,32 +144,51 @@ public boolean hasSecurityHealthAnalyticsCustomModule() { return securityHealthAnalyticsCustomModule_ != null; } /** + * + * *
    * Required. The resource being updated
    * 
* - * .google.cloud.securitycentermanagement.v1.SecurityHealthAnalyticsCustomModule security_health_analytics_custom_module = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.securitycentermanagement.v1.SecurityHealthAnalyticsCustomModule security_health_analytics_custom_module = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return The securityHealthAnalyticsCustomModule. */ @java.lang.Override - public com.google.cloud.securitycentermanagement.v1.SecurityHealthAnalyticsCustomModule getSecurityHealthAnalyticsCustomModule() { - return securityHealthAnalyticsCustomModule_ == null ? com.google.cloud.securitycentermanagement.v1.SecurityHealthAnalyticsCustomModule.getDefaultInstance() : securityHealthAnalyticsCustomModule_; + public com.google.cloud.securitycentermanagement.v1.SecurityHealthAnalyticsCustomModule + getSecurityHealthAnalyticsCustomModule() { + return securityHealthAnalyticsCustomModule_ == null + ? com.google.cloud.securitycentermanagement.v1.SecurityHealthAnalyticsCustomModule + .getDefaultInstance() + : securityHealthAnalyticsCustomModule_; } /** + * + * *
    * Required. The resource being updated
    * 
* - * .google.cloud.securitycentermanagement.v1.SecurityHealthAnalyticsCustomModule security_health_analytics_custom_module = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.securitycentermanagement.v1.SecurityHealthAnalyticsCustomModule security_health_analytics_custom_module = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ @java.lang.Override - public com.google.cloud.securitycentermanagement.v1.SecurityHealthAnalyticsCustomModuleOrBuilder getSecurityHealthAnalyticsCustomModuleOrBuilder() { - return securityHealthAnalyticsCustomModule_ == null ? com.google.cloud.securitycentermanagement.v1.SecurityHealthAnalyticsCustomModule.getDefaultInstance() : securityHealthAnalyticsCustomModule_; + public com.google.cloud.securitycentermanagement.v1.SecurityHealthAnalyticsCustomModuleOrBuilder + getSecurityHealthAnalyticsCustomModuleOrBuilder() { + return securityHealthAnalyticsCustomModule_ == null + ? com.google.cloud.securitycentermanagement.v1.SecurityHealthAnalyticsCustomModule + .getDefaultInstance() + : securityHealthAnalyticsCustomModule_; } public static final int VALIDATE_ONLY_FIELD_NUMBER = 3; private boolean validateOnly_ = false; /** + * + * *
    * Optional. When set to true, only validations (including IAM checks) will
    * done for the request (module will not be updated). An OK response indicates
@@ -141,6 +200,7 @@ public com.google.cloud.securitycentermanagement.v1.SecurityHealthAnalyticsCusto
    * 
* * bool validate_only = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The validateOnly. */ @java.lang.Override @@ -149,6 +209,7 @@ public boolean getValidateOnly() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -160,8 +221,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (updateMask_ != null) { output.writeMessage(1, getUpdateMask()); } @@ -181,16 +241,15 @@ public int getSerializedSize() { size = 0; if (updateMask_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, getUpdateMask()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getUpdateMask()); } if (securityHealthAnalyticsCustomModule_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(2, getSecurityHealthAnalyticsCustomModule()); + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 2, getSecurityHealthAnalyticsCustomModule()); } if (validateOnly_ != false) { - size += com.google.protobuf.CodedOutputStream - .computeBoolSize(3, validateOnly_); + size += com.google.protobuf.CodedOutputStream.computeBoolSize(3, validateOnly_); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -200,25 +259,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.securitycentermanagement.v1.UpdateSecurityHealthAnalyticsCustomModuleRequest)) { + if (!(obj + instanceof + com.google.cloud.securitycentermanagement.v1 + .UpdateSecurityHealthAnalyticsCustomModuleRequest)) { return super.equals(obj); } - com.google.cloud.securitycentermanagement.v1.UpdateSecurityHealthAnalyticsCustomModuleRequest other = (com.google.cloud.securitycentermanagement.v1.UpdateSecurityHealthAnalyticsCustomModuleRequest) obj; + com.google.cloud.securitycentermanagement.v1.UpdateSecurityHealthAnalyticsCustomModuleRequest + other = + (com.google.cloud.securitycentermanagement.v1 + .UpdateSecurityHealthAnalyticsCustomModuleRequest) + obj; if (hasUpdateMask() != other.hasUpdateMask()) return false; if (hasUpdateMask()) { - if (!getUpdateMask() - .equals(other.getUpdateMask())) return false; + if (!getUpdateMask().equals(other.getUpdateMask())) return false; } - if (hasSecurityHealthAnalyticsCustomModule() != other.hasSecurityHealthAnalyticsCustomModule()) return false; + if (hasSecurityHealthAnalyticsCustomModule() != other.hasSecurityHealthAnalyticsCustomModule()) + return false; if (hasSecurityHealthAnalyticsCustomModule()) { if (!getSecurityHealthAnalyticsCustomModule() .equals(other.getSecurityHealthAnalyticsCustomModule())) return false; } - if (getValidateOnly() - != other.getValidateOnly()) return false; + if (getValidateOnly() != other.getValidateOnly()) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -239,139 +304,167 @@ public int hashCode() { hash = (53 * hash) + getSecurityHealthAnalyticsCustomModule().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.securitycentermanagement.v1.UpdateSecurityHealthAnalyticsCustomModuleRequest parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.securitycentermanagement.v1 + .UpdateSecurityHealthAnalyticsCustomModuleRequest + parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.securitycentermanagement.v1.UpdateSecurityHealthAnalyticsCustomModuleRequest parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.cloud.securitycentermanagement.v1 + .UpdateSecurityHealthAnalyticsCustomModuleRequest + 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.securitycentermanagement.v1.UpdateSecurityHealthAnalyticsCustomModuleRequest parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.cloud.securitycentermanagement.v1 + .UpdateSecurityHealthAnalyticsCustomModuleRequest + parseFrom(com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.securitycentermanagement.v1.UpdateSecurityHealthAnalyticsCustomModuleRequest parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.cloud.securitycentermanagement.v1 + .UpdateSecurityHealthAnalyticsCustomModuleRequest + parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.securitycentermanagement.v1.UpdateSecurityHealthAnalyticsCustomModuleRequest parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.cloud.securitycentermanagement.v1 + .UpdateSecurityHealthAnalyticsCustomModuleRequest + parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.securitycentermanagement.v1.UpdateSecurityHealthAnalyticsCustomModuleRequest parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.cloud.securitycentermanagement.v1 + .UpdateSecurityHealthAnalyticsCustomModuleRequest + parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.securitycentermanagement.v1.UpdateSecurityHealthAnalyticsCustomModuleRequest parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.securitycentermanagement.v1 + .UpdateSecurityHealthAnalyticsCustomModuleRequest + parseFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } - public static com.google.cloud.securitycentermanagement.v1.UpdateSecurityHealthAnalyticsCustomModuleRequest 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.securitycentermanagement.v1 + .UpdateSecurityHealthAnalyticsCustomModuleRequest + 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.securitycentermanagement.v1.UpdateSecurityHealthAnalyticsCustomModuleRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.securitycentermanagement.v1 + .UpdateSecurityHealthAnalyticsCustomModuleRequest + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.securitycentermanagement.v1.UpdateSecurityHealthAnalyticsCustomModuleRequest parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + public static com.google.cloud.securitycentermanagement.v1 + .UpdateSecurityHealthAnalyticsCustomModuleRequest + parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.securitycentermanagement.v1.UpdateSecurityHealthAnalyticsCustomModuleRequest parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.securitycentermanagement.v1 + .UpdateSecurityHealthAnalyticsCustomModuleRequest + parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } - public static com.google.cloud.securitycentermanagement.v1.UpdateSecurityHealthAnalyticsCustomModuleRequest 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.securitycentermanagement.v1 + .UpdateSecurityHealthAnalyticsCustomModuleRequest + 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.securitycentermanagement.v1.UpdateSecurityHealthAnalyticsCustomModuleRequest prototype) { + + public static Builder newBuilder( + com.google.cloud.securitycentermanagement.v1.UpdateSecurityHealthAnalyticsCustomModuleRequest + prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected 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 updating a SecurityHealthAnalyticsCustomModule
    * 
* - * Protobuf type {@code google.cloud.securitycentermanagement.v1.UpdateSecurityHealthAnalyticsCustomModuleRequest} + * Protobuf type {@code + * google.cloud.securitycentermanagement.v1.UpdateSecurityHealthAnalyticsCustomModuleRequest} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.securitycentermanagement.v1.UpdateSecurityHealthAnalyticsCustomModuleRequest) - com.google.cloud.securitycentermanagement.v1.UpdateSecurityHealthAnalyticsCustomModuleRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.securitycentermanagement.v1.SecurityCenterManagementProto.internal_static_google_cloud_securitycentermanagement_v1_UpdateSecurityHealthAnalyticsCustomModuleRequest_descriptor; + com.google.cloud.securitycentermanagement.v1 + .UpdateSecurityHealthAnalyticsCustomModuleRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.securitycentermanagement.v1.SecurityCenterManagementProto + .internal_static_google_cloud_securitycentermanagement_v1_UpdateSecurityHealthAnalyticsCustomModuleRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.securitycentermanagement.v1.SecurityCenterManagementProto.internal_static_google_cloud_securitycentermanagement_v1_UpdateSecurityHealthAnalyticsCustomModuleRequest_fieldAccessorTable + return com.google.cloud.securitycentermanagement.v1.SecurityCenterManagementProto + .internal_static_google_cloud_securitycentermanagement_v1_UpdateSecurityHealthAnalyticsCustomModuleRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.securitycentermanagement.v1.UpdateSecurityHealthAnalyticsCustomModuleRequest.class, com.google.cloud.securitycentermanagement.v1.UpdateSecurityHealthAnalyticsCustomModuleRequest.Builder.class); + com.google.cloud.securitycentermanagement.v1 + .UpdateSecurityHealthAnalyticsCustomModuleRequest.class, + com.google.cloud.securitycentermanagement.v1 + .UpdateSecurityHealthAnalyticsCustomModuleRequest.Builder.class); } - // Construct using com.google.cloud.securitycentermanagement.v1.UpdateSecurityHealthAnalyticsCustomModuleRequest.newBuilder() - private Builder() { + // Construct using + // com.google.cloud.securitycentermanagement.v1.UpdateSecurityHealthAnalyticsCustomModuleRequest.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(); @@ -391,19 +484,25 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.securitycentermanagement.v1.SecurityCenterManagementProto.internal_static_google_cloud_securitycentermanagement_v1_UpdateSecurityHealthAnalyticsCustomModuleRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.securitycentermanagement.v1.SecurityCenterManagementProto + .internal_static_google_cloud_securitycentermanagement_v1_UpdateSecurityHealthAnalyticsCustomModuleRequest_descriptor; } @java.lang.Override - public com.google.cloud.securitycentermanagement.v1.UpdateSecurityHealthAnalyticsCustomModuleRequest getDefaultInstanceForType() { - return com.google.cloud.securitycentermanagement.v1.UpdateSecurityHealthAnalyticsCustomModuleRequest.getDefaultInstance(); + public com.google.cloud.securitycentermanagement.v1 + .UpdateSecurityHealthAnalyticsCustomModuleRequest + getDefaultInstanceForType() { + return com.google.cloud.securitycentermanagement.v1 + .UpdateSecurityHealthAnalyticsCustomModuleRequest.getDefaultInstance(); } @java.lang.Override - public com.google.cloud.securitycentermanagement.v1.UpdateSecurityHealthAnalyticsCustomModuleRequest build() { - com.google.cloud.securitycentermanagement.v1.UpdateSecurityHealthAnalyticsCustomModuleRequest result = buildPartial(); + public com.google.cloud.securitycentermanagement.v1 + .UpdateSecurityHealthAnalyticsCustomModuleRequest + build() { + com.google.cloud.securitycentermanagement.v1.UpdateSecurityHealthAnalyticsCustomModuleRequest + result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } @@ -411,24 +510,33 @@ public com.google.cloud.securitycentermanagement.v1.UpdateSecurityHealthAnalytic } @java.lang.Override - public com.google.cloud.securitycentermanagement.v1.UpdateSecurityHealthAnalyticsCustomModuleRequest buildPartial() { - com.google.cloud.securitycentermanagement.v1.UpdateSecurityHealthAnalyticsCustomModuleRequest result = new com.google.cloud.securitycentermanagement.v1.UpdateSecurityHealthAnalyticsCustomModuleRequest(this); - if (bitField0_ != 0) { buildPartial0(result); } + public com.google.cloud.securitycentermanagement.v1 + .UpdateSecurityHealthAnalyticsCustomModuleRequest + buildPartial() { + com.google.cloud.securitycentermanagement.v1.UpdateSecurityHealthAnalyticsCustomModuleRequest + result = + new com.google.cloud.securitycentermanagement.v1 + .UpdateSecurityHealthAnalyticsCustomModuleRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } - private void buildPartial0(com.google.cloud.securitycentermanagement.v1.UpdateSecurityHealthAnalyticsCustomModuleRequest result) { + private void buildPartial0( + com.google.cloud.securitycentermanagement.v1 + .UpdateSecurityHealthAnalyticsCustomModuleRequest + result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000001) != 0)) { - result.updateMask_ = updateMaskBuilder_ == null - ? updateMask_ - : updateMaskBuilder_.build(); + result.updateMask_ = updateMaskBuilder_ == null ? updateMask_ : updateMaskBuilder_.build(); } if (((from_bitField0_ & 0x00000002) != 0)) { - result.securityHealthAnalyticsCustomModule_ = securityHealthAnalyticsCustomModuleBuilder_ == null - ? securityHealthAnalyticsCustomModule_ - : securityHealthAnalyticsCustomModuleBuilder_.build(); + result.securityHealthAnalyticsCustomModule_ = + securityHealthAnalyticsCustomModuleBuilder_ == null + ? securityHealthAnalyticsCustomModule_ + : securityHealthAnalyticsCustomModuleBuilder_.build(); } if (((from_bitField0_ & 0x00000004) != 0)) { result.validateOnly_ = validateOnly_; @@ -439,46 +547,58 @@ private void buildPartial0(com.google.cloud.securitycentermanagement.v1.UpdateSe public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.cloud.securitycentermanagement.v1.UpdateSecurityHealthAnalyticsCustomModuleRequest) { - return mergeFrom((com.google.cloud.securitycentermanagement.v1.UpdateSecurityHealthAnalyticsCustomModuleRequest)other); + if (other + instanceof + com.google.cloud.securitycentermanagement.v1 + .UpdateSecurityHealthAnalyticsCustomModuleRequest) { + return mergeFrom( + (com.google.cloud.securitycentermanagement.v1 + .UpdateSecurityHealthAnalyticsCustomModuleRequest) + other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom(com.google.cloud.securitycentermanagement.v1.UpdateSecurityHealthAnalyticsCustomModuleRequest other) { - if (other == com.google.cloud.securitycentermanagement.v1.UpdateSecurityHealthAnalyticsCustomModuleRequest.getDefaultInstance()) return this; + public Builder mergeFrom( + com.google.cloud.securitycentermanagement.v1 + .UpdateSecurityHealthAnalyticsCustomModuleRequest + other) { + if (other + == com.google.cloud.securitycentermanagement.v1 + .UpdateSecurityHealthAnalyticsCustomModuleRequest.getDefaultInstance()) return this; if (other.hasUpdateMask()) { mergeUpdateMask(other.getUpdateMask()); } @@ -514,31 +634,33 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: { - input.readMessage( - getUpdateMaskFieldBuilder().getBuilder(), - extensionRegistry); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 18: { - input.readMessage( - getSecurityHealthAnalyticsCustomModuleFieldBuilder().getBuilder(), - extensionRegistry); - bitField0_ |= 0x00000002; - break; - } // case 18 - case 24: { - validateOnly_ = input.readBool(); - bitField0_ |= 0x00000004; - break; - } // case 24 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: + { + input.readMessage(getUpdateMaskFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + input.readMessage( + getSecurityHealthAnalyticsCustomModuleFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 24: + { + validateOnly_ = 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) { @@ -548,12 +670,18 @@ public Builder mergeFrom( } // finally return this; } + private int bitField0_; 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 list of fields to be updated. The only fields that can be
      * updated are `enablement_state` and `custom_config`. If empty or set to the
@@ -561,13 +689,17 @@ public Builder mergeFrom(
      * updated.
      * 
* - * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = REQUIRED]; + * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return Whether the updateMask field is set. */ public boolean hasUpdateMask() { return ((bitField0_ & 0x00000001) != 0); } /** + * + * *
      * Required. The list of fields to be updated. The only fields that can be
      * updated are `enablement_state` and `custom_config`. If empty or set to the
@@ -575,17 +707,23 @@ public boolean hasUpdateMask() {
      * updated.
      * 
* - * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = REQUIRED]; + * .google.protobuf.FieldMask update_mask = 1 [(.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 list of fields to be updated. The only fields that can be
      * updated are `enablement_state` and `custom_config`. If empty or set to the
@@ -593,7 +731,8 @@ public com.google.protobuf.FieldMask getUpdateMask() {
      * updated.
      * 
* - * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = REQUIRED]; + * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder setUpdateMask(com.google.protobuf.FieldMask value) { if (updateMaskBuilder_ == null) { @@ -609,6 +748,8 @@ public Builder setUpdateMask(com.google.protobuf.FieldMask value) { return this; } /** + * + * *
      * Required. The list of fields to be updated. The only fields that can be
      * updated are `enablement_state` and `custom_config`. If empty or set to the
@@ -616,10 +757,10 @@ public Builder setUpdateMask(com.google.protobuf.FieldMask value) {
      * updated.
      * 
* - * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = REQUIRED]; + * .google.protobuf.FieldMask update_mask = 1 [(.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 { @@ -630,6 +771,8 @@ public Builder setUpdateMask( return this; } /** + * + * *
      * Required. The list of fields to be updated. The only fields that can be
      * updated are `enablement_state` and `custom_config`. If empty or set to the
@@ -637,13 +780,14 @@ public Builder setUpdateMask(
      * updated.
      * 
* - * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = REQUIRED]; + * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder mergeUpdateMask(com.google.protobuf.FieldMask value) { if (updateMaskBuilder_ == null) { - if (((bitField0_ & 0x00000001) != 0) && - updateMask_ != null && - updateMask_ != com.google.protobuf.FieldMask.getDefaultInstance()) { + if (((bitField0_ & 0x00000001) != 0) + && updateMask_ != null + && updateMask_ != com.google.protobuf.FieldMask.getDefaultInstance()) { getUpdateMaskBuilder().mergeFrom(value); } else { updateMask_ = value; @@ -656,6 +800,8 @@ public Builder mergeUpdateMask(com.google.protobuf.FieldMask value) { return this; } /** + * + * *
      * Required. The list of fields to be updated. The only fields that can be
      * updated are `enablement_state` and `custom_config`. If empty or set to the
@@ -663,7 +809,8 @@ public Builder mergeUpdateMask(com.google.protobuf.FieldMask value) {
      * updated.
      * 
* - * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = REQUIRED]; + * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder clearUpdateMask() { bitField0_ = (bitField0_ & ~0x00000001); @@ -676,6 +823,8 @@ public Builder clearUpdateMask() { return this; } /** + * + * *
      * Required. The list of fields to be updated. The only fields that can be
      * updated are `enablement_state` and `custom_config`. If empty or set to the
@@ -683,7 +832,8 @@ public Builder clearUpdateMask() {
      * updated.
      * 
* - * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = REQUIRED]; + * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ public com.google.protobuf.FieldMask.Builder getUpdateMaskBuilder() { bitField0_ |= 0x00000001; @@ -691,6 +841,8 @@ public com.google.protobuf.FieldMask.Builder getUpdateMaskBuilder() { return getUpdateMaskFieldBuilder().getBuilder(); } /** + * + * *
      * Required. The list of fields to be updated. The only fields that can be
      * updated are `enablement_state` and `custom_config`. If empty or set to the
@@ -698,17 +850,21 @@ public com.google.protobuf.FieldMask.Builder getUpdateMaskBuilder() {
      * updated.
      * 
* - * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = REQUIRED]; + * .google.protobuf.FieldMask update_mask = 1 [(.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 list of fields to be updated. The only fields that can be
      * updated are `enablement_state` and `custom_config`. If empty or set to the
@@ -716,59 +872,88 @@ public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() {
      * updated.
      * 
* - * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = REQUIRED]; + * .google.protobuf.FieldMask update_mask = 1 [(.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 com.google.cloud.securitycentermanagement.v1.SecurityHealthAnalyticsCustomModule securityHealthAnalyticsCustomModule_; + private com.google.cloud.securitycentermanagement.v1.SecurityHealthAnalyticsCustomModule + securityHealthAnalyticsCustomModule_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.securitycentermanagement.v1.SecurityHealthAnalyticsCustomModule, com.google.cloud.securitycentermanagement.v1.SecurityHealthAnalyticsCustomModule.Builder, com.google.cloud.securitycentermanagement.v1.SecurityHealthAnalyticsCustomModuleOrBuilder> securityHealthAnalyticsCustomModuleBuilder_; + com.google.cloud.securitycentermanagement.v1.SecurityHealthAnalyticsCustomModule, + com.google.cloud.securitycentermanagement.v1.SecurityHealthAnalyticsCustomModule + .Builder, + com.google.cloud.securitycentermanagement.v1 + .SecurityHealthAnalyticsCustomModuleOrBuilder> + securityHealthAnalyticsCustomModuleBuilder_; /** + * + * *
      * Required. The resource being updated
      * 
* - * .google.cloud.securitycentermanagement.v1.SecurityHealthAnalyticsCustomModule security_health_analytics_custom_module = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.securitycentermanagement.v1.SecurityHealthAnalyticsCustomModule security_health_analytics_custom_module = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return Whether the securityHealthAnalyticsCustomModule field is set. */ public boolean hasSecurityHealthAnalyticsCustomModule() { return ((bitField0_ & 0x00000002) != 0); } /** + * + * *
      * Required. The resource being updated
      * 
* - * .google.cloud.securitycentermanagement.v1.SecurityHealthAnalyticsCustomModule security_health_analytics_custom_module = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.securitycentermanagement.v1.SecurityHealthAnalyticsCustomModule security_health_analytics_custom_module = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return The securityHealthAnalyticsCustomModule. */ - public com.google.cloud.securitycentermanagement.v1.SecurityHealthAnalyticsCustomModule getSecurityHealthAnalyticsCustomModule() { + public com.google.cloud.securitycentermanagement.v1.SecurityHealthAnalyticsCustomModule + getSecurityHealthAnalyticsCustomModule() { if (securityHealthAnalyticsCustomModuleBuilder_ == null) { - return securityHealthAnalyticsCustomModule_ == null ? com.google.cloud.securitycentermanagement.v1.SecurityHealthAnalyticsCustomModule.getDefaultInstance() : securityHealthAnalyticsCustomModule_; + return securityHealthAnalyticsCustomModule_ == null + ? com.google.cloud.securitycentermanagement.v1.SecurityHealthAnalyticsCustomModule + .getDefaultInstance() + : securityHealthAnalyticsCustomModule_; } else { return securityHealthAnalyticsCustomModuleBuilder_.getMessage(); } } /** + * + * *
      * Required. The resource being updated
      * 
* - * .google.cloud.securitycentermanagement.v1.SecurityHealthAnalyticsCustomModule security_health_analytics_custom_module = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.securitycentermanagement.v1.SecurityHealthAnalyticsCustomModule security_health_analytics_custom_module = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ - public Builder setSecurityHealthAnalyticsCustomModule(com.google.cloud.securitycentermanagement.v1.SecurityHealthAnalyticsCustomModule value) { + public Builder setSecurityHealthAnalyticsCustomModule( + com.google.cloud.securitycentermanagement.v1.SecurityHealthAnalyticsCustomModule value) { if (securityHealthAnalyticsCustomModuleBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -782,14 +967,19 @@ public Builder setSecurityHealthAnalyticsCustomModule(com.google.cloud.securityc return this; } /** + * + * *
      * Required. The resource being updated
      * 
* - * .google.cloud.securitycentermanagement.v1.SecurityHealthAnalyticsCustomModule security_health_analytics_custom_module = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.securitycentermanagement.v1.SecurityHealthAnalyticsCustomModule security_health_analytics_custom_module = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder setSecurityHealthAnalyticsCustomModule( - com.google.cloud.securitycentermanagement.v1.SecurityHealthAnalyticsCustomModule.Builder builderForValue) { + com.google.cloud.securitycentermanagement.v1.SecurityHealthAnalyticsCustomModule.Builder + builderForValue) { if (securityHealthAnalyticsCustomModuleBuilder_ == null) { securityHealthAnalyticsCustomModule_ = builderForValue.build(); } else { @@ -800,17 +990,24 @@ public Builder setSecurityHealthAnalyticsCustomModule( return this; } /** + * + * *
      * Required. The resource being updated
      * 
* - * .google.cloud.securitycentermanagement.v1.SecurityHealthAnalyticsCustomModule security_health_analytics_custom_module = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.securitycentermanagement.v1.SecurityHealthAnalyticsCustomModule security_health_analytics_custom_module = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ - public Builder mergeSecurityHealthAnalyticsCustomModule(com.google.cloud.securitycentermanagement.v1.SecurityHealthAnalyticsCustomModule value) { + public Builder mergeSecurityHealthAnalyticsCustomModule( + com.google.cloud.securitycentermanagement.v1.SecurityHealthAnalyticsCustomModule value) { if (securityHealthAnalyticsCustomModuleBuilder_ == null) { - if (((bitField0_ & 0x00000002) != 0) && - securityHealthAnalyticsCustomModule_ != null && - securityHealthAnalyticsCustomModule_ != com.google.cloud.securitycentermanagement.v1.SecurityHealthAnalyticsCustomModule.getDefaultInstance()) { + if (((bitField0_ & 0x00000002) != 0) + && securityHealthAnalyticsCustomModule_ != null + && securityHealthAnalyticsCustomModule_ + != com.google.cloud.securitycentermanagement.v1.SecurityHealthAnalyticsCustomModule + .getDefaultInstance()) { getSecurityHealthAnalyticsCustomModuleBuilder().mergeFrom(value); } else { securityHealthAnalyticsCustomModule_ = value; @@ -823,11 +1020,15 @@ public Builder mergeSecurityHealthAnalyticsCustomModule(com.google.cloud.securit return this; } /** + * + * *
      * Required. The resource being updated
      * 
* - * .google.cloud.securitycentermanagement.v1.SecurityHealthAnalyticsCustomModule security_health_analytics_custom_module = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.securitycentermanagement.v1.SecurityHealthAnalyticsCustomModule security_health_analytics_custom_module = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder clearSecurityHealthAnalyticsCustomModule() { bitField0_ = (bitField0_ & ~0x00000002); @@ -840,55 +1041,80 @@ public Builder clearSecurityHealthAnalyticsCustomModule() { return this; } /** + * + * *
      * Required. The resource being updated
      * 
* - * .google.cloud.securitycentermanagement.v1.SecurityHealthAnalyticsCustomModule security_health_analytics_custom_module = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.securitycentermanagement.v1.SecurityHealthAnalyticsCustomModule security_health_analytics_custom_module = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ - public com.google.cloud.securitycentermanagement.v1.SecurityHealthAnalyticsCustomModule.Builder getSecurityHealthAnalyticsCustomModuleBuilder() { + public com.google.cloud.securitycentermanagement.v1.SecurityHealthAnalyticsCustomModule.Builder + getSecurityHealthAnalyticsCustomModuleBuilder() { bitField0_ |= 0x00000002; onChanged(); return getSecurityHealthAnalyticsCustomModuleFieldBuilder().getBuilder(); } /** + * + * *
      * Required. The resource being updated
      * 
* - * .google.cloud.securitycentermanagement.v1.SecurityHealthAnalyticsCustomModule security_health_analytics_custom_module = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.securitycentermanagement.v1.SecurityHealthAnalyticsCustomModule security_health_analytics_custom_module = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ - public com.google.cloud.securitycentermanagement.v1.SecurityHealthAnalyticsCustomModuleOrBuilder getSecurityHealthAnalyticsCustomModuleOrBuilder() { + public com.google.cloud.securitycentermanagement.v1.SecurityHealthAnalyticsCustomModuleOrBuilder + getSecurityHealthAnalyticsCustomModuleOrBuilder() { if (securityHealthAnalyticsCustomModuleBuilder_ != null) { return securityHealthAnalyticsCustomModuleBuilder_.getMessageOrBuilder(); } else { - return securityHealthAnalyticsCustomModule_ == null ? - com.google.cloud.securitycentermanagement.v1.SecurityHealthAnalyticsCustomModule.getDefaultInstance() : securityHealthAnalyticsCustomModule_; + return securityHealthAnalyticsCustomModule_ == null + ? com.google.cloud.securitycentermanagement.v1.SecurityHealthAnalyticsCustomModule + .getDefaultInstance() + : securityHealthAnalyticsCustomModule_; } } /** + * + * *
      * Required. The resource being updated
      * 
* - * .google.cloud.securitycentermanagement.v1.SecurityHealthAnalyticsCustomModule security_health_analytics_custom_module = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.securitycentermanagement.v1.SecurityHealthAnalyticsCustomModule security_health_analytics_custom_module = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.securitycentermanagement.v1.SecurityHealthAnalyticsCustomModule, com.google.cloud.securitycentermanagement.v1.SecurityHealthAnalyticsCustomModule.Builder, com.google.cloud.securitycentermanagement.v1.SecurityHealthAnalyticsCustomModuleOrBuilder> + com.google.cloud.securitycentermanagement.v1.SecurityHealthAnalyticsCustomModule, + com.google.cloud.securitycentermanagement.v1.SecurityHealthAnalyticsCustomModule + .Builder, + com.google.cloud.securitycentermanagement.v1 + .SecurityHealthAnalyticsCustomModuleOrBuilder> getSecurityHealthAnalyticsCustomModuleFieldBuilder() { if (securityHealthAnalyticsCustomModuleBuilder_ == null) { - securityHealthAnalyticsCustomModuleBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.securitycentermanagement.v1.SecurityHealthAnalyticsCustomModule, com.google.cloud.securitycentermanagement.v1.SecurityHealthAnalyticsCustomModule.Builder, com.google.cloud.securitycentermanagement.v1.SecurityHealthAnalyticsCustomModuleOrBuilder>( - getSecurityHealthAnalyticsCustomModule(), - getParentForChildren(), - isClean()); + securityHealthAnalyticsCustomModuleBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.securitycentermanagement.v1.SecurityHealthAnalyticsCustomModule, + com.google.cloud.securitycentermanagement.v1.SecurityHealthAnalyticsCustomModule + .Builder, + com.google.cloud.securitycentermanagement.v1 + .SecurityHealthAnalyticsCustomModuleOrBuilder>( + getSecurityHealthAnalyticsCustomModule(), getParentForChildren(), isClean()); securityHealthAnalyticsCustomModule_ = null; } return securityHealthAnalyticsCustomModuleBuilder_; } - private boolean validateOnly_ ; + private boolean validateOnly_; /** + * + * *
      * Optional. When set to true, only validations (including IAM checks) will
      * done for the request (module will not be updated). An OK response indicates
@@ -900,6 +1126,7 @@ public com.google.cloud.securitycentermanagement.v1.SecurityHealthAnalyticsCusto
      * 
* * bool validate_only = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The validateOnly. */ @java.lang.Override @@ -907,6 +1134,8 @@ public boolean getValidateOnly() { return validateOnly_; } /** + * + * *
      * Optional. When set to true, only validations (including IAM checks) will
      * done for the request (module will not be updated). An OK response indicates
@@ -918,6 +1147,7 @@ public boolean getValidateOnly() {
      * 
* * bool validate_only = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @param value The validateOnly to set. * @return This builder for chaining. */ @@ -929,6 +1159,8 @@ public Builder setValidateOnly(boolean value) { return this; } /** + * + * *
      * Optional. When set to true, only validations (including IAM checks) will
      * done for the request (module will not be updated). An OK response indicates
@@ -940,6 +1172,7 @@ public Builder setValidateOnly(boolean value) {
      * 
* * bool validate_only = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @return This builder for chaining. */ public Builder clearValidateOnly() { @@ -948,9 +1181,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); } @@ -960,55 +1193,66 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.securitycentermanagement.v1.UpdateSecurityHealthAnalyticsCustomModuleRequest) } // @@protoc_insertion_point(class_scope:google.cloud.securitycentermanagement.v1.UpdateSecurityHealthAnalyticsCustomModuleRequest) - private static final com.google.cloud.securitycentermanagement.v1.UpdateSecurityHealthAnalyticsCustomModuleRequest DEFAULT_INSTANCE; + private static final com.google.cloud.securitycentermanagement.v1 + .UpdateSecurityHealthAnalyticsCustomModuleRequest + DEFAULT_INSTANCE; + static { - DEFAULT_INSTANCE = new com.google.cloud.securitycentermanagement.v1.UpdateSecurityHealthAnalyticsCustomModuleRequest(); + DEFAULT_INSTANCE = + new com.google.cloud.securitycentermanagement.v1 + .UpdateSecurityHealthAnalyticsCustomModuleRequest(); } - public static com.google.cloud.securitycentermanagement.v1.UpdateSecurityHealthAnalyticsCustomModuleRequest getDefaultInstance() { + public static com.google.cloud.securitycentermanagement.v1 + .UpdateSecurityHealthAnalyticsCustomModuleRequest + getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public UpdateSecurityHealthAnalyticsCustomModuleRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + PARSER = + new com.google.protobuf.AbstractParser< + UpdateSecurityHealthAnalyticsCustomModuleRequest>() { + @java.lang.Override + public UpdateSecurityHealthAnalyticsCustomModuleRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException() + .setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; - public static com.google.protobuf.Parser parser() { + public static com.google.protobuf.Parser + parser() { return PARSER; } @java.lang.Override - public com.google.protobuf.Parser getParserForType() { + public com.google.protobuf.Parser + getParserForType() { return PARSER; } @java.lang.Override - public com.google.cloud.securitycentermanagement.v1.UpdateSecurityHealthAnalyticsCustomModuleRequest getDefaultInstanceForType() { + public com.google.cloud.securitycentermanagement.v1 + .UpdateSecurityHealthAnalyticsCustomModuleRequest + getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/java-securitycentermanagement/v1/proto-google-cloud-securitycentermanagement-v1/src/main/java/com/google/cloud/securitycentermanagement/v1/UpdateSecurityHealthAnalyticsCustomModuleRequestOrBuilder.java b/java-securitycentermanagement/proto-google-cloud-securitycentermanagement-v1/src/main/java/com/google/cloud/securitycentermanagement/v1/UpdateSecurityHealthAnalyticsCustomModuleRequestOrBuilder.java similarity index 64% rename from owl-bot-staging/java-securitycentermanagement/v1/proto-google-cloud-securitycentermanagement-v1/src/main/java/com/google/cloud/securitycentermanagement/v1/UpdateSecurityHealthAnalyticsCustomModuleRequestOrBuilder.java rename to java-securitycentermanagement/proto-google-cloud-securitycentermanagement-v1/src/main/java/com/google/cloud/securitycentermanagement/v1/UpdateSecurityHealthAnalyticsCustomModuleRequestOrBuilder.java index 545682c2038f..87129a81089f 100644 --- a/owl-bot-staging/java-securitycentermanagement/v1/proto-google-cloud-securitycentermanagement-v1/src/main/java/com/google/cloud/securitycentermanagement/v1/UpdateSecurityHealthAnalyticsCustomModuleRequestOrBuilder.java +++ b/java-securitycentermanagement/proto-google-cloud-securitycentermanagement-v1/src/main/java/com/google/cloud/securitycentermanagement/v1/UpdateSecurityHealthAnalyticsCustomModuleRequestOrBuilder.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/securitycentermanagement/v1/security_center_management.proto package com.google.cloud.securitycentermanagement.v1; -public interface UpdateSecurityHealthAnalyticsCustomModuleRequestOrBuilder extends +public interface UpdateSecurityHealthAnalyticsCustomModuleRequestOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.securitycentermanagement.v1.UpdateSecurityHealthAnalyticsCustomModuleRequest) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * Required. The list of fields to be updated. The only fields that can be
    * updated are `enablement_state` and `custom_config`. If empty or set to the
@@ -15,11 +33,15 @@ public interface UpdateSecurityHealthAnalyticsCustomModuleRequestOrBuilder exten
    * updated.
    * 
* - * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = REQUIRED]; + * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return Whether the updateMask field is set. */ boolean hasUpdateMask(); /** + * + * *
    * Required. The list of fields to be updated. The only fields that can be
    * updated are `enablement_state` and `custom_config`. If empty or set to the
@@ -27,11 +49,15 @@ public interface UpdateSecurityHealthAnalyticsCustomModuleRequestOrBuilder exten
    * updated.
    * 
* - * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = REQUIRED]; + * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return The updateMask. */ com.google.protobuf.FieldMask getUpdateMask(); /** + * + * *
    * Required. The list of fields to be updated. The only fields that can be
    * updated are `enablement_state` and `custom_config`. If empty or set to the
@@ -39,38 +65,57 @@ public interface UpdateSecurityHealthAnalyticsCustomModuleRequestOrBuilder exten
    * updated.
    * 
* - * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = REQUIRED]; + * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder(); /** + * + * *
    * Required. The resource being updated
    * 
* - * .google.cloud.securitycentermanagement.v1.SecurityHealthAnalyticsCustomModule security_health_analytics_custom_module = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.securitycentermanagement.v1.SecurityHealthAnalyticsCustomModule security_health_analytics_custom_module = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return Whether the securityHealthAnalyticsCustomModule field is set. */ boolean hasSecurityHealthAnalyticsCustomModule(); /** + * + * *
    * Required. The resource being updated
    * 
* - * .google.cloud.securitycentermanagement.v1.SecurityHealthAnalyticsCustomModule security_health_analytics_custom_module = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.securitycentermanagement.v1.SecurityHealthAnalyticsCustomModule security_health_analytics_custom_module = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return The securityHealthAnalyticsCustomModule. */ - com.google.cloud.securitycentermanagement.v1.SecurityHealthAnalyticsCustomModule getSecurityHealthAnalyticsCustomModule(); + com.google.cloud.securitycentermanagement.v1.SecurityHealthAnalyticsCustomModule + getSecurityHealthAnalyticsCustomModule(); /** + * + * *
    * Required. The resource being updated
    * 
* - * .google.cloud.securitycentermanagement.v1.SecurityHealthAnalyticsCustomModule security_health_analytics_custom_module = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.securitycentermanagement.v1.SecurityHealthAnalyticsCustomModule security_health_analytics_custom_module = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ - com.google.cloud.securitycentermanagement.v1.SecurityHealthAnalyticsCustomModuleOrBuilder getSecurityHealthAnalyticsCustomModuleOrBuilder(); + com.google.cloud.securitycentermanagement.v1.SecurityHealthAnalyticsCustomModuleOrBuilder + getSecurityHealthAnalyticsCustomModuleOrBuilder(); /** + * + * *
    * Optional. When set to true, only validations (including IAM checks) will
    * done for the request (module will not be updated). An OK response indicates
@@ -82,6 +127,7 @@ public interface UpdateSecurityHealthAnalyticsCustomModuleRequestOrBuilder exten
    * 
* * bool validate_only = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The validateOnly. */ boolean getValidateOnly(); diff --git a/owl-bot-staging/java-securitycentermanagement/v1/proto-google-cloud-securitycentermanagement-v1/src/main/java/com/google/cloud/securitycentermanagement/v1/ValidateEventThreatDetectionCustomModuleRequest.java b/java-securitycentermanagement/proto-google-cloud-securitycentermanagement-v1/src/main/java/com/google/cloud/securitycentermanagement/v1/ValidateEventThreatDetectionCustomModuleRequest.java similarity index 54% rename from owl-bot-staging/java-securitycentermanagement/v1/proto-google-cloud-securitycentermanagement-v1/src/main/java/com/google/cloud/securitycentermanagement/v1/ValidateEventThreatDetectionCustomModuleRequest.java rename to java-securitycentermanagement/proto-google-cloud-securitycentermanagement-v1/src/main/java/com/google/cloud/securitycentermanagement/v1/ValidateEventThreatDetectionCustomModuleRequest.java index 701de1597755..36cb1198e23b 100644 --- a/owl-bot-staging/java-securitycentermanagement/v1/proto-google-cloud-securitycentermanagement-v1/src/main/java/com/google/cloud/securitycentermanagement/v1/ValidateEventThreatDetectionCustomModuleRequest.java +++ b/java-securitycentermanagement/proto-google-cloud-securitycentermanagement-v1/src/main/java/com/google/cloud/securitycentermanagement/v1/ValidateEventThreatDetectionCustomModuleRequest.java @@ -1,24 +1,45 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/securitycentermanagement/v1/security_center_management.proto package com.google.cloud.securitycentermanagement.v1; /** + * + * *
  * Request to validate an Event Threat Detection custom module.
  * 
* - * Protobuf type {@code google.cloud.securitycentermanagement.v1.ValidateEventThreatDetectionCustomModuleRequest} + * Protobuf type {@code + * google.cloud.securitycentermanagement.v1.ValidateEventThreatDetectionCustomModuleRequest} */ -public final class ValidateEventThreatDetectionCustomModuleRequest extends - com.google.protobuf.GeneratedMessageV3 implements +public final class ValidateEventThreatDetectionCustomModuleRequest + extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.securitycentermanagement.v1.ValidateEventThreatDetectionCustomModuleRequest) ValidateEventThreatDetectionCustomModuleRequestOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use ValidateEventThreatDetectionCustomModuleRequest.newBuilder() to construct. - private ValidateEventThreatDetectionCustomModuleRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + private ValidateEventThreatDetectionCustomModuleRequest( + com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private ValidateEventThreatDetectionCustomModuleRequest() { parent_ = ""; rawText_ = ""; @@ -27,28 +48,34 @@ private ValidateEventThreatDetectionCustomModuleRequest() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new ValidateEventThreatDetectionCustomModuleRequest(); } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.securitycentermanagement.v1.SecurityCenterManagementProto.internal_static_google_cloud_securitycentermanagement_v1_ValidateEventThreatDetectionCustomModuleRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.securitycentermanagement.v1.SecurityCenterManagementProto + .internal_static_google_cloud_securitycentermanagement_v1_ValidateEventThreatDetectionCustomModuleRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.securitycentermanagement.v1.SecurityCenterManagementProto.internal_static_google_cloud_securitycentermanagement_v1_ValidateEventThreatDetectionCustomModuleRequest_fieldAccessorTable + return com.google.cloud.securitycentermanagement.v1.SecurityCenterManagementProto + .internal_static_google_cloud_securitycentermanagement_v1_ValidateEventThreatDetectionCustomModuleRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.securitycentermanagement.v1.ValidateEventThreatDetectionCustomModuleRequest.class, com.google.cloud.securitycentermanagement.v1.ValidateEventThreatDetectionCustomModuleRequest.Builder.class); + com.google.cloud.securitycentermanagement.v1 + .ValidateEventThreatDetectionCustomModuleRequest.class, + com.google.cloud.securitycentermanagement.v1 + .ValidateEventThreatDetectionCustomModuleRequest.Builder.class); } public static final int PARENT_FIELD_NUMBER = 1; + @SuppressWarnings("serial") private volatile java.lang.Object parent_ = ""; /** + * + * *
    * Required. Resource name of the parent to validate the Custom Module under.
    *
@@ -57,7 +84,10 @@ protected java.lang.Object newInstance(
    *   * "organizations/{organization}/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,14 +96,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. Resource name of the parent to validate the Custom Module under.
    *
@@ -82,17 +113,18 @@ public java.lang.String getParent() {
    *   * "organizations/{organization}/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 { @@ -101,15 +133,19 @@ public java.lang.String getParent() { } public static final int RAW_TEXT_FIELD_NUMBER = 2; + @SuppressWarnings("serial") private volatile java.lang.Object rawText_ = ""; /** + * + * *
    * Required. The raw text of the module's contents. Used to generate error
    * messages.
    * 
* * string raw_text = 2 [(.google.api.field_behavior) = REQUIRED]; + * * @return The rawText. */ @java.lang.Override @@ -118,30 +154,30 @@ public java.lang.String getRawText() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); rawText_ = s; return s; } } /** + * + * *
    * Required. The raw text of the module's contents. Used to generate error
    * messages.
    * 
* * string raw_text = 2 [(.google.api.field_behavior) = REQUIRED]; + * * @return The bytes for rawText. */ @java.lang.Override - public com.google.protobuf.ByteString - getRawTextBytes() { + public com.google.protobuf.ByteString getRawTextBytes() { java.lang.Object ref = rawText_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); rawText_ = b; return b; } else { @@ -150,14 +186,18 @@ public java.lang.String getRawText() { } public static final int TYPE_FIELD_NUMBER = 3; + @SuppressWarnings("serial") private volatile java.lang.Object type_ = ""; /** + * + * *
    * Required. The type of the module (e.g. CONFIGURABLE_BAD_IP).
    * 
* * string type = 3 [(.google.api.field_behavior) = REQUIRED]; + * * @return The type. */ @java.lang.Override @@ -166,29 +206,29 @@ 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; } } /** + * + * *
    * Required. The type of the module (e.g. CONFIGURABLE_BAD_IP).
    * 
* * string type = 3 [(.google.api.field_behavior) = REQUIRED]; + * * @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 { @@ -197,6 +237,7 @@ public java.lang.String getType() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -208,8 +249,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.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_); } @@ -245,19 +285,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.securitycentermanagement.v1.ValidateEventThreatDetectionCustomModuleRequest)) { + if (!(obj + instanceof + com.google.cloud.securitycentermanagement.v1 + .ValidateEventThreatDetectionCustomModuleRequest)) { return super.equals(obj); } - com.google.cloud.securitycentermanagement.v1.ValidateEventThreatDetectionCustomModuleRequest other = (com.google.cloud.securitycentermanagement.v1.ValidateEventThreatDetectionCustomModuleRequest) obj; + com.google.cloud.securitycentermanagement.v1.ValidateEventThreatDetectionCustomModuleRequest + other = + (com.google.cloud.securitycentermanagement.v1 + .ValidateEventThreatDetectionCustomModuleRequest) + obj; - if (!getParent() - .equals(other.getParent())) return false; - if (!getRawText() - .equals(other.getRawText())) return false; - if (!getType() - .equals(other.getType())) return false; + if (!getParent().equals(other.getParent())) return false; + if (!getRawText().equals(other.getRawText())) return false; + if (!getType().equals(other.getType())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -280,132 +324,161 @@ public int hashCode() { return hash; } - public static com.google.cloud.securitycentermanagement.v1.ValidateEventThreatDetectionCustomModuleRequest parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.securitycentermanagement.v1 + .ValidateEventThreatDetectionCustomModuleRequest + parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.securitycentermanagement.v1.ValidateEventThreatDetectionCustomModuleRequest parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.cloud.securitycentermanagement.v1 + .ValidateEventThreatDetectionCustomModuleRequest + 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.securitycentermanagement.v1.ValidateEventThreatDetectionCustomModuleRequest parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.cloud.securitycentermanagement.v1 + .ValidateEventThreatDetectionCustomModuleRequest + parseFrom(com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.securitycentermanagement.v1.ValidateEventThreatDetectionCustomModuleRequest parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.cloud.securitycentermanagement.v1 + .ValidateEventThreatDetectionCustomModuleRequest + parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.securitycentermanagement.v1.ValidateEventThreatDetectionCustomModuleRequest parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.cloud.securitycentermanagement.v1 + .ValidateEventThreatDetectionCustomModuleRequest + parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.securitycentermanagement.v1.ValidateEventThreatDetectionCustomModuleRequest parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.cloud.securitycentermanagement.v1 + .ValidateEventThreatDetectionCustomModuleRequest + parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.securitycentermanagement.v1.ValidateEventThreatDetectionCustomModuleRequest parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.securitycentermanagement.v1 + .ValidateEventThreatDetectionCustomModuleRequest + parseFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } - public static com.google.cloud.securitycentermanagement.v1.ValidateEventThreatDetectionCustomModuleRequest 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.securitycentermanagement.v1 + .ValidateEventThreatDetectionCustomModuleRequest + 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.securitycentermanagement.v1.ValidateEventThreatDetectionCustomModuleRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.securitycentermanagement.v1 + .ValidateEventThreatDetectionCustomModuleRequest + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.securitycentermanagement.v1.ValidateEventThreatDetectionCustomModuleRequest parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + public static com.google.cloud.securitycentermanagement.v1 + .ValidateEventThreatDetectionCustomModuleRequest + parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.securitycentermanagement.v1.ValidateEventThreatDetectionCustomModuleRequest parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.securitycentermanagement.v1 + .ValidateEventThreatDetectionCustomModuleRequest + parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } - public static com.google.cloud.securitycentermanagement.v1.ValidateEventThreatDetectionCustomModuleRequest 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.securitycentermanagement.v1 + .ValidateEventThreatDetectionCustomModuleRequest + 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.securitycentermanagement.v1.ValidateEventThreatDetectionCustomModuleRequest prototype) { + + public static Builder newBuilder( + com.google.cloud.securitycentermanagement.v1.ValidateEventThreatDetectionCustomModuleRequest + prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected 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 to validate an Event Threat Detection custom module.
    * 
* - * Protobuf type {@code google.cloud.securitycentermanagement.v1.ValidateEventThreatDetectionCustomModuleRequest} + * Protobuf type {@code + * google.cloud.securitycentermanagement.v1.ValidateEventThreatDetectionCustomModuleRequest} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.securitycentermanagement.v1.ValidateEventThreatDetectionCustomModuleRequest) - com.google.cloud.securitycentermanagement.v1.ValidateEventThreatDetectionCustomModuleRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.securitycentermanagement.v1.SecurityCenterManagementProto.internal_static_google_cloud_securitycentermanagement_v1_ValidateEventThreatDetectionCustomModuleRequest_descriptor; + com.google.cloud.securitycentermanagement.v1 + .ValidateEventThreatDetectionCustomModuleRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.securitycentermanagement.v1.SecurityCenterManagementProto + .internal_static_google_cloud_securitycentermanagement_v1_ValidateEventThreatDetectionCustomModuleRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.securitycentermanagement.v1.SecurityCenterManagementProto.internal_static_google_cloud_securitycentermanagement_v1_ValidateEventThreatDetectionCustomModuleRequest_fieldAccessorTable + return com.google.cloud.securitycentermanagement.v1.SecurityCenterManagementProto + .internal_static_google_cloud_securitycentermanagement_v1_ValidateEventThreatDetectionCustomModuleRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.securitycentermanagement.v1.ValidateEventThreatDetectionCustomModuleRequest.class, com.google.cloud.securitycentermanagement.v1.ValidateEventThreatDetectionCustomModuleRequest.Builder.class); + com.google.cloud.securitycentermanagement.v1 + .ValidateEventThreatDetectionCustomModuleRequest.class, + com.google.cloud.securitycentermanagement.v1 + .ValidateEventThreatDetectionCustomModuleRequest.Builder.class); } - // Construct using com.google.cloud.securitycentermanagement.v1.ValidateEventThreatDetectionCustomModuleRequest.newBuilder() - private Builder() { - - } + // Construct using + // com.google.cloud.securitycentermanagement.v1.ValidateEventThreatDetectionCustomModuleRequest.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(); @@ -417,19 +490,25 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.securitycentermanagement.v1.SecurityCenterManagementProto.internal_static_google_cloud_securitycentermanagement_v1_ValidateEventThreatDetectionCustomModuleRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.securitycentermanagement.v1.SecurityCenterManagementProto + .internal_static_google_cloud_securitycentermanagement_v1_ValidateEventThreatDetectionCustomModuleRequest_descriptor; } @java.lang.Override - public com.google.cloud.securitycentermanagement.v1.ValidateEventThreatDetectionCustomModuleRequest getDefaultInstanceForType() { - return com.google.cloud.securitycentermanagement.v1.ValidateEventThreatDetectionCustomModuleRequest.getDefaultInstance(); + public com.google.cloud.securitycentermanagement.v1 + .ValidateEventThreatDetectionCustomModuleRequest + getDefaultInstanceForType() { + return com.google.cloud.securitycentermanagement.v1 + .ValidateEventThreatDetectionCustomModuleRequest.getDefaultInstance(); } @java.lang.Override - public com.google.cloud.securitycentermanagement.v1.ValidateEventThreatDetectionCustomModuleRequest build() { - com.google.cloud.securitycentermanagement.v1.ValidateEventThreatDetectionCustomModuleRequest result = buildPartial(); + public com.google.cloud.securitycentermanagement.v1 + .ValidateEventThreatDetectionCustomModuleRequest + build() { + com.google.cloud.securitycentermanagement.v1.ValidateEventThreatDetectionCustomModuleRequest + result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } @@ -437,14 +516,23 @@ public com.google.cloud.securitycentermanagement.v1.ValidateEventThreatDetection } @java.lang.Override - public com.google.cloud.securitycentermanagement.v1.ValidateEventThreatDetectionCustomModuleRequest buildPartial() { - com.google.cloud.securitycentermanagement.v1.ValidateEventThreatDetectionCustomModuleRequest result = new com.google.cloud.securitycentermanagement.v1.ValidateEventThreatDetectionCustomModuleRequest(this); - if (bitField0_ != 0) { buildPartial0(result); } + public com.google.cloud.securitycentermanagement.v1 + .ValidateEventThreatDetectionCustomModuleRequest + buildPartial() { + com.google.cloud.securitycentermanagement.v1.ValidateEventThreatDetectionCustomModuleRequest + result = + new com.google.cloud.securitycentermanagement.v1 + .ValidateEventThreatDetectionCustomModuleRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } - private void buildPartial0(com.google.cloud.securitycentermanagement.v1.ValidateEventThreatDetectionCustomModuleRequest result) { + private void buildPartial0( + com.google.cloud.securitycentermanagement.v1.ValidateEventThreatDetectionCustomModuleRequest + result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000001) != 0)) { result.parent_ = parent_; @@ -461,46 +549,57 @@ private void buildPartial0(com.google.cloud.securitycentermanagement.v1.Validate public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.cloud.securitycentermanagement.v1.ValidateEventThreatDetectionCustomModuleRequest) { - return mergeFrom((com.google.cloud.securitycentermanagement.v1.ValidateEventThreatDetectionCustomModuleRequest)other); + if (other + instanceof + com.google.cloud.securitycentermanagement.v1 + .ValidateEventThreatDetectionCustomModuleRequest) { + return mergeFrom( + (com.google.cloud.securitycentermanagement.v1 + .ValidateEventThreatDetectionCustomModuleRequest) + other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom(com.google.cloud.securitycentermanagement.v1.ValidateEventThreatDetectionCustomModuleRequest other) { - if (other == com.google.cloud.securitycentermanagement.v1.ValidateEventThreatDetectionCustomModuleRequest.getDefaultInstance()) return this; + public Builder mergeFrom( + com.google.cloud.securitycentermanagement.v1.ValidateEventThreatDetectionCustomModuleRequest + other) { + if (other + == com.google.cloud.securitycentermanagement.v1 + .ValidateEventThreatDetectionCustomModuleRequest.getDefaultInstance()) return this; if (!other.getParent().isEmpty()) { parent_ = other.parent_; bitField0_ |= 0x00000001; @@ -542,27 +641,31 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: { - parent_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 18: { - rawText_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000002; - break; - } // case 18 - case 26: { - type_ = 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: + { + rawText_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 26: + { + type_ = 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) { @@ -572,10 +675,13 @@ public Builder mergeFrom( } // finally return this; } + private int bitField0_; private java.lang.Object parent_ = ""; /** + * + * *
      * Required. Resource name of the parent to validate the Custom Module under.
      *
@@ -584,14 +690,16 @@ public Builder mergeFrom(
      *   * "organizations/{organization}/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; @@ -600,6 +708,8 @@ public java.lang.String getParent() { } } /** + * + * *
      * Required. Resource name of the parent to validate the Custom Module under.
      *
@@ -608,16 +718,17 @@ public java.lang.String getParent() {
      *   * "organizations/{organization}/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 { @@ -625,6 +736,8 @@ public java.lang.String getParent() { } } /** + * + * *
      * Required. Resource name of the parent to validate the Custom Module under.
      *
@@ -633,19 +746,25 @@ public java.lang.String getParent() {
      *   * "organizations/{organization}/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. Resource name of the parent to validate the Custom Module under.
      *
@@ -654,7 +773,10 @@ public Builder setParent(
      *   * "organizations/{organization}/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,6 +786,8 @@ public Builder clearParent() { return this; } /** + * + * *
      * Required. Resource name of the parent to validate the Custom Module under.
      *
@@ -672,13 +796,17 @@ public Builder clearParent() {
      *   * "organizations/{organization}/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; @@ -688,19 +816,21 @@ public Builder setParentBytes( private java.lang.Object rawText_ = ""; /** + * + * *
      * Required. The raw text of the module's contents. Used to generate error
      * messages.
      * 
* * string raw_text = 2 [(.google.api.field_behavior) = REQUIRED]; + * * @return The rawText. */ public java.lang.String getRawText() { java.lang.Object ref = rawText_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); rawText_ = s; return s; @@ -709,21 +839,22 @@ public java.lang.String getRawText() { } } /** + * + * *
      * Required. The raw text of the module's contents. Used to generate error
      * messages.
      * 
* * string raw_text = 2 [(.google.api.field_behavior) = REQUIRED]; + * * @return The bytes for rawText. */ - public com.google.protobuf.ByteString - getRawTextBytes() { + public com.google.protobuf.ByteString getRawTextBytes() { java.lang.Object ref = rawText_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); rawText_ = b; return b; } else { @@ -731,30 +862,37 @@ public java.lang.String getRawText() { } } /** + * + * *
      * Required. The raw text of the module's contents. Used to generate error
      * messages.
      * 
* * string raw_text = 2 [(.google.api.field_behavior) = REQUIRED]; + * * @param value The rawText to set. * @return This builder for chaining. */ - public Builder setRawText( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setRawText(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } rawText_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } /** + * + * *
      * Required. The raw text of the module's contents. Used to generate error
      * messages.
      * 
* * string raw_text = 2 [(.google.api.field_behavior) = REQUIRED]; + * * @return This builder for chaining. */ public Builder clearRawText() { @@ -764,18 +902,22 @@ public Builder clearRawText() { return this; } /** + * + * *
      * Required. The raw text of the module's contents. Used to generate error
      * messages.
      * 
* * string raw_text = 2 [(.google.api.field_behavior) = REQUIRED]; + * * @param value The bytes for rawText to set. * @return This builder for chaining. */ - public Builder setRawTextBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder setRawTextBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); rawText_ = value; bitField0_ |= 0x00000002; @@ -785,18 +927,20 @@ public Builder setRawTextBytes( private java.lang.Object type_ = ""; /** + * + * *
      * Required. The type of the module (e.g. CONFIGURABLE_BAD_IP).
      * 
* * string type = 3 [(.google.api.field_behavior) = REQUIRED]; + * * @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; @@ -805,20 +949,21 @@ public java.lang.String getType() { } } /** + * + * *
      * Required. The type of the module (e.g. CONFIGURABLE_BAD_IP).
      * 
* * string type = 3 [(.google.api.field_behavior) = REQUIRED]; + * * @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 { @@ -826,28 +971,35 @@ public java.lang.String getType() { } } /** + * + * *
      * Required. The type of the module (e.g. CONFIGURABLE_BAD_IP).
      * 
* * string type = 3 [(.google.api.field_behavior) = REQUIRED]; + * * @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_ |= 0x00000004; onChanged(); return this; } /** + * + * *
      * Required. The type of the module (e.g. CONFIGURABLE_BAD_IP).
      * 
* * string type = 3 [(.google.api.field_behavior) = REQUIRED]; + * * @return This builder for chaining. */ public Builder clearType() { @@ -857,26 +1009,30 @@ public Builder clearType() { return this; } /** + * + * *
      * Required. The type of the module (e.g. CONFIGURABLE_BAD_IP).
      * 
* * string type = 3 [(.google.api.field_behavior) = REQUIRED]; + * * @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_ |= 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); } @@ -886,55 +1042,66 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.securitycentermanagement.v1.ValidateEventThreatDetectionCustomModuleRequest) } // @@protoc_insertion_point(class_scope:google.cloud.securitycentermanagement.v1.ValidateEventThreatDetectionCustomModuleRequest) - private static final com.google.cloud.securitycentermanagement.v1.ValidateEventThreatDetectionCustomModuleRequest DEFAULT_INSTANCE; + private static final com.google.cloud.securitycentermanagement.v1 + .ValidateEventThreatDetectionCustomModuleRequest + DEFAULT_INSTANCE; + static { - DEFAULT_INSTANCE = new com.google.cloud.securitycentermanagement.v1.ValidateEventThreatDetectionCustomModuleRequest(); + DEFAULT_INSTANCE = + new com.google.cloud.securitycentermanagement.v1 + .ValidateEventThreatDetectionCustomModuleRequest(); } - public static com.google.cloud.securitycentermanagement.v1.ValidateEventThreatDetectionCustomModuleRequest getDefaultInstance() { + public static com.google.cloud.securitycentermanagement.v1 + .ValidateEventThreatDetectionCustomModuleRequest + getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ValidateEventThreatDetectionCustomModuleRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + PARSER = + new com.google.protobuf.AbstractParser< + ValidateEventThreatDetectionCustomModuleRequest>() { + @java.lang.Override + public ValidateEventThreatDetectionCustomModuleRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException() + .setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; - public static com.google.protobuf.Parser parser() { + public static com.google.protobuf.Parser + parser() { return PARSER; } @java.lang.Override - public com.google.protobuf.Parser getParserForType() { + public com.google.protobuf.Parser + getParserForType() { return PARSER; } @java.lang.Override - public com.google.cloud.securitycentermanagement.v1.ValidateEventThreatDetectionCustomModuleRequest getDefaultInstanceForType() { + public com.google.cloud.securitycentermanagement.v1 + .ValidateEventThreatDetectionCustomModuleRequest + getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/java-securitycentermanagement/v1/proto-google-cloud-securitycentermanagement-v1/src/main/java/com/google/cloud/securitycentermanagement/v1/ValidateEventThreatDetectionCustomModuleRequestOrBuilder.java b/java-securitycentermanagement/proto-google-cloud-securitycentermanagement-v1/src/main/java/com/google/cloud/securitycentermanagement/v1/ValidateEventThreatDetectionCustomModuleRequestOrBuilder.java similarity index 63% rename from owl-bot-staging/java-securitycentermanagement/v1/proto-google-cloud-securitycentermanagement-v1/src/main/java/com/google/cloud/securitycentermanagement/v1/ValidateEventThreatDetectionCustomModuleRequestOrBuilder.java rename to java-securitycentermanagement/proto-google-cloud-securitycentermanagement-v1/src/main/java/com/google/cloud/securitycentermanagement/v1/ValidateEventThreatDetectionCustomModuleRequestOrBuilder.java index b4488801b397..1ffcc414a76f 100644 --- a/owl-bot-staging/java-securitycentermanagement/v1/proto-google-cloud-securitycentermanagement-v1/src/main/java/com/google/cloud/securitycentermanagement/v1/ValidateEventThreatDetectionCustomModuleRequestOrBuilder.java +++ b/java-securitycentermanagement/proto-google-cloud-securitycentermanagement-v1/src/main/java/com/google/cloud/securitycentermanagement/v1/ValidateEventThreatDetectionCustomModuleRequestOrBuilder.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/securitycentermanagement/v1/security_center_management.proto package com.google.cloud.securitycentermanagement.v1; -public interface ValidateEventThreatDetectionCustomModuleRequestOrBuilder extends +public interface ValidateEventThreatDetectionCustomModuleRequestOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.securitycentermanagement.v1.ValidateEventThreatDetectionCustomModuleRequest) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * Required. Resource name of the parent to validate the Custom Module under.
    *
@@ -16,11 +34,16 @@ public interface ValidateEventThreatDetectionCustomModuleRequestOrBuilder extend
    *   * "organizations/{organization}/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. Resource name of the parent to validate the Custom Module under.
    *
@@ -29,51 +52,63 @@ public interface ValidateEventThreatDetectionCustomModuleRequestOrBuilder extend
    *   * "organizations/{organization}/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. The raw text of the module's contents. Used to generate error
    * messages.
    * 
* * string raw_text = 2 [(.google.api.field_behavior) = REQUIRED]; + * * @return The rawText. */ java.lang.String getRawText(); /** + * + * *
    * Required. The raw text of the module's contents. Used to generate error
    * messages.
    * 
* * string raw_text = 2 [(.google.api.field_behavior) = REQUIRED]; + * * @return The bytes for rawText. */ - com.google.protobuf.ByteString - getRawTextBytes(); + com.google.protobuf.ByteString getRawTextBytes(); /** + * + * *
    * Required. The type of the module (e.g. CONFIGURABLE_BAD_IP).
    * 
* * string type = 3 [(.google.api.field_behavior) = REQUIRED]; + * * @return The type. */ java.lang.String getType(); /** + * + * *
    * Required. The type of the module (e.g. CONFIGURABLE_BAD_IP).
    * 
* * string type = 3 [(.google.api.field_behavior) = REQUIRED]; + * * @return The bytes for type. */ - com.google.protobuf.ByteString - getTypeBytes(); + com.google.protobuf.ByteString getTypeBytes(); } diff --git a/java-securitycentermanagement/proto-google-cloud-securitycentermanagement-v1/src/main/java/com/google/cloud/securitycentermanagement/v1/ValidateEventThreatDetectionCustomModuleResponse.java b/java-securitycentermanagement/proto-google-cloud-securitycentermanagement-v1/src/main/java/com/google/cloud/securitycentermanagement/v1/ValidateEventThreatDetectionCustomModuleResponse.java new file mode 100644 index 000000000000..6cae4700d13c --- /dev/null +++ b/java-securitycentermanagement/proto-google-cloud-securitycentermanagement-v1/src/main/java/com/google/cloud/securitycentermanagement/v1/ValidateEventThreatDetectionCustomModuleResponse.java @@ -0,0 +1,3644 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/securitycentermanagement/v1/security_center_management.proto + +package com.google.cloud.securitycentermanagement.v1; + +/** + * + * + *
+ * Response to validating an Event Threat Detection custom module.
+ * 
+ * + * Protobuf type {@code + * google.cloud.securitycentermanagement.v1.ValidateEventThreatDetectionCustomModuleResponse} + */ +public final class ValidateEventThreatDetectionCustomModuleResponse + extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.securitycentermanagement.v1.ValidateEventThreatDetectionCustomModuleResponse) + ValidateEventThreatDetectionCustomModuleResponseOrBuilder { + private static final long serialVersionUID = 0L; + // Use ValidateEventThreatDetectionCustomModuleResponse.newBuilder() to construct. + private ValidateEventThreatDetectionCustomModuleResponse( + com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private ValidateEventThreatDetectionCustomModuleResponse() { + errors_ = java.util.Collections.emptyList(); + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new ValidateEventThreatDetectionCustomModuleResponse(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.securitycentermanagement.v1.SecurityCenterManagementProto + .internal_static_google_cloud_securitycentermanagement_v1_ValidateEventThreatDetectionCustomModuleResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.securitycentermanagement.v1.SecurityCenterManagementProto + .internal_static_google_cloud_securitycentermanagement_v1_ValidateEventThreatDetectionCustomModuleResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.securitycentermanagement.v1 + .ValidateEventThreatDetectionCustomModuleResponse.class, + com.google.cloud.securitycentermanagement.v1 + .ValidateEventThreatDetectionCustomModuleResponse.Builder.class); + } + + public interface CustomModuleValidationErrorOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.securitycentermanagement.v1.ValidateEventThreatDetectionCustomModuleResponse.CustomModuleValidationError) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+     * A description of the error, suitable for human consumption. Required.
+     * 
+ * + * string description = 1; + * + * @return The description. + */ + java.lang.String getDescription(); + /** + * + * + *
+     * A description of the error, suitable for human consumption. Required.
+     * 
+ * + * string description = 1; + * + * @return The bytes for description. + */ + com.google.protobuf.ByteString getDescriptionBytes(); + + /** + * + * + *
+     * The path, in RFC 8901 JSON Pointer format, to the field that failed
+     * validation. This may be left empty if no specific field is affected.
+     * 
+ * + * string field_path = 2; + * + * @return The fieldPath. + */ + java.lang.String getFieldPath(); + /** + * + * + *
+     * The path, in RFC 8901 JSON Pointer format, to the field that failed
+     * validation. This may be left empty if no specific field is affected.
+     * 
+ * + * string field_path = 2; + * + * @return The bytes for fieldPath. + */ + com.google.protobuf.ByteString getFieldPathBytes(); + + /** + * + * + *
+     * The initial position of the error in the uploaded text version of the
+     * module. This field may be omitted if no specific position applies, or if
+     * one could not be computed.
+     * 
+ * + * + * optional .google.cloud.securitycentermanagement.v1.ValidateEventThreatDetectionCustomModuleResponse.Position start = 3; + * + * + * @return Whether the start field is set. + */ + boolean hasStart(); + /** + * + * + *
+     * The initial position of the error in the uploaded text version of the
+     * module. This field may be omitted if no specific position applies, or if
+     * one could not be computed.
+     * 
+ * + * + * optional .google.cloud.securitycentermanagement.v1.ValidateEventThreatDetectionCustomModuleResponse.Position start = 3; + * + * + * @return The start. + */ + com.google.cloud.securitycentermanagement.v1.ValidateEventThreatDetectionCustomModuleResponse + .Position + getStart(); + /** + * + * + *
+     * The initial position of the error in the uploaded text version of the
+     * module. This field may be omitted if no specific position applies, or if
+     * one could not be computed.
+     * 
+ * + * + * optional .google.cloud.securitycentermanagement.v1.ValidateEventThreatDetectionCustomModuleResponse.Position start = 3; + * + */ + com.google.cloud.securitycentermanagement.v1.ValidateEventThreatDetectionCustomModuleResponse + .PositionOrBuilder + getStartOrBuilder(); + + /** + * + * + *
+     * The end position of the error in the uploaded text version of the
+     * module. This field may be omitted if no specific position applies, or if
+     * one could not be computed..
+     * 
+ * + * + * optional .google.cloud.securitycentermanagement.v1.ValidateEventThreatDetectionCustomModuleResponse.Position end = 4; + * + * + * @return Whether the end field is set. + */ + boolean hasEnd(); + /** + * + * + *
+     * The end position of the error in the uploaded text version of the
+     * module. This field may be omitted if no specific position applies, or if
+     * one could not be computed..
+     * 
+ * + * + * optional .google.cloud.securitycentermanagement.v1.ValidateEventThreatDetectionCustomModuleResponse.Position end = 4; + * + * + * @return The end. + */ + com.google.cloud.securitycentermanagement.v1.ValidateEventThreatDetectionCustomModuleResponse + .Position + getEnd(); + /** + * + * + *
+     * The end position of the error in the uploaded text version of the
+     * module. This field may be omitted if no specific position applies, or if
+     * one could not be computed..
+     * 
+ * + * + * optional .google.cloud.securitycentermanagement.v1.ValidateEventThreatDetectionCustomModuleResponse.Position end = 4; + * + */ + com.google.cloud.securitycentermanagement.v1.ValidateEventThreatDetectionCustomModuleResponse + .PositionOrBuilder + getEndOrBuilder(); + } + /** + * + * + *
+   * An error encountered while validating the uploaded configuration of an
+   * Event Threat Detection Custom Module.
+   * 
+ * + * Protobuf type {@code + * google.cloud.securitycentermanagement.v1.ValidateEventThreatDetectionCustomModuleResponse.CustomModuleValidationError} + */ + public static final class CustomModuleValidationError + extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.securitycentermanagement.v1.ValidateEventThreatDetectionCustomModuleResponse.CustomModuleValidationError) + CustomModuleValidationErrorOrBuilder { + private static final long serialVersionUID = 0L; + // Use CustomModuleValidationError.newBuilder() to construct. + private CustomModuleValidationError(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private CustomModuleValidationError() { + description_ = ""; + fieldPath_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new CustomModuleValidationError(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.securitycentermanagement.v1.SecurityCenterManagementProto + .internal_static_google_cloud_securitycentermanagement_v1_ValidateEventThreatDetectionCustomModuleResponse_CustomModuleValidationError_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.securitycentermanagement.v1.SecurityCenterManagementProto + .internal_static_google_cloud_securitycentermanagement_v1_ValidateEventThreatDetectionCustomModuleResponse_CustomModuleValidationError_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.securitycentermanagement.v1 + .ValidateEventThreatDetectionCustomModuleResponse.CustomModuleValidationError + .class, + com.google.cloud.securitycentermanagement.v1 + .ValidateEventThreatDetectionCustomModuleResponse.CustomModuleValidationError + .Builder.class); + } + + private int bitField0_; + public static final int DESCRIPTION_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object description_ = ""; + /** + * + * + *
+     * A description of the error, suitable for human consumption. Required.
+     * 
+ * + * string description = 1; + * + * @return The description. + */ + @java.lang.Override + public java.lang.String getDescription() { + java.lang.Object ref = description_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + description_ = s; + return s; + } + } + /** + * + * + *
+     * A description of the error, suitable for human consumption. Required.
+     * 
+ * + * string description = 1; + * + * @return The bytes for description. + */ + @java.lang.Override + 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); + description_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int FIELD_PATH_FIELD_NUMBER = 2; + + @SuppressWarnings("serial") + private volatile java.lang.Object fieldPath_ = ""; + /** + * + * + *
+     * The path, in RFC 8901 JSON Pointer format, to the field that failed
+     * validation. This may be left empty if no specific field is affected.
+     * 
+ * + * string field_path = 2; + * + * @return The fieldPath. + */ + @java.lang.Override + public java.lang.String getFieldPath() { + java.lang.Object ref = fieldPath_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + fieldPath_ = s; + return s; + } + } + /** + * + * + *
+     * The path, in RFC 8901 JSON Pointer format, to the field that failed
+     * validation. This may be left empty if no specific field is affected.
+     * 
+ * + * string field_path = 2; + * + * @return The bytes for fieldPath. + */ + @java.lang.Override + public com.google.protobuf.ByteString getFieldPathBytes() { + java.lang.Object ref = fieldPath_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + fieldPath_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int START_FIELD_NUMBER = 3; + private com.google.cloud.securitycentermanagement.v1 + .ValidateEventThreatDetectionCustomModuleResponse.Position + start_; + /** + * + * + *
+     * The initial position of the error in the uploaded text version of the
+     * module. This field may be omitted if no specific position applies, or if
+     * one could not be computed.
+     * 
+ * + * + * optional .google.cloud.securitycentermanagement.v1.ValidateEventThreatDetectionCustomModuleResponse.Position start = 3; + * + * + * @return Whether the start field is set. + */ + @java.lang.Override + public boolean hasStart() { + return ((bitField0_ & 0x00000001) != 0); + } + /** + * + * + *
+     * The initial position of the error in the uploaded text version of the
+     * module. This field may be omitted if no specific position applies, or if
+     * one could not be computed.
+     * 
+ * + * + * optional .google.cloud.securitycentermanagement.v1.ValidateEventThreatDetectionCustomModuleResponse.Position start = 3; + * + * + * @return The start. + */ + @java.lang.Override + public com.google.cloud.securitycentermanagement.v1 + .ValidateEventThreatDetectionCustomModuleResponse.Position + getStart() { + return start_ == null + ? com.google.cloud.securitycentermanagement.v1 + .ValidateEventThreatDetectionCustomModuleResponse.Position.getDefaultInstance() + : start_; + } + /** + * + * + *
+     * The initial position of the error in the uploaded text version of the
+     * module. This field may be omitted if no specific position applies, or if
+     * one could not be computed.
+     * 
+ * + * + * optional .google.cloud.securitycentermanagement.v1.ValidateEventThreatDetectionCustomModuleResponse.Position start = 3; + * + */ + @java.lang.Override + public com.google.cloud.securitycentermanagement.v1 + .ValidateEventThreatDetectionCustomModuleResponse.PositionOrBuilder + getStartOrBuilder() { + return start_ == null + ? com.google.cloud.securitycentermanagement.v1 + .ValidateEventThreatDetectionCustomModuleResponse.Position.getDefaultInstance() + : start_; + } + + public static final int END_FIELD_NUMBER = 4; + private com.google.cloud.securitycentermanagement.v1 + .ValidateEventThreatDetectionCustomModuleResponse.Position + end_; + /** + * + * + *
+     * The end position of the error in the uploaded text version of the
+     * module. This field may be omitted if no specific position applies, or if
+     * one could not be computed..
+     * 
+ * + * + * optional .google.cloud.securitycentermanagement.v1.ValidateEventThreatDetectionCustomModuleResponse.Position end = 4; + * + * + * @return Whether the end field is set. + */ + @java.lang.Override + public boolean hasEnd() { + return ((bitField0_ & 0x00000002) != 0); + } + /** + * + * + *
+     * The end position of the error in the uploaded text version of the
+     * module. This field may be omitted if no specific position applies, or if
+     * one could not be computed..
+     * 
+ * + * + * optional .google.cloud.securitycentermanagement.v1.ValidateEventThreatDetectionCustomModuleResponse.Position end = 4; + * + * + * @return The end. + */ + @java.lang.Override + public com.google.cloud.securitycentermanagement.v1 + .ValidateEventThreatDetectionCustomModuleResponse.Position + getEnd() { + return end_ == null + ? com.google.cloud.securitycentermanagement.v1 + .ValidateEventThreatDetectionCustomModuleResponse.Position.getDefaultInstance() + : end_; + } + /** + * + * + *
+     * The end position of the error in the uploaded text version of the
+     * module. This field may be omitted if no specific position applies, or if
+     * one could not be computed..
+     * 
+ * + * + * optional .google.cloud.securitycentermanagement.v1.ValidateEventThreatDetectionCustomModuleResponse.Position end = 4; + * + */ + @java.lang.Override + public com.google.cloud.securitycentermanagement.v1 + .ValidateEventThreatDetectionCustomModuleResponse.PositionOrBuilder + getEndOrBuilder() { + return end_ == null + ? com.google.cloud.securitycentermanagement.v1 + .ValidateEventThreatDetectionCustomModuleResponse.Position.getDefaultInstance() + : end_; + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(description_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, description_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(fieldPath_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, fieldPath_); + } + if (((bitField0_ & 0x00000001) != 0)) { + output.writeMessage(3, getStart()); + } + if (((bitField0_ & 0x00000002) != 0)) { + output.writeMessage(4, getEnd()); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(description_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, description_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(fieldPath_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, fieldPath_); + } + if (((bitField0_ & 0x00000001) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, getStart()); + } + if (((bitField0_ & 0x00000002) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(4, getEnd()); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj + instanceof + com.google.cloud.securitycentermanagement.v1 + .ValidateEventThreatDetectionCustomModuleResponse.CustomModuleValidationError)) { + return super.equals(obj); + } + com.google.cloud.securitycentermanagement.v1.ValidateEventThreatDetectionCustomModuleResponse + .CustomModuleValidationError + other = + (com.google.cloud.securitycentermanagement.v1 + .ValidateEventThreatDetectionCustomModuleResponse.CustomModuleValidationError) + obj; + + if (!getDescription().equals(other.getDescription())) return false; + if (!getFieldPath().equals(other.getFieldPath())) return false; + if (hasStart() != other.hasStart()) return false; + if (hasStart()) { + if (!getStart().equals(other.getStart())) return false; + } + if (hasEnd() != other.hasEnd()) return false; + if (hasEnd()) { + if (!getEnd().equals(other.getEnd())) return false; + } + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + DESCRIPTION_FIELD_NUMBER; + hash = (53 * hash) + getDescription().hashCode(); + hash = (37 * hash) + FIELD_PATH_FIELD_NUMBER; + hash = (53 * hash) + getFieldPath().hashCode(); + if (hasStart()) { + hash = (37 * hash) + START_FIELD_NUMBER; + hash = (53 * hash) + getStart().hashCode(); + } + if (hasEnd()) { + hash = (37 * hash) + END_FIELD_NUMBER; + hash = (53 * hash) + getEnd().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.securitycentermanagement.v1 + .ValidateEventThreatDetectionCustomModuleResponse.CustomModuleValidationError + parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.securitycentermanagement.v1 + .ValidateEventThreatDetectionCustomModuleResponse.CustomModuleValidationError + 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.securitycentermanagement.v1 + .ValidateEventThreatDetectionCustomModuleResponse.CustomModuleValidationError + parseFrom(com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.securitycentermanagement.v1 + .ValidateEventThreatDetectionCustomModuleResponse.CustomModuleValidationError + parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.securitycentermanagement.v1 + .ValidateEventThreatDetectionCustomModuleResponse.CustomModuleValidationError + parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.securitycentermanagement.v1 + .ValidateEventThreatDetectionCustomModuleResponse.CustomModuleValidationError + parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.securitycentermanagement.v1 + .ValidateEventThreatDetectionCustomModuleResponse.CustomModuleValidationError + parseFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.securitycentermanagement.v1 + .ValidateEventThreatDetectionCustomModuleResponse.CustomModuleValidationError + 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.securitycentermanagement.v1 + .ValidateEventThreatDetectionCustomModuleResponse.CustomModuleValidationError + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.securitycentermanagement.v1 + .ValidateEventThreatDetectionCustomModuleResponse.CustomModuleValidationError + parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.securitycentermanagement.v1 + .ValidateEventThreatDetectionCustomModuleResponse.CustomModuleValidationError + parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.securitycentermanagement.v1 + .ValidateEventThreatDetectionCustomModuleResponse.CustomModuleValidationError + 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.securitycentermanagement.v1 + .ValidateEventThreatDetectionCustomModuleResponse.CustomModuleValidationError + prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
+     * An error encountered while validating the uploaded configuration of an
+     * Event Threat Detection Custom Module.
+     * 
+ * + * Protobuf type {@code + * google.cloud.securitycentermanagement.v1.ValidateEventThreatDetectionCustomModuleResponse.CustomModuleValidationError} + */ + public static final class Builder + extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.securitycentermanagement.v1.ValidateEventThreatDetectionCustomModuleResponse.CustomModuleValidationError) + com.google.cloud.securitycentermanagement.v1 + .ValidateEventThreatDetectionCustomModuleResponse.CustomModuleValidationErrorOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.securitycentermanagement.v1.SecurityCenterManagementProto + .internal_static_google_cloud_securitycentermanagement_v1_ValidateEventThreatDetectionCustomModuleResponse_CustomModuleValidationError_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.securitycentermanagement.v1.SecurityCenterManagementProto + .internal_static_google_cloud_securitycentermanagement_v1_ValidateEventThreatDetectionCustomModuleResponse_CustomModuleValidationError_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.securitycentermanagement.v1 + .ValidateEventThreatDetectionCustomModuleResponse.CustomModuleValidationError + .class, + com.google.cloud.securitycentermanagement.v1 + .ValidateEventThreatDetectionCustomModuleResponse.CustomModuleValidationError + .Builder.class); + } + + // Construct using + // com.google.cloud.securitycentermanagement.v1.ValidateEventThreatDetectionCustomModuleResponse.CustomModuleValidationError.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { + getStartFieldBuilder(); + getEndFieldBuilder(); + } + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + description_ = ""; + fieldPath_ = ""; + start_ = null; + if (startBuilder_ != null) { + startBuilder_.dispose(); + startBuilder_ = null; + } + end_ = null; + if (endBuilder_ != null) { + endBuilder_.dispose(); + endBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.securitycentermanagement.v1.SecurityCenterManagementProto + .internal_static_google_cloud_securitycentermanagement_v1_ValidateEventThreatDetectionCustomModuleResponse_CustomModuleValidationError_descriptor; + } + + @java.lang.Override + public com.google.cloud.securitycentermanagement.v1 + .ValidateEventThreatDetectionCustomModuleResponse.CustomModuleValidationError + getDefaultInstanceForType() { + return com.google.cloud.securitycentermanagement.v1 + .ValidateEventThreatDetectionCustomModuleResponse.CustomModuleValidationError + .getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.securitycentermanagement.v1 + .ValidateEventThreatDetectionCustomModuleResponse.CustomModuleValidationError + build() { + com.google.cloud.securitycentermanagement.v1 + .ValidateEventThreatDetectionCustomModuleResponse.CustomModuleValidationError + result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.securitycentermanagement.v1 + .ValidateEventThreatDetectionCustomModuleResponse.CustomModuleValidationError + buildPartial() { + com.google.cloud.securitycentermanagement.v1 + .ValidateEventThreatDetectionCustomModuleResponse.CustomModuleValidationError + result = + new com.google.cloud.securitycentermanagement.v1 + .ValidateEventThreatDetectionCustomModuleResponse.CustomModuleValidationError( + this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.cloud.securitycentermanagement.v1 + .ValidateEventThreatDetectionCustomModuleResponse.CustomModuleValidationError + result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.description_ = description_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.fieldPath_ = fieldPath_; + } + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000004) != 0)) { + result.start_ = startBuilder_ == null ? start_ : startBuilder_.build(); + to_bitField0_ |= 0x00000001; + } + if (((from_bitField0_ & 0x00000008) != 0)) { + result.end_ = endBuilder_ == null ? end_ : endBuilder_.build(); + to_bitField0_ |= 0x00000002; + } + result.bitField0_ |= to_bitField0_; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, + java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other + instanceof + com.google.cloud.securitycentermanagement.v1 + .ValidateEventThreatDetectionCustomModuleResponse.CustomModuleValidationError) { + return mergeFrom( + (com.google.cloud.securitycentermanagement.v1 + .ValidateEventThreatDetectionCustomModuleResponse.CustomModuleValidationError) + other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.securitycentermanagement.v1 + .ValidateEventThreatDetectionCustomModuleResponse.CustomModuleValidationError + other) { + if (other + == com.google.cloud.securitycentermanagement.v1 + .ValidateEventThreatDetectionCustomModuleResponse.CustomModuleValidationError + .getDefaultInstance()) return this; + if (!other.getDescription().isEmpty()) { + description_ = other.description_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (!other.getFieldPath().isEmpty()) { + fieldPath_ = other.fieldPath_; + bitField0_ |= 0x00000002; + onChanged(); + } + if (other.hasStart()) { + mergeStart(other.getStart()); + } + if (other.hasEnd()) { + mergeEnd(other.getEnd()); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + description_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + fieldPath_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 26: + { + input.readMessage(getStartFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000004; + break; + } // case 26 + case 34: + { + input.readMessage(getEndFieldBuilder().getBuilder(), extensionRegistry); + 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) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private java.lang.Object description_ = ""; + /** + * + * + *
+       * A description of the error, suitable for human consumption. Required.
+       * 
+ * + * string description = 1; + * + * @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; + java.lang.String s = bs.toStringUtf8(); + description_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+       * A description of the error, suitable for human consumption. Required.
+       * 
+ * + * string description = 1; + * + * @return The bytes for description. + */ + 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); + description_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+       * A description of the error, suitable for human consumption. Required.
+       * 
+ * + * string description = 1; + * + * @param value The description to set. + * @return This builder for chaining. + */ + public Builder setDescription(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + description_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * + * + *
+       * A description of the error, suitable for human consumption. Required.
+       * 
+ * + * string description = 1; + * + * @return This builder for chaining. + */ + public Builder clearDescription() { + description_ = getDefaultInstance().getDescription(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + /** + * + * + *
+       * A description of the error, suitable for human consumption. Required.
+       * 
+ * + * string description = 1; + * + * @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(); + } + checkByteStringIsUtf8(value); + description_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private java.lang.Object fieldPath_ = ""; + /** + * + * + *
+       * The path, in RFC 8901 JSON Pointer format, to the field that failed
+       * validation. This may be left empty if no specific field is affected.
+       * 
+ * + * string field_path = 2; + * + * @return The fieldPath. + */ + public java.lang.String getFieldPath() { + java.lang.Object ref = fieldPath_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + fieldPath_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+       * The path, in RFC 8901 JSON Pointer format, to the field that failed
+       * validation. This may be left empty if no specific field is affected.
+       * 
+ * + * string field_path = 2; + * + * @return The bytes for fieldPath. + */ + public com.google.protobuf.ByteString getFieldPathBytes() { + java.lang.Object ref = fieldPath_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + fieldPath_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+       * The path, in RFC 8901 JSON Pointer format, to the field that failed
+       * validation. This may be left empty if no specific field is affected.
+       * 
+ * + * string field_path = 2; + * + * @param value The fieldPath to set. + * @return This builder for chaining. + */ + public Builder setFieldPath(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + fieldPath_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * + * + *
+       * The path, in RFC 8901 JSON Pointer format, to the field that failed
+       * validation. This may be left empty if no specific field is affected.
+       * 
+ * + * string field_path = 2; + * + * @return This builder for chaining. + */ + public Builder clearFieldPath() { + fieldPath_ = getDefaultInstance().getFieldPath(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + /** + * + * + *
+       * The path, in RFC 8901 JSON Pointer format, to the field that failed
+       * validation. This may be left empty if no specific field is affected.
+       * 
+ * + * string field_path = 2; + * + * @param value The bytes for fieldPath to set. + * @return This builder for chaining. + */ + public Builder setFieldPathBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + fieldPath_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + private com.google.cloud.securitycentermanagement.v1 + .ValidateEventThreatDetectionCustomModuleResponse.Position + start_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.securitycentermanagement.v1 + .ValidateEventThreatDetectionCustomModuleResponse.Position, + com.google.cloud.securitycentermanagement.v1 + .ValidateEventThreatDetectionCustomModuleResponse.Position.Builder, + com.google.cloud.securitycentermanagement.v1 + .ValidateEventThreatDetectionCustomModuleResponse.PositionOrBuilder> + startBuilder_; + /** + * + * + *
+       * The initial position of the error in the uploaded text version of the
+       * module. This field may be omitted if no specific position applies, or if
+       * one could not be computed.
+       * 
+ * + * + * optional .google.cloud.securitycentermanagement.v1.ValidateEventThreatDetectionCustomModuleResponse.Position start = 3; + * + * + * @return Whether the start field is set. + */ + public boolean hasStart() { + return ((bitField0_ & 0x00000004) != 0); + } + /** + * + * + *
+       * The initial position of the error in the uploaded text version of the
+       * module. This field may be omitted if no specific position applies, or if
+       * one could not be computed.
+       * 
+ * + * + * optional .google.cloud.securitycentermanagement.v1.ValidateEventThreatDetectionCustomModuleResponse.Position start = 3; + * + * + * @return The start. + */ + public com.google.cloud.securitycentermanagement.v1 + .ValidateEventThreatDetectionCustomModuleResponse.Position + getStart() { + if (startBuilder_ == null) { + return start_ == null + ? com.google.cloud.securitycentermanagement.v1 + .ValidateEventThreatDetectionCustomModuleResponse.Position.getDefaultInstance() + : start_; + } else { + return startBuilder_.getMessage(); + } + } + /** + * + * + *
+       * The initial position of the error in the uploaded text version of the
+       * module. This field may be omitted if no specific position applies, or if
+       * one could not be computed.
+       * 
+ * + * + * optional .google.cloud.securitycentermanagement.v1.ValidateEventThreatDetectionCustomModuleResponse.Position start = 3; + * + */ + public Builder setStart( + com.google.cloud.securitycentermanagement.v1 + .ValidateEventThreatDetectionCustomModuleResponse.Position + value) { + if (startBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + start_ = value; + } else { + startBuilder_.setMessage(value); + } + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + /** + * + * + *
+       * The initial position of the error in the uploaded text version of the
+       * module. This field may be omitted if no specific position applies, or if
+       * one could not be computed.
+       * 
+ * + * + * optional .google.cloud.securitycentermanagement.v1.ValidateEventThreatDetectionCustomModuleResponse.Position start = 3; + * + */ + public Builder setStart( + com.google.cloud.securitycentermanagement.v1 + .ValidateEventThreatDetectionCustomModuleResponse.Position.Builder + builderForValue) { + if (startBuilder_ == null) { + start_ = builderForValue.build(); + } else { + startBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + /** + * + * + *
+       * The initial position of the error in the uploaded text version of the
+       * module. This field may be omitted if no specific position applies, or if
+       * one could not be computed.
+       * 
+ * + * + * optional .google.cloud.securitycentermanagement.v1.ValidateEventThreatDetectionCustomModuleResponse.Position start = 3; + * + */ + public Builder mergeStart( + com.google.cloud.securitycentermanagement.v1 + .ValidateEventThreatDetectionCustomModuleResponse.Position + value) { + if (startBuilder_ == null) { + if (((bitField0_ & 0x00000004) != 0) + && start_ != null + && start_ + != com.google.cloud.securitycentermanagement.v1 + .ValidateEventThreatDetectionCustomModuleResponse.Position + .getDefaultInstance()) { + getStartBuilder().mergeFrom(value); + } else { + start_ = value; + } + } else { + startBuilder_.mergeFrom(value); + } + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + /** + * + * + *
+       * The initial position of the error in the uploaded text version of the
+       * module. This field may be omitted if no specific position applies, or if
+       * one could not be computed.
+       * 
+ * + * + * optional .google.cloud.securitycentermanagement.v1.ValidateEventThreatDetectionCustomModuleResponse.Position start = 3; + * + */ + public Builder clearStart() { + bitField0_ = (bitField0_ & ~0x00000004); + start_ = null; + if (startBuilder_ != null) { + startBuilder_.dispose(); + startBuilder_ = null; + } + onChanged(); + return this; + } + /** + * + * + *
+       * The initial position of the error in the uploaded text version of the
+       * module. This field may be omitted if no specific position applies, or if
+       * one could not be computed.
+       * 
+ * + * + * optional .google.cloud.securitycentermanagement.v1.ValidateEventThreatDetectionCustomModuleResponse.Position start = 3; + * + */ + public com.google.cloud.securitycentermanagement.v1 + .ValidateEventThreatDetectionCustomModuleResponse.Position.Builder + getStartBuilder() { + bitField0_ |= 0x00000004; + onChanged(); + return getStartFieldBuilder().getBuilder(); + } + /** + * + * + *
+       * The initial position of the error in the uploaded text version of the
+       * module. This field may be omitted if no specific position applies, or if
+       * one could not be computed.
+       * 
+ * + * + * optional .google.cloud.securitycentermanagement.v1.ValidateEventThreatDetectionCustomModuleResponse.Position start = 3; + * + */ + public com.google.cloud.securitycentermanagement.v1 + .ValidateEventThreatDetectionCustomModuleResponse.PositionOrBuilder + getStartOrBuilder() { + if (startBuilder_ != null) { + return startBuilder_.getMessageOrBuilder(); + } else { + return start_ == null + ? com.google.cloud.securitycentermanagement.v1 + .ValidateEventThreatDetectionCustomModuleResponse.Position.getDefaultInstance() + : start_; + } + } + /** + * + * + *
+       * The initial position of the error in the uploaded text version of the
+       * module. This field may be omitted if no specific position applies, or if
+       * one could not be computed.
+       * 
+ * + * + * optional .google.cloud.securitycentermanagement.v1.ValidateEventThreatDetectionCustomModuleResponse.Position start = 3; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.securitycentermanagement.v1 + .ValidateEventThreatDetectionCustomModuleResponse.Position, + com.google.cloud.securitycentermanagement.v1 + .ValidateEventThreatDetectionCustomModuleResponse.Position.Builder, + com.google.cloud.securitycentermanagement.v1 + .ValidateEventThreatDetectionCustomModuleResponse.PositionOrBuilder> + getStartFieldBuilder() { + if (startBuilder_ == null) { + startBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.securitycentermanagement.v1 + .ValidateEventThreatDetectionCustomModuleResponse.Position, + com.google.cloud.securitycentermanagement.v1 + .ValidateEventThreatDetectionCustomModuleResponse.Position.Builder, + com.google.cloud.securitycentermanagement.v1 + .ValidateEventThreatDetectionCustomModuleResponse.PositionOrBuilder>( + getStart(), getParentForChildren(), isClean()); + start_ = null; + } + return startBuilder_; + } + + private com.google.cloud.securitycentermanagement.v1 + .ValidateEventThreatDetectionCustomModuleResponse.Position + end_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.securitycentermanagement.v1 + .ValidateEventThreatDetectionCustomModuleResponse.Position, + com.google.cloud.securitycentermanagement.v1 + .ValidateEventThreatDetectionCustomModuleResponse.Position.Builder, + com.google.cloud.securitycentermanagement.v1 + .ValidateEventThreatDetectionCustomModuleResponse.PositionOrBuilder> + endBuilder_; + /** + * + * + *
+       * The end position of the error in the uploaded text version of the
+       * module. This field may be omitted if no specific position applies, or if
+       * one could not be computed..
+       * 
+ * + * + * optional .google.cloud.securitycentermanagement.v1.ValidateEventThreatDetectionCustomModuleResponse.Position end = 4; + * + * + * @return Whether the end field is set. + */ + public boolean hasEnd() { + return ((bitField0_ & 0x00000008) != 0); + } + /** + * + * + *
+       * The end position of the error in the uploaded text version of the
+       * module. This field may be omitted if no specific position applies, or if
+       * one could not be computed..
+       * 
+ * + * + * optional .google.cloud.securitycentermanagement.v1.ValidateEventThreatDetectionCustomModuleResponse.Position end = 4; + * + * + * @return The end. + */ + public com.google.cloud.securitycentermanagement.v1 + .ValidateEventThreatDetectionCustomModuleResponse.Position + getEnd() { + if (endBuilder_ == null) { + return end_ == null + ? com.google.cloud.securitycentermanagement.v1 + .ValidateEventThreatDetectionCustomModuleResponse.Position.getDefaultInstance() + : end_; + } else { + return endBuilder_.getMessage(); + } + } + /** + * + * + *
+       * The end position of the error in the uploaded text version of the
+       * module. This field may be omitted if no specific position applies, or if
+       * one could not be computed..
+       * 
+ * + * + * optional .google.cloud.securitycentermanagement.v1.ValidateEventThreatDetectionCustomModuleResponse.Position end = 4; + * + */ + public Builder setEnd( + com.google.cloud.securitycentermanagement.v1 + .ValidateEventThreatDetectionCustomModuleResponse.Position + value) { + if (endBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + end_ = value; + } else { + endBuilder_.setMessage(value); + } + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + /** + * + * + *
+       * The end position of the error in the uploaded text version of the
+       * module. This field may be omitted if no specific position applies, or if
+       * one could not be computed..
+       * 
+ * + * + * optional .google.cloud.securitycentermanagement.v1.ValidateEventThreatDetectionCustomModuleResponse.Position end = 4; + * + */ + public Builder setEnd( + com.google.cloud.securitycentermanagement.v1 + .ValidateEventThreatDetectionCustomModuleResponse.Position.Builder + builderForValue) { + if (endBuilder_ == null) { + end_ = builderForValue.build(); + } else { + endBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + /** + * + * + *
+       * The end position of the error in the uploaded text version of the
+       * module. This field may be omitted if no specific position applies, or if
+       * one could not be computed..
+       * 
+ * + * + * optional .google.cloud.securitycentermanagement.v1.ValidateEventThreatDetectionCustomModuleResponse.Position end = 4; + * + */ + public Builder mergeEnd( + com.google.cloud.securitycentermanagement.v1 + .ValidateEventThreatDetectionCustomModuleResponse.Position + value) { + if (endBuilder_ == null) { + if (((bitField0_ & 0x00000008) != 0) + && end_ != null + && end_ + != com.google.cloud.securitycentermanagement.v1 + .ValidateEventThreatDetectionCustomModuleResponse.Position + .getDefaultInstance()) { + getEndBuilder().mergeFrom(value); + } else { + end_ = value; + } + } else { + endBuilder_.mergeFrom(value); + } + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + /** + * + * + *
+       * The end position of the error in the uploaded text version of the
+       * module. This field may be omitted if no specific position applies, or if
+       * one could not be computed..
+       * 
+ * + * + * optional .google.cloud.securitycentermanagement.v1.ValidateEventThreatDetectionCustomModuleResponse.Position end = 4; + * + */ + public Builder clearEnd() { + bitField0_ = (bitField0_ & ~0x00000008); + end_ = null; + if (endBuilder_ != null) { + endBuilder_.dispose(); + endBuilder_ = null; + } + onChanged(); + return this; + } + /** + * + * + *
+       * The end position of the error in the uploaded text version of the
+       * module. This field may be omitted if no specific position applies, or if
+       * one could not be computed..
+       * 
+ * + * + * optional .google.cloud.securitycentermanagement.v1.ValidateEventThreatDetectionCustomModuleResponse.Position end = 4; + * + */ + public com.google.cloud.securitycentermanagement.v1 + .ValidateEventThreatDetectionCustomModuleResponse.Position.Builder + getEndBuilder() { + bitField0_ |= 0x00000008; + onChanged(); + return getEndFieldBuilder().getBuilder(); + } + /** + * + * + *
+       * The end position of the error in the uploaded text version of the
+       * module. This field may be omitted if no specific position applies, or if
+       * one could not be computed..
+       * 
+ * + * + * optional .google.cloud.securitycentermanagement.v1.ValidateEventThreatDetectionCustomModuleResponse.Position end = 4; + * + */ + public com.google.cloud.securitycentermanagement.v1 + .ValidateEventThreatDetectionCustomModuleResponse.PositionOrBuilder + getEndOrBuilder() { + if (endBuilder_ != null) { + return endBuilder_.getMessageOrBuilder(); + } else { + return end_ == null + ? com.google.cloud.securitycentermanagement.v1 + .ValidateEventThreatDetectionCustomModuleResponse.Position.getDefaultInstance() + : end_; + } + } + /** + * + * + *
+       * The end position of the error in the uploaded text version of the
+       * module. This field may be omitted if no specific position applies, or if
+       * one could not be computed..
+       * 
+ * + * + * optional .google.cloud.securitycentermanagement.v1.ValidateEventThreatDetectionCustomModuleResponse.Position end = 4; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.securitycentermanagement.v1 + .ValidateEventThreatDetectionCustomModuleResponse.Position, + com.google.cloud.securitycentermanagement.v1 + .ValidateEventThreatDetectionCustomModuleResponse.Position.Builder, + com.google.cloud.securitycentermanagement.v1 + .ValidateEventThreatDetectionCustomModuleResponse.PositionOrBuilder> + getEndFieldBuilder() { + if (endBuilder_ == null) { + endBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.securitycentermanagement.v1 + .ValidateEventThreatDetectionCustomModuleResponse.Position, + com.google.cloud.securitycentermanagement.v1 + .ValidateEventThreatDetectionCustomModuleResponse.Position.Builder, + com.google.cloud.securitycentermanagement.v1 + .ValidateEventThreatDetectionCustomModuleResponse.PositionOrBuilder>( + getEnd(), getParentForChildren(), isClean()); + end_ = null; + } + return endBuilder_; + } + + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.securitycentermanagement.v1.ValidateEventThreatDetectionCustomModuleResponse.CustomModuleValidationError) + } + + // @@protoc_insertion_point(class_scope:google.cloud.securitycentermanagement.v1.ValidateEventThreatDetectionCustomModuleResponse.CustomModuleValidationError) + private static final com.google.cloud.securitycentermanagement.v1 + .ValidateEventThreatDetectionCustomModuleResponse.CustomModuleValidationError + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = + new com.google.cloud.securitycentermanagement.v1 + .ValidateEventThreatDetectionCustomModuleResponse.CustomModuleValidationError(); + } + + public static com.google.cloud.securitycentermanagement.v1 + .ValidateEventThreatDetectionCustomModuleResponse.CustomModuleValidationError + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public CustomModuleValidationError parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException() + .setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.securitycentermanagement.v1 + .ValidateEventThreatDetectionCustomModuleResponse.CustomModuleValidationError + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + } + + public interface PositionOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.securitycentermanagement.v1.ValidateEventThreatDetectionCustomModuleResponse.Position) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+     * The line position in the text
+     * 
+ * + * int32 line_number = 1; + * + * @return The lineNumber. + */ + int getLineNumber(); + + /** + * + * + *
+     * The column position in the line
+     * 
+ * + * int32 column_number = 2; + * + * @return The columnNumber. + */ + int getColumnNumber(); + } + /** + * + * + *
+   * A position in the uploaded text version of a module.
+   * 
+ * + * Protobuf type {@code + * google.cloud.securitycentermanagement.v1.ValidateEventThreatDetectionCustomModuleResponse.Position} + */ + public static final class Position extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.securitycentermanagement.v1.ValidateEventThreatDetectionCustomModuleResponse.Position) + PositionOrBuilder { + private static final long serialVersionUID = 0L; + // Use Position.newBuilder() to construct. + private Position(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private Position() {} + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new Position(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.securitycentermanagement.v1.SecurityCenterManagementProto + .internal_static_google_cloud_securitycentermanagement_v1_ValidateEventThreatDetectionCustomModuleResponse_Position_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.securitycentermanagement.v1.SecurityCenterManagementProto + .internal_static_google_cloud_securitycentermanagement_v1_ValidateEventThreatDetectionCustomModuleResponse_Position_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.securitycentermanagement.v1 + .ValidateEventThreatDetectionCustomModuleResponse.Position.class, + com.google.cloud.securitycentermanagement.v1 + .ValidateEventThreatDetectionCustomModuleResponse.Position.Builder.class); + } + + public static final int LINE_NUMBER_FIELD_NUMBER = 1; + private int lineNumber_ = 0; + /** + * + * + *
+     * The line position in the text
+     * 
+ * + * int32 line_number = 1; + * + * @return The lineNumber. + */ + @java.lang.Override + public int getLineNumber() { + return lineNumber_; + } + + public static final int COLUMN_NUMBER_FIELD_NUMBER = 2; + private int columnNumber_ = 0; + /** + * + * + *
+     * The column position in the line
+     * 
+ * + * int32 column_number = 2; + * + * @return The columnNumber. + */ + @java.lang.Override + public int getColumnNumber() { + return columnNumber_; + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (lineNumber_ != 0) { + output.writeInt32(1, lineNumber_); + } + if (columnNumber_ != 0) { + output.writeInt32(2, columnNumber_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (lineNumber_ != 0) { + size += com.google.protobuf.CodedOutputStream.computeInt32Size(1, lineNumber_); + } + if (columnNumber_ != 0) { + size += com.google.protobuf.CodedOutputStream.computeInt32Size(2, columnNumber_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj + instanceof + com.google.cloud.securitycentermanagement.v1 + .ValidateEventThreatDetectionCustomModuleResponse.Position)) { + return super.equals(obj); + } + com.google.cloud.securitycentermanagement.v1.ValidateEventThreatDetectionCustomModuleResponse + .Position + other = + (com.google.cloud.securitycentermanagement.v1 + .ValidateEventThreatDetectionCustomModuleResponse.Position) + obj; + + if (getLineNumber() != other.getLineNumber()) return false; + if (getColumnNumber() != other.getColumnNumber()) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + LINE_NUMBER_FIELD_NUMBER; + hash = (53 * hash) + getLineNumber(); + hash = (37 * hash) + COLUMN_NUMBER_FIELD_NUMBER; + hash = (53 * hash) + getColumnNumber(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.securitycentermanagement.v1 + .ValidateEventThreatDetectionCustomModuleResponse.Position + parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.securitycentermanagement.v1 + .ValidateEventThreatDetectionCustomModuleResponse.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.securitycentermanagement.v1 + .ValidateEventThreatDetectionCustomModuleResponse.Position + parseFrom(com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.securitycentermanagement.v1 + .ValidateEventThreatDetectionCustomModuleResponse.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.securitycentermanagement.v1 + .ValidateEventThreatDetectionCustomModuleResponse.Position + parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.securitycentermanagement.v1 + .ValidateEventThreatDetectionCustomModuleResponse.Position + parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.securitycentermanagement.v1 + .ValidateEventThreatDetectionCustomModuleResponse.Position + parseFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.securitycentermanagement.v1 + .ValidateEventThreatDetectionCustomModuleResponse.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.securitycentermanagement.v1 + .ValidateEventThreatDetectionCustomModuleResponse.Position + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.securitycentermanagement.v1 + .ValidateEventThreatDetectionCustomModuleResponse.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.securitycentermanagement.v1 + .ValidateEventThreatDetectionCustomModuleResponse.Position + parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.securitycentermanagement.v1 + .ValidateEventThreatDetectionCustomModuleResponse.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 static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.cloud.securitycentermanagement.v1 + .ValidateEventThreatDetectionCustomModuleResponse.Position + prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
+     * A position in the uploaded text version of a module.
+     * 
+ * + * Protobuf type {@code + * google.cloud.securitycentermanagement.v1.ValidateEventThreatDetectionCustomModuleResponse.Position} + */ + public static final class Builder + extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.securitycentermanagement.v1.ValidateEventThreatDetectionCustomModuleResponse.Position) + com.google.cloud.securitycentermanagement.v1 + .ValidateEventThreatDetectionCustomModuleResponse.PositionOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.securitycentermanagement.v1.SecurityCenterManagementProto + .internal_static_google_cloud_securitycentermanagement_v1_ValidateEventThreatDetectionCustomModuleResponse_Position_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.securitycentermanagement.v1.SecurityCenterManagementProto + .internal_static_google_cloud_securitycentermanagement_v1_ValidateEventThreatDetectionCustomModuleResponse_Position_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.securitycentermanagement.v1 + .ValidateEventThreatDetectionCustomModuleResponse.Position.class, + com.google.cloud.securitycentermanagement.v1 + .ValidateEventThreatDetectionCustomModuleResponse.Position.Builder.class); + } + + // Construct using + // com.google.cloud.securitycentermanagement.v1.ValidateEventThreatDetectionCustomModuleResponse.Position.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + lineNumber_ = 0; + columnNumber_ = 0; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.securitycentermanagement.v1.SecurityCenterManagementProto + .internal_static_google_cloud_securitycentermanagement_v1_ValidateEventThreatDetectionCustomModuleResponse_Position_descriptor; + } + + @java.lang.Override + public com.google.cloud.securitycentermanagement.v1 + .ValidateEventThreatDetectionCustomModuleResponse.Position + getDefaultInstanceForType() { + return com.google.cloud.securitycentermanagement.v1 + .ValidateEventThreatDetectionCustomModuleResponse.Position.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.securitycentermanagement.v1 + .ValidateEventThreatDetectionCustomModuleResponse.Position + build() { + com.google.cloud.securitycentermanagement.v1 + .ValidateEventThreatDetectionCustomModuleResponse.Position + result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.securitycentermanagement.v1 + .ValidateEventThreatDetectionCustomModuleResponse.Position + buildPartial() { + com.google.cloud.securitycentermanagement.v1 + .ValidateEventThreatDetectionCustomModuleResponse.Position + result = + new com.google.cloud.securitycentermanagement.v1 + .ValidateEventThreatDetectionCustomModuleResponse.Position(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.cloud.securitycentermanagement.v1 + .ValidateEventThreatDetectionCustomModuleResponse.Position + result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.lineNumber_ = lineNumber_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.columnNumber_ = columnNumber_; + } + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, + java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other + instanceof + com.google.cloud.securitycentermanagement.v1 + .ValidateEventThreatDetectionCustomModuleResponse.Position) { + return mergeFrom( + (com.google.cloud.securitycentermanagement.v1 + .ValidateEventThreatDetectionCustomModuleResponse.Position) + other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.securitycentermanagement.v1 + .ValidateEventThreatDetectionCustomModuleResponse.Position + other) { + if (other + == com.google.cloud.securitycentermanagement.v1 + .ValidateEventThreatDetectionCustomModuleResponse.Position.getDefaultInstance()) + return this; + if (other.getLineNumber() != 0) { + setLineNumber(other.getLineNumber()); + } + if (other.getColumnNumber() != 0) { + setColumnNumber(other.getColumnNumber()); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 8: + { + lineNumber_ = input.readInt32(); + bitField0_ |= 0x00000001; + break; + } // case 8 + case 16: + { + columnNumber_ = 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) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private int lineNumber_; + /** + * + * + *
+       * The line position in the text
+       * 
+ * + * int32 line_number = 1; + * + * @return The lineNumber. + */ + @java.lang.Override + public int getLineNumber() { + return lineNumber_; + } + /** + * + * + *
+       * The line position in the text
+       * 
+ * + * int32 line_number = 1; + * + * @param value The lineNumber to set. + * @return This builder for chaining. + */ + public Builder setLineNumber(int value) { + + lineNumber_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * + * + *
+       * The line position in the text
+       * 
+ * + * int32 line_number = 1; + * + * @return This builder for chaining. + */ + public Builder clearLineNumber() { + bitField0_ = (bitField0_ & ~0x00000001); + lineNumber_ = 0; + onChanged(); + return this; + } + + private int columnNumber_; + /** + * + * + *
+       * The column position in the line
+       * 
+ * + * int32 column_number = 2; + * + * @return The columnNumber. + */ + @java.lang.Override + public int getColumnNumber() { + return columnNumber_; + } + /** + * + * + *
+       * The column position in the line
+       * 
+ * + * int32 column_number = 2; + * + * @param value The columnNumber to set. + * @return This builder for chaining. + */ + public Builder setColumnNumber(int value) { + + columnNumber_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * + * + *
+       * The column position in the line
+       * 
+ * + * int32 column_number = 2; + * + * @return This builder for chaining. + */ + public Builder clearColumnNumber() { + bitField0_ = (bitField0_ & ~0x00000002); + columnNumber_ = 0; + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.securitycentermanagement.v1.ValidateEventThreatDetectionCustomModuleResponse.Position) + } + + // @@protoc_insertion_point(class_scope:google.cloud.securitycentermanagement.v1.ValidateEventThreatDetectionCustomModuleResponse.Position) + private static final com.google.cloud.securitycentermanagement.v1 + .ValidateEventThreatDetectionCustomModuleResponse.Position + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = + new com.google.cloud.securitycentermanagement.v1 + .ValidateEventThreatDetectionCustomModuleResponse.Position(); + } + + public static com.google.cloud.securitycentermanagement.v1 + .ValidateEventThreatDetectionCustomModuleResponse.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(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.securitycentermanagement.v1 + .ValidateEventThreatDetectionCustomModuleResponse.Position + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + } + + public static final int ERRORS_FIELD_NUMBER = 2; + + @SuppressWarnings("serial") + private java.util.List< + com.google.cloud.securitycentermanagement.v1 + .ValidateEventThreatDetectionCustomModuleResponse.CustomModuleValidationError> + errors_; + /** + * + * + *
+   * A list of errors returned by the validator. If the list is empty, there
+   * were no errors.
+   * 
+ * + * + * repeated .google.cloud.securitycentermanagement.v1.ValidateEventThreatDetectionCustomModuleResponse.CustomModuleValidationError errors = 2; + * + */ + @java.lang.Override + public java.util.List< + com.google.cloud.securitycentermanagement.v1 + .ValidateEventThreatDetectionCustomModuleResponse.CustomModuleValidationError> + getErrorsList() { + return errors_; + } + /** + * + * + *
+   * A list of errors returned by the validator. If the list is empty, there
+   * were no errors.
+   * 
+ * + * + * repeated .google.cloud.securitycentermanagement.v1.ValidateEventThreatDetectionCustomModuleResponse.CustomModuleValidationError errors = 2; + * + */ + @java.lang.Override + public java.util.List< + ? extends + com.google.cloud.securitycentermanagement.v1 + .ValidateEventThreatDetectionCustomModuleResponse + .CustomModuleValidationErrorOrBuilder> + getErrorsOrBuilderList() { + return errors_; + } + /** + * + * + *
+   * A list of errors returned by the validator. If the list is empty, there
+   * were no errors.
+   * 
+ * + * + * repeated .google.cloud.securitycentermanagement.v1.ValidateEventThreatDetectionCustomModuleResponse.CustomModuleValidationError errors = 2; + * + */ + @java.lang.Override + public int getErrorsCount() { + return errors_.size(); + } + /** + * + * + *
+   * A list of errors returned by the validator. If the list is empty, there
+   * were no errors.
+   * 
+ * + * + * repeated .google.cloud.securitycentermanagement.v1.ValidateEventThreatDetectionCustomModuleResponse.CustomModuleValidationError errors = 2; + * + */ + @java.lang.Override + public com.google.cloud.securitycentermanagement.v1 + .ValidateEventThreatDetectionCustomModuleResponse.CustomModuleValidationError + getErrors(int index) { + return errors_.get(index); + } + /** + * + * + *
+   * A list of errors returned by the validator. If the list is empty, there
+   * were no errors.
+   * 
+ * + * + * repeated .google.cloud.securitycentermanagement.v1.ValidateEventThreatDetectionCustomModuleResponse.CustomModuleValidationError errors = 2; + * + */ + @java.lang.Override + public com.google.cloud.securitycentermanagement.v1 + .ValidateEventThreatDetectionCustomModuleResponse.CustomModuleValidationErrorOrBuilder + getErrorsOrBuilder(int index) { + return errors_.get(index); + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + for (int i = 0; i < errors_.size(); i++) { + output.writeMessage(2, errors_.get(i)); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + for (int i = 0; i < errors_.size(); i++) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, errors_.get(i)); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj + instanceof + com.google.cloud.securitycentermanagement.v1 + .ValidateEventThreatDetectionCustomModuleResponse)) { + return super.equals(obj); + } + com.google.cloud.securitycentermanagement.v1.ValidateEventThreatDetectionCustomModuleResponse + other = + (com.google.cloud.securitycentermanagement.v1 + .ValidateEventThreatDetectionCustomModuleResponse) + obj; + + if (!getErrorsList().equals(other.getErrorsList())) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (getErrorsCount() > 0) { + hash = (37 * hash) + ERRORS_FIELD_NUMBER; + hash = (53 * hash) + getErrorsList().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.securitycentermanagement.v1 + .ValidateEventThreatDetectionCustomModuleResponse + parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.securitycentermanagement.v1 + .ValidateEventThreatDetectionCustomModuleResponse + 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.securitycentermanagement.v1 + .ValidateEventThreatDetectionCustomModuleResponse + parseFrom(com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.securitycentermanagement.v1 + .ValidateEventThreatDetectionCustomModuleResponse + parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.securitycentermanagement.v1 + .ValidateEventThreatDetectionCustomModuleResponse + parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.securitycentermanagement.v1 + .ValidateEventThreatDetectionCustomModuleResponse + parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.securitycentermanagement.v1 + .ValidateEventThreatDetectionCustomModuleResponse + parseFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.securitycentermanagement.v1 + .ValidateEventThreatDetectionCustomModuleResponse + 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.securitycentermanagement.v1 + .ValidateEventThreatDetectionCustomModuleResponse + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.securitycentermanagement.v1 + .ValidateEventThreatDetectionCustomModuleResponse + parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.securitycentermanagement.v1 + .ValidateEventThreatDetectionCustomModuleResponse + parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.securitycentermanagement.v1 + .ValidateEventThreatDetectionCustomModuleResponse + 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.securitycentermanagement.v1.ValidateEventThreatDetectionCustomModuleResponse + prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
+   * Response to validating an Event Threat Detection custom module.
+   * 
+ * + * Protobuf type {@code + * google.cloud.securitycentermanagement.v1.ValidateEventThreatDetectionCustomModuleResponse} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.securitycentermanagement.v1.ValidateEventThreatDetectionCustomModuleResponse) + com.google.cloud.securitycentermanagement.v1 + .ValidateEventThreatDetectionCustomModuleResponseOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.securitycentermanagement.v1.SecurityCenterManagementProto + .internal_static_google_cloud_securitycentermanagement_v1_ValidateEventThreatDetectionCustomModuleResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.securitycentermanagement.v1.SecurityCenterManagementProto + .internal_static_google_cloud_securitycentermanagement_v1_ValidateEventThreatDetectionCustomModuleResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.securitycentermanagement.v1 + .ValidateEventThreatDetectionCustomModuleResponse.class, + com.google.cloud.securitycentermanagement.v1 + .ValidateEventThreatDetectionCustomModuleResponse.Builder.class); + } + + // Construct using + // com.google.cloud.securitycentermanagement.v1.ValidateEventThreatDetectionCustomModuleResponse.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + if (errorsBuilder_ == null) { + errors_ = java.util.Collections.emptyList(); + } else { + errors_ = null; + errorsBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000001); + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.securitycentermanagement.v1.SecurityCenterManagementProto + .internal_static_google_cloud_securitycentermanagement_v1_ValidateEventThreatDetectionCustomModuleResponse_descriptor; + } + + @java.lang.Override + public com.google.cloud.securitycentermanagement.v1 + .ValidateEventThreatDetectionCustomModuleResponse + getDefaultInstanceForType() { + return com.google.cloud.securitycentermanagement.v1 + .ValidateEventThreatDetectionCustomModuleResponse.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.securitycentermanagement.v1 + .ValidateEventThreatDetectionCustomModuleResponse + build() { + com.google.cloud.securitycentermanagement.v1.ValidateEventThreatDetectionCustomModuleResponse + result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.securitycentermanagement.v1 + .ValidateEventThreatDetectionCustomModuleResponse + buildPartial() { + com.google.cloud.securitycentermanagement.v1.ValidateEventThreatDetectionCustomModuleResponse + result = + new com.google.cloud.securitycentermanagement.v1 + .ValidateEventThreatDetectionCustomModuleResponse(this); + buildPartialRepeatedFields(result); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartialRepeatedFields( + com.google.cloud.securitycentermanagement.v1 + .ValidateEventThreatDetectionCustomModuleResponse + result) { + if (errorsBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0)) { + errors_ = java.util.Collections.unmodifiableList(errors_); + bitField0_ = (bitField0_ & ~0x00000001); + } + result.errors_ = errors_; + } else { + result.errors_ = errorsBuilder_.build(); + } + } + + private void buildPartial0( + com.google.cloud.securitycentermanagement.v1 + .ValidateEventThreatDetectionCustomModuleResponse + result) { + int from_bitField0_ = bitField0_; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other + instanceof + com.google.cloud.securitycentermanagement.v1 + .ValidateEventThreatDetectionCustomModuleResponse) { + return mergeFrom( + (com.google.cloud.securitycentermanagement.v1 + .ValidateEventThreatDetectionCustomModuleResponse) + other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.securitycentermanagement.v1 + .ValidateEventThreatDetectionCustomModuleResponse + other) { + if (other + == com.google.cloud.securitycentermanagement.v1 + .ValidateEventThreatDetectionCustomModuleResponse.getDefaultInstance()) return this; + if (errorsBuilder_ == null) { + if (!other.errors_.isEmpty()) { + if (errors_.isEmpty()) { + errors_ = other.errors_; + bitField0_ = (bitField0_ & ~0x00000001); + } else { + ensureErrorsIsMutable(); + errors_.addAll(other.errors_); + } + onChanged(); + } + } else { + if (!other.errors_.isEmpty()) { + if (errorsBuilder_.isEmpty()) { + errorsBuilder_.dispose(); + errorsBuilder_ = null; + errors_ = other.errors_; + bitField0_ = (bitField0_ & ~0x00000001); + errorsBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getErrorsFieldBuilder() + : null; + } else { + errorsBuilder_.addAllMessages(other.errors_); + } + } + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 18: + { + com.google.cloud.securitycentermanagement.v1 + .ValidateEventThreatDetectionCustomModuleResponse + .CustomModuleValidationError + m = + input.readMessage( + com.google.cloud.securitycentermanagement.v1 + .ValidateEventThreatDetectionCustomModuleResponse + .CustomModuleValidationError.parser(), + extensionRegistry); + if (errorsBuilder_ == null) { + ensureErrorsIsMutable(); + errors_.add(m); + } else { + errorsBuilder_.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) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private java.util.List< + com.google.cloud.securitycentermanagement.v1 + .ValidateEventThreatDetectionCustomModuleResponse.CustomModuleValidationError> + errors_ = java.util.Collections.emptyList(); + + private void ensureErrorsIsMutable() { + if (!((bitField0_ & 0x00000001) != 0)) { + errors_ = + new java.util.ArrayList< + com.google.cloud.securitycentermanagement.v1 + .ValidateEventThreatDetectionCustomModuleResponse.CustomModuleValidationError>( + errors_); + bitField0_ |= 0x00000001; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.securitycentermanagement.v1 + .ValidateEventThreatDetectionCustomModuleResponse.CustomModuleValidationError, + com.google.cloud.securitycentermanagement.v1 + .ValidateEventThreatDetectionCustomModuleResponse.CustomModuleValidationError + .Builder, + com.google.cloud.securitycentermanagement.v1 + .ValidateEventThreatDetectionCustomModuleResponse + .CustomModuleValidationErrorOrBuilder> + errorsBuilder_; + + /** + * + * + *
+     * A list of errors returned by the validator. If the list is empty, there
+     * were no errors.
+     * 
+ * + * + * repeated .google.cloud.securitycentermanagement.v1.ValidateEventThreatDetectionCustomModuleResponse.CustomModuleValidationError errors = 2; + * + */ + public java.util.List< + com.google.cloud.securitycentermanagement.v1 + .ValidateEventThreatDetectionCustomModuleResponse.CustomModuleValidationError> + getErrorsList() { + if (errorsBuilder_ == null) { + return java.util.Collections.unmodifiableList(errors_); + } else { + return errorsBuilder_.getMessageList(); + } + } + /** + * + * + *
+     * A list of errors returned by the validator. If the list is empty, there
+     * were no errors.
+     * 
+ * + * + * repeated .google.cloud.securitycentermanagement.v1.ValidateEventThreatDetectionCustomModuleResponse.CustomModuleValidationError errors = 2; + * + */ + public int getErrorsCount() { + if (errorsBuilder_ == null) { + return errors_.size(); + } else { + return errorsBuilder_.getCount(); + } + } + /** + * + * + *
+     * A list of errors returned by the validator. If the list is empty, there
+     * were no errors.
+     * 
+ * + * + * repeated .google.cloud.securitycentermanagement.v1.ValidateEventThreatDetectionCustomModuleResponse.CustomModuleValidationError errors = 2; + * + */ + public com.google.cloud.securitycentermanagement.v1 + .ValidateEventThreatDetectionCustomModuleResponse.CustomModuleValidationError + getErrors(int index) { + if (errorsBuilder_ == null) { + return errors_.get(index); + } else { + return errorsBuilder_.getMessage(index); + } + } + /** + * + * + *
+     * A list of errors returned by the validator. If the list is empty, there
+     * were no errors.
+     * 
+ * + * + * repeated .google.cloud.securitycentermanagement.v1.ValidateEventThreatDetectionCustomModuleResponse.CustomModuleValidationError errors = 2; + * + */ + public Builder setErrors( + int index, + com.google.cloud.securitycentermanagement.v1 + .ValidateEventThreatDetectionCustomModuleResponse.CustomModuleValidationError + value) { + if (errorsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureErrorsIsMutable(); + errors_.set(index, value); + onChanged(); + } else { + errorsBuilder_.setMessage(index, value); + } + return this; + } + /** + * + * + *
+     * A list of errors returned by the validator. If the list is empty, there
+     * were no errors.
+     * 
+ * + * + * repeated .google.cloud.securitycentermanagement.v1.ValidateEventThreatDetectionCustomModuleResponse.CustomModuleValidationError errors = 2; + * + */ + public Builder setErrors( + int index, + com.google.cloud.securitycentermanagement.v1 + .ValidateEventThreatDetectionCustomModuleResponse.CustomModuleValidationError + .Builder + builderForValue) { + if (errorsBuilder_ == null) { + ensureErrorsIsMutable(); + errors_.set(index, builderForValue.build()); + onChanged(); + } else { + errorsBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * A list of errors returned by the validator. If the list is empty, there
+     * were no errors.
+     * 
+ * + * + * repeated .google.cloud.securitycentermanagement.v1.ValidateEventThreatDetectionCustomModuleResponse.CustomModuleValidationError errors = 2; + * + */ + public Builder addErrors( + com.google.cloud.securitycentermanagement.v1 + .ValidateEventThreatDetectionCustomModuleResponse.CustomModuleValidationError + value) { + if (errorsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureErrorsIsMutable(); + errors_.add(value); + onChanged(); + } else { + errorsBuilder_.addMessage(value); + } + return this; + } + /** + * + * + *
+     * A list of errors returned by the validator. If the list is empty, there
+     * were no errors.
+     * 
+ * + * + * repeated .google.cloud.securitycentermanagement.v1.ValidateEventThreatDetectionCustomModuleResponse.CustomModuleValidationError errors = 2; + * + */ + public Builder addErrors( + int index, + com.google.cloud.securitycentermanagement.v1 + .ValidateEventThreatDetectionCustomModuleResponse.CustomModuleValidationError + value) { + if (errorsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureErrorsIsMutable(); + errors_.add(index, value); + onChanged(); + } else { + errorsBuilder_.addMessage(index, value); + } + return this; + } + /** + * + * + *
+     * A list of errors returned by the validator. If the list is empty, there
+     * were no errors.
+     * 
+ * + * + * repeated .google.cloud.securitycentermanagement.v1.ValidateEventThreatDetectionCustomModuleResponse.CustomModuleValidationError errors = 2; + * + */ + public Builder addErrors( + com.google.cloud.securitycentermanagement.v1 + .ValidateEventThreatDetectionCustomModuleResponse.CustomModuleValidationError + .Builder + builderForValue) { + if (errorsBuilder_ == null) { + ensureErrorsIsMutable(); + errors_.add(builderForValue.build()); + onChanged(); + } else { + errorsBuilder_.addMessage(builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * A list of errors returned by the validator. If the list is empty, there
+     * were no errors.
+     * 
+ * + * + * repeated .google.cloud.securitycentermanagement.v1.ValidateEventThreatDetectionCustomModuleResponse.CustomModuleValidationError errors = 2; + * + */ + public Builder addErrors( + int index, + com.google.cloud.securitycentermanagement.v1 + .ValidateEventThreatDetectionCustomModuleResponse.CustomModuleValidationError + .Builder + builderForValue) { + if (errorsBuilder_ == null) { + ensureErrorsIsMutable(); + errors_.add(index, builderForValue.build()); + onChanged(); + } else { + errorsBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * A list of errors returned by the validator. If the list is empty, there
+     * were no errors.
+     * 
+ * + * + * repeated .google.cloud.securitycentermanagement.v1.ValidateEventThreatDetectionCustomModuleResponse.CustomModuleValidationError errors = 2; + * + */ + public Builder addAllErrors( + java.lang.Iterable< + ? extends + com.google.cloud.securitycentermanagement.v1 + .ValidateEventThreatDetectionCustomModuleResponse + .CustomModuleValidationError> + values) { + if (errorsBuilder_ == null) { + ensureErrorsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, errors_); + onChanged(); + } else { + errorsBuilder_.addAllMessages(values); + } + return this; + } + /** + * + * + *
+     * A list of errors returned by the validator. If the list is empty, there
+     * were no errors.
+     * 
+ * + * + * repeated .google.cloud.securitycentermanagement.v1.ValidateEventThreatDetectionCustomModuleResponse.CustomModuleValidationError errors = 2; + * + */ + public Builder clearErrors() { + if (errorsBuilder_ == null) { + errors_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + } else { + errorsBuilder_.clear(); + } + return this; + } + /** + * + * + *
+     * A list of errors returned by the validator. If the list is empty, there
+     * were no errors.
+     * 
+ * + * + * repeated .google.cloud.securitycentermanagement.v1.ValidateEventThreatDetectionCustomModuleResponse.CustomModuleValidationError errors = 2; + * + */ + public Builder removeErrors(int index) { + if (errorsBuilder_ == null) { + ensureErrorsIsMutable(); + errors_.remove(index); + onChanged(); + } else { + errorsBuilder_.remove(index); + } + return this; + } + /** + * + * + *
+     * A list of errors returned by the validator. If the list is empty, there
+     * were no errors.
+     * 
+ * + * + * repeated .google.cloud.securitycentermanagement.v1.ValidateEventThreatDetectionCustomModuleResponse.CustomModuleValidationError errors = 2; + * + */ + public com.google.cloud.securitycentermanagement.v1 + .ValidateEventThreatDetectionCustomModuleResponse.CustomModuleValidationError.Builder + getErrorsBuilder(int index) { + return getErrorsFieldBuilder().getBuilder(index); + } + /** + * + * + *
+     * A list of errors returned by the validator. If the list is empty, there
+     * were no errors.
+     * 
+ * + * + * repeated .google.cloud.securitycentermanagement.v1.ValidateEventThreatDetectionCustomModuleResponse.CustomModuleValidationError errors = 2; + * + */ + public com.google.cloud.securitycentermanagement.v1 + .ValidateEventThreatDetectionCustomModuleResponse.CustomModuleValidationErrorOrBuilder + getErrorsOrBuilder(int index) { + if (errorsBuilder_ == null) { + return errors_.get(index); + } else { + return errorsBuilder_.getMessageOrBuilder(index); + } + } + /** + * + * + *
+     * A list of errors returned by the validator. If the list is empty, there
+     * were no errors.
+     * 
+ * + * + * repeated .google.cloud.securitycentermanagement.v1.ValidateEventThreatDetectionCustomModuleResponse.CustomModuleValidationError errors = 2; + * + */ + public java.util.List< + ? extends + com.google.cloud.securitycentermanagement.v1 + .ValidateEventThreatDetectionCustomModuleResponse + .CustomModuleValidationErrorOrBuilder> + getErrorsOrBuilderList() { + if (errorsBuilder_ != null) { + return errorsBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(errors_); + } + } + /** + * + * + *
+     * A list of errors returned by the validator. If the list is empty, there
+     * were no errors.
+     * 
+ * + * + * repeated .google.cloud.securitycentermanagement.v1.ValidateEventThreatDetectionCustomModuleResponse.CustomModuleValidationError errors = 2; + * + */ + public com.google.cloud.securitycentermanagement.v1 + .ValidateEventThreatDetectionCustomModuleResponse.CustomModuleValidationError.Builder + addErrorsBuilder() { + return getErrorsFieldBuilder() + .addBuilder( + com.google.cloud.securitycentermanagement.v1 + .ValidateEventThreatDetectionCustomModuleResponse.CustomModuleValidationError + .getDefaultInstance()); + } + /** + * + * + *
+     * A list of errors returned by the validator. If the list is empty, there
+     * were no errors.
+     * 
+ * + * + * repeated .google.cloud.securitycentermanagement.v1.ValidateEventThreatDetectionCustomModuleResponse.CustomModuleValidationError errors = 2; + * + */ + public com.google.cloud.securitycentermanagement.v1 + .ValidateEventThreatDetectionCustomModuleResponse.CustomModuleValidationError.Builder + addErrorsBuilder(int index) { + return getErrorsFieldBuilder() + .addBuilder( + index, + com.google.cloud.securitycentermanagement.v1 + .ValidateEventThreatDetectionCustomModuleResponse.CustomModuleValidationError + .getDefaultInstance()); + } + /** + * + * + *
+     * A list of errors returned by the validator. If the list is empty, there
+     * were no errors.
+     * 
+ * + * + * repeated .google.cloud.securitycentermanagement.v1.ValidateEventThreatDetectionCustomModuleResponse.CustomModuleValidationError errors = 2; + * + */ + public java.util.List< + com.google.cloud.securitycentermanagement.v1 + .ValidateEventThreatDetectionCustomModuleResponse.CustomModuleValidationError + .Builder> + getErrorsBuilderList() { + return getErrorsFieldBuilder().getBuilderList(); + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.securitycentermanagement.v1 + .ValidateEventThreatDetectionCustomModuleResponse.CustomModuleValidationError, + com.google.cloud.securitycentermanagement.v1 + .ValidateEventThreatDetectionCustomModuleResponse.CustomModuleValidationError + .Builder, + com.google.cloud.securitycentermanagement.v1 + .ValidateEventThreatDetectionCustomModuleResponse + .CustomModuleValidationErrorOrBuilder> + getErrorsFieldBuilder() { + if (errorsBuilder_ == null) { + errorsBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.securitycentermanagement.v1 + .ValidateEventThreatDetectionCustomModuleResponse.CustomModuleValidationError, + com.google.cloud.securitycentermanagement.v1 + .ValidateEventThreatDetectionCustomModuleResponse.CustomModuleValidationError + .Builder, + com.google.cloud.securitycentermanagement.v1 + .ValidateEventThreatDetectionCustomModuleResponse + .CustomModuleValidationErrorOrBuilder>( + errors_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean()); + errors_ = null; + } + return errorsBuilder_; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.securitycentermanagement.v1.ValidateEventThreatDetectionCustomModuleResponse) + } + + // @@protoc_insertion_point(class_scope:google.cloud.securitycentermanagement.v1.ValidateEventThreatDetectionCustomModuleResponse) + private static final com.google.cloud.securitycentermanagement.v1 + .ValidateEventThreatDetectionCustomModuleResponse + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = + new com.google.cloud.securitycentermanagement.v1 + .ValidateEventThreatDetectionCustomModuleResponse(); + } + + public static com.google.cloud.securitycentermanagement.v1 + .ValidateEventThreatDetectionCustomModuleResponse + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = + new com.google.protobuf.AbstractParser< + ValidateEventThreatDetectionCustomModuleResponse>() { + @java.lang.Override + public ValidateEventThreatDetectionCustomModuleResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException() + .setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser + parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser + getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.securitycentermanagement.v1 + .ValidateEventThreatDetectionCustomModuleResponse + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-securitycentermanagement/proto-google-cloud-securitycentermanagement-v1/src/main/java/com/google/cloud/securitycentermanagement/v1/ValidateEventThreatDetectionCustomModuleResponseOrBuilder.java b/java-securitycentermanagement/proto-google-cloud-securitycentermanagement-v1/src/main/java/com/google/cloud/securitycentermanagement/v1/ValidateEventThreatDetectionCustomModuleResponseOrBuilder.java new file mode 100644 index 000000000000..62546dd8b71c --- /dev/null +++ b/java-securitycentermanagement/proto-google-cloud-securitycentermanagement-v1/src/main/java/com/google/cloud/securitycentermanagement/v1/ValidateEventThreatDetectionCustomModuleResponseOrBuilder.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/securitycentermanagement/v1/security_center_management.proto + +package com.google.cloud.securitycentermanagement.v1; + +public interface ValidateEventThreatDetectionCustomModuleResponseOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.securitycentermanagement.v1.ValidateEventThreatDetectionCustomModuleResponse) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * A list of errors returned by the validator. If the list is empty, there
+   * were no errors.
+   * 
+ * + * + * repeated .google.cloud.securitycentermanagement.v1.ValidateEventThreatDetectionCustomModuleResponse.CustomModuleValidationError errors = 2; + * + */ + java.util.List< + com.google.cloud.securitycentermanagement.v1 + .ValidateEventThreatDetectionCustomModuleResponse.CustomModuleValidationError> + getErrorsList(); + /** + * + * + *
+   * A list of errors returned by the validator. If the list is empty, there
+   * were no errors.
+   * 
+ * + * + * repeated .google.cloud.securitycentermanagement.v1.ValidateEventThreatDetectionCustomModuleResponse.CustomModuleValidationError errors = 2; + * + */ + com.google.cloud.securitycentermanagement.v1.ValidateEventThreatDetectionCustomModuleResponse + .CustomModuleValidationError + getErrors(int index); + /** + * + * + *
+   * A list of errors returned by the validator. If the list is empty, there
+   * were no errors.
+   * 
+ * + * + * repeated .google.cloud.securitycentermanagement.v1.ValidateEventThreatDetectionCustomModuleResponse.CustomModuleValidationError errors = 2; + * + */ + int getErrorsCount(); + /** + * + * + *
+   * A list of errors returned by the validator. If the list is empty, there
+   * were no errors.
+   * 
+ * + * + * repeated .google.cloud.securitycentermanagement.v1.ValidateEventThreatDetectionCustomModuleResponse.CustomModuleValidationError errors = 2; + * + */ + java.util.List< + ? extends + com.google.cloud.securitycentermanagement.v1 + .ValidateEventThreatDetectionCustomModuleResponse + .CustomModuleValidationErrorOrBuilder> + getErrorsOrBuilderList(); + /** + * + * + *
+   * A list of errors returned by the validator. If the list is empty, there
+   * were no errors.
+   * 
+ * + * + * repeated .google.cloud.securitycentermanagement.v1.ValidateEventThreatDetectionCustomModuleResponse.CustomModuleValidationError errors = 2; + * + */ + com.google.cloud.securitycentermanagement.v1.ValidateEventThreatDetectionCustomModuleResponse + .CustomModuleValidationErrorOrBuilder + getErrorsOrBuilder(int index); +} diff --git a/owl-bot-staging/java-securitycentermanagement/v1/proto-google-cloud-securitycentermanagement-v1/src/main/proto/google/cloud/securitycentermanagement/v1/security_center_management.proto b/java-securitycentermanagement/proto-google-cloud-securitycentermanagement-v1/src/main/proto/google/cloud/securitycentermanagement/v1/security_center_management.proto similarity index 100% rename from owl-bot-staging/java-securitycentermanagement/v1/proto-google-cloud-securitycentermanagement-v1/src/main/proto/google/cloud/securitycentermanagement/v1/security_center_management.proto rename to java-securitycentermanagement/proto-google-cloud-securitycentermanagement-v1/src/main/proto/google/cloud/securitycentermanagement/v1/security_center_management.proto diff --git a/owl-bot-staging/java-securitycentermanagement/v1/samples/snippets/generated/com/google/cloud/securitycentermanagement/v1/securitycentermanagement/create/SyncCreateSetCredentialsProvider.java b/java-securitycentermanagement/samples/snippets/generated/com/google/cloud/securitycentermanagement/v1/securitycentermanagement/create/SyncCreateSetCredentialsProvider.java similarity index 100% rename from owl-bot-staging/java-securitycentermanagement/v1/samples/snippets/generated/com/google/cloud/securitycentermanagement/v1/securitycentermanagement/create/SyncCreateSetCredentialsProvider.java rename to java-securitycentermanagement/samples/snippets/generated/com/google/cloud/securitycentermanagement/v1/securitycentermanagement/create/SyncCreateSetCredentialsProvider.java diff --git a/owl-bot-staging/java-securitycentermanagement/v1/samples/snippets/generated/com/google/cloud/securitycentermanagement/v1/securitycentermanagement/create/SyncCreateSetCredentialsProvider1.java b/java-securitycentermanagement/samples/snippets/generated/com/google/cloud/securitycentermanagement/v1/securitycentermanagement/create/SyncCreateSetCredentialsProvider1.java similarity index 100% rename from owl-bot-staging/java-securitycentermanagement/v1/samples/snippets/generated/com/google/cloud/securitycentermanagement/v1/securitycentermanagement/create/SyncCreateSetCredentialsProvider1.java rename to java-securitycentermanagement/samples/snippets/generated/com/google/cloud/securitycentermanagement/v1/securitycentermanagement/create/SyncCreateSetCredentialsProvider1.java diff --git a/owl-bot-staging/java-securitycentermanagement/v1/samples/snippets/generated/com/google/cloud/securitycentermanagement/v1/securitycentermanagement/create/SyncCreateSetEndpoint.java b/java-securitycentermanagement/samples/snippets/generated/com/google/cloud/securitycentermanagement/v1/securitycentermanagement/create/SyncCreateSetEndpoint.java similarity index 100% rename from owl-bot-staging/java-securitycentermanagement/v1/samples/snippets/generated/com/google/cloud/securitycentermanagement/v1/securitycentermanagement/create/SyncCreateSetEndpoint.java rename to java-securitycentermanagement/samples/snippets/generated/com/google/cloud/securitycentermanagement/v1/securitycentermanagement/create/SyncCreateSetEndpoint.java diff --git a/owl-bot-staging/java-securitycentermanagement/v1/samples/snippets/generated/com/google/cloud/securitycentermanagement/v1/securitycentermanagement/createeventthreatdetectioncustommodule/AsyncCreateEventThreatDetectionCustomModule.java b/java-securitycentermanagement/samples/snippets/generated/com/google/cloud/securitycentermanagement/v1/securitycentermanagement/createeventthreatdetectioncustommodule/AsyncCreateEventThreatDetectionCustomModule.java similarity index 100% rename from owl-bot-staging/java-securitycentermanagement/v1/samples/snippets/generated/com/google/cloud/securitycentermanagement/v1/securitycentermanagement/createeventthreatdetectioncustommodule/AsyncCreateEventThreatDetectionCustomModule.java rename to java-securitycentermanagement/samples/snippets/generated/com/google/cloud/securitycentermanagement/v1/securitycentermanagement/createeventthreatdetectioncustommodule/AsyncCreateEventThreatDetectionCustomModule.java diff --git a/owl-bot-staging/java-securitycentermanagement/v1/samples/snippets/generated/com/google/cloud/securitycentermanagement/v1/securitycentermanagement/createeventthreatdetectioncustommodule/SyncCreateEventThreatDetectionCustomModule.java b/java-securitycentermanagement/samples/snippets/generated/com/google/cloud/securitycentermanagement/v1/securitycentermanagement/createeventthreatdetectioncustommodule/SyncCreateEventThreatDetectionCustomModule.java similarity index 100% rename from owl-bot-staging/java-securitycentermanagement/v1/samples/snippets/generated/com/google/cloud/securitycentermanagement/v1/securitycentermanagement/createeventthreatdetectioncustommodule/SyncCreateEventThreatDetectionCustomModule.java rename to java-securitycentermanagement/samples/snippets/generated/com/google/cloud/securitycentermanagement/v1/securitycentermanagement/createeventthreatdetectioncustommodule/SyncCreateEventThreatDetectionCustomModule.java diff --git a/owl-bot-staging/java-securitycentermanagement/v1/samples/snippets/generated/com/google/cloud/securitycentermanagement/v1/securitycentermanagement/createeventthreatdetectioncustommodule/SyncCreateEventThreatDetectionCustomModuleFolderlocationnameEventthreatdetectioncustommodule.java b/java-securitycentermanagement/samples/snippets/generated/com/google/cloud/securitycentermanagement/v1/securitycentermanagement/createeventthreatdetectioncustommodule/SyncCreateEventThreatDetectionCustomModuleFolderlocationnameEventthreatdetectioncustommodule.java similarity index 100% rename from owl-bot-staging/java-securitycentermanagement/v1/samples/snippets/generated/com/google/cloud/securitycentermanagement/v1/securitycentermanagement/createeventthreatdetectioncustommodule/SyncCreateEventThreatDetectionCustomModuleFolderlocationnameEventthreatdetectioncustommodule.java rename to java-securitycentermanagement/samples/snippets/generated/com/google/cloud/securitycentermanagement/v1/securitycentermanagement/createeventthreatdetectioncustommodule/SyncCreateEventThreatDetectionCustomModuleFolderlocationnameEventthreatdetectioncustommodule.java diff --git a/owl-bot-staging/java-securitycentermanagement/v1/samples/snippets/generated/com/google/cloud/securitycentermanagement/v1/securitycentermanagement/createeventthreatdetectioncustommodule/SyncCreateEventThreatDetectionCustomModuleLocationnameEventthreatdetectioncustommodule.java b/java-securitycentermanagement/samples/snippets/generated/com/google/cloud/securitycentermanagement/v1/securitycentermanagement/createeventthreatdetectioncustommodule/SyncCreateEventThreatDetectionCustomModuleLocationnameEventthreatdetectioncustommodule.java similarity index 100% rename from owl-bot-staging/java-securitycentermanagement/v1/samples/snippets/generated/com/google/cloud/securitycentermanagement/v1/securitycentermanagement/createeventthreatdetectioncustommodule/SyncCreateEventThreatDetectionCustomModuleLocationnameEventthreatdetectioncustommodule.java rename to java-securitycentermanagement/samples/snippets/generated/com/google/cloud/securitycentermanagement/v1/securitycentermanagement/createeventthreatdetectioncustommodule/SyncCreateEventThreatDetectionCustomModuleLocationnameEventthreatdetectioncustommodule.java diff --git a/owl-bot-staging/java-securitycentermanagement/v1/samples/snippets/generated/com/google/cloud/securitycentermanagement/v1/securitycentermanagement/createeventthreatdetectioncustommodule/SyncCreateEventThreatDetectionCustomModuleOrganizationlocationnameEventthreatdetectioncustommodule.java b/java-securitycentermanagement/samples/snippets/generated/com/google/cloud/securitycentermanagement/v1/securitycentermanagement/createeventthreatdetectioncustommodule/SyncCreateEventThreatDetectionCustomModuleOrganizationlocationnameEventthreatdetectioncustommodule.java similarity index 100% rename from owl-bot-staging/java-securitycentermanagement/v1/samples/snippets/generated/com/google/cloud/securitycentermanagement/v1/securitycentermanagement/createeventthreatdetectioncustommodule/SyncCreateEventThreatDetectionCustomModuleOrganizationlocationnameEventthreatdetectioncustommodule.java rename to java-securitycentermanagement/samples/snippets/generated/com/google/cloud/securitycentermanagement/v1/securitycentermanagement/createeventthreatdetectioncustommodule/SyncCreateEventThreatDetectionCustomModuleOrganizationlocationnameEventthreatdetectioncustommodule.java diff --git a/owl-bot-staging/java-securitycentermanagement/v1/samples/snippets/generated/com/google/cloud/securitycentermanagement/v1/securitycentermanagement/createeventthreatdetectioncustommodule/SyncCreateEventThreatDetectionCustomModuleStringEventthreatdetectioncustommodule.java b/java-securitycentermanagement/samples/snippets/generated/com/google/cloud/securitycentermanagement/v1/securitycentermanagement/createeventthreatdetectioncustommodule/SyncCreateEventThreatDetectionCustomModuleStringEventthreatdetectioncustommodule.java similarity index 100% rename from owl-bot-staging/java-securitycentermanagement/v1/samples/snippets/generated/com/google/cloud/securitycentermanagement/v1/securitycentermanagement/createeventthreatdetectioncustommodule/SyncCreateEventThreatDetectionCustomModuleStringEventthreatdetectioncustommodule.java rename to java-securitycentermanagement/samples/snippets/generated/com/google/cloud/securitycentermanagement/v1/securitycentermanagement/createeventthreatdetectioncustommodule/SyncCreateEventThreatDetectionCustomModuleStringEventthreatdetectioncustommodule.java diff --git a/owl-bot-staging/java-securitycentermanagement/v1/samples/snippets/generated/com/google/cloud/securitycentermanagement/v1/securitycentermanagement/createsecurityhealthanalyticscustommodule/AsyncCreateSecurityHealthAnalyticsCustomModule.java b/java-securitycentermanagement/samples/snippets/generated/com/google/cloud/securitycentermanagement/v1/securitycentermanagement/createsecurityhealthanalyticscustommodule/AsyncCreateSecurityHealthAnalyticsCustomModule.java similarity index 100% rename from owl-bot-staging/java-securitycentermanagement/v1/samples/snippets/generated/com/google/cloud/securitycentermanagement/v1/securitycentermanagement/createsecurityhealthanalyticscustommodule/AsyncCreateSecurityHealthAnalyticsCustomModule.java rename to java-securitycentermanagement/samples/snippets/generated/com/google/cloud/securitycentermanagement/v1/securitycentermanagement/createsecurityhealthanalyticscustommodule/AsyncCreateSecurityHealthAnalyticsCustomModule.java diff --git a/owl-bot-staging/java-securitycentermanagement/v1/samples/snippets/generated/com/google/cloud/securitycentermanagement/v1/securitycentermanagement/createsecurityhealthanalyticscustommodule/SyncCreateSecurityHealthAnalyticsCustomModule.java b/java-securitycentermanagement/samples/snippets/generated/com/google/cloud/securitycentermanagement/v1/securitycentermanagement/createsecurityhealthanalyticscustommodule/SyncCreateSecurityHealthAnalyticsCustomModule.java similarity index 100% rename from owl-bot-staging/java-securitycentermanagement/v1/samples/snippets/generated/com/google/cloud/securitycentermanagement/v1/securitycentermanagement/createsecurityhealthanalyticscustommodule/SyncCreateSecurityHealthAnalyticsCustomModule.java rename to java-securitycentermanagement/samples/snippets/generated/com/google/cloud/securitycentermanagement/v1/securitycentermanagement/createsecurityhealthanalyticscustommodule/SyncCreateSecurityHealthAnalyticsCustomModule.java diff --git a/owl-bot-staging/java-securitycentermanagement/v1/samples/snippets/generated/com/google/cloud/securitycentermanagement/v1/securitycentermanagement/createsecurityhealthanalyticscustommodule/SyncCreateSecurityHealthAnalyticsCustomModuleFolderlocationnameSecurityhealthanalyticscustommodule.java b/java-securitycentermanagement/samples/snippets/generated/com/google/cloud/securitycentermanagement/v1/securitycentermanagement/createsecurityhealthanalyticscustommodule/SyncCreateSecurityHealthAnalyticsCustomModuleFolderlocationnameSecurityhealthanalyticscustommodule.java similarity index 100% rename from owl-bot-staging/java-securitycentermanagement/v1/samples/snippets/generated/com/google/cloud/securitycentermanagement/v1/securitycentermanagement/createsecurityhealthanalyticscustommodule/SyncCreateSecurityHealthAnalyticsCustomModuleFolderlocationnameSecurityhealthanalyticscustommodule.java rename to java-securitycentermanagement/samples/snippets/generated/com/google/cloud/securitycentermanagement/v1/securitycentermanagement/createsecurityhealthanalyticscustommodule/SyncCreateSecurityHealthAnalyticsCustomModuleFolderlocationnameSecurityhealthanalyticscustommodule.java diff --git a/owl-bot-staging/java-securitycentermanagement/v1/samples/snippets/generated/com/google/cloud/securitycentermanagement/v1/securitycentermanagement/createsecurityhealthanalyticscustommodule/SyncCreateSecurityHealthAnalyticsCustomModuleLocationnameSecurityhealthanalyticscustommodule.java b/java-securitycentermanagement/samples/snippets/generated/com/google/cloud/securitycentermanagement/v1/securitycentermanagement/createsecurityhealthanalyticscustommodule/SyncCreateSecurityHealthAnalyticsCustomModuleLocationnameSecurityhealthanalyticscustommodule.java similarity index 100% rename from owl-bot-staging/java-securitycentermanagement/v1/samples/snippets/generated/com/google/cloud/securitycentermanagement/v1/securitycentermanagement/createsecurityhealthanalyticscustommodule/SyncCreateSecurityHealthAnalyticsCustomModuleLocationnameSecurityhealthanalyticscustommodule.java rename to java-securitycentermanagement/samples/snippets/generated/com/google/cloud/securitycentermanagement/v1/securitycentermanagement/createsecurityhealthanalyticscustommodule/SyncCreateSecurityHealthAnalyticsCustomModuleLocationnameSecurityhealthanalyticscustommodule.java diff --git a/owl-bot-staging/java-securitycentermanagement/v1/samples/snippets/generated/com/google/cloud/securitycentermanagement/v1/securitycentermanagement/createsecurityhealthanalyticscustommodule/SyncCreateSecurityHealthAnalyticsCustomModuleOrganizationlocationnameSecurityhealthanalyticscustommodule.java b/java-securitycentermanagement/samples/snippets/generated/com/google/cloud/securitycentermanagement/v1/securitycentermanagement/createsecurityhealthanalyticscustommodule/SyncCreateSecurityHealthAnalyticsCustomModuleOrganizationlocationnameSecurityhealthanalyticscustommodule.java similarity index 100% rename from owl-bot-staging/java-securitycentermanagement/v1/samples/snippets/generated/com/google/cloud/securitycentermanagement/v1/securitycentermanagement/createsecurityhealthanalyticscustommodule/SyncCreateSecurityHealthAnalyticsCustomModuleOrganizationlocationnameSecurityhealthanalyticscustommodule.java rename to java-securitycentermanagement/samples/snippets/generated/com/google/cloud/securitycentermanagement/v1/securitycentermanagement/createsecurityhealthanalyticscustommodule/SyncCreateSecurityHealthAnalyticsCustomModuleOrganizationlocationnameSecurityhealthanalyticscustommodule.java diff --git a/owl-bot-staging/java-securitycentermanagement/v1/samples/snippets/generated/com/google/cloud/securitycentermanagement/v1/securitycentermanagement/createsecurityhealthanalyticscustommodule/SyncCreateSecurityHealthAnalyticsCustomModuleStringSecurityhealthanalyticscustommodule.java b/java-securitycentermanagement/samples/snippets/generated/com/google/cloud/securitycentermanagement/v1/securitycentermanagement/createsecurityhealthanalyticscustommodule/SyncCreateSecurityHealthAnalyticsCustomModuleStringSecurityhealthanalyticscustommodule.java similarity index 100% rename from owl-bot-staging/java-securitycentermanagement/v1/samples/snippets/generated/com/google/cloud/securitycentermanagement/v1/securitycentermanagement/createsecurityhealthanalyticscustommodule/SyncCreateSecurityHealthAnalyticsCustomModuleStringSecurityhealthanalyticscustommodule.java rename to java-securitycentermanagement/samples/snippets/generated/com/google/cloud/securitycentermanagement/v1/securitycentermanagement/createsecurityhealthanalyticscustommodule/SyncCreateSecurityHealthAnalyticsCustomModuleStringSecurityhealthanalyticscustommodule.java diff --git a/owl-bot-staging/java-securitycentermanagement/v1/samples/snippets/generated/com/google/cloud/securitycentermanagement/v1/securitycentermanagement/deleteeventthreatdetectioncustommodule/AsyncDeleteEventThreatDetectionCustomModule.java b/java-securitycentermanagement/samples/snippets/generated/com/google/cloud/securitycentermanagement/v1/securitycentermanagement/deleteeventthreatdetectioncustommodule/AsyncDeleteEventThreatDetectionCustomModule.java similarity index 100% rename from owl-bot-staging/java-securitycentermanagement/v1/samples/snippets/generated/com/google/cloud/securitycentermanagement/v1/securitycentermanagement/deleteeventthreatdetectioncustommodule/AsyncDeleteEventThreatDetectionCustomModule.java rename to java-securitycentermanagement/samples/snippets/generated/com/google/cloud/securitycentermanagement/v1/securitycentermanagement/deleteeventthreatdetectioncustommodule/AsyncDeleteEventThreatDetectionCustomModule.java diff --git a/owl-bot-staging/java-securitycentermanagement/v1/samples/snippets/generated/com/google/cloud/securitycentermanagement/v1/securitycentermanagement/deleteeventthreatdetectioncustommodule/SyncDeleteEventThreatDetectionCustomModule.java b/java-securitycentermanagement/samples/snippets/generated/com/google/cloud/securitycentermanagement/v1/securitycentermanagement/deleteeventthreatdetectioncustommodule/SyncDeleteEventThreatDetectionCustomModule.java similarity index 100% rename from owl-bot-staging/java-securitycentermanagement/v1/samples/snippets/generated/com/google/cloud/securitycentermanagement/v1/securitycentermanagement/deleteeventthreatdetectioncustommodule/SyncDeleteEventThreatDetectionCustomModule.java rename to java-securitycentermanagement/samples/snippets/generated/com/google/cloud/securitycentermanagement/v1/securitycentermanagement/deleteeventthreatdetectioncustommodule/SyncDeleteEventThreatDetectionCustomModule.java diff --git a/owl-bot-staging/java-securitycentermanagement/v1/samples/snippets/generated/com/google/cloud/securitycentermanagement/v1/securitycentermanagement/deleteeventthreatdetectioncustommodule/SyncDeleteEventThreatDetectionCustomModuleEventthreatdetectioncustommodulename.java b/java-securitycentermanagement/samples/snippets/generated/com/google/cloud/securitycentermanagement/v1/securitycentermanagement/deleteeventthreatdetectioncustommodule/SyncDeleteEventThreatDetectionCustomModuleEventthreatdetectioncustommodulename.java similarity index 100% rename from owl-bot-staging/java-securitycentermanagement/v1/samples/snippets/generated/com/google/cloud/securitycentermanagement/v1/securitycentermanagement/deleteeventthreatdetectioncustommodule/SyncDeleteEventThreatDetectionCustomModuleEventthreatdetectioncustommodulename.java rename to java-securitycentermanagement/samples/snippets/generated/com/google/cloud/securitycentermanagement/v1/securitycentermanagement/deleteeventthreatdetectioncustommodule/SyncDeleteEventThreatDetectionCustomModuleEventthreatdetectioncustommodulename.java diff --git a/owl-bot-staging/java-securitycentermanagement/v1/samples/snippets/generated/com/google/cloud/securitycentermanagement/v1/securitycentermanagement/deleteeventthreatdetectioncustommodule/SyncDeleteEventThreatDetectionCustomModuleString.java b/java-securitycentermanagement/samples/snippets/generated/com/google/cloud/securitycentermanagement/v1/securitycentermanagement/deleteeventthreatdetectioncustommodule/SyncDeleteEventThreatDetectionCustomModuleString.java similarity index 100% rename from owl-bot-staging/java-securitycentermanagement/v1/samples/snippets/generated/com/google/cloud/securitycentermanagement/v1/securitycentermanagement/deleteeventthreatdetectioncustommodule/SyncDeleteEventThreatDetectionCustomModuleString.java rename to java-securitycentermanagement/samples/snippets/generated/com/google/cloud/securitycentermanagement/v1/securitycentermanagement/deleteeventthreatdetectioncustommodule/SyncDeleteEventThreatDetectionCustomModuleString.java diff --git a/owl-bot-staging/java-securitycentermanagement/v1/samples/snippets/generated/com/google/cloud/securitycentermanagement/v1/securitycentermanagement/deletesecurityhealthanalyticscustommodule/AsyncDeleteSecurityHealthAnalyticsCustomModule.java b/java-securitycentermanagement/samples/snippets/generated/com/google/cloud/securitycentermanagement/v1/securitycentermanagement/deletesecurityhealthanalyticscustommodule/AsyncDeleteSecurityHealthAnalyticsCustomModule.java similarity index 100% rename from owl-bot-staging/java-securitycentermanagement/v1/samples/snippets/generated/com/google/cloud/securitycentermanagement/v1/securitycentermanagement/deletesecurityhealthanalyticscustommodule/AsyncDeleteSecurityHealthAnalyticsCustomModule.java rename to java-securitycentermanagement/samples/snippets/generated/com/google/cloud/securitycentermanagement/v1/securitycentermanagement/deletesecurityhealthanalyticscustommodule/AsyncDeleteSecurityHealthAnalyticsCustomModule.java diff --git a/owl-bot-staging/java-securitycentermanagement/v1/samples/snippets/generated/com/google/cloud/securitycentermanagement/v1/securitycentermanagement/deletesecurityhealthanalyticscustommodule/SyncDeleteSecurityHealthAnalyticsCustomModule.java b/java-securitycentermanagement/samples/snippets/generated/com/google/cloud/securitycentermanagement/v1/securitycentermanagement/deletesecurityhealthanalyticscustommodule/SyncDeleteSecurityHealthAnalyticsCustomModule.java similarity index 100% rename from owl-bot-staging/java-securitycentermanagement/v1/samples/snippets/generated/com/google/cloud/securitycentermanagement/v1/securitycentermanagement/deletesecurityhealthanalyticscustommodule/SyncDeleteSecurityHealthAnalyticsCustomModule.java rename to java-securitycentermanagement/samples/snippets/generated/com/google/cloud/securitycentermanagement/v1/securitycentermanagement/deletesecurityhealthanalyticscustommodule/SyncDeleteSecurityHealthAnalyticsCustomModule.java diff --git a/owl-bot-staging/java-securitycentermanagement/v1/samples/snippets/generated/com/google/cloud/securitycentermanagement/v1/securitycentermanagement/deletesecurityhealthanalyticscustommodule/SyncDeleteSecurityHealthAnalyticsCustomModuleSecurityhealthanalyticscustommodulename.java b/java-securitycentermanagement/samples/snippets/generated/com/google/cloud/securitycentermanagement/v1/securitycentermanagement/deletesecurityhealthanalyticscustommodule/SyncDeleteSecurityHealthAnalyticsCustomModuleSecurityhealthanalyticscustommodulename.java similarity index 100% rename from owl-bot-staging/java-securitycentermanagement/v1/samples/snippets/generated/com/google/cloud/securitycentermanagement/v1/securitycentermanagement/deletesecurityhealthanalyticscustommodule/SyncDeleteSecurityHealthAnalyticsCustomModuleSecurityhealthanalyticscustommodulename.java rename to java-securitycentermanagement/samples/snippets/generated/com/google/cloud/securitycentermanagement/v1/securitycentermanagement/deletesecurityhealthanalyticscustommodule/SyncDeleteSecurityHealthAnalyticsCustomModuleSecurityhealthanalyticscustommodulename.java diff --git a/owl-bot-staging/java-securitycentermanagement/v1/samples/snippets/generated/com/google/cloud/securitycentermanagement/v1/securitycentermanagement/deletesecurityhealthanalyticscustommodule/SyncDeleteSecurityHealthAnalyticsCustomModuleString.java b/java-securitycentermanagement/samples/snippets/generated/com/google/cloud/securitycentermanagement/v1/securitycentermanagement/deletesecurityhealthanalyticscustommodule/SyncDeleteSecurityHealthAnalyticsCustomModuleString.java similarity index 100% rename from owl-bot-staging/java-securitycentermanagement/v1/samples/snippets/generated/com/google/cloud/securitycentermanagement/v1/securitycentermanagement/deletesecurityhealthanalyticscustommodule/SyncDeleteSecurityHealthAnalyticsCustomModuleString.java rename to java-securitycentermanagement/samples/snippets/generated/com/google/cloud/securitycentermanagement/v1/securitycentermanagement/deletesecurityhealthanalyticscustommodule/SyncDeleteSecurityHealthAnalyticsCustomModuleString.java diff --git a/owl-bot-staging/java-securitycentermanagement/v1/samples/snippets/generated/com/google/cloud/securitycentermanagement/v1/securitycentermanagement/geteffectiveeventthreatdetectioncustommodule/AsyncGetEffectiveEventThreatDetectionCustomModule.java b/java-securitycentermanagement/samples/snippets/generated/com/google/cloud/securitycentermanagement/v1/securitycentermanagement/geteffectiveeventthreatdetectioncustommodule/AsyncGetEffectiveEventThreatDetectionCustomModule.java similarity index 100% rename from owl-bot-staging/java-securitycentermanagement/v1/samples/snippets/generated/com/google/cloud/securitycentermanagement/v1/securitycentermanagement/geteffectiveeventthreatdetectioncustommodule/AsyncGetEffectiveEventThreatDetectionCustomModule.java rename to java-securitycentermanagement/samples/snippets/generated/com/google/cloud/securitycentermanagement/v1/securitycentermanagement/geteffectiveeventthreatdetectioncustommodule/AsyncGetEffectiveEventThreatDetectionCustomModule.java diff --git a/owl-bot-staging/java-securitycentermanagement/v1/samples/snippets/generated/com/google/cloud/securitycentermanagement/v1/securitycentermanagement/geteffectiveeventthreatdetectioncustommodule/SyncGetEffectiveEventThreatDetectionCustomModule.java b/java-securitycentermanagement/samples/snippets/generated/com/google/cloud/securitycentermanagement/v1/securitycentermanagement/geteffectiveeventthreatdetectioncustommodule/SyncGetEffectiveEventThreatDetectionCustomModule.java similarity index 100% rename from owl-bot-staging/java-securitycentermanagement/v1/samples/snippets/generated/com/google/cloud/securitycentermanagement/v1/securitycentermanagement/geteffectiveeventthreatdetectioncustommodule/SyncGetEffectiveEventThreatDetectionCustomModule.java rename to java-securitycentermanagement/samples/snippets/generated/com/google/cloud/securitycentermanagement/v1/securitycentermanagement/geteffectiveeventthreatdetectioncustommodule/SyncGetEffectiveEventThreatDetectionCustomModule.java diff --git a/owl-bot-staging/java-securitycentermanagement/v1/samples/snippets/generated/com/google/cloud/securitycentermanagement/v1/securitycentermanagement/geteffectiveeventthreatdetectioncustommodule/SyncGetEffectiveEventThreatDetectionCustomModuleEffectiveeventthreatdetectioncustommodulename.java b/java-securitycentermanagement/samples/snippets/generated/com/google/cloud/securitycentermanagement/v1/securitycentermanagement/geteffectiveeventthreatdetectioncustommodule/SyncGetEffectiveEventThreatDetectionCustomModuleEffectiveeventthreatdetectioncustommodulename.java similarity index 100% rename from owl-bot-staging/java-securitycentermanagement/v1/samples/snippets/generated/com/google/cloud/securitycentermanagement/v1/securitycentermanagement/geteffectiveeventthreatdetectioncustommodule/SyncGetEffectiveEventThreatDetectionCustomModuleEffectiveeventthreatdetectioncustommodulename.java rename to java-securitycentermanagement/samples/snippets/generated/com/google/cloud/securitycentermanagement/v1/securitycentermanagement/geteffectiveeventthreatdetectioncustommodule/SyncGetEffectiveEventThreatDetectionCustomModuleEffectiveeventthreatdetectioncustommodulename.java diff --git a/owl-bot-staging/java-securitycentermanagement/v1/samples/snippets/generated/com/google/cloud/securitycentermanagement/v1/securitycentermanagement/geteffectiveeventthreatdetectioncustommodule/SyncGetEffectiveEventThreatDetectionCustomModuleString.java b/java-securitycentermanagement/samples/snippets/generated/com/google/cloud/securitycentermanagement/v1/securitycentermanagement/geteffectiveeventthreatdetectioncustommodule/SyncGetEffectiveEventThreatDetectionCustomModuleString.java similarity index 100% rename from owl-bot-staging/java-securitycentermanagement/v1/samples/snippets/generated/com/google/cloud/securitycentermanagement/v1/securitycentermanagement/geteffectiveeventthreatdetectioncustommodule/SyncGetEffectiveEventThreatDetectionCustomModuleString.java rename to java-securitycentermanagement/samples/snippets/generated/com/google/cloud/securitycentermanagement/v1/securitycentermanagement/geteffectiveeventthreatdetectioncustommodule/SyncGetEffectiveEventThreatDetectionCustomModuleString.java diff --git a/owl-bot-staging/java-securitycentermanagement/v1/samples/snippets/generated/com/google/cloud/securitycentermanagement/v1/securitycentermanagement/geteffectivesecurityhealthanalyticscustommodule/AsyncGetEffectiveSecurityHealthAnalyticsCustomModule.java b/java-securitycentermanagement/samples/snippets/generated/com/google/cloud/securitycentermanagement/v1/securitycentermanagement/geteffectivesecurityhealthanalyticscustommodule/AsyncGetEffectiveSecurityHealthAnalyticsCustomModule.java similarity index 100% rename from owl-bot-staging/java-securitycentermanagement/v1/samples/snippets/generated/com/google/cloud/securitycentermanagement/v1/securitycentermanagement/geteffectivesecurityhealthanalyticscustommodule/AsyncGetEffectiveSecurityHealthAnalyticsCustomModule.java rename to java-securitycentermanagement/samples/snippets/generated/com/google/cloud/securitycentermanagement/v1/securitycentermanagement/geteffectivesecurityhealthanalyticscustommodule/AsyncGetEffectiveSecurityHealthAnalyticsCustomModule.java diff --git a/owl-bot-staging/java-securitycentermanagement/v1/samples/snippets/generated/com/google/cloud/securitycentermanagement/v1/securitycentermanagement/geteffectivesecurityhealthanalyticscustommodule/SyncGetEffectiveSecurityHealthAnalyticsCustomModule.java b/java-securitycentermanagement/samples/snippets/generated/com/google/cloud/securitycentermanagement/v1/securitycentermanagement/geteffectivesecurityhealthanalyticscustommodule/SyncGetEffectiveSecurityHealthAnalyticsCustomModule.java similarity index 100% rename from owl-bot-staging/java-securitycentermanagement/v1/samples/snippets/generated/com/google/cloud/securitycentermanagement/v1/securitycentermanagement/geteffectivesecurityhealthanalyticscustommodule/SyncGetEffectiveSecurityHealthAnalyticsCustomModule.java rename to java-securitycentermanagement/samples/snippets/generated/com/google/cloud/securitycentermanagement/v1/securitycentermanagement/geteffectivesecurityhealthanalyticscustommodule/SyncGetEffectiveSecurityHealthAnalyticsCustomModule.java diff --git a/owl-bot-staging/java-securitycentermanagement/v1/samples/snippets/generated/com/google/cloud/securitycentermanagement/v1/securitycentermanagement/geteffectivesecurityhealthanalyticscustommodule/SyncGetEffectiveSecurityHealthAnalyticsCustomModuleEffectivesecurityhealthanalyticscustommodulename.java b/java-securitycentermanagement/samples/snippets/generated/com/google/cloud/securitycentermanagement/v1/securitycentermanagement/geteffectivesecurityhealthanalyticscustommodule/SyncGetEffectiveSecurityHealthAnalyticsCustomModuleEffectivesecurityhealthanalyticscustommodulename.java similarity index 100% rename from owl-bot-staging/java-securitycentermanagement/v1/samples/snippets/generated/com/google/cloud/securitycentermanagement/v1/securitycentermanagement/geteffectivesecurityhealthanalyticscustommodule/SyncGetEffectiveSecurityHealthAnalyticsCustomModuleEffectivesecurityhealthanalyticscustommodulename.java rename to java-securitycentermanagement/samples/snippets/generated/com/google/cloud/securitycentermanagement/v1/securitycentermanagement/geteffectivesecurityhealthanalyticscustommodule/SyncGetEffectiveSecurityHealthAnalyticsCustomModuleEffectivesecurityhealthanalyticscustommodulename.java diff --git a/owl-bot-staging/java-securitycentermanagement/v1/samples/snippets/generated/com/google/cloud/securitycentermanagement/v1/securitycentermanagement/geteffectivesecurityhealthanalyticscustommodule/SyncGetEffectiveSecurityHealthAnalyticsCustomModuleString.java b/java-securitycentermanagement/samples/snippets/generated/com/google/cloud/securitycentermanagement/v1/securitycentermanagement/geteffectivesecurityhealthanalyticscustommodule/SyncGetEffectiveSecurityHealthAnalyticsCustomModuleString.java similarity index 100% rename from owl-bot-staging/java-securitycentermanagement/v1/samples/snippets/generated/com/google/cloud/securitycentermanagement/v1/securitycentermanagement/geteffectivesecurityhealthanalyticscustommodule/SyncGetEffectiveSecurityHealthAnalyticsCustomModuleString.java rename to java-securitycentermanagement/samples/snippets/generated/com/google/cloud/securitycentermanagement/v1/securitycentermanagement/geteffectivesecurityhealthanalyticscustommodule/SyncGetEffectiveSecurityHealthAnalyticsCustomModuleString.java diff --git a/owl-bot-staging/java-securitycentermanagement/v1/samples/snippets/generated/com/google/cloud/securitycentermanagement/v1/securitycentermanagement/geteventthreatdetectioncustommodule/AsyncGetEventThreatDetectionCustomModule.java b/java-securitycentermanagement/samples/snippets/generated/com/google/cloud/securitycentermanagement/v1/securitycentermanagement/geteventthreatdetectioncustommodule/AsyncGetEventThreatDetectionCustomModule.java similarity index 100% rename from owl-bot-staging/java-securitycentermanagement/v1/samples/snippets/generated/com/google/cloud/securitycentermanagement/v1/securitycentermanagement/geteventthreatdetectioncustommodule/AsyncGetEventThreatDetectionCustomModule.java rename to java-securitycentermanagement/samples/snippets/generated/com/google/cloud/securitycentermanagement/v1/securitycentermanagement/geteventthreatdetectioncustommodule/AsyncGetEventThreatDetectionCustomModule.java diff --git a/owl-bot-staging/java-securitycentermanagement/v1/samples/snippets/generated/com/google/cloud/securitycentermanagement/v1/securitycentermanagement/geteventthreatdetectioncustommodule/SyncGetEventThreatDetectionCustomModule.java b/java-securitycentermanagement/samples/snippets/generated/com/google/cloud/securitycentermanagement/v1/securitycentermanagement/geteventthreatdetectioncustommodule/SyncGetEventThreatDetectionCustomModule.java similarity index 100% rename from owl-bot-staging/java-securitycentermanagement/v1/samples/snippets/generated/com/google/cloud/securitycentermanagement/v1/securitycentermanagement/geteventthreatdetectioncustommodule/SyncGetEventThreatDetectionCustomModule.java rename to java-securitycentermanagement/samples/snippets/generated/com/google/cloud/securitycentermanagement/v1/securitycentermanagement/geteventthreatdetectioncustommodule/SyncGetEventThreatDetectionCustomModule.java diff --git a/owl-bot-staging/java-securitycentermanagement/v1/samples/snippets/generated/com/google/cloud/securitycentermanagement/v1/securitycentermanagement/geteventthreatdetectioncustommodule/SyncGetEventThreatDetectionCustomModuleEventthreatdetectioncustommodulename.java b/java-securitycentermanagement/samples/snippets/generated/com/google/cloud/securitycentermanagement/v1/securitycentermanagement/geteventthreatdetectioncustommodule/SyncGetEventThreatDetectionCustomModuleEventthreatdetectioncustommodulename.java similarity index 100% rename from owl-bot-staging/java-securitycentermanagement/v1/samples/snippets/generated/com/google/cloud/securitycentermanagement/v1/securitycentermanagement/geteventthreatdetectioncustommodule/SyncGetEventThreatDetectionCustomModuleEventthreatdetectioncustommodulename.java rename to java-securitycentermanagement/samples/snippets/generated/com/google/cloud/securitycentermanagement/v1/securitycentermanagement/geteventthreatdetectioncustommodule/SyncGetEventThreatDetectionCustomModuleEventthreatdetectioncustommodulename.java diff --git a/owl-bot-staging/java-securitycentermanagement/v1/samples/snippets/generated/com/google/cloud/securitycentermanagement/v1/securitycentermanagement/geteventthreatdetectioncustommodule/SyncGetEventThreatDetectionCustomModuleString.java b/java-securitycentermanagement/samples/snippets/generated/com/google/cloud/securitycentermanagement/v1/securitycentermanagement/geteventthreatdetectioncustommodule/SyncGetEventThreatDetectionCustomModuleString.java similarity index 100% rename from owl-bot-staging/java-securitycentermanagement/v1/samples/snippets/generated/com/google/cloud/securitycentermanagement/v1/securitycentermanagement/geteventthreatdetectioncustommodule/SyncGetEventThreatDetectionCustomModuleString.java rename to java-securitycentermanagement/samples/snippets/generated/com/google/cloud/securitycentermanagement/v1/securitycentermanagement/geteventthreatdetectioncustommodule/SyncGetEventThreatDetectionCustomModuleString.java diff --git a/owl-bot-staging/java-securitycentermanagement/v1/samples/snippets/generated/com/google/cloud/securitycentermanagement/v1/securitycentermanagement/getlocation/AsyncGetLocation.java b/java-securitycentermanagement/samples/snippets/generated/com/google/cloud/securitycentermanagement/v1/securitycentermanagement/getlocation/AsyncGetLocation.java similarity index 100% rename from owl-bot-staging/java-securitycentermanagement/v1/samples/snippets/generated/com/google/cloud/securitycentermanagement/v1/securitycentermanagement/getlocation/AsyncGetLocation.java rename to java-securitycentermanagement/samples/snippets/generated/com/google/cloud/securitycentermanagement/v1/securitycentermanagement/getlocation/AsyncGetLocation.java diff --git a/owl-bot-staging/java-securitycentermanagement/v1/samples/snippets/generated/com/google/cloud/securitycentermanagement/v1/securitycentermanagement/getlocation/SyncGetLocation.java b/java-securitycentermanagement/samples/snippets/generated/com/google/cloud/securitycentermanagement/v1/securitycentermanagement/getlocation/SyncGetLocation.java similarity index 100% rename from owl-bot-staging/java-securitycentermanagement/v1/samples/snippets/generated/com/google/cloud/securitycentermanagement/v1/securitycentermanagement/getlocation/SyncGetLocation.java rename to java-securitycentermanagement/samples/snippets/generated/com/google/cloud/securitycentermanagement/v1/securitycentermanagement/getlocation/SyncGetLocation.java diff --git a/owl-bot-staging/java-securitycentermanagement/v1/samples/snippets/generated/com/google/cloud/securitycentermanagement/v1/securitycentermanagement/getsecurityhealthanalyticscustommodule/AsyncGetSecurityHealthAnalyticsCustomModule.java b/java-securitycentermanagement/samples/snippets/generated/com/google/cloud/securitycentermanagement/v1/securitycentermanagement/getsecurityhealthanalyticscustommodule/AsyncGetSecurityHealthAnalyticsCustomModule.java similarity index 100% rename from owl-bot-staging/java-securitycentermanagement/v1/samples/snippets/generated/com/google/cloud/securitycentermanagement/v1/securitycentermanagement/getsecurityhealthanalyticscustommodule/AsyncGetSecurityHealthAnalyticsCustomModule.java rename to java-securitycentermanagement/samples/snippets/generated/com/google/cloud/securitycentermanagement/v1/securitycentermanagement/getsecurityhealthanalyticscustommodule/AsyncGetSecurityHealthAnalyticsCustomModule.java diff --git a/owl-bot-staging/java-securitycentermanagement/v1/samples/snippets/generated/com/google/cloud/securitycentermanagement/v1/securitycentermanagement/getsecurityhealthanalyticscustommodule/SyncGetSecurityHealthAnalyticsCustomModule.java b/java-securitycentermanagement/samples/snippets/generated/com/google/cloud/securitycentermanagement/v1/securitycentermanagement/getsecurityhealthanalyticscustommodule/SyncGetSecurityHealthAnalyticsCustomModule.java similarity index 100% rename from owl-bot-staging/java-securitycentermanagement/v1/samples/snippets/generated/com/google/cloud/securitycentermanagement/v1/securitycentermanagement/getsecurityhealthanalyticscustommodule/SyncGetSecurityHealthAnalyticsCustomModule.java rename to java-securitycentermanagement/samples/snippets/generated/com/google/cloud/securitycentermanagement/v1/securitycentermanagement/getsecurityhealthanalyticscustommodule/SyncGetSecurityHealthAnalyticsCustomModule.java diff --git a/owl-bot-staging/java-securitycentermanagement/v1/samples/snippets/generated/com/google/cloud/securitycentermanagement/v1/securitycentermanagement/getsecurityhealthanalyticscustommodule/SyncGetSecurityHealthAnalyticsCustomModuleSecurityhealthanalyticscustommodulename.java b/java-securitycentermanagement/samples/snippets/generated/com/google/cloud/securitycentermanagement/v1/securitycentermanagement/getsecurityhealthanalyticscustommodule/SyncGetSecurityHealthAnalyticsCustomModuleSecurityhealthanalyticscustommodulename.java similarity index 100% rename from owl-bot-staging/java-securitycentermanagement/v1/samples/snippets/generated/com/google/cloud/securitycentermanagement/v1/securitycentermanagement/getsecurityhealthanalyticscustommodule/SyncGetSecurityHealthAnalyticsCustomModuleSecurityhealthanalyticscustommodulename.java rename to java-securitycentermanagement/samples/snippets/generated/com/google/cloud/securitycentermanagement/v1/securitycentermanagement/getsecurityhealthanalyticscustommodule/SyncGetSecurityHealthAnalyticsCustomModuleSecurityhealthanalyticscustommodulename.java diff --git a/owl-bot-staging/java-securitycentermanagement/v1/samples/snippets/generated/com/google/cloud/securitycentermanagement/v1/securitycentermanagement/getsecurityhealthanalyticscustommodule/SyncGetSecurityHealthAnalyticsCustomModuleString.java b/java-securitycentermanagement/samples/snippets/generated/com/google/cloud/securitycentermanagement/v1/securitycentermanagement/getsecurityhealthanalyticscustommodule/SyncGetSecurityHealthAnalyticsCustomModuleString.java similarity index 100% rename from owl-bot-staging/java-securitycentermanagement/v1/samples/snippets/generated/com/google/cloud/securitycentermanagement/v1/securitycentermanagement/getsecurityhealthanalyticscustommodule/SyncGetSecurityHealthAnalyticsCustomModuleString.java rename to java-securitycentermanagement/samples/snippets/generated/com/google/cloud/securitycentermanagement/v1/securitycentermanagement/getsecurityhealthanalyticscustommodule/SyncGetSecurityHealthAnalyticsCustomModuleString.java diff --git a/owl-bot-staging/java-securitycentermanagement/v1/samples/snippets/generated/com/google/cloud/securitycentermanagement/v1/securitycentermanagement/listdescendanteventthreatdetectioncustommodules/AsyncListDescendantEventThreatDetectionCustomModules.java b/java-securitycentermanagement/samples/snippets/generated/com/google/cloud/securitycentermanagement/v1/securitycentermanagement/listdescendanteventthreatdetectioncustommodules/AsyncListDescendantEventThreatDetectionCustomModules.java similarity index 100% rename from owl-bot-staging/java-securitycentermanagement/v1/samples/snippets/generated/com/google/cloud/securitycentermanagement/v1/securitycentermanagement/listdescendanteventthreatdetectioncustommodules/AsyncListDescendantEventThreatDetectionCustomModules.java rename to java-securitycentermanagement/samples/snippets/generated/com/google/cloud/securitycentermanagement/v1/securitycentermanagement/listdescendanteventthreatdetectioncustommodules/AsyncListDescendantEventThreatDetectionCustomModules.java diff --git a/owl-bot-staging/java-securitycentermanagement/v1/samples/snippets/generated/com/google/cloud/securitycentermanagement/v1/securitycentermanagement/listdescendanteventthreatdetectioncustommodules/AsyncListDescendantEventThreatDetectionCustomModulesPaged.java b/java-securitycentermanagement/samples/snippets/generated/com/google/cloud/securitycentermanagement/v1/securitycentermanagement/listdescendanteventthreatdetectioncustommodules/AsyncListDescendantEventThreatDetectionCustomModulesPaged.java similarity index 100% rename from owl-bot-staging/java-securitycentermanagement/v1/samples/snippets/generated/com/google/cloud/securitycentermanagement/v1/securitycentermanagement/listdescendanteventthreatdetectioncustommodules/AsyncListDescendantEventThreatDetectionCustomModulesPaged.java rename to java-securitycentermanagement/samples/snippets/generated/com/google/cloud/securitycentermanagement/v1/securitycentermanagement/listdescendanteventthreatdetectioncustommodules/AsyncListDescendantEventThreatDetectionCustomModulesPaged.java diff --git a/owl-bot-staging/java-securitycentermanagement/v1/samples/snippets/generated/com/google/cloud/securitycentermanagement/v1/securitycentermanagement/listdescendanteventthreatdetectioncustommodules/SyncListDescendantEventThreatDetectionCustomModules.java b/java-securitycentermanagement/samples/snippets/generated/com/google/cloud/securitycentermanagement/v1/securitycentermanagement/listdescendanteventthreatdetectioncustommodules/SyncListDescendantEventThreatDetectionCustomModules.java similarity index 100% rename from owl-bot-staging/java-securitycentermanagement/v1/samples/snippets/generated/com/google/cloud/securitycentermanagement/v1/securitycentermanagement/listdescendanteventthreatdetectioncustommodules/SyncListDescendantEventThreatDetectionCustomModules.java rename to java-securitycentermanagement/samples/snippets/generated/com/google/cloud/securitycentermanagement/v1/securitycentermanagement/listdescendanteventthreatdetectioncustommodules/SyncListDescendantEventThreatDetectionCustomModules.java diff --git a/owl-bot-staging/java-securitycentermanagement/v1/samples/snippets/generated/com/google/cloud/securitycentermanagement/v1/securitycentermanagement/listdescendanteventthreatdetectioncustommodules/SyncListDescendantEventThreatDetectionCustomModulesFolderlocationname.java b/java-securitycentermanagement/samples/snippets/generated/com/google/cloud/securitycentermanagement/v1/securitycentermanagement/listdescendanteventthreatdetectioncustommodules/SyncListDescendantEventThreatDetectionCustomModulesFolderlocationname.java similarity index 100% rename from owl-bot-staging/java-securitycentermanagement/v1/samples/snippets/generated/com/google/cloud/securitycentermanagement/v1/securitycentermanagement/listdescendanteventthreatdetectioncustommodules/SyncListDescendantEventThreatDetectionCustomModulesFolderlocationname.java rename to java-securitycentermanagement/samples/snippets/generated/com/google/cloud/securitycentermanagement/v1/securitycentermanagement/listdescendanteventthreatdetectioncustommodules/SyncListDescendantEventThreatDetectionCustomModulesFolderlocationname.java diff --git a/owl-bot-staging/java-securitycentermanagement/v1/samples/snippets/generated/com/google/cloud/securitycentermanagement/v1/securitycentermanagement/listdescendanteventthreatdetectioncustommodules/SyncListDescendantEventThreatDetectionCustomModulesLocationname.java b/java-securitycentermanagement/samples/snippets/generated/com/google/cloud/securitycentermanagement/v1/securitycentermanagement/listdescendanteventthreatdetectioncustommodules/SyncListDescendantEventThreatDetectionCustomModulesLocationname.java similarity index 100% rename from owl-bot-staging/java-securitycentermanagement/v1/samples/snippets/generated/com/google/cloud/securitycentermanagement/v1/securitycentermanagement/listdescendanteventthreatdetectioncustommodules/SyncListDescendantEventThreatDetectionCustomModulesLocationname.java rename to java-securitycentermanagement/samples/snippets/generated/com/google/cloud/securitycentermanagement/v1/securitycentermanagement/listdescendanteventthreatdetectioncustommodules/SyncListDescendantEventThreatDetectionCustomModulesLocationname.java diff --git a/owl-bot-staging/java-securitycentermanagement/v1/samples/snippets/generated/com/google/cloud/securitycentermanagement/v1/securitycentermanagement/listdescendanteventthreatdetectioncustommodules/SyncListDescendantEventThreatDetectionCustomModulesOrganizationlocationname.java b/java-securitycentermanagement/samples/snippets/generated/com/google/cloud/securitycentermanagement/v1/securitycentermanagement/listdescendanteventthreatdetectioncustommodules/SyncListDescendantEventThreatDetectionCustomModulesOrganizationlocationname.java similarity index 100% rename from owl-bot-staging/java-securitycentermanagement/v1/samples/snippets/generated/com/google/cloud/securitycentermanagement/v1/securitycentermanagement/listdescendanteventthreatdetectioncustommodules/SyncListDescendantEventThreatDetectionCustomModulesOrganizationlocationname.java rename to java-securitycentermanagement/samples/snippets/generated/com/google/cloud/securitycentermanagement/v1/securitycentermanagement/listdescendanteventthreatdetectioncustommodules/SyncListDescendantEventThreatDetectionCustomModulesOrganizationlocationname.java diff --git a/owl-bot-staging/java-securitycentermanagement/v1/samples/snippets/generated/com/google/cloud/securitycentermanagement/v1/securitycentermanagement/listdescendanteventthreatdetectioncustommodules/SyncListDescendantEventThreatDetectionCustomModulesString.java b/java-securitycentermanagement/samples/snippets/generated/com/google/cloud/securitycentermanagement/v1/securitycentermanagement/listdescendanteventthreatdetectioncustommodules/SyncListDescendantEventThreatDetectionCustomModulesString.java similarity index 100% rename from owl-bot-staging/java-securitycentermanagement/v1/samples/snippets/generated/com/google/cloud/securitycentermanagement/v1/securitycentermanagement/listdescendanteventthreatdetectioncustommodules/SyncListDescendantEventThreatDetectionCustomModulesString.java rename to java-securitycentermanagement/samples/snippets/generated/com/google/cloud/securitycentermanagement/v1/securitycentermanagement/listdescendanteventthreatdetectioncustommodules/SyncListDescendantEventThreatDetectionCustomModulesString.java diff --git a/owl-bot-staging/java-securitycentermanagement/v1/samples/snippets/generated/com/google/cloud/securitycentermanagement/v1/securitycentermanagement/listdescendantsecurityhealthanalyticscustommodules/AsyncListDescendantSecurityHealthAnalyticsCustomModules.java b/java-securitycentermanagement/samples/snippets/generated/com/google/cloud/securitycentermanagement/v1/securitycentermanagement/listdescendantsecurityhealthanalyticscustommodules/AsyncListDescendantSecurityHealthAnalyticsCustomModules.java similarity index 100% rename from owl-bot-staging/java-securitycentermanagement/v1/samples/snippets/generated/com/google/cloud/securitycentermanagement/v1/securitycentermanagement/listdescendantsecurityhealthanalyticscustommodules/AsyncListDescendantSecurityHealthAnalyticsCustomModules.java rename to java-securitycentermanagement/samples/snippets/generated/com/google/cloud/securitycentermanagement/v1/securitycentermanagement/listdescendantsecurityhealthanalyticscustommodules/AsyncListDescendantSecurityHealthAnalyticsCustomModules.java diff --git a/owl-bot-staging/java-securitycentermanagement/v1/samples/snippets/generated/com/google/cloud/securitycentermanagement/v1/securitycentermanagement/listdescendantsecurityhealthanalyticscustommodules/AsyncListDescendantSecurityHealthAnalyticsCustomModulesPaged.java b/java-securitycentermanagement/samples/snippets/generated/com/google/cloud/securitycentermanagement/v1/securitycentermanagement/listdescendantsecurityhealthanalyticscustommodules/AsyncListDescendantSecurityHealthAnalyticsCustomModulesPaged.java similarity index 100% rename from owl-bot-staging/java-securitycentermanagement/v1/samples/snippets/generated/com/google/cloud/securitycentermanagement/v1/securitycentermanagement/listdescendantsecurityhealthanalyticscustommodules/AsyncListDescendantSecurityHealthAnalyticsCustomModulesPaged.java rename to java-securitycentermanagement/samples/snippets/generated/com/google/cloud/securitycentermanagement/v1/securitycentermanagement/listdescendantsecurityhealthanalyticscustommodules/AsyncListDescendantSecurityHealthAnalyticsCustomModulesPaged.java diff --git a/owl-bot-staging/java-securitycentermanagement/v1/samples/snippets/generated/com/google/cloud/securitycentermanagement/v1/securitycentermanagement/listdescendantsecurityhealthanalyticscustommodules/SyncListDescendantSecurityHealthAnalyticsCustomModules.java b/java-securitycentermanagement/samples/snippets/generated/com/google/cloud/securitycentermanagement/v1/securitycentermanagement/listdescendantsecurityhealthanalyticscustommodules/SyncListDescendantSecurityHealthAnalyticsCustomModules.java similarity index 100% rename from owl-bot-staging/java-securitycentermanagement/v1/samples/snippets/generated/com/google/cloud/securitycentermanagement/v1/securitycentermanagement/listdescendantsecurityhealthanalyticscustommodules/SyncListDescendantSecurityHealthAnalyticsCustomModules.java rename to java-securitycentermanagement/samples/snippets/generated/com/google/cloud/securitycentermanagement/v1/securitycentermanagement/listdescendantsecurityhealthanalyticscustommodules/SyncListDescendantSecurityHealthAnalyticsCustomModules.java diff --git a/owl-bot-staging/java-securitycentermanagement/v1/samples/snippets/generated/com/google/cloud/securitycentermanagement/v1/securitycentermanagement/listdescendantsecurityhealthanalyticscustommodules/SyncListDescendantSecurityHealthAnalyticsCustomModulesFolderlocationname.java b/java-securitycentermanagement/samples/snippets/generated/com/google/cloud/securitycentermanagement/v1/securitycentermanagement/listdescendantsecurityhealthanalyticscustommodules/SyncListDescendantSecurityHealthAnalyticsCustomModulesFolderlocationname.java similarity index 100% rename from owl-bot-staging/java-securitycentermanagement/v1/samples/snippets/generated/com/google/cloud/securitycentermanagement/v1/securitycentermanagement/listdescendantsecurityhealthanalyticscustommodules/SyncListDescendantSecurityHealthAnalyticsCustomModulesFolderlocationname.java rename to java-securitycentermanagement/samples/snippets/generated/com/google/cloud/securitycentermanagement/v1/securitycentermanagement/listdescendantsecurityhealthanalyticscustommodules/SyncListDescendantSecurityHealthAnalyticsCustomModulesFolderlocationname.java diff --git a/owl-bot-staging/java-securitycentermanagement/v1/samples/snippets/generated/com/google/cloud/securitycentermanagement/v1/securitycentermanagement/listdescendantsecurityhealthanalyticscustommodules/SyncListDescendantSecurityHealthAnalyticsCustomModulesLocationname.java b/java-securitycentermanagement/samples/snippets/generated/com/google/cloud/securitycentermanagement/v1/securitycentermanagement/listdescendantsecurityhealthanalyticscustommodules/SyncListDescendantSecurityHealthAnalyticsCustomModulesLocationname.java similarity index 100% rename from owl-bot-staging/java-securitycentermanagement/v1/samples/snippets/generated/com/google/cloud/securitycentermanagement/v1/securitycentermanagement/listdescendantsecurityhealthanalyticscustommodules/SyncListDescendantSecurityHealthAnalyticsCustomModulesLocationname.java rename to java-securitycentermanagement/samples/snippets/generated/com/google/cloud/securitycentermanagement/v1/securitycentermanagement/listdescendantsecurityhealthanalyticscustommodules/SyncListDescendantSecurityHealthAnalyticsCustomModulesLocationname.java diff --git a/owl-bot-staging/java-securitycentermanagement/v1/samples/snippets/generated/com/google/cloud/securitycentermanagement/v1/securitycentermanagement/listdescendantsecurityhealthanalyticscustommodules/SyncListDescendantSecurityHealthAnalyticsCustomModulesOrganizationlocationname.java b/java-securitycentermanagement/samples/snippets/generated/com/google/cloud/securitycentermanagement/v1/securitycentermanagement/listdescendantsecurityhealthanalyticscustommodules/SyncListDescendantSecurityHealthAnalyticsCustomModulesOrganizationlocationname.java similarity index 100% rename from owl-bot-staging/java-securitycentermanagement/v1/samples/snippets/generated/com/google/cloud/securitycentermanagement/v1/securitycentermanagement/listdescendantsecurityhealthanalyticscustommodules/SyncListDescendantSecurityHealthAnalyticsCustomModulesOrganizationlocationname.java rename to java-securitycentermanagement/samples/snippets/generated/com/google/cloud/securitycentermanagement/v1/securitycentermanagement/listdescendantsecurityhealthanalyticscustommodules/SyncListDescendantSecurityHealthAnalyticsCustomModulesOrganizationlocationname.java diff --git a/owl-bot-staging/java-securitycentermanagement/v1/samples/snippets/generated/com/google/cloud/securitycentermanagement/v1/securitycentermanagement/listdescendantsecurityhealthanalyticscustommodules/SyncListDescendantSecurityHealthAnalyticsCustomModulesString.java b/java-securitycentermanagement/samples/snippets/generated/com/google/cloud/securitycentermanagement/v1/securitycentermanagement/listdescendantsecurityhealthanalyticscustommodules/SyncListDescendantSecurityHealthAnalyticsCustomModulesString.java similarity index 100% rename from owl-bot-staging/java-securitycentermanagement/v1/samples/snippets/generated/com/google/cloud/securitycentermanagement/v1/securitycentermanagement/listdescendantsecurityhealthanalyticscustommodules/SyncListDescendantSecurityHealthAnalyticsCustomModulesString.java rename to java-securitycentermanagement/samples/snippets/generated/com/google/cloud/securitycentermanagement/v1/securitycentermanagement/listdescendantsecurityhealthanalyticscustommodules/SyncListDescendantSecurityHealthAnalyticsCustomModulesString.java diff --git a/owl-bot-staging/java-securitycentermanagement/v1/samples/snippets/generated/com/google/cloud/securitycentermanagement/v1/securitycentermanagement/listeffectiveeventthreatdetectioncustommodules/AsyncListEffectiveEventThreatDetectionCustomModules.java b/java-securitycentermanagement/samples/snippets/generated/com/google/cloud/securitycentermanagement/v1/securitycentermanagement/listeffectiveeventthreatdetectioncustommodules/AsyncListEffectiveEventThreatDetectionCustomModules.java similarity index 100% rename from owl-bot-staging/java-securitycentermanagement/v1/samples/snippets/generated/com/google/cloud/securitycentermanagement/v1/securitycentermanagement/listeffectiveeventthreatdetectioncustommodules/AsyncListEffectiveEventThreatDetectionCustomModules.java rename to java-securitycentermanagement/samples/snippets/generated/com/google/cloud/securitycentermanagement/v1/securitycentermanagement/listeffectiveeventthreatdetectioncustommodules/AsyncListEffectiveEventThreatDetectionCustomModules.java diff --git a/owl-bot-staging/java-securitycentermanagement/v1/samples/snippets/generated/com/google/cloud/securitycentermanagement/v1/securitycentermanagement/listeffectiveeventthreatdetectioncustommodules/AsyncListEffectiveEventThreatDetectionCustomModulesPaged.java b/java-securitycentermanagement/samples/snippets/generated/com/google/cloud/securitycentermanagement/v1/securitycentermanagement/listeffectiveeventthreatdetectioncustommodules/AsyncListEffectiveEventThreatDetectionCustomModulesPaged.java similarity index 100% rename from owl-bot-staging/java-securitycentermanagement/v1/samples/snippets/generated/com/google/cloud/securitycentermanagement/v1/securitycentermanagement/listeffectiveeventthreatdetectioncustommodules/AsyncListEffectiveEventThreatDetectionCustomModulesPaged.java rename to java-securitycentermanagement/samples/snippets/generated/com/google/cloud/securitycentermanagement/v1/securitycentermanagement/listeffectiveeventthreatdetectioncustommodules/AsyncListEffectiveEventThreatDetectionCustomModulesPaged.java diff --git a/owl-bot-staging/java-securitycentermanagement/v1/samples/snippets/generated/com/google/cloud/securitycentermanagement/v1/securitycentermanagement/listeffectiveeventthreatdetectioncustommodules/SyncListEffectiveEventThreatDetectionCustomModules.java b/java-securitycentermanagement/samples/snippets/generated/com/google/cloud/securitycentermanagement/v1/securitycentermanagement/listeffectiveeventthreatdetectioncustommodules/SyncListEffectiveEventThreatDetectionCustomModules.java similarity index 100% rename from owl-bot-staging/java-securitycentermanagement/v1/samples/snippets/generated/com/google/cloud/securitycentermanagement/v1/securitycentermanagement/listeffectiveeventthreatdetectioncustommodules/SyncListEffectiveEventThreatDetectionCustomModules.java rename to java-securitycentermanagement/samples/snippets/generated/com/google/cloud/securitycentermanagement/v1/securitycentermanagement/listeffectiveeventthreatdetectioncustommodules/SyncListEffectiveEventThreatDetectionCustomModules.java diff --git a/owl-bot-staging/java-securitycentermanagement/v1/samples/snippets/generated/com/google/cloud/securitycentermanagement/v1/securitycentermanagement/listeffectiveeventthreatdetectioncustommodules/SyncListEffectiveEventThreatDetectionCustomModulesFolderlocationname.java b/java-securitycentermanagement/samples/snippets/generated/com/google/cloud/securitycentermanagement/v1/securitycentermanagement/listeffectiveeventthreatdetectioncustommodules/SyncListEffectiveEventThreatDetectionCustomModulesFolderlocationname.java similarity index 100% rename from owl-bot-staging/java-securitycentermanagement/v1/samples/snippets/generated/com/google/cloud/securitycentermanagement/v1/securitycentermanagement/listeffectiveeventthreatdetectioncustommodules/SyncListEffectiveEventThreatDetectionCustomModulesFolderlocationname.java rename to java-securitycentermanagement/samples/snippets/generated/com/google/cloud/securitycentermanagement/v1/securitycentermanagement/listeffectiveeventthreatdetectioncustommodules/SyncListEffectiveEventThreatDetectionCustomModulesFolderlocationname.java diff --git a/owl-bot-staging/java-securitycentermanagement/v1/samples/snippets/generated/com/google/cloud/securitycentermanagement/v1/securitycentermanagement/listeffectiveeventthreatdetectioncustommodules/SyncListEffectiveEventThreatDetectionCustomModulesLocationname.java b/java-securitycentermanagement/samples/snippets/generated/com/google/cloud/securitycentermanagement/v1/securitycentermanagement/listeffectiveeventthreatdetectioncustommodules/SyncListEffectiveEventThreatDetectionCustomModulesLocationname.java similarity index 100% rename from owl-bot-staging/java-securitycentermanagement/v1/samples/snippets/generated/com/google/cloud/securitycentermanagement/v1/securitycentermanagement/listeffectiveeventthreatdetectioncustommodules/SyncListEffectiveEventThreatDetectionCustomModulesLocationname.java rename to java-securitycentermanagement/samples/snippets/generated/com/google/cloud/securitycentermanagement/v1/securitycentermanagement/listeffectiveeventthreatdetectioncustommodules/SyncListEffectiveEventThreatDetectionCustomModulesLocationname.java diff --git a/owl-bot-staging/java-securitycentermanagement/v1/samples/snippets/generated/com/google/cloud/securitycentermanagement/v1/securitycentermanagement/listeffectiveeventthreatdetectioncustommodules/SyncListEffectiveEventThreatDetectionCustomModulesOrganizationlocationname.java b/java-securitycentermanagement/samples/snippets/generated/com/google/cloud/securitycentermanagement/v1/securitycentermanagement/listeffectiveeventthreatdetectioncustommodules/SyncListEffectiveEventThreatDetectionCustomModulesOrganizationlocationname.java similarity index 100% rename from owl-bot-staging/java-securitycentermanagement/v1/samples/snippets/generated/com/google/cloud/securitycentermanagement/v1/securitycentermanagement/listeffectiveeventthreatdetectioncustommodules/SyncListEffectiveEventThreatDetectionCustomModulesOrganizationlocationname.java rename to java-securitycentermanagement/samples/snippets/generated/com/google/cloud/securitycentermanagement/v1/securitycentermanagement/listeffectiveeventthreatdetectioncustommodules/SyncListEffectiveEventThreatDetectionCustomModulesOrganizationlocationname.java diff --git a/owl-bot-staging/java-securitycentermanagement/v1/samples/snippets/generated/com/google/cloud/securitycentermanagement/v1/securitycentermanagement/listeffectiveeventthreatdetectioncustommodules/SyncListEffectiveEventThreatDetectionCustomModulesString.java b/java-securitycentermanagement/samples/snippets/generated/com/google/cloud/securitycentermanagement/v1/securitycentermanagement/listeffectiveeventthreatdetectioncustommodules/SyncListEffectiveEventThreatDetectionCustomModulesString.java similarity index 100% rename from owl-bot-staging/java-securitycentermanagement/v1/samples/snippets/generated/com/google/cloud/securitycentermanagement/v1/securitycentermanagement/listeffectiveeventthreatdetectioncustommodules/SyncListEffectiveEventThreatDetectionCustomModulesString.java rename to java-securitycentermanagement/samples/snippets/generated/com/google/cloud/securitycentermanagement/v1/securitycentermanagement/listeffectiveeventthreatdetectioncustommodules/SyncListEffectiveEventThreatDetectionCustomModulesString.java diff --git a/owl-bot-staging/java-securitycentermanagement/v1/samples/snippets/generated/com/google/cloud/securitycentermanagement/v1/securitycentermanagement/listeffectivesecurityhealthanalyticscustommodules/AsyncListEffectiveSecurityHealthAnalyticsCustomModules.java b/java-securitycentermanagement/samples/snippets/generated/com/google/cloud/securitycentermanagement/v1/securitycentermanagement/listeffectivesecurityhealthanalyticscustommodules/AsyncListEffectiveSecurityHealthAnalyticsCustomModules.java similarity index 100% rename from owl-bot-staging/java-securitycentermanagement/v1/samples/snippets/generated/com/google/cloud/securitycentermanagement/v1/securitycentermanagement/listeffectivesecurityhealthanalyticscustommodules/AsyncListEffectiveSecurityHealthAnalyticsCustomModules.java rename to java-securitycentermanagement/samples/snippets/generated/com/google/cloud/securitycentermanagement/v1/securitycentermanagement/listeffectivesecurityhealthanalyticscustommodules/AsyncListEffectiveSecurityHealthAnalyticsCustomModules.java diff --git a/owl-bot-staging/java-securitycentermanagement/v1/samples/snippets/generated/com/google/cloud/securitycentermanagement/v1/securitycentermanagement/listeffectivesecurityhealthanalyticscustommodules/AsyncListEffectiveSecurityHealthAnalyticsCustomModulesPaged.java b/java-securitycentermanagement/samples/snippets/generated/com/google/cloud/securitycentermanagement/v1/securitycentermanagement/listeffectivesecurityhealthanalyticscustommodules/AsyncListEffectiveSecurityHealthAnalyticsCustomModulesPaged.java similarity index 100% rename from owl-bot-staging/java-securitycentermanagement/v1/samples/snippets/generated/com/google/cloud/securitycentermanagement/v1/securitycentermanagement/listeffectivesecurityhealthanalyticscustommodules/AsyncListEffectiveSecurityHealthAnalyticsCustomModulesPaged.java rename to java-securitycentermanagement/samples/snippets/generated/com/google/cloud/securitycentermanagement/v1/securitycentermanagement/listeffectivesecurityhealthanalyticscustommodules/AsyncListEffectiveSecurityHealthAnalyticsCustomModulesPaged.java diff --git a/owl-bot-staging/java-securitycentermanagement/v1/samples/snippets/generated/com/google/cloud/securitycentermanagement/v1/securitycentermanagement/listeffectivesecurityhealthanalyticscustommodules/SyncListEffectiveSecurityHealthAnalyticsCustomModules.java b/java-securitycentermanagement/samples/snippets/generated/com/google/cloud/securitycentermanagement/v1/securitycentermanagement/listeffectivesecurityhealthanalyticscustommodules/SyncListEffectiveSecurityHealthAnalyticsCustomModules.java similarity index 100% rename from owl-bot-staging/java-securitycentermanagement/v1/samples/snippets/generated/com/google/cloud/securitycentermanagement/v1/securitycentermanagement/listeffectivesecurityhealthanalyticscustommodules/SyncListEffectiveSecurityHealthAnalyticsCustomModules.java rename to java-securitycentermanagement/samples/snippets/generated/com/google/cloud/securitycentermanagement/v1/securitycentermanagement/listeffectivesecurityhealthanalyticscustommodules/SyncListEffectiveSecurityHealthAnalyticsCustomModules.java diff --git a/owl-bot-staging/java-securitycentermanagement/v1/samples/snippets/generated/com/google/cloud/securitycentermanagement/v1/securitycentermanagement/listeffectivesecurityhealthanalyticscustommodules/SyncListEffectiveSecurityHealthAnalyticsCustomModulesFolderlocationname.java b/java-securitycentermanagement/samples/snippets/generated/com/google/cloud/securitycentermanagement/v1/securitycentermanagement/listeffectivesecurityhealthanalyticscustommodules/SyncListEffectiveSecurityHealthAnalyticsCustomModulesFolderlocationname.java similarity index 100% rename from owl-bot-staging/java-securitycentermanagement/v1/samples/snippets/generated/com/google/cloud/securitycentermanagement/v1/securitycentermanagement/listeffectivesecurityhealthanalyticscustommodules/SyncListEffectiveSecurityHealthAnalyticsCustomModulesFolderlocationname.java rename to java-securitycentermanagement/samples/snippets/generated/com/google/cloud/securitycentermanagement/v1/securitycentermanagement/listeffectivesecurityhealthanalyticscustommodules/SyncListEffectiveSecurityHealthAnalyticsCustomModulesFolderlocationname.java diff --git a/owl-bot-staging/java-securitycentermanagement/v1/samples/snippets/generated/com/google/cloud/securitycentermanagement/v1/securitycentermanagement/listeffectivesecurityhealthanalyticscustommodules/SyncListEffectiveSecurityHealthAnalyticsCustomModulesLocationname.java b/java-securitycentermanagement/samples/snippets/generated/com/google/cloud/securitycentermanagement/v1/securitycentermanagement/listeffectivesecurityhealthanalyticscustommodules/SyncListEffectiveSecurityHealthAnalyticsCustomModulesLocationname.java similarity index 100% rename from owl-bot-staging/java-securitycentermanagement/v1/samples/snippets/generated/com/google/cloud/securitycentermanagement/v1/securitycentermanagement/listeffectivesecurityhealthanalyticscustommodules/SyncListEffectiveSecurityHealthAnalyticsCustomModulesLocationname.java rename to java-securitycentermanagement/samples/snippets/generated/com/google/cloud/securitycentermanagement/v1/securitycentermanagement/listeffectivesecurityhealthanalyticscustommodules/SyncListEffectiveSecurityHealthAnalyticsCustomModulesLocationname.java diff --git a/owl-bot-staging/java-securitycentermanagement/v1/samples/snippets/generated/com/google/cloud/securitycentermanagement/v1/securitycentermanagement/listeffectivesecurityhealthanalyticscustommodules/SyncListEffectiveSecurityHealthAnalyticsCustomModulesOrganizationlocationname.java b/java-securitycentermanagement/samples/snippets/generated/com/google/cloud/securitycentermanagement/v1/securitycentermanagement/listeffectivesecurityhealthanalyticscustommodules/SyncListEffectiveSecurityHealthAnalyticsCustomModulesOrganizationlocationname.java similarity index 100% rename from owl-bot-staging/java-securitycentermanagement/v1/samples/snippets/generated/com/google/cloud/securitycentermanagement/v1/securitycentermanagement/listeffectivesecurityhealthanalyticscustommodules/SyncListEffectiveSecurityHealthAnalyticsCustomModulesOrganizationlocationname.java rename to java-securitycentermanagement/samples/snippets/generated/com/google/cloud/securitycentermanagement/v1/securitycentermanagement/listeffectivesecurityhealthanalyticscustommodules/SyncListEffectiveSecurityHealthAnalyticsCustomModulesOrganizationlocationname.java diff --git a/owl-bot-staging/java-securitycentermanagement/v1/samples/snippets/generated/com/google/cloud/securitycentermanagement/v1/securitycentermanagement/listeffectivesecurityhealthanalyticscustommodules/SyncListEffectiveSecurityHealthAnalyticsCustomModulesString.java b/java-securitycentermanagement/samples/snippets/generated/com/google/cloud/securitycentermanagement/v1/securitycentermanagement/listeffectivesecurityhealthanalyticscustommodules/SyncListEffectiveSecurityHealthAnalyticsCustomModulesString.java similarity index 100% rename from owl-bot-staging/java-securitycentermanagement/v1/samples/snippets/generated/com/google/cloud/securitycentermanagement/v1/securitycentermanagement/listeffectivesecurityhealthanalyticscustommodules/SyncListEffectiveSecurityHealthAnalyticsCustomModulesString.java rename to java-securitycentermanagement/samples/snippets/generated/com/google/cloud/securitycentermanagement/v1/securitycentermanagement/listeffectivesecurityhealthanalyticscustommodules/SyncListEffectiveSecurityHealthAnalyticsCustomModulesString.java diff --git a/owl-bot-staging/java-securitycentermanagement/v1/samples/snippets/generated/com/google/cloud/securitycentermanagement/v1/securitycentermanagement/listeventthreatdetectioncustommodules/AsyncListEventThreatDetectionCustomModules.java b/java-securitycentermanagement/samples/snippets/generated/com/google/cloud/securitycentermanagement/v1/securitycentermanagement/listeventthreatdetectioncustommodules/AsyncListEventThreatDetectionCustomModules.java similarity index 100% rename from owl-bot-staging/java-securitycentermanagement/v1/samples/snippets/generated/com/google/cloud/securitycentermanagement/v1/securitycentermanagement/listeventthreatdetectioncustommodules/AsyncListEventThreatDetectionCustomModules.java rename to java-securitycentermanagement/samples/snippets/generated/com/google/cloud/securitycentermanagement/v1/securitycentermanagement/listeventthreatdetectioncustommodules/AsyncListEventThreatDetectionCustomModules.java diff --git a/owl-bot-staging/java-securitycentermanagement/v1/samples/snippets/generated/com/google/cloud/securitycentermanagement/v1/securitycentermanagement/listeventthreatdetectioncustommodules/AsyncListEventThreatDetectionCustomModulesPaged.java b/java-securitycentermanagement/samples/snippets/generated/com/google/cloud/securitycentermanagement/v1/securitycentermanagement/listeventthreatdetectioncustommodules/AsyncListEventThreatDetectionCustomModulesPaged.java similarity index 100% rename from owl-bot-staging/java-securitycentermanagement/v1/samples/snippets/generated/com/google/cloud/securitycentermanagement/v1/securitycentermanagement/listeventthreatdetectioncustommodules/AsyncListEventThreatDetectionCustomModulesPaged.java rename to java-securitycentermanagement/samples/snippets/generated/com/google/cloud/securitycentermanagement/v1/securitycentermanagement/listeventthreatdetectioncustommodules/AsyncListEventThreatDetectionCustomModulesPaged.java diff --git a/owl-bot-staging/java-securitycentermanagement/v1/samples/snippets/generated/com/google/cloud/securitycentermanagement/v1/securitycentermanagement/listeventthreatdetectioncustommodules/SyncListEventThreatDetectionCustomModules.java b/java-securitycentermanagement/samples/snippets/generated/com/google/cloud/securitycentermanagement/v1/securitycentermanagement/listeventthreatdetectioncustommodules/SyncListEventThreatDetectionCustomModules.java similarity index 100% rename from owl-bot-staging/java-securitycentermanagement/v1/samples/snippets/generated/com/google/cloud/securitycentermanagement/v1/securitycentermanagement/listeventthreatdetectioncustommodules/SyncListEventThreatDetectionCustomModules.java rename to java-securitycentermanagement/samples/snippets/generated/com/google/cloud/securitycentermanagement/v1/securitycentermanagement/listeventthreatdetectioncustommodules/SyncListEventThreatDetectionCustomModules.java diff --git a/owl-bot-staging/java-securitycentermanagement/v1/samples/snippets/generated/com/google/cloud/securitycentermanagement/v1/securitycentermanagement/listeventthreatdetectioncustommodules/SyncListEventThreatDetectionCustomModulesFolderlocationname.java b/java-securitycentermanagement/samples/snippets/generated/com/google/cloud/securitycentermanagement/v1/securitycentermanagement/listeventthreatdetectioncustommodules/SyncListEventThreatDetectionCustomModulesFolderlocationname.java similarity index 100% rename from owl-bot-staging/java-securitycentermanagement/v1/samples/snippets/generated/com/google/cloud/securitycentermanagement/v1/securitycentermanagement/listeventthreatdetectioncustommodules/SyncListEventThreatDetectionCustomModulesFolderlocationname.java rename to java-securitycentermanagement/samples/snippets/generated/com/google/cloud/securitycentermanagement/v1/securitycentermanagement/listeventthreatdetectioncustommodules/SyncListEventThreatDetectionCustomModulesFolderlocationname.java diff --git a/owl-bot-staging/java-securitycentermanagement/v1/samples/snippets/generated/com/google/cloud/securitycentermanagement/v1/securitycentermanagement/listeventthreatdetectioncustommodules/SyncListEventThreatDetectionCustomModulesLocationname.java b/java-securitycentermanagement/samples/snippets/generated/com/google/cloud/securitycentermanagement/v1/securitycentermanagement/listeventthreatdetectioncustommodules/SyncListEventThreatDetectionCustomModulesLocationname.java similarity index 100% rename from owl-bot-staging/java-securitycentermanagement/v1/samples/snippets/generated/com/google/cloud/securitycentermanagement/v1/securitycentermanagement/listeventthreatdetectioncustommodules/SyncListEventThreatDetectionCustomModulesLocationname.java rename to java-securitycentermanagement/samples/snippets/generated/com/google/cloud/securitycentermanagement/v1/securitycentermanagement/listeventthreatdetectioncustommodules/SyncListEventThreatDetectionCustomModulesLocationname.java diff --git a/owl-bot-staging/java-securitycentermanagement/v1/samples/snippets/generated/com/google/cloud/securitycentermanagement/v1/securitycentermanagement/listeventthreatdetectioncustommodules/SyncListEventThreatDetectionCustomModulesOrganizationlocationname.java b/java-securitycentermanagement/samples/snippets/generated/com/google/cloud/securitycentermanagement/v1/securitycentermanagement/listeventthreatdetectioncustommodules/SyncListEventThreatDetectionCustomModulesOrganizationlocationname.java similarity index 100% rename from owl-bot-staging/java-securitycentermanagement/v1/samples/snippets/generated/com/google/cloud/securitycentermanagement/v1/securitycentermanagement/listeventthreatdetectioncustommodules/SyncListEventThreatDetectionCustomModulesOrganizationlocationname.java rename to java-securitycentermanagement/samples/snippets/generated/com/google/cloud/securitycentermanagement/v1/securitycentermanagement/listeventthreatdetectioncustommodules/SyncListEventThreatDetectionCustomModulesOrganizationlocationname.java diff --git a/owl-bot-staging/java-securitycentermanagement/v1/samples/snippets/generated/com/google/cloud/securitycentermanagement/v1/securitycentermanagement/listeventthreatdetectioncustommodules/SyncListEventThreatDetectionCustomModulesString.java b/java-securitycentermanagement/samples/snippets/generated/com/google/cloud/securitycentermanagement/v1/securitycentermanagement/listeventthreatdetectioncustommodules/SyncListEventThreatDetectionCustomModulesString.java similarity index 100% rename from owl-bot-staging/java-securitycentermanagement/v1/samples/snippets/generated/com/google/cloud/securitycentermanagement/v1/securitycentermanagement/listeventthreatdetectioncustommodules/SyncListEventThreatDetectionCustomModulesString.java rename to java-securitycentermanagement/samples/snippets/generated/com/google/cloud/securitycentermanagement/v1/securitycentermanagement/listeventthreatdetectioncustommodules/SyncListEventThreatDetectionCustomModulesString.java diff --git a/owl-bot-staging/java-securitycentermanagement/v1/samples/snippets/generated/com/google/cloud/securitycentermanagement/v1/securitycentermanagement/listlocations/AsyncListLocations.java b/java-securitycentermanagement/samples/snippets/generated/com/google/cloud/securitycentermanagement/v1/securitycentermanagement/listlocations/AsyncListLocations.java similarity index 100% rename from owl-bot-staging/java-securitycentermanagement/v1/samples/snippets/generated/com/google/cloud/securitycentermanagement/v1/securitycentermanagement/listlocations/AsyncListLocations.java rename to java-securitycentermanagement/samples/snippets/generated/com/google/cloud/securitycentermanagement/v1/securitycentermanagement/listlocations/AsyncListLocations.java diff --git a/owl-bot-staging/java-securitycentermanagement/v1/samples/snippets/generated/com/google/cloud/securitycentermanagement/v1/securitycentermanagement/listlocations/AsyncListLocationsPaged.java b/java-securitycentermanagement/samples/snippets/generated/com/google/cloud/securitycentermanagement/v1/securitycentermanagement/listlocations/AsyncListLocationsPaged.java similarity index 100% rename from owl-bot-staging/java-securitycentermanagement/v1/samples/snippets/generated/com/google/cloud/securitycentermanagement/v1/securitycentermanagement/listlocations/AsyncListLocationsPaged.java rename to java-securitycentermanagement/samples/snippets/generated/com/google/cloud/securitycentermanagement/v1/securitycentermanagement/listlocations/AsyncListLocationsPaged.java diff --git a/owl-bot-staging/java-securitycentermanagement/v1/samples/snippets/generated/com/google/cloud/securitycentermanagement/v1/securitycentermanagement/listlocations/SyncListLocations.java b/java-securitycentermanagement/samples/snippets/generated/com/google/cloud/securitycentermanagement/v1/securitycentermanagement/listlocations/SyncListLocations.java similarity index 100% rename from owl-bot-staging/java-securitycentermanagement/v1/samples/snippets/generated/com/google/cloud/securitycentermanagement/v1/securitycentermanagement/listlocations/SyncListLocations.java rename to java-securitycentermanagement/samples/snippets/generated/com/google/cloud/securitycentermanagement/v1/securitycentermanagement/listlocations/SyncListLocations.java diff --git a/owl-bot-staging/java-securitycentermanagement/v1/samples/snippets/generated/com/google/cloud/securitycentermanagement/v1/securitycentermanagement/listsecurityhealthanalyticscustommodules/AsyncListSecurityHealthAnalyticsCustomModules.java b/java-securitycentermanagement/samples/snippets/generated/com/google/cloud/securitycentermanagement/v1/securitycentermanagement/listsecurityhealthanalyticscustommodules/AsyncListSecurityHealthAnalyticsCustomModules.java similarity index 100% rename from owl-bot-staging/java-securitycentermanagement/v1/samples/snippets/generated/com/google/cloud/securitycentermanagement/v1/securitycentermanagement/listsecurityhealthanalyticscustommodules/AsyncListSecurityHealthAnalyticsCustomModules.java rename to java-securitycentermanagement/samples/snippets/generated/com/google/cloud/securitycentermanagement/v1/securitycentermanagement/listsecurityhealthanalyticscustommodules/AsyncListSecurityHealthAnalyticsCustomModules.java diff --git a/owl-bot-staging/java-securitycentermanagement/v1/samples/snippets/generated/com/google/cloud/securitycentermanagement/v1/securitycentermanagement/listsecurityhealthanalyticscustommodules/AsyncListSecurityHealthAnalyticsCustomModulesPaged.java b/java-securitycentermanagement/samples/snippets/generated/com/google/cloud/securitycentermanagement/v1/securitycentermanagement/listsecurityhealthanalyticscustommodules/AsyncListSecurityHealthAnalyticsCustomModulesPaged.java similarity index 100% rename from owl-bot-staging/java-securitycentermanagement/v1/samples/snippets/generated/com/google/cloud/securitycentermanagement/v1/securitycentermanagement/listsecurityhealthanalyticscustommodules/AsyncListSecurityHealthAnalyticsCustomModulesPaged.java rename to java-securitycentermanagement/samples/snippets/generated/com/google/cloud/securitycentermanagement/v1/securitycentermanagement/listsecurityhealthanalyticscustommodules/AsyncListSecurityHealthAnalyticsCustomModulesPaged.java diff --git a/owl-bot-staging/java-securitycentermanagement/v1/samples/snippets/generated/com/google/cloud/securitycentermanagement/v1/securitycentermanagement/listsecurityhealthanalyticscustommodules/SyncListSecurityHealthAnalyticsCustomModules.java b/java-securitycentermanagement/samples/snippets/generated/com/google/cloud/securitycentermanagement/v1/securitycentermanagement/listsecurityhealthanalyticscustommodules/SyncListSecurityHealthAnalyticsCustomModules.java similarity index 100% rename from owl-bot-staging/java-securitycentermanagement/v1/samples/snippets/generated/com/google/cloud/securitycentermanagement/v1/securitycentermanagement/listsecurityhealthanalyticscustommodules/SyncListSecurityHealthAnalyticsCustomModules.java rename to java-securitycentermanagement/samples/snippets/generated/com/google/cloud/securitycentermanagement/v1/securitycentermanagement/listsecurityhealthanalyticscustommodules/SyncListSecurityHealthAnalyticsCustomModules.java diff --git a/owl-bot-staging/java-securitycentermanagement/v1/samples/snippets/generated/com/google/cloud/securitycentermanagement/v1/securitycentermanagement/listsecurityhealthanalyticscustommodules/SyncListSecurityHealthAnalyticsCustomModulesFolderlocationname.java b/java-securitycentermanagement/samples/snippets/generated/com/google/cloud/securitycentermanagement/v1/securitycentermanagement/listsecurityhealthanalyticscustommodules/SyncListSecurityHealthAnalyticsCustomModulesFolderlocationname.java similarity index 100% rename from owl-bot-staging/java-securitycentermanagement/v1/samples/snippets/generated/com/google/cloud/securitycentermanagement/v1/securitycentermanagement/listsecurityhealthanalyticscustommodules/SyncListSecurityHealthAnalyticsCustomModulesFolderlocationname.java rename to java-securitycentermanagement/samples/snippets/generated/com/google/cloud/securitycentermanagement/v1/securitycentermanagement/listsecurityhealthanalyticscustommodules/SyncListSecurityHealthAnalyticsCustomModulesFolderlocationname.java diff --git a/owl-bot-staging/java-securitycentermanagement/v1/samples/snippets/generated/com/google/cloud/securitycentermanagement/v1/securitycentermanagement/listsecurityhealthanalyticscustommodules/SyncListSecurityHealthAnalyticsCustomModulesLocationname.java b/java-securitycentermanagement/samples/snippets/generated/com/google/cloud/securitycentermanagement/v1/securitycentermanagement/listsecurityhealthanalyticscustommodules/SyncListSecurityHealthAnalyticsCustomModulesLocationname.java similarity index 100% rename from owl-bot-staging/java-securitycentermanagement/v1/samples/snippets/generated/com/google/cloud/securitycentermanagement/v1/securitycentermanagement/listsecurityhealthanalyticscustommodules/SyncListSecurityHealthAnalyticsCustomModulesLocationname.java rename to java-securitycentermanagement/samples/snippets/generated/com/google/cloud/securitycentermanagement/v1/securitycentermanagement/listsecurityhealthanalyticscustommodules/SyncListSecurityHealthAnalyticsCustomModulesLocationname.java diff --git a/owl-bot-staging/java-securitycentermanagement/v1/samples/snippets/generated/com/google/cloud/securitycentermanagement/v1/securitycentermanagement/listsecurityhealthanalyticscustommodules/SyncListSecurityHealthAnalyticsCustomModulesOrganizationlocationname.java b/java-securitycentermanagement/samples/snippets/generated/com/google/cloud/securitycentermanagement/v1/securitycentermanagement/listsecurityhealthanalyticscustommodules/SyncListSecurityHealthAnalyticsCustomModulesOrganizationlocationname.java similarity index 100% rename from owl-bot-staging/java-securitycentermanagement/v1/samples/snippets/generated/com/google/cloud/securitycentermanagement/v1/securitycentermanagement/listsecurityhealthanalyticscustommodules/SyncListSecurityHealthAnalyticsCustomModulesOrganizationlocationname.java rename to java-securitycentermanagement/samples/snippets/generated/com/google/cloud/securitycentermanagement/v1/securitycentermanagement/listsecurityhealthanalyticscustommodules/SyncListSecurityHealthAnalyticsCustomModulesOrganizationlocationname.java diff --git a/owl-bot-staging/java-securitycentermanagement/v1/samples/snippets/generated/com/google/cloud/securitycentermanagement/v1/securitycentermanagement/listsecurityhealthanalyticscustommodules/SyncListSecurityHealthAnalyticsCustomModulesString.java b/java-securitycentermanagement/samples/snippets/generated/com/google/cloud/securitycentermanagement/v1/securitycentermanagement/listsecurityhealthanalyticscustommodules/SyncListSecurityHealthAnalyticsCustomModulesString.java similarity index 100% rename from owl-bot-staging/java-securitycentermanagement/v1/samples/snippets/generated/com/google/cloud/securitycentermanagement/v1/securitycentermanagement/listsecurityhealthanalyticscustommodules/SyncListSecurityHealthAnalyticsCustomModulesString.java rename to java-securitycentermanagement/samples/snippets/generated/com/google/cloud/securitycentermanagement/v1/securitycentermanagement/listsecurityhealthanalyticscustommodules/SyncListSecurityHealthAnalyticsCustomModulesString.java diff --git a/owl-bot-staging/java-securitycentermanagement/v1/samples/snippets/generated/com/google/cloud/securitycentermanagement/v1/securitycentermanagement/simulatesecurityhealthanalyticscustommodule/AsyncSimulateSecurityHealthAnalyticsCustomModule.java b/java-securitycentermanagement/samples/snippets/generated/com/google/cloud/securitycentermanagement/v1/securitycentermanagement/simulatesecurityhealthanalyticscustommodule/AsyncSimulateSecurityHealthAnalyticsCustomModule.java similarity index 100% rename from owl-bot-staging/java-securitycentermanagement/v1/samples/snippets/generated/com/google/cloud/securitycentermanagement/v1/securitycentermanagement/simulatesecurityhealthanalyticscustommodule/AsyncSimulateSecurityHealthAnalyticsCustomModule.java rename to java-securitycentermanagement/samples/snippets/generated/com/google/cloud/securitycentermanagement/v1/securitycentermanagement/simulatesecurityhealthanalyticscustommodule/AsyncSimulateSecurityHealthAnalyticsCustomModule.java diff --git a/owl-bot-staging/java-securitycentermanagement/v1/samples/snippets/generated/com/google/cloud/securitycentermanagement/v1/securitycentermanagement/simulatesecurityhealthanalyticscustommodule/SyncSimulateSecurityHealthAnalyticsCustomModule.java b/java-securitycentermanagement/samples/snippets/generated/com/google/cloud/securitycentermanagement/v1/securitycentermanagement/simulatesecurityhealthanalyticscustommodule/SyncSimulateSecurityHealthAnalyticsCustomModule.java similarity index 100% rename from owl-bot-staging/java-securitycentermanagement/v1/samples/snippets/generated/com/google/cloud/securitycentermanagement/v1/securitycentermanagement/simulatesecurityhealthanalyticscustommodule/SyncSimulateSecurityHealthAnalyticsCustomModule.java rename to java-securitycentermanagement/samples/snippets/generated/com/google/cloud/securitycentermanagement/v1/securitycentermanagement/simulatesecurityhealthanalyticscustommodule/SyncSimulateSecurityHealthAnalyticsCustomModule.java diff --git a/owl-bot-staging/java-securitycentermanagement/v1/samples/snippets/generated/com/google/cloud/securitycentermanagement/v1/securitycentermanagement/simulatesecurityhealthanalyticscustommodule/SyncSimulateSecurityHealthAnalyticsCustomModuleStringCustomconfigSimulatesecurityhealthanalyticscustommodulerequestsimulatedresource.java b/java-securitycentermanagement/samples/snippets/generated/com/google/cloud/securitycentermanagement/v1/securitycentermanagement/simulatesecurityhealthanalyticscustommodule/SyncSimulateSecurityHealthAnalyticsCustomModuleStringCustomconfigSimulatesecurityhealthanalyticscustommodulerequestsimulatedresource.java similarity index 100% rename from owl-bot-staging/java-securitycentermanagement/v1/samples/snippets/generated/com/google/cloud/securitycentermanagement/v1/securitycentermanagement/simulatesecurityhealthanalyticscustommodule/SyncSimulateSecurityHealthAnalyticsCustomModuleStringCustomconfigSimulatesecurityhealthanalyticscustommodulerequestsimulatedresource.java rename to java-securitycentermanagement/samples/snippets/generated/com/google/cloud/securitycentermanagement/v1/securitycentermanagement/simulatesecurityhealthanalyticscustommodule/SyncSimulateSecurityHealthAnalyticsCustomModuleStringCustomconfigSimulatesecurityhealthanalyticscustommodulerequestsimulatedresource.java diff --git a/owl-bot-staging/java-securitycentermanagement/v1/samples/snippets/generated/com/google/cloud/securitycentermanagement/v1/securitycentermanagement/updateeventthreatdetectioncustommodule/AsyncUpdateEventThreatDetectionCustomModule.java b/java-securitycentermanagement/samples/snippets/generated/com/google/cloud/securitycentermanagement/v1/securitycentermanagement/updateeventthreatdetectioncustommodule/AsyncUpdateEventThreatDetectionCustomModule.java similarity index 100% rename from owl-bot-staging/java-securitycentermanagement/v1/samples/snippets/generated/com/google/cloud/securitycentermanagement/v1/securitycentermanagement/updateeventthreatdetectioncustommodule/AsyncUpdateEventThreatDetectionCustomModule.java rename to java-securitycentermanagement/samples/snippets/generated/com/google/cloud/securitycentermanagement/v1/securitycentermanagement/updateeventthreatdetectioncustommodule/AsyncUpdateEventThreatDetectionCustomModule.java diff --git a/owl-bot-staging/java-securitycentermanagement/v1/samples/snippets/generated/com/google/cloud/securitycentermanagement/v1/securitycentermanagement/updateeventthreatdetectioncustommodule/SyncUpdateEventThreatDetectionCustomModule.java b/java-securitycentermanagement/samples/snippets/generated/com/google/cloud/securitycentermanagement/v1/securitycentermanagement/updateeventthreatdetectioncustommodule/SyncUpdateEventThreatDetectionCustomModule.java similarity index 100% rename from owl-bot-staging/java-securitycentermanagement/v1/samples/snippets/generated/com/google/cloud/securitycentermanagement/v1/securitycentermanagement/updateeventthreatdetectioncustommodule/SyncUpdateEventThreatDetectionCustomModule.java rename to java-securitycentermanagement/samples/snippets/generated/com/google/cloud/securitycentermanagement/v1/securitycentermanagement/updateeventthreatdetectioncustommodule/SyncUpdateEventThreatDetectionCustomModule.java diff --git a/owl-bot-staging/java-securitycentermanagement/v1/samples/snippets/generated/com/google/cloud/securitycentermanagement/v1/securitycentermanagement/updateeventthreatdetectioncustommodule/SyncUpdateEventThreatDetectionCustomModuleEventthreatdetectioncustommoduleFieldmask.java b/java-securitycentermanagement/samples/snippets/generated/com/google/cloud/securitycentermanagement/v1/securitycentermanagement/updateeventthreatdetectioncustommodule/SyncUpdateEventThreatDetectionCustomModuleEventthreatdetectioncustommoduleFieldmask.java similarity index 100% rename from owl-bot-staging/java-securitycentermanagement/v1/samples/snippets/generated/com/google/cloud/securitycentermanagement/v1/securitycentermanagement/updateeventthreatdetectioncustommodule/SyncUpdateEventThreatDetectionCustomModuleEventthreatdetectioncustommoduleFieldmask.java rename to java-securitycentermanagement/samples/snippets/generated/com/google/cloud/securitycentermanagement/v1/securitycentermanagement/updateeventthreatdetectioncustommodule/SyncUpdateEventThreatDetectionCustomModuleEventthreatdetectioncustommoduleFieldmask.java diff --git a/owl-bot-staging/java-securitycentermanagement/v1/samples/snippets/generated/com/google/cloud/securitycentermanagement/v1/securitycentermanagement/updatesecurityhealthanalyticscustommodule/AsyncUpdateSecurityHealthAnalyticsCustomModule.java b/java-securitycentermanagement/samples/snippets/generated/com/google/cloud/securitycentermanagement/v1/securitycentermanagement/updatesecurityhealthanalyticscustommodule/AsyncUpdateSecurityHealthAnalyticsCustomModule.java similarity index 100% rename from owl-bot-staging/java-securitycentermanagement/v1/samples/snippets/generated/com/google/cloud/securitycentermanagement/v1/securitycentermanagement/updatesecurityhealthanalyticscustommodule/AsyncUpdateSecurityHealthAnalyticsCustomModule.java rename to java-securitycentermanagement/samples/snippets/generated/com/google/cloud/securitycentermanagement/v1/securitycentermanagement/updatesecurityhealthanalyticscustommodule/AsyncUpdateSecurityHealthAnalyticsCustomModule.java diff --git a/owl-bot-staging/java-securitycentermanagement/v1/samples/snippets/generated/com/google/cloud/securitycentermanagement/v1/securitycentermanagement/updatesecurityhealthanalyticscustommodule/SyncUpdateSecurityHealthAnalyticsCustomModule.java b/java-securitycentermanagement/samples/snippets/generated/com/google/cloud/securitycentermanagement/v1/securitycentermanagement/updatesecurityhealthanalyticscustommodule/SyncUpdateSecurityHealthAnalyticsCustomModule.java similarity index 100% rename from owl-bot-staging/java-securitycentermanagement/v1/samples/snippets/generated/com/google/cloud/securitycentermanagement/v1/securitycentermanagement/updatesecurityhealthanalyticscustommodule/SyncUpdateSecurityHealthAnalyticsCustomModule.java rename to java-securitycentermanagement/samples/snippets/generated/com/google/cloud/securitycentermanagement/v1/securitycentermanagement/updatesecurityhealthanalyticscustommodule/SyncUpdateSecurityHealthAnalyticsCustomModule.java diff --git a/owl-bot-staging/java-securitycentermanagement/v1/samples/snippets/generated/com/google/cloud/securitycentermanagement/v1/securitycentermanagement/updatesecurityhealthanalyticscustommodule/SyncUpdateSecurityHealthAnalyticsCustomModuleSecurityhealthanalyticscustommoduleFieldmask.java b/java-securitycentermanagement/samples/snippets/generated/com/google/cloud/securitycentermanagement/v1/securitycentermanagement/updatesecurityhealthanalyticscustommodule/SyncUpdateSecurityHealthAnalyticsCustomModuleSecurityhealthanalyticscustommoduleFieldmask.java similarity index 100% rename from owl-bot-staging/java-securitycentermanagement/v1/samples/snippets/generated/com/google/cloud/securitycentermanagement/v1/securitycentermanagement/updatesecurityhealthanalyticscustommodule/SyncUpdateSecurityHealthAnalyticsCustomModuleSecurityhealthanalyticscustommoduleFieldmask.java rename to java-securitycentermanagement/samples/snippets/generated/com/google/cloud/securitycentermanagement/v1/securitycentermanagement/updatesecurityhealthanalyticscustommodule/SyncUpdateSecurityHealthAnalyticsCustomModuleSecurityhealthanalyticscustommoduleFieldmask.java diff --git a/owl-bot-staging/java-securitycentermanagement/v1/samples/snippets/generated/com/google/cloud/securitycentermanagement/v1/securitycentermanagement/validateeventthreatdetectioncustommodule/AsyncValidateEventThreatDetectionCustomModule.java b/java-securitycentermanagement/samples/snippets/generated/com/google/cloud/securitycentermanagement/v1/securitycentermanagement/validateeventthreatdetectioncustommodule/AsyncValidateEventThreatDetectionCustomModule.java similarity index 100% rename from owl-bot-staging/java-securitycentermanagement/v1/samples/snippets/generated/com/google/cloud/securitycentermanagement/v1/securitycentermanagement/validateeventthreatdetectioncustommodule/AsyncValidateEventThreatDetectionCustomModule.java rename to java-securitycentermanagement/samples/snippets/generated/com/google/cloud/securitycentermanagement/v1/securitycentermanagement/validateeventthreatdetectioncustommodule/AsyncValidateEventThreatDetectionCustomModule.java diff --git a/owl-bot-staging/java-securitycentermanagement/v1/samples/snippets/generated/com/google/cloud/securitycentermanagement/v1/securitycentermanagement/validateeventthreatdetectioncustommodule/SyncValidateEventThreatDetectionCustomModule.java b/java-securitycentermanagement/samples/snippets/generated/com/google/cloud/securitycentermanagement/v1/securitycentermanagement/validateeventthreatdetectioncustommodule/SyncValidateEventThreatDetectionCustomModule.java similarity index 100% rename from owl-bot-staging/java-securitycentermanagement/v1/samples/snippets/generated/com/google/cloud/securitycentermanagement/v1/securitycentermanagement/validateeventthreatdetectioncustommodule/SyncValidateEventThreatDetectionCustomModule.java rename to java-securitycentermanagement/samples/snippets/generated/com/google/cloud/securitycentermanagement/v1/securitycentermanagement/validateeventthreatdetectioncustommodule/SyncValidateEventThreatDetectionCustomModule.java diff --git a/owl-bot-staging/java-securitycentermanagement/v1/samples/snippets/generated/com/google/cloud/securitycentermanagement/v1/securitycentermanagementsettings/geteffectivesecurityhealthanalyticscustommodule/SyncGetEffectiveSecurityHealthAnalyticsCustomModule.java b/java-securitycentermanagement/samples/snippets/generated/com/google/cloud/securitycentermanagement/v1/securitycentermanagementsettings/geteffectivesecurityhealthanalyticscustommodule/SyncGetEffectiveSecurityHealthAnalyticsCustomModule.java similarity index 100% rename from owl-bot-staging/java-securitycentermanagement/v1/samples/snippets/generated/com/google/cloud/securitycentermanagement/v1/securitycentermanagementsettings/geteffectivesecurityhealthanalyticscustommodule/SyncGetEffectiveSecurityHealthAnalyticsCustomModule.java rename to java-securitycentermanagement/samples/snippets/generated/com/google/cloud/securitycentermanagement/v1/securitycentermanagementsettings/geteffectivesecurityhealthanalyticscustommodule/SyncGetEffectiveSecurityHealthAnalyticsCustomModule.java diff --git a/owl-bot-staging/java-securitycentermanagement/v1/samples/snippets/generated/com/google/cloud/securitycentermanagement/v1/stub/securitycentermanagementstubsettings/geteffectivesecurityhealthanalyticscustommodule/SyncGetEffectiveSecurityHealthAnalyticsCustomModule.java b/java-securitycentermanagement/samples/snippets/generated/com/google/cloud/securitycentermanagement/v1/stub/securitycentermanagementstubsettings/geteffectivesecurityhealthanalyticscustommodule/SyncGetEffectiveSecurityHealthAnalyticsCustomModule.java similarity index 100% rename from owl-bot-staging/java-securitycentermanagement/v1/samples/snippets/generated/com/google/cloud/securitycentermanagement/v1/stub/securitycentermanagementstubsettings/geteffectivesecurityhealthanalyticscustommodule/SyncGetEffectiveSecurityHealthAnalyticsCustomModule.java rename to java-securitycentermanagement/samples/snippets/generated/com/google/cloud/securitycentermanagement/v1/stub/securitycentermanagementstubsettings/geteffectivesecurityhealthanalyticscustommodule/SyncGetEffectiveSecurityHealthAnalyticsCustomModule.java diff --git a/owl-bot-staging/java-securitycentermanagement/v1/grpc-google-cloud-securitycentermanagement-v1/src/main/java/com/google/cloud/securitycentermanagement/v1/SecurityCenterManagementGrpc.java b/owl-bot-staging/java-securitycentermanagement/v1/grpc-google-cloud-securitycentermanagement-v1/src/main/java/com/google/cloud/securitycentermanagement/v1/SecurityCenterManagementGrpc.java deleted file mode 100644 index 4728c1a73894..000000000000 --- a/owl-bot-staging/java-securitycentermanagement/v1/grpc-google-cloud-securitycentermanagement-v1/src/main/java/com/google/cloud/securitycentermanagement/v1/SecurityCenterManagementGrpc.java +++ /dev/null @@ -1,1929 +0,0 @@ -package com.google.cloud.securitycentermanagement.v1; - -import static io.grpc.MethodDescriptor.generateFullMethodName; - -/** - *
- * Service describing handlers for resources
- * 
- */ -@javax.annotation.Generated( - value = "by gRPC proto compiler", - comments = "Source: google/cloud/securitycentermanagement/v1/security_center_management.proto") -@io.grpc.stub.annotations.GrpcGenerated -public final class SecurityCenterManagementGrpc { - - private SecurityCenterManagementGrpc() {} - - public static final java.lang.String SERVICE_NAME = "google.cloud.securitycentermanagement.v1.SecurityCenterManagement"; - - // Static method descriptors that strictly reflect the proto. - private static volatile io.grpc.MethodDescriptor getListEffectiveSecurityHealthAnalyticsCustomModulesMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "ListEffectiveSecurityHealthAnalyticsCustomModules", - requestType = com.google.cloud.securitycentermanagement.v1.ListEffectiveSecurityHealthAnalyticsCustomModulesRequest.class, - responseType = com.google.cloud.securitycentermanagement.v1.ListEffectiveSecurityHealthAnalyticsCustomModulesResponse.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getListEffectiveSecurityHealthAnalyticsCustomModulesMethod() { - io.grpc.MethodDescriptor getListEffectiveSecurityHealthAnalyticsCustomModulesMethod; - if ((getListEffectiveSecurityHealthAnalyticsCustomModulesMethod = SecurityCenterManagementGrpc.getListEffectiveSecurityHealthAnalyticsCustomModulesMethod) == null) { - synchronized (SecurityCenterManagementGrpc.class) { - if ((getListEffectiveSecurityHealthAnalyticsCustomModulesMethod = SecurityCenterManagementGrpc.getListEffectiveSecurityHealthAnalyticsCustomModulesMethod) == null) { - SecurityCenterManagementGrpc.getListEffectiveSecurityHealthAnalyticsCustomModulesMethod = getListEffectiveSecurityHealthAnalyticsCustomModulesMethod = - io.grpc.MethodDescriptor.newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "ListEffectiveSecurityHealthAnalyticsCustomModules")) - .setSampledToLocalTracing(true) - .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.securitycentermanagement.v1.ListEffectiveSecurityHealthAnalyticsCustomModulesRequest.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.securitycentermanagement.v1.ListEffectiveSecurityHealthAnalyticsCustomModulesResponse.getDefaultInstance())) - .setSchemaDescriptor(new SecurityCenterManagementMethodDescriptorSupplier("ListEffectiveSecurityHealthAnalyticsCustomModules")) - .build(); - } - } - } - return getListEffectiveSecurityHealthAnalyticsCustomModulesMethod; - } - - private static volatile io.grpc.MethodDescriptor getGetEffectiveSecurityHealthAnalyticsCustomModuleMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "GetEffectiveSecurityHealthAnalyticsCustomModule", - requestType = com.google.cloud.securitycentermanagement.v1.GetEffectiveSecurityHealthAnalyticsCustomModuleRequest.class, - responseType = com.google.cloud.securitycentermanagement.v1.EffectiveSecurityHealthAnalyticsCustomModule.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getGetEffectiveSecurityHealthAnalyticsCustomModuleMethod() { - io.grpc.MethodDescriptor getGetEffectiveSecurityHealthAnalyticsCustomModuleMethod; - if ((getGetEffectiveSecurityHealthAnalyticsCustomModuleMethod = SecurityCenterManagementGrpc.getGetEffectiveSecurityHealthAnalyticsCustomModuleMethod) == null) { - synchronized (SecurityCenterManagementGrpc.class) { - if ((getGetEffectiveSecurityHealthAnalyticsCustomModuleMethod = SecurityCenterManagementGrpc.getGetEffectiveSecurityHealthAnalyticsCustomModuleMethod) == null) { - SecurityCenterManagementGrpc.getGetEffectiveSecurityHealthAnalyticsCustomModuleMethod = getGetEffectiveSecurityHealthAnalyticsCustomModuleMethod = - io.grpc.MethodDescriptor.newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetEffectiveSecurityHealthAnalyticsCustomModule")) - .setSampledToLocalTracing(true) - .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.securitycentermanagement.v1.GetEffectiveSecurityHealthAnalyticsCustomModuleRequest.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.securitycentermanagement.v1.EffectiveSecurityHealthAnalyticsCustomModule.getDefaultInstance())) - .setSchemaDescriptor(new SecurityCenterManagementMethodDescriptorSupplier("GetEffectiveSecurityHealthAnalyticsCustomModule")) - .build(); - } - } - } - return getGetEffectiveSecurityHealthAnalyticsCustomModuleMethod; - } - - private static volatile io.grpc.MethodDescriptor getListSecurityHealthAnalyticsCustomModulesMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "ListSecurityHealthAnalyticsCustomModules", - requestType = com.google.cloud.securitycentermanagement.v1.ListSecurityHealthAnalyticsCustomModulesRequest.class, - responseType = com.google.cloud.securitycentermanagement.v1.ListSecurityHealthAnalyticsCustomModulesResponse.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getListSecurityHealthAnalyticsCustomModulesMethod() { - io.grpc.MethodDescriptor getListSecurityHealthAnalyticsCustomModulesMethod; - if ((getListSecurityHealthAnalyticsCustomModulesMethod = SecurityCenterManagementGrpc.getListSecurityHealthAnalyticsCustomModulesMethod) == null) { - synchronized (SecurityCenterManagementGrpc.class) { - if ((getListSecurityHealthAnalyticsCustomModulesMethod = SecurityCenterManagementGrpc.getListSecurityHealthAnalyticsCustomModulesMethod) == null) { - SecurityCenterManagementGrpc.getListSecurityHealthAnalyticsCustomModulesMethod = getListSecurityHealthAnalyticsCustomModulesMethod = - io.grpc.MethodDescriptor.newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "ListSecurityHealthAnalyticsCustomModules")) - .setSampledToLocalTracing(true) - .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.securitycentermanagement.v1.ListSecurityHealthAnalyticsCustomModulesRequest.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.securitycentermanagement.v1.ListSecurityHealthAnalyticsCustomModulesResponse.getDefaultInstance())) - .setSchemaDescriptor(new SecurityCenterManagementMethodDescriptorSupplier("ListSecurityHealthAnalyticsCustomModules")) - .build(); - } - } - } - return getListSecurityHealthAnalyticsCustomModulesMethod; - } - - private static volatile io.grpc.MethodDescriptor getListDescendantSecurityHealthAnalyticsCustomModulesMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "ListDescendantSecurityHealthAnalyticsCustomModules", - requestType = com.google.cloud.securitycentermanagement.v1.ListDescendantSecurityHealthAnalyticsCustomModulesRequest.class, - responseType = com.google.cloud.securitycentermanagement.v1.ListDescendantSecurityHealthAnalyticsCustomModulesResponse.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getListDescendantSecurityHealthAnalyticsCustomModulesMethod() { - io.grpc.MethodDescriptor getListDescendantSecurityHealthAnalyticsCustomModulesMethod; - if ((getListDescendantSecurityHealthAnalyticsCustomModulesMethod = SecurityCenterManagementGrpc.getListDescendantSecurityHealthAnalyticsCustomModulesMethod) == null) { - synchronized (SecurityCenterManagementGrpc.class) { - if ((getListDescendantSecurityHealthAnalyticsCustomModulesMethod = SecurityCenterManagementGrpc.getListDescendantSecurityHealthAnalyticsCustomModulesMethod) == null) { - SecurityCenterManagementGrpc.getListDescendantSecurityHealthAnalyticsCustomModulesMethod = getListDescendantSecurityHealthAnalyticsCustomModulesMethod = - io.grpc.MethodDescriptor.newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "ListDescendantSecurityHealthAnalyticsCustomModules")) - .setSampledToLocalTracing(true) - .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.securitycentermanagement.v1.ListDescendantSecurityHealthAnalyticsCustomModulesRequest.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.securitycentermanagement.v1.ListDescendantSecurityHealthAnalyticsCustomModulesResponse.getDefaultInstance())) - .setSchemaDescriptor(new SecurityCenterManagementMethodDescriptorSupplier("ListDescendantSecurityHealthAnalyticsCustomModules")) - .build(); - } - } - } - return getListDescendantSecurityHealthAnalyticsCustomModulesMethod; - } - - private static volatile io.grpc.MethodDescriptor getGetSecurityHealthAnalyticsCustomModuleMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "GetSecurityHealthAnalyticsCustomModule", - requestType = com.google.cloud.securitycentermanagement.v1.GetSecurityHealthAnalyticsCustomModuleRequest.class, - responseType = com.google.cloud.securitycentermanagement.v1.SecurityHealthAnalyticsCustomModule.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getGetSecurityHealthAnalyticsCustomModuleMethod() { - io.grpc.MethodDescriptor getGetSecurityHealthAnalyticsCustomModuleMethod; - if ((getGetSecurityHealthAnalyticsCustomModuleMethod = SecurityCenterManagementGrpc.getGetSecurityHealthAnalyticsCustomModuleMethod) == null) { - synchronized (SecurityCenterManagementGrpc.class) { - if ((getGetSecurityHealthAnalyticsCustomModuleMethod = SecurityCenterManagementGrpc.getGetSecurityHealthAnalyticsCustomModuleMethod) == null) { - SecurityCenterManagementGrpc.getGetSecurityHealthAnalyticsCustomModuleMethod = getGetSecurityHealthAnalyticsCustomModuleMethod = - io.grpc.MethodDescriptor.newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetSecurityHealthAnalyticsCustomModule")) - .setSampledToLocalTracing(true) - .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.securitycentermanagement.v1.GetSecurityHealthAnalyticsCustomModuleRequest.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.securitycentermanagement.v1.SecurityHealthAnalyticsCustomModule.getDefaultInstance())) - .setSchemaDescriptor(new SecurityCenterManagementMethodDescriptorSupplier("GetSecurityHealthAnalyticsCustomModule")) - .build(); - } - } - } - return getGetSecurityHealthAnalyticsCustomModuleMethod; - } - - private static volatile io.grpc.MethodDescriptor getCreateSecurityHealthAnalyticsCustomModuleMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "CreateSecurityHealthAnalyticsCustomModule", - requestType = com.google.cloud.securitycentermanagement.v1.CreateSecurityHealthAnalyticsCustomModuleRequest.class, - responseType = com.google.cloud.securitycentermanagement.v1.SecurityHealthAnalyticsCustomModule.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getCreateSecurityHealthAnalyticsCustomModuleMethod() { - io.grpc.MethodDescriptor getCreateSecurityHealthAnalyticsCustomModuleMethod; - if ((getCreateSecurityHealthAnalyticsCustomModuleMethod = SecurityCenterManagementGrpc.getCreateSecurityHealthAnalyticsCustomModuleMethod) == null) { - synchronized (SecurityCenterManagementGrpc.class) { - if ((getCreateSecurityHealthAnalyticsCustomModuleMethod = SecurityCenterManagementGrpc.getCreateSecurityHealthAnalyticsCustomModuleMethod) == null) { - SecurityCenterManagementGrpc.getCreateSecurityHealthAnalyticsCustomModuleMethod = getCreateSecurityHealthAnalyticsCustomModuleMethod = - io.grpc.MethodDescriptor.newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "CreateSecurityHealthAnalyticsCustomModule")) - .setSampledToLocalTracing(true) - .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.securitycentermanagement.v1.CreateSecurityHealthAnalyticsCustomModuleRequest.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.securitycentermanagement.v1.SecurityHealthAnalyticsCustomModule.getDefaultInstance())) - .setSchemaDescriptor(new SecurityCenterManagementMethodDescriptorSupplier("CreateSecurityHealthAnalyticsCustomModule")) - .build(); - } - } - } - return getCreateSecurityHealthAnalyticsCustomModuleMethod; - } - - private static volatile io.grpc.MethodDescriptor getUpdateSecurityHealthAnalyticsCustomModuleMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "UpdateSecurityHealthAnalyticsCustomModule", - requestType = com.google.cloud.securitycentermanagement.v1.UpdateSecurityHealthAnalyticsCustomModuleRequest.class, - responseType = com.google.cloud.securitycentermanagement.v1.SecurityHealthAnalyticsCustomModule.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getUpdateSecurityHealthAnalyticsCustomModuleMethod() { - io.grpc.MethodDescriptor getUpdateSecurityHealthAnalyticsCustomModuleMethod; - if ((getUpdateSecurityHealthAnalyticsCustomModuleMethod = SecurityCenterManagementGrpc.getUpdateSecurityHealthAnalyticsCustomModuleMethod) == null) { - synchronized (SecurityCenterManagementGrpc.class) { - if ((getUpdateSecurityHealthAnalyticsCustomModuleMethod = SecurityCenterManagementGrpc.getUpdateSecurityHealthAnalyticsCustomModuleMethod) == null) { - SecurityCenterManagementGrpc.getUpdateSecurityHealthAnalyticsCustomModuleMethod = getUpdateSecurityHealthAnalyticsCustomModuleMethod = - io.grpc.MethodDescriptor.newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "UpdateSecurityHealthAnalyticsCustomModule")) - .setSampledToLocalTracing(true) - .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.securitycentermanagement.v1.UpdateSecurityHealthAnalyticsCustomModuleRequest.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.securitycentermanagement.v1.SecurityHealthAnalyticsCustomModule.getDefaultInstance())) - .setSchemaDescriptor(new SecurityCenterManagementMethodDescriptorSupplier("UpdateSecurityHealthAnalyticsCustomModule")) - .build(); - } - } - } - return getUpdateSecurityHealthAnalyticsCustomModuleMethod; - } - - private static volatile io.grpc.MethodDescriptor getDeleteSecurityHealthAnalyticsCustomModuleMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "DeleteSecurityHealthAnalyticsCustomModule", - requestType = com.google.cloud.securitycentermanagement.v1.DeleteSecurityHealthAnalyticsCustomModuleRequest.class, - responseType = com.google.protobuf.Empty.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getDeleteSecurityHealthAnalyticsCustomModuleMethod() { - io.grpc.MethodDescriptor getDeleteSecurityHealthAnalyticsCustomModuleMethod; - if ((getDeleteSecurityHealthAnalyticsCustomModuleMethod = SecurityCenterManagementGrpc.getDeleteSecurityHealthAnalyticsCustomModuleMethod) == null) { - synchronized (SecurityCenterManagementGrpc.class) { - if ((getDeleteSecurityHealthAnalyticsCustomModuleMethod = SecurityCenterManagementGrpc.getDeleteSecurityHealthAnalyticsCustomModuleMethod) == null) { - SecurityCenterManagementGrpc.getDeleteSecurityHealthAnalyticsCustomModuleMethod = getDeleteSecurityHealthAnalyticsCustomModuleMethod = - io.grpc.MethodDescriptor.newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "DeleteSecurityHealthAnalyticsCustomModule")) - .setSampledToLocalTracing(true) - .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.securitycentermanagement.v1.DeleteSecurityHealthAnalyticsCustomModuleRequest.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.protobuf.Empty.getDefaultInstance())) - .setSchemaDescriptor(new SecurityCenterManagementMethodDescriptorSupplier("DeleteSecurityHealthAnalyticsCustomModule")) - .build(); - } - } - } - return getDeleteSecurityHealthAnalyticsCustomModuleMethod; - } - - private static volatile io.grpc.MethodDescriptor getSimulateSecurityHealthAnalyticsCustomModuleMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "SimulateSecurityHealthAnalyticsCustomModule", - requestType = com.google.cloud.securitycentermanagement.v1.SimulateSecurityHealthAnalyticsCustomModuleRequest.class, - responseType = com.google.cloud.securitycentermanagement.v1.SimulateSecurityHealthAnalyticsCustomModuleResponse.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getSimulateSecurityHealthAnalyticsCustomModuleMethod() { - io.grpc.MethodDescriptor getSimulateSecurityHealthAnalyticsCustomModuleMethod; - if ((getSimulateSecurityHealthAnalyticsCustomModuleMethod = SecurityCenterManagementGrpc.getSimulateSecurityHealthAnalyticsCustomModuleMethod) == null) { - synchronized (SecurityCenterManagementGrpc.class) { - if ((getSimulateSecurityHealthAnalyticsCustomModuleMethod = SecurityCenterManagementGrpc.getSimulateSecurityHealthAnalyticsCustomModuleMethod) == null) { - SecurityCenterManagementGrpc.getSimulateSecurityHealthAnalyticsCustomModuleMethod = getSimulateSecurityHealthAnalyticsCustomModuleMethod = - io.grpc.MethodDescriptor.newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "SimulateSecurityHealthAnalyticsCustomModule")) - .setSampledToLocalTracing(true) - .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.securitycentermanagement.v1.SimulateSecurityHealthAnalyticsCustomModuleRequest.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.securitycentermanagement.v1.SimulateSecurityHealthAnalyticsCustomModuleResponse.getDefaultInstance())) - .setSchemaDescriptor(new SecurityCenterManagementMethodDescriptorSupplier("SimulateSecurityHealthAnalyticsCustomModule")) - .build(); - } - } - } - return getSimulateSecurityHealthAnalyticsCustomModuleMethod; - } - - private static volatile io.grpc.MethodDescriptor getListEffectiveEventThreatDetectionCustomModulesMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "ListEffectiveEventThreatDetectionCustomModules", - requestType = com.google.cloud.securitycentermanagement.v1.ListEffectiveEventThreatDetectionCustomModulesRequest.class, - responseType = com.google.cloud.securitycentermanagement.v1.ListEffectiveEventThreatDetectionCustomModulesResponse.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getListEffectiveEventThreatDetectionCustomModulesMethod() { - io.grpc.MethodDescriptor getListEffectiveEventThreatDetectionCustomModulesMethod; - if ((getListEffectiveEventThreatDetectionCustomModulesMethod = SecurityCenterManagementGrpc.getListEffectiveEventThreatDetectionCustomModulesMethod) == null) { - synchronized (SecurityCenterManagementGrpc.class) { - if ((getListEffectiveEventThreatDetectionCustomModulesMethod = SecurityCenterManagementGrpc.getListEffectiveEventThreatDetectionCustomModulesMethod) == null) { - SecurityCenterManagementGrpc.getListEffectiveEventThreatDetectionCustomModulesMethod = getListEffectiveEventThreatDetectionCustomModulesMethod = - io.grpc.MethodDescriptor.newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "ListEffectiveEventThreatDetectionCustomModules")) - .setSampledToLocalTracing(true) - .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.securitycentermanagement.v1.ListEffectiveEventThreatDetectionCustomModulesRequest.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.securitycentermanagement.v1.ListEffectiveEventThreatDetectionCustomModulesResponse.getDefaultInstance())) - .setSchemaDescriptor(new SecurityCenterManagementMethodDescriptorSupplier("ListEffectiveEventThreatDetectionCustomModules")) - .build(); - } - } - } - return getListEffectiveEventThreatDetectionCustomModulesMethod; - } - - private static volatile io.grpc.MethodDescriptor getGetEffectiveEventThreatDetectionCustomModuleMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "GetEffectiveEventThreatDetectionCustomModule", - requestType = com.google.cloud.securitycentermanagement.v1.GetEffectiveEventThreatDetectionCustomModuleRequest.class, - responseType = com.google.cloud.securitycentermanagement.v1.EffectiveEventThreatDetectionCustomModule.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getGetEffectiveEventThreatDetectionCustomModuleMethod() { - io.grpc.MethodDescriptor getGetEffectiveEventThreatDetectionCustomModuleMethod; - if ((getGetEffectiveEventThreatDetectionCustomModuleMethod = SecurityCenterManagementGrpc.getGetEffectiveEventThreatDetectionCustomModuleMethod) == null) { - synchronized (SecurityCenterManagementGrpc.class) { - if ((getGetEffectiveEventThreatDetectionCustomModuleMethod = SecurityCenterManagementGrpc.getGetEffectiveEventThreatDetectionCustomModuleMethod) == null) { - SecurityCenterManagementGrpc.getGetEffectiveEventThreatDetectionCustomModuleMethod = getGetEffectiveEventThreatDetectionCustomModuleMethod = - io.grpc.MethodDescriptor.newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetEffectiveEventThreatDetectionCustomModule")) - .setSampledToLocalTracing(true) - .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.securitycentermanagement.v1.GetEffectiveEventThreatDetectionCustomModuleRequest.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.securitycentermanagement.v1.EffectiveEventThreatDetectionCustomModule.getDefaultInstance())) - .setSchemaDescriptor(new SecurityCenterManagementMethodDescriptorSupplier("GetEffectiveEventThreatDetectionCustomModule")) - .build(); - } - } - } - return getGetEffectiveEventThreatDetectionCustomModuleMethod; - } - - private static volatile io.grpc.MethodDescriptor getListEventThreatDetectionCustomModulesMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "ListEventThreatDetectionCustomModules", - requestType = com.google.cloud.securitycentermanagement.v1.ListEventThreatDetectionCustomModulesRequest.class, - responseType = com.google.cloud.securitycentermanagement.v1.ListEventThreatDetectionCustomModulesResponse.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getListEventThreatDetectionCustomModulesMethod() { - io.grpc.MethodDescriptor getListEventThreatDetectionCustomModulesMethod; - if ((getListEventThreatDetectionCustomModulesMethod = SecurityCenterManagementGrpc.getListEventThreatDetectionCustomModulesMethod) == null) { - synchronized (SecurityCenterManagementGrpc.class) { - if ((getListEventThreatDetectionCustomModulesMethod = SecurityCenterManagementGrpc.getListEventThreatDetectionCustomModulesMethod) == null) { - SecurityCenterManagementGrpc.getListEventThreatDetectionCustomModulesMethod = getListEventThreatDetectionCustomModulesMethod = - io.grpc.MethodDescriptor.newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "ListEventThreatDetectionCustomModules")) - .setSampledToLocalTracing(true) - .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.securitycentermanagement.v1.ListEventThreatDetectionCustomModulesRequest.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.securitycentermanagement.v1.ListEventThreatDetectionCustomModulesResponse.getDefaultInstance())) - .setSchemaDescriptor(new SecurityCenterManagementMethodDescriptorSupplier("ListEventThreatDetectionCustomModules")) - .build(); - } - } - } - return getListEventThreatDetectionCustomModulesMethod; - } - - private static volatile io.grpc.MethodDescriptor getListDescendantEventThreatDetectionCustomModulesMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "ListDescendantEventThreatDetectionCustomModules", - requestType = com.google.cloud.securitycentermanagement.v1.ListDescendantEventThreatDetectionCustomModulesRequest.class, - responseType = com.google.cloud.securitycentermanagement.v1.ListDescendantEventThreatDetectionCustomModulesResponse.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getListDescendantEventThreatDetectionCustomModulesMethod() { - io.grpc.MethodDescriptor getListDescendantEventThreatDetectionCustomModulesMethod; - if ((getListDescendantEventThreatDetectionCustomModulesMethod = SecurityCenterManagementGrpc.getListDescendantEventThreatDetectionCustomModulesMethod) == null) { - synchronized (SecurityCenterManagementGrpc.class) { - if ((getListDescendantEventThreatDetectionCustomModulesMethod = SecurityCenterManagementGrpc.getListDescendantEventThreatDetectionCustomModulesMethod) == null) { - SecurityCenterManagementGrpc.getListDescendantEventThreatDetectionCustomModulesMethod = getListDescendantEventThreatDetectionCustomModulesMethod = - io.grpc.MethodDescriptor.newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "ListDescendantEventThreatDetectionCustomModules")) - .setSampledToLocalTracing(true) - .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.securitycentermanagement.v1.ListDescendantEventThreatDetectionCustomModulesRequest.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.securitycentermanagement.v1.ListDescendantEventThreatDetectionCustomModulesResponse.getDefaultInstance())) - .setSchemaDescriptor(new SecurityCenterManagementMethodDescriptorSupplier("ListDescendantEventThreatDetectionCustomModules")) - .build(); - } - } - } - return getListDescendantEventThreatDetectionCustomModulesMethod; - } - - private static volatile io.grpc.MethodDescriptor getGetEventThreatDetectionCustomModuleMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "GetEventThreatDetectionCustomModule", - requestType = com.google.cloud.securitycentermanagement.v1.GetEventThreatDetectionCustomModuleRequest.class, - responseType = com.google.cloud.securitycentermanagement.v1.EventThreatDetectionCustomModule.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getGetEventThreatDetectionCustomModuleMethod() { - io.grpc.MethodDescriptor getGetEventThreatDetectionCustomModuleMethod; - if ((getGetEventThreatDetectionCustomModuleMethod = SecurityCenterManagementGrpc.getGetEventThreatDetectionCustomModuleMethod) == null) { - synchronized (SecurityCenterManagementGrpc.class) { - if ((getGetEventThreatDetectionCustomModuleMethod = SecurityCenterManagementGrpc.getGetEventThreatDetectionCustomModuleMethod) == null) { - SecurityCenterManagementGrpc.getGetEventThreatDetectionCustomModuleMethod = getGetEventThreatDetectionCustomModuleMethod = - io.grpc.MethodDescriptor.newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetEventThreatDetectionCustomModule")) - .setSampledToLocalTracing(true) - .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.securitycentermanagement.v1.GetEventThreatDetectionCustomModuleRequest.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.securitycentermanagement.v1.EventThreatDetectionCustomModule.getDefaultInstance())) - .setSchemaDescriptor(new SecurityCenterManagementMethodDescriptorSupplier("GetEventThreatDetectionCustomModule")) - .build(); - } - } - } - return getGetEventThreatDetectionCustomModuleMethod; - } - - private static volatile io.grpc.MethodDescriptor getCreateEventThreatDetectionCustomModuleMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "CreateEventThreatDetectionCustomModule", - requestType = com.google.cloud.securitycentermanagement.v1.CreateEventThreatDetectionCustomModuleRequest.class, - responseType = com.google.cloud.securitycentermanagement.v1.EventThreatDetectionCustomModule.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getCreateEventThreatDetectionCustomModuleMethod() { - io.grpc.MethodDescriptor getCreateEventThreatDetectionCustomModuleMethod; - if ((getCreateEventThreatDetectionCustomModuleMethod = SecurityCenterManagementGrpc.getCreateEventThreatDetectionCustomModuleMethod) == null) { - synchronized (SecurityCenterManagementGrpc.class) { - if ((getCreateEventThreatDetectionCustomModuleMethod = SecurityCenterManagementGrpc.getCreateEventThreatDetectionCustomModuleMethod) == null) { - SecurityCenterManagementGrpc.getCreateEventThreatDetectionCustomModuleMethod = getCreateEventThreatDetectionCustomModuleMethod = - io.grpc.MethodDescriptor.newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "CreateEventThreatDetectionCustomModule")) - .setSampledToLocalTracing(true) - .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.securitycentermanagement.v1.CreateEventThreatDetectionCustomModuleRequest.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.securitycentermanagement.v1.EventThreatDetectionCustomModule.getDefaultInstance())) - .setSchemaDescriptor(new SecurityCenterManagementMethodDescriptorSupplier("CreateEventThreatDetectionCustomModule")) - .build(); - } - } - } - return getCreateEventThreatDetectionCustomModuleMethod; - } - - private static volatile io.grpc.MethodDescriptor getUpdateEventThreatDetectionCustomModuleMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "UpdateEventThreatDetectionCustomModule", - requestType = com.google.cloud.securitycentermanagement.v1.UpdateEventThreatDetectionCustomModuleRequest.class, - responseType = com.google.cloud.securitycentermanagement.v1.EventThreatDetectionCustomModule.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getUpdateEventThreatDetectionCustomModuleMethod() { - io.grpc.MethodDescriptor getUpdateEventThreatDetectionCustomModuleMethod; - if ((getUpdateEventThreatDetectionCustomModuleMethod = SecurityCenterManagementGrpc.getUpdateEventThreatDetectionCustomModuleMethod) == null) { - synchronized (SecurityCenterManagementGrpc.class) { - if ((getUpdateEventThreatDetectionCustomModuleMethod = SecurityCenterManagementGrpc.getUpdateEventThreatDetectionCustomModuleMethod) == null) { - SecurityCenterManagementGrpc.getUpdateEventThreatDetectionCustomModuleMethod = getUpdateEventThreatDetectionCustomModuleMethod = - io.grpc.MethodDescriptor.newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "UpdateEventThreatDetectionCustomModule")) - .setSampledToLocalTracing(true) - .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.securitycentermanagement.v1.UpdateEventThreatDetectionCustomModuleRequest.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.securitycentermanagement.v1.EventThreatDetectionCustomModule.getDefaultInstance())) - .setSchemaDescriptor(new SecurityCenterManagementMethodDescriptorSupplier("UpdateEventThreatDetectionCustomModule")) - .build(); - } - } - } - return getUpdateEventThreatDetectionCustomModuleMethod; - } - - private static volatile io.grpc.MethodDescriptor getDeleteEventThreatDetectionCustomModuleMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "DeleteEventThreatDetectionCustomModule", - requestType = com.google.cloud.securitycentermanagement.v1.DeleteEventThreatDetectionCustomModuleRequest.class, - responseType = com.google.protobuf.Empty.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getDeleteEventThreatDetectionCustomModuleMethod() { - io.grpc.MethodDescriptor getDeleteEventThreatDetectionCustomModuleMethod; - if ((getDeleteEventThreatDetectionCustomModuleMethod = SecurityCenterManagementGrpc.getDeleteEventThreatDetectionCustomModuleMethod) == null) { - synchronized (SecurityCenterManagementGrpc.class) { - if ((getDeleteEventThreatDetectionCustomModuleMethod = SecurityCenterManagementGrpc.getDeleteEventThreatDetectionCustomModuleMethod) == null) { - SecurityCenterManagementGrpc.getDeleteEventThreatDetectionCustomModuleMethod = getDeleteEventThreatDetectionCustomModuleMethod = - io.grpc.MethodDescriptor.newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "DeleteEventThreatDetectionCustomModule")) - .setSampledToLocalTracing(true) - .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.securitycentermanagement.v1.DeleteEventThreatDetectionCustomModuleRequest.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.protobuf.Empty.getDefaultInstance())) - .setSchemaDescriptor(new SecurityCenterManagementMethodDescriptorSupplier("DeleteEventThreatDetectionCustomModule")) - .build(); - } - } - } - return getDeleteEventThreatDetectionCustomModuleMethod; - } - - private static volatile io.grpc.MethodDescriptor getValidateEventThreatDetectionCustomModuleMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "ValidateEventThreatDetectionCustomModule", - requestType = com.google.cloud.securitycentermanagement.v1.ValidateEventThreatDetectionCustomModuleRequest.class, - responseType = com.google.cloud.securitycentermanagement.v1.ValidateEventThreatDetectionCustomModuleResponse.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getValidateEventThreatDetectionCustomModuleMethod() { - io.grpc.MethodDescriptor getValidateEventThreatDetectionCustomModuleMethod; - if ((getValidateEventThreatDetectionCustomModuleMethod = SecurityCenterManagementGrpc.getValidateEventThreatDetectionCustomModuleMethod) == null) { - synchronized (SecurityCenterManagementGrpc.class) { - if ((getValidateEventThreatDetectionCustomModuleMethod = SecurityCenterManagementGrpc.getValidateEventThreatDetectionCustomModuleMethod) == null) { - SecurityCenterManagementGrpc.getValidateEventThreatDetectionCustomModuleMethod = getValidateEventThreatDetectionCustomModuleMethod = - io.grpc.MethodDescriptor.newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "ValidateEventThreatDetectionCustomModule")) - .setSampledToLocalTracing(true) - .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.securitycentermanagement.v1.ValidateEventThreatDetectionCustomModuleRequest.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.securitycentermanagement.v1.ValidateEventThreatDetectionCustomModuleResponse.getDefaultInstance())) - .setSchemaDescriptor(new SecurityCenterManagementMethodDescriptorSupplier("ValidateEventThreatDetectionCustomModule")) - .build(); - } - } - } - return getValidateEventThreatDetectionCustomModuleMethod; - } - - /** - * Creates a new async stub that supports all call types for the service - */ - public static SecurityCenterManagementStub newStub(io.grpc.Channel channel) { - io.grpc.stub.AbstractStub.StubFactory factory = - new io.grpc.stub.AbstractStub.StubFactory() { - @java.lang.Override - public SecurityCenterManagementStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new SecurityCenterManagementStub(channel, callOptions); - } - }; - return SecurityCenterManagementStub.newStub(factory, channel); - } - - /** - * Creates a new blocking-style stub that supports unary and streaming output calls on the service - */ - public static SecurityCenterManagementBlockingStub newBlockingStub( - io.grpc.Channel channel) { - io.grpc.stub.AbstractStub.StubFactory factory = - new io.grpc.stub.AbstractStub.StubFactory() { - @java.lang.Override - public SecurityCenterManagementBlockingStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new SecurityCenterManagementBlockingStub(channel, callOptions); - } - }; - return SecurityCenterManagementBlockingStub.newStub(factory, channel); - } - - /** - * Creates a new ListenableFuture-style stub that supports unary calls on the service - */ - public static SecurityCenterManagementFutureStub newFutureStub( - io.grpc.Channel channel) { - io.grpc.stub.AbstractStub.StubFactory factory = - new io.grpc.stub.AbstractStub.StubFactory() { - @java.lang.Override - public SecurityCenterManagementFutureStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new SecurityCenterManagementFutureStub(channel, callOptions); - } - }; - return SecurityCenterManagementFutureStub.newStub(factory, channel); - } - - /** - *
-   * Service describing handlers for resources
-   * 
- */ - public interface AsyncService { - - /** - *
-     * Returns a list of all EffectiveSecurityHealthAnalyticsCustomModules for the
-     * given parent. This includes resident modules defined at the scope of the
-     * parent, and inherited modules, inherited from CRM ancestors (no
-     * descendants).
-     * 
- */ - default void listEffectiveSecurityHealthAnalyticsCustomModules(com.google.cloud.securitycentermanagement.v1.ListEffectiveSecurityHealthAnalyticsCustomModulesRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getListEffectiveSecurityHealthAnalyticsCustomModulesMethod(), responseObserver); - } - - /** - *
-     * Gets details of a single EffectiveSecurityHealthAnalyticsCustomModule.
-     * 
- */ - default void getEffectiveSecurityHealthAnalyticsCustomModule(com.google.cloud.securitycentermanagement.v1.GetEffectiveSecurityHealthAnalyticsCustomModuleRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getGetEffectiveSecurityHealthAnalyticsCustomModuleMethod(), responseObserver); - } - - /** - *
-     * Returns a list of all SecurityHealthAnalyticsCustomModules for the given
-     * parent. This includes resident modules defined at the scope of the parent,
-     * and inherited modules, inherited from CRM ancestors (no descendants).
-     * 
- */ - default void listSecurityHealthAnalyticsCustomModules(com.google.cloud.securitycentermanagement.v1.ListSecurityHealthAnalyticsCustomModulesRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getListSecurityHealthAnalyticsCustomModulesMethod(), responseObserver); - } - - /** - *
-     * Returns a list of all resident SecurityHealthAnalyticsCustomModules under
-     * the given CRM parent and all of the parent’s CRM descendants.
-     * 
- */ - default void listDescendantSecurityHealthAnalyticsCustomModules(com.google.cloud.securitycentermanagement.v1.ListDescendantSecurityHealthAnalyticsCustomModulesRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getListDescendantSecurityHealthAnalyticsCustomModulesMethod(), responseObserver); - } - - /** - *
-     * Retrieves a SecurityHealthAnalyticsCustomModule.
-     * 
- */ - default void getSecurityHealthAnalyticsCustomModule(com.google.cloud.securitycentermanagement.v1.GetSecurityHealthAnalyticsCustomModuleRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getGetSecurityHealthAnalyticsCustomModuleMethod(), responseObserver); - } - - /** - *
-     * Creates a resident SecurityHealthAnalyticsCustomModule at the scope of the
-     * given CRM parent, and also creates inherited
-     * SecurityHealthAnalyticsCustomModules for all CRM descendants of the given
-     * parent. These modules are enabled by default.
-     * 
- */ - default void createSecurityHealthAnalyticsCustomModule(com.google.cloud.securitycentermanagement.v1.CreateSecurityHealthAnalyticsCustomModuleRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getCreateSecurityHealthAnalyticsCustomModuleMethod(), responseObserver); - } - - /** - *
-     * Updates the SecurityHealthAnalyticsCustomModule under the given name based
-     * on the given update mask. Updating the enablement state is supported on
-     * both resident and inherited modules (though resident modules cannot have an
-     * enablement state of "inherited"). Updating the display name and custom
-     * config of a module is supported on resident modules only.
-     * 
- */ - default void updateSecurityHealthAnalyticsCustomModule(com.google.cloud.securitycentermanagement.v1.UpdateSecurityHealthAnalyticsCustomModuleRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getUpdateSecurityHealthAnalyticsCustomModuleMethod(), responseObserver); - } - - /** - *
-     * Deletes the specified SecurityHealthAnalyticsCustomModule and all of its
-     * descendants in the CRM hierarchy. This method is only supported for
-     * resident custom modules.
-     * 
- */ - default void deleteSecurityHealthAnalyticsCustomModule(com.google.cloud.securitycentermanagement.v1.DeleteSecurityHealthAnalyticsCustomModuleRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getDeleteSecurityHealthAnalyticsCustomModuleMethod(), responseObserver); - } - - /** - *
-     * Simulates a given SecurityHealthAnalyticsCustomModule and Resource.
-     * 
- */ - default void simulateSecurityHealthAnalyticsCustomModule(com.google.cloud.securitycentermanagement.v1.SimulateSecurityHealthAnalyticsCustomModuleRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getSimulateSecurityHealthAnalyticsCustomModuleMethod(), responseObserver); - } - - /** - *
-     * Lists all effective Event Threat Detection custom modules for the
-     * given parent. This includes resident modules defined at the scope of the
-     * parent along with modules inherited from its ancestors.
-     * 
- */ - default void listEffectiveEventThreatDetectionCustomModules(com.google.cloud.securitycentermanagement.v1.ListEffectiveEventThreatDetectionCustomModulesRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getListEffectiveEventThreatDetectionCustomModulesMethod(), responseObserver); - } - - /** - *
-     * Gets an effective ETD custom module. Retrieves the effective module at the
-     * given level. The difference between an EffectiveCustomModule and a
-     * CustomModule is that the fields for an EffectiveCustomModule are computed
-     * from ancestors if needed. For example, the enablement_state for a
-     * CustomModule can be either ENABLED, DISABLED, or INHERITED. Where as the
-     * enablement_state for an EffectiveCustomModule is always computed to ENABLED
-     * or DISABLED (the effective enablement_state).
-     * 
- */ - default void getEffectiveEventThreatDetectionCustomModule(com.google.cloud.securitycentermanagement.v1.GetEffectiveEventThreatDetectionCustomModuleRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getGetEffectiveEventThreatDetectionCustomModuleMethod(), responseObserver); - } - - /** - *
-     * Lists all Event Threat Detection custom modules for the given
-     * Resource Manager parent. This includes resident modules defined at the
-     * scope of the parent along with modules inherited from ancestors.
-     * 
- */ - default void listEventThreatDetectionCustomModules(com.google.cloud.securitycentermanagement.v1.ListEventThreatDetectionCustomModulesRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getListEventThreatDetectionCustomModulesMethod(), responseObserver); - } - - /** - *
-     * Lists all resident Event Threat Detection custom modules under the
-     * given Resource Manager parent and its descendants.
-     * 
- */ - default void listDescendantEventThreatDetectionCustomModules(com.google.cloud.securitycentermanagement.v1.ListDescendantEventThreatDetectionCustomModulesRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getListDescendantEventThreatDetectionCustomModulesMethod(), responseObserver); - } - - /** - *
-     * Gets an Event Threat Detection custom module.
-     * 
- */ - default void getEventThreatDetectionCustomModule(com.google.cloud.securitycentermanagement.v1.GetEventThreatDetectionCustomModuleRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getGetEventThreatDetectionCustomModuleMethod(), responseObserver); - } - - /** - *
-     * Creates a resident Event Threat Detection custom module at the scope of the
-     * given Resource Manager parent, and also creates inherited custom modules
-     * for all descendants of the given parent. These modules are enabled by
-     * default.
-     * 
- */ - default void createEventThreatDetectionCustomModule(com.google.cloud.securitycentermanagement.v1.CreateEventThreatDetectionCustomModuleRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getCreateEventThreatDetectionCustomModuleMethod(), responseObserver); - } - - /** - *
-     * Updates the Event Threat Detection custom module with the given name based
-     * on the given update mask. Updating the enablement state is supported for
-     * both resident and inherited modules (though resident modules cannot have an
-     * enablement state of "inherited"). Updating the display name or
-     * configuration of a module is supported for resident modules only. The type
-     * of a module cannot be changed.
-     * 
- */ - default void updateEventThreatDetectionCustomModule(com.google.cloud.securitycentermanagement.v1.UpdateEventThreatDetectionCustomModuleRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getUpdateEventThreatDetectionCustomModuleMethod(), responseObserver); - } - - /** - *
-     * Deletes the specified Event Threat Detection custom module and all of its
-     * descendants in the Resource Manager hierarchy. This method is only
-     * supported for resident custom modules.
-     * 
- */ - default void deleteEventThreatDetectionCustomModule(com.google.cloud.securitycentermanagement.v1.DeleteEventThreatDetectionCustomModuleRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getDeleteEventThreatDetectionCustomModuleMethod(), responseObserver); - } - - /** - *
-     * Validates the given Event Threat Detection custom module.
-     * 
- */ - default void validateEventThreatDetectionCustomModule(com.google.cloud.securitycentermanagement.v1.ValidateEventThreatDetectionCustomModuleRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getValidateEventThreatDetectionCustomModuleMethod(), responseObserver); - } - } - - /** - * Base class for the server implementation of the service SecurityCenterManagement. - *
-   * Service describing handlers for resources
-   * 
- */ - public static abstract class SecurityCenterManagementImplBase - implements io.grpc.BindableService, AsyncService { - - @java.lang.Override public final io.grpc.ServerServiceDefinition bindService() { - return SecurityCenterManagementGrpc.bindService(this); - } - } - - /** - * A stub to allow clients to do asynchronous rpc calls to service SecurityCenterManagement. - *
-   * Service describing handlers for resources
-   * 
- */ - public static final class SecurityCenterManagementStub - extends io.grpc.stub.AbstractAsyncStub { - private SecurityCenterManagementStub( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - super(channel, callOptions); - } - - @java.lang.Override - protected SecurityCenterManagementStub build( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new SecurityCenterManagementStub(channel, callOptions); - } - - /** - *
-     * Returns a list of all EffectiveSecurityHealthAnalyticsCustomModules for the
-     * given parent. This includes resident modules defined at the scope of the
-     * parent, and inherited modules, inherited from CRM ancestors (no
-     * descendants).
-     * 
- */ - public void listEffectiveSecurityHealthAnalyticsCustomModules(com.google.cloud.securitycentermanagement.v1.ListEffectiveSecurityHealthAnalyticsCustomModulesRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getListEffectiveSecurityHealthAnalyticsCustomModulesMethod(), getCallOptions()), request, responseObserver); - } - - /** - *
-     * Gets details of a single EffectiveSecurityHealthAnalyticsCustomModule.
-     * 
- */ - public void getEffectiveSecurityHealthAnalyticsCustomModule(com.google.cloud.securitycentermanagement.v1.GetEffectiveSecurityHealthAnalyticsCustomModuleRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getGetEffectiveSecurityHealthAnalyticsCustomModuleMethod(), getCallOptions()), request, responseObserver); - } - - /** - *
-     * Returns a list of all SecurityHealthAnalyticsCustomModules for the given
-     * parent. This includes resident modules defined at the scope of the parent,
-     * and inherited modules, inherited from CRM ancestors (no descendants).
-     * 
- */ - public void listSecurityHealthAnalyticsCustomModules(com.google.cloud.securitycentermanagement.v1.ListSecurityHealthAnalyticsCustomModulesRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getListSecurityHealthAnalyticsCustomModulesMethod(), getCallOptions()), request, responseObserver); - } - - /** - *
-     * Returns a list of all resident SecurityHealthAnalyticsCustomModules under
-     * the given CRM parent and all of the parent’s CRM descendants.
-     * 
- */ - public void listDescendantSecurityHealthAnalyticsCustomModules(com.google.cloud.securitycentermanagement.v1.ListDescendantSecurityHealthAnalyticsCustomModulesRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getListDescendantSecurityHealthAnalyticsCustomModulesMethod(), getCallOptions()), request, responseObserver); - } - - /** - *
-     * Retrieves a SecurityHealthAnalyticsCustomModule.
-     * 
- */ - public void getSecurityHealthAnalyticsCustomModule(com.google.cloud.securitycentermanagement.v1.GetSecurityHealthAnalyticsCustomModuleRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getGetSecurityHealthAnalyticsCustomModuleMethod(), getCallOptions()), request, responseObserver); - } - - /** - *
-     * Creates a resident SecurityHealthAnalyticsCustomModule at the scope of the
-     * given CRM parent, and also creates inherited
-     * SecurityHealthAnalyticsCustomModules for all CRM descendants of the given
-     * parent. These modules are enabled by default.
-     * 
- */ - public void createSecurityHealthAnalyticsCustomModule(com.google.cloud.securitycentermanagement.v1.CreateSecurityHealthAnalyticsCustomModuleRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getCreateSecurityHealthAnalyticsCustomModuleMethod(), getCallOptions()), request, responseObserver); - } - - /** - *
-     * Updates the SecurityHealthAnalyticsCustomModule under the given name based
-     * on the given update mask. Updating the enablement state is supported on
-     * both resident and inherited modules (though resident modules cannot have an
-     * enablement state of "inherited"). Updating the display name and custom
-     * config of a module is supported on resident modules only.
-     * 
- */ - public void updateSecurityHealthAnalyticsCustomModule(com.google.cloud.securitycentermanagement.v1.UpdateSecurityHealthAnalyticsCustomModuleRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getUpdateSecurityHealthAnalyticsCustomModuleMethod(), getCallOptions()), request, responseObserver); - } - - /** - *
-     * Deletes the specified SecurityHealthAnalyticsCustomModule and all of its
-     * descendants in the CRM hierarchy. This method is only supported for
-     * resident custom modules.
-     * 
- */ - public void deleteSecurityHealthAnalyticsCustomModule(com.google.cloud.securitycentermanagement.v1.DeleteSecurityHealthAnalyticsCustomModuleRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getDeleteSecurityHealthAnalyticsCustomModuleMethod(), getCallOptions()), request, responseObserver); - } - - /** - *
-     * Simulates a given SecurityHealthAnalyticsCustomModule and Resource.
-     * 
- */ - public void simulateSecurityHealthAnalyticsCustomModule(com.google.cloud.securitycentermanagement.v1.SimulateSecurityHealthAnalyticsCustomModuleRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getSimulateSecurityHealthAnalyticsCustomModuleMethod(), getCallOptions()), request, responseObserver); - } - - /** - *
-     * Lists all effective Event Threat Detection custom modules for the
-     * given parent. This includes resident modules defined at the scope of the
-     * parent along with modules inherited from its ancestors.
-     * 
- */ - public void listEffectiveEventThreatDetectionCustomModules(com.google.cloud.securitycentermanagement.v1.ListEffectiveEventThreatDetectionCustomModulesRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getListEffectiveEventThreatDetectionCustomModulesMethod(), getCallOptions()), request, responseObserver); - } - - /** - *
-     * Gets an effective ETD custom module. Retrieves the effective module at the
-     * given level. The difference between an EffectiveCustomModule and a
-     * CustomModule is that the fields for an EffectiveCustomModule are computed
-     * from ancestors if needed. For example, the enablement_state for a
-     * CustomModule can be either ENABLED, DISABLED, or INHERITED. Where as the
-     * enablement_state for an EffectiveCustomModule is always computed to ENABLED
-     * or DISABLED (the effective enablement_state).
-     * 
- */ - public void getEffectiveEventThreatDetectionCustomModule(com.google.cloud.securitycentermanagement.v1.GetEffectiveEventThreatDetectionCustomModuleRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getGetEffectiveEventThreatDetectionCustomModuleMethod(), getCallOptions()), request, responseObserver); - } - - /** - *
-     * Lists all Event Threat Detection custom modules for the given
-     * Resource Manager parent. This includes resident modules defined at the
-     * scope of the parent along with modules inherited from ancestors.
-     * 
- */ - public void listEventThreatDetectionCustomModules(com.google.cloud.securitycentermanagement.v1.ListEventThreatDetectionCustomModulesRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getListEventThreatDetectionCustomModulesMethod(), getCallOptions()), request, responseObserver); - } - - /** - *
-     * Lists all resident Event Threat Detection custom modules under the
-     * given Resource Manager parent and its descendants.
-     * 
- */ - public void listDescendantEventThreatDetectionCustomModules(com.google.cloud.securitycentermanagement.v1.ListDescendantEventThreatDetectionCustomModulesRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getListDescendantEventThreatDetectionCustomModulesMethod(), getCallOptions()), request, responseObserver); - } - - /** - *
-     * Gets an Event Threat Detection custom module.
-     * 
- */ - public void getEventThreatDetectionCustomModule(com.google.cloud.securitycentermanagement.v1.GetEventThreatDetectionCustomModuleRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getGetEventThreatDetectionCustomModuleMethod(), getCallOptions()), request, responseObserver); - } - - /** - *
-     * Creates a resident Event Threat Detection custom module at the scope of the
-     * given Resource Manager parent, and also creates inherited custom modules
-     * for all descendants of the given parent. These modules are enabled by
-     * default.
-     * 
- */ - public void createEventThreatDetectionCustomModule(com.google.cloud.securitycentermanagement.v1.CreateEventThreatDetectionCustomModuleRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getCreateEventThreatDetectionCustomModuleMethod(), getCallOptions()), request, responseObserver); - } - - /** - *
-     * Updates the Event Threat Detection custom module with the given name based
-     * on the given update mask. Updating the enablement state is supported for
-     * both resident and inherited modules (though resident modules cannot have an
-     * enablement state of "inherited"). Updating the display name or
-     * configuration of a module is supported for resident modules only. The type
-     * of a module cannot be changed.
-     * 
- */ - public void updateEventThreatDetectionCustomModule(com.google.cloud.securitycentermanagement.v1.UpdateEventThreatDetectionCustomModuleRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getUpdateEventThreatDetectionCustomModuleMethod(), getCallOptions()), request, responseObserver); - } - - /** - *
-     * Deletes the specified Event Threat Detection custom module and all of its
-     * descendants in the Resource Manager hierarchy. This method is only
-     * supported for resident custom modules.
-     * 
- */ - public void deleteEventThreatDetectionCustomModule(com.google.cloud.securitycentermanagement.v1.DeleteEventThreatDetectionCustomModuleRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getDeleteEventThreatDetectionCustomModuleMethod(), getCallOptions()), request, responseObserver); - } - - /** - *
-     * Validates the given Event Threat Detection custom module.
-     * 
- */ - public void validateEventThreatDetectionCustomModule(com.google.cloud.securitycentermanagement.v1.ValidateEventThreatDetectionCustomModuleRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getValidateEventThreatDetectionCustomModuleMethod(), getCallOptions()), request, responseObserver); - } - } - - /** - * A stub to allow clients to do synchronous rpc calls to service SecurityCenterManagement. - *
-   * Service describing handlers for resources
-   * 
- */ - public static final class SecurityCenterManagementBlockingStub - extends io.grpc.stub.AbstractBlockingStub { - private SecurityCenterManagementBlockingStub( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - super(channel, callOptions); - } - - @java.lang.Override - protected SecurityCenterManagementBlockingStub build( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new SecurityCenterManagementBlockingStub(channel, callOptions); - } - - /** - *
-     * Returns a list of all EffectiveSecurityHealthAnalyticsCustomModules for the
-     * given parent. This includes resident modules defined at the scope of the
-     * parent, and inherited modules, inherited from CRM ancestors (no
-     * descendants).
-     * 
- */ - public com.google.cloud.securitycentermanagement.v1.ListEffectiveSecurityHealthAnalyticsCustomModulesResponse listEffectiveSecurityHealthAnalyticsCustomModules(com.google.cloud.securitycentermanagement.v1.ListEffectiveSecurityHealthAnalyticsCustomModulesRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getListEffectiveSecurityHealthAnalyticsCustomModulesMethod(), getCallOptions(), request); - } - - /** - *
-     * Gets details of a single EffectiveSecurityHealthAnalyticsCustomModule.
-     * 
- */ - public com.google.cloud.securitycentermanagement.v1.EffectiveSecurityHealthAnalyticsCustomModule getEffectiveSecurityHealthAnalyticsCustomModule(com.google.cloud.securitycentermanagement.v1.GetEffectiveSecurityHealthAnalyticsCustomModuleRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getGetEffectiveSecurityHealthAnalyticsCustomModuleMethod(), getCallOptions(), request); - } - - /** - *
-     * Returns a list of all SecurityHealthAnalyticsCustomModules for the given
-     * parent. This includes resident modules defined at the scope of the parent,
-     * and inherited modules, inherited from CRM ancestors (no descendants).
-     * 
- */ - public com.google.cloud.securitycentermanagement.v1.ListSecurityHealthAnalyticsCustomModulesResponse listSecurityHealthAnalyticsCustomModules(com.google.cloud.securitycentermanagement.v1.ListSecurityHealthAnalyticsCustomModulesRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getListSecurityHealthAnalyticsCustomModulesMethod(), getCallOptions(), request); - } - - /** - *
-     * Returns a list of all resident SecurityHealthAnalyticsCustomModules under
-     * the given CRM parent and all of the parent’s CRM descendants.
-     * 
- */ - public com.google.cloud.securitycentermanagement.v1.ListDescendantSecurityHealthAnalyticsCustomModulesResponse listDescendantSecurityHealthAnalyticsCustomModules(com.google.cloud.securitycentermanagement.v1.ListDescendantSecurityHealthAnalyticsCustomModulesRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getListDescendantSecurityHealthAnalyticsCustomModulesMethod(), getCallOptions(), request); - } - - /** - *
-     * Retrieves a SecurityHealthAnalyticsCustomModule.
-     * 
- */ - public com.google.cloud.securitycentermanagement.v1.SecurityHealthAnalyticsCustomModule getSecurityHealthAnalyticsCustomModule(com.google.cloud.securitycentermanagement.v1.GetSecurityHealthAnalyticsCustomModuleRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getGetSecurityHealthAnalyticsCustomModuleMethod(), getCallOptions(), request); - } - - /** - *
-     * Creates a resident SecurityHealthAnalyticsCustomModule at the scope of the
-     * given CRM parent, and also creates inherited
-     * SecurityHealthAnalyticsCustomModules for all CRM descendants of the given
-     * parent. These modules are enabled by default.
-     * 
- */ - public com.google.cloud.securitycentermanagement.v1.SecurityHealthAnalyticsCustomModule createSecurityHealthAnalyticsCustomModule(com.google.cloud.securitycentermanagement.v1.CreateSecurityHealthAnalyticsCustomModuleRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getCreateSecurityHealthAnalyticsCustomModuleMethod(), getCallOptions(), request); - } - - /** - *
-     * Updates the SecurityHealthAnalyticsCustomModule under the given name based
-     * on the given update mask. Updating the enablement state is supported on
-     * both resident and inherited modules (though resident modules cannot have an
-     * enablement state of "inherited"). Updating the display name and custom
-     * config of a module is supported on resident modules only.
-     * 
- */ - public com.google.cloud.securitycentermanagement.v1.SecurityHealthAnalyticsCustomModule updateSecurityHealthAnalyticsCustomModule(com.google.cloud.securitycentermanagement.v1.UpdateSecurityHealthAnalyticsCustomModuleRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getUpdateSecurityHealthAnalyticsCustomModuleMethod(), getCallOptions(), request); - } - - /** - *
-     * Deletes the specified SecurityHealthAnalyticsCustomModule and all of its
-     * descendants in the CRM hierarchy. This method is only supported for
-     * resident custom modules.
-     * 
- */ - public com.google.protobuf.Empty deleteSecurityHealthAnalyticsCustomModule(com.google.cloud.securitycentermanagement.v1.DeleteSecurityHealthAnalyticsCustomModuleRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getDeleteSecurityHealthAnalyticsCustomModuleMethod(), getCallOptions(), request); - } - - /** - *
-     * Simulates a given SecurityHealthAnalyticsCustomModule and Resource.
-     * 
- */ - public com.google.cloud.securitycentermanagement.v1.SimulateSecurityHealthAnalyticsCustomModuleResponse simulateSecurityHealthAnalyticsCustomModule(com.google.cloud.securitycentermanagement.v1.SimulateSecurityHealthAnalyticsCustomModuleRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getSimulateSecurityHealthAnalyticsCustomModuleMethod(), getCallOptions(), request); - } - - /** - *
-     * Lists all effective Event Threat Detection custom modules for the
-     * given parent. This includes resident modules defined at the scope of the
-     * parent along with modules inherited from its ancestors.
-     * 
- */ - public com.google.cloud.securitycentermanagement.v1.ListEffectiveEventThreatDetectionCustomModulesResponse listEffectiveEventThreatDetectionCustomModules(com.google.cloud.securitycentermanagement.v1.ListEffectiveEventThreatDetectionCustomModulesRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getListEffectiveEventThreatDetectionCustomModulesMethod(), getCallOptions(), request); - } - - /** - *
-     * Gets an effective ETD custom module. Retrieves the effective module at the
-     * given level. The difference between an EffectiveCustomModule and a
-     * CustomModule is that the fields for an EffectiveCustomModule are computed
-     * from ancestors if needed. For example, the enablement_state for a
-     * CustomModule can be either ENABLED, DISABLED, or INHERITED. Where as the
-     * enablement_state for an EffectiveCustomModule is always computed to ENABLED
-     * or DISABLED (the effective enablement_state).
-     * 
- */ - public com.google.cloud.securitycentermanagement.v1.EffectiveEventThreatDetectionCustomModule getEffectiveEventThreatDetectionCustomModule(com.google.cloud.securitycentermanagement.v1.GetEffectiveEventThreatDetectionCustomModuleRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getGetEffectiveEventThreatDetectionCustomModuleMethod(), getCallOptions(), request); - } - - /** - *
-     * Lists all Event Threat Detection custom modules for the given
-     * Resource Manager parent. This includes resident modules defined at the
-     * scope of the parent along with modules inherited from ancestors.
-     * 
- */ - public com.google.cloud.securitycentermanagement.v1.ListEventThreatDetectionCustomModulesResponse listEventThreatDetectionCustomModules(com.google.cloud.securitycentermanagement.v1.ListEventThreatDetectionCustomModulesRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getListEventThreatDetectionCustomModulesMethod(), getCallOptions(), request); - } - - /** - *
-     * Lists all resident Event Threat Detection custom modules under the
-     * given Resource Manager parent and its descendants.
-     * 
- */ - public com.google.cloud.securitycentermanagement.v1.ListDescendantEventThreatDetectionCustomModulesResponse listDescendantEventThreatDetectionCustomModules(com.google.cloud.securitycentermanagement.v1.ListDescendantEventThreatDetectionCustomModulesRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getListDescendantEventThreatDetectionCustomModulesMethod(), getCallOptions(), request); - } - - /** - *
-     * Gets an Event Threat Detection custom module.
-     * 
- */ - public com.google.cloud.securitycentermanagement.v1.EventThreatDetectionCustomModule getEventThreatDetectionCustomModule(com.google.cloud.securitycentermanagement.v1.GetEventThreatDetectionCustomModuleRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getGetEventThreatDetectionCustomModuleMethod(), getCallOptions(), request); - } - - /** - *
-     * Creates a resident Event Threat Detection custom module at the scope of the
-     * given Resource Manager parent, and also creates inherited custom modules
-     * for all descendants of the given parent. These modules are enabled by
-     * default.
-     * 
- */ - public com.google.cloud.securitycentermanagement.v1.EventThreatDetectionCustomModule createEventThreatDetectionCustomModule(com.google.cloud.securitycentermanagement.v1.CreateEventThreatDetectionCustomModuleRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getCreateEventThreatDetectionCustomModuleMethod(), getCallOptions(), request); - } - - /** - *
-     * Updates the Event Threat Detection custom module with the given name based
-     * on the given update mask. Updating the enablement state is supported for
-     * both resident and inherited modules (though resident modules cannot have an
-     * enablement state of "inherited"). Updating the display name or
-     * configuration of a module is supported for resident modules only. The type
-     * of a module cannot be changed.
-     * 
- */ - public com.google.cloud.securitycentermanagement.v1.EventThreatDetectionCustomModule updateEventThreatDetectionCustomModule(com.google.cloud.securitycentermanagement.v1.UpdateEventThreatDetectionCustomModuleRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getUpdateEventThreatDetectionCustomModuleMethod(), getCallOptions(), request); - } - - /** - *
-     * Deletes the specified Event Threat Detection custom module and all of its
-     * descendants in the Resource Manager hierarchy. This method is only
-     * supported for resident custom modules.
-     * 
- */ - public com.google.protobuf.Empty deleteEventThreatDetectionCustomModule(com.google.cloud.securitycentermanagement.v1.DeleteEventThreatDetectionCustomModuleRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getDeleteEventThreatDetectionCustomModuleMethod(), getCallOptions(), request); - } - - /** - *
-     * Validates the given Event Threat Detection custom module.
-     * 
- */ - public com.google.cloud.securitycentermanagement.v1.ValidateEventThreatDetectionCustomModuleResponse validateEventThreatDetectionCustomModule(com.google.cloud.securitycentermanagement.v1.ValidateEventThreatDetectionCustomModuleRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getValidateEventThreatDetectionCustomModuleMethod(), getCallOptions(), request); - } - } - - /** - * A stub to allow clients to do ListenableFuture-style rpc calls to service SecurityCenterManagement. - *
-   * Service describing handlers for resources
-   * 
- */ - public static final class SecurityCenterManagementFutureStub - extends io.grpc.stub.AbstractFutureStub { - private SecurityCenterManagementFutureStub( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - super(channel, callOptions); - } - - @java.lang.Override - protected SecurityCenterManagementFutureStub build( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new SecurityCenterManagementFutureStub(channel, callOptions); - } - - /** - *
-     * Returns a list of all EffectiveSecurityHealthAnalyticsCustomModules for the
-     * given parent. This includes resident modules defined at the scope of the
-     * parent, and inherited modules, inherited from CRM ancestors (no
-     * descendants).
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture listEffectiveSecurityHealthAnalyticsCustomModules( - com.google.cloud.securitycentermanagement.v1.ListEffectiveSecurityHealthAnalyticsCustomModulesRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getListEffectiveSecurityHealthAnalyticsCustomModulesMethod(), getCallOptions()), request); - } - - /** - *
-     * Gets details of a single EffectiveSecurityHealthAnalyticsCustomModule.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture getEffectiveSecurityHealthAnalyticsCustomModule( - com.google.cloud.securitycentermanagement.v1.GetEffectiveSecurityHealthAnalyticsCustomModuleRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getGetEffectiveSecurityHealthAnalyticsCustomModuleMethod(), getCallOptions()), request); - } - - /** - *
-     * Returns a list of all SecurityHealthAnalyticsCustomModules for the given
-     * parent. This includes resident modules defined at the scope of the parent,
-     * and inherited modules, inherited from CRM ancestors (no descendants).
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture listSecurityHealthAnalyticsCustomModules( - com.google.cloud.securitycentermanagement.v1.ListSecurityHealthAnalyticsCustomModulesRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getListSecurityHealthAnalyticsCustomModulesMethod(), getCallOptions()), request); - } - - /** - *
-     * Returns a list of all resident SecurityHealthAnalyticsCustomModules under
-     * the given CRM parent and all of the parent’s CRM descendants.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture listDescendantSecurityHealthAnalyticsCustomModules( - com.google.cloud.securitycentermanagement.v1.ListDescendantSecurityHealthAnalyticsCustomModulesRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getListDescendantSecurityHealthAnalyticsCustomModulesMethod(), getCallOptions()), request); - } - - /** - *
-     * Retrieves a SecurityHealthAnalyticsCustomModule.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture getSecurityHealthAnalyticsCustomModule( - com.google.cloud.securitycentermanagement.v1.GetSecurityHealthAnalyticsCustomModuleRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getGetSecurityHealthAnalyticsCustomModuleMethod(), getCallOptions()), request); - } - - /** - *
-     * Creates a resident SecurityHealthAnalyticsCustomModule at the scope of the
-     * given CRM parent, and also creates inherited
-     * SecurityHealthAnalyticsCustomModules for all CRM descendants of the given
-     * parent. These modules are enabled by default.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture createSecurityHealthAnalyticsCustomModule( - com.google.cloud.securitycentermanagement.v1.CreateSecurityHealthAnalyticsCustomModuleRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getCreateSecurityHealthAnalyticsCustomModuleMethod(), getCallOptions()), request); - } - - /** - *
-     * Updates the SecurityHealthAnalyticsCustomModule under the given name based
-     * on the given update mask. Updating the enablement state is supported on
-     * both resident and inherited modules (though resident modules cannot have an
-     * enablement state of "inherited"). Updating the display name and custom
-     * config of a module is supported on resident modules only.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture updateSecurityHealthAnalyticsCustomModule( - com.google.cloud.securitycentermanagement.v1.UpdateSecurityHealthAnalyticsCustomModuleRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getUpdateSecurityHealthAnalyticsCustomModuleMethod(), getCallOptions()), request); - } - - /** - *
-     * Deletes the specified SecurityHealthAnalyticsCustomModule and all of its
-     * descendants in the CRM hierarchy. This method is only supported for
-     * resident custom modules.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture deleteSecurityHealthAnalyticsCustomModule( - com.google.cloud.securitycentermanagement.v1.DeleteSecurityHealthAnalyticsCustomModuleRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getDeleteSecurityHealthAnalyticsCustomModuleMethod(), getCallOptions()), request); - } - - /** - *
-     * Simulates a given SecurityHealthAnalyticsCustomModule and Resource.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture simulateSecurityHealthAnalyticsCustomModule( - com.google.cloud.securitycentermanagement.v1.SimulateSecurityHealthAnalyticsCustomModuleRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getSimulateSecurityHealthAnalyticsCustomModuleMethod(), getCallOptions()), request); - } - - /** - *
-     * Lists all effective Event Threat Detection custom modules for the
-     * given parent. This includes resident modules defined at the scope of the
-     * parent along with modules inherited from its ancestors.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture listEffectiveEventThreatDetectionCustomModules( - com.google.cloud.securitycentermanagement.v1.ListEffectiveEventThreatDetectionCustomModulesRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getListEffectiveEventThreatDetectionCustomModulesMethod(), getCallOptions()), request); - } - - /** - *
-     * Gets an effective ETD custom module. Retrieves the effective module at the
-     * given level. The difference between an EffectiveCustomModule and a
-     * CustomModule is that the fields for an EffectiveCustomModule are computed
-     * from ancestors if needed. For example, the enablement_state for a
-     * CustomModule can be either ENABLED, DISABLED, or INHERITED. Where as the
-     * enablement_state for an EffectiveCustomModule is always computed to ENABLED
-     * or DISABLED (the effective enablement_state).
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture getEffectiveEventThreatDetectionCustomModule( - com.google.cloud.securitycentermanagement.v1.GetEffectiveEventThreatDetectionCustomModuleRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getGetEffectiveEventThreatDetectionCustomModuleMethod(), getCallOptions()), request); - } - - /** - *
-     * Lists all Event Threat Detection custom modules for the given
-     * Resource Manager parent. This includes resident modules defined at the
-     * scope of the parent along with modules inherited from ancestors.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture listEventThreatDetectionCustomModules( - com.google.cloud.securitycentermanagement.v1.ListEventThreatDetectionCustomModulesRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getListEventThreatDetectionCustomModulesMethod(), getCallOptions()), request); - } - - /** - *
-     * Lists all resident Event Threat Detection custom modules under the
-     * given Resource Manager parent and its descendants.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture listDescendantEventThreatDetectionCustomModules( - com.google.cloud.securitycentermanagement.v1.ListDescendantEventThreatDetectionCustomModulesRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getListDescendantEventThreatDetectionCustomModulesMethod(), getCallOptions()), request); - } - - /** - *
-     * Gets an Event Threat Detection custom module.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture getEventThreatDetectionCustomModule( - com.google.cloud.securitycentermanagement.v1.GetEventThreatDetectionCustomModuleRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getGetEventThreatDetectionCustomModuleMethod(), getCallOptions()), request); - } - - /** - *
-     * Creates a resident Event Threat Detection custom module at the scope of the
-     * given Resource Manager parent, and also creates inherited custom modules
-     * for all descendants of the given parent. These modules are enabled by
-     * default.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture createEventThreatDetectionCustomModule( - com.google.cloud.securitycentermanagement.v1.CreateEventThreatDetectionCustomModuleRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getCreateEventThreatDetectionCustomModuleMethod(), getCallOptions()), request); - } - - /** - *
-     * Updates the Event Threat Detection custom module with the given name based
-     * on the given update mask. Updating the enablement state is supported for
-     * both resident and inherited modules (though resident modules cannot have an
-     * enablement state of "inherited"). Updating the display name or
-     * configuration of a module is supported for resident modules only. The type
-     * of a module cannot be changed.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture updateEventThreatDetectionCustomModule( - com.google.cloud.securitycentermanagement.v1.UpdateEventThreatDetectionCustomModuleRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getUpdateEventThreatDetectionCustomModuleMethod(), getCallOptions()), request); - } - - /** - *
-     * Deletes the specified Event Threat Detection custom module and all of its
-     * descendants in the Resource Manager hierarchy. This method is only
-     * supported for resident custom modules.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture deleteEventThreatDetectionCustomModule( - com.google.cloud.securitycentermanagement.v1.DeleteEventThreatDetectionCustomModuleRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getDeleteEventThreatDetectionCustomModuleMethod(), getCallOptions()), request); - } - - /** - *
-     * Validates the given Event Threat Detection custom module.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture validateEventThreatDetectionCustomModule( - com.google.cloud.securitycentermanagement.v1.ValidateEventThreatDetectionCustomModuleRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getValidateEventThreatDetectionCustomModuleMethod(), getCallOptions()), request); - } - } - - private static final int METHODID_LIST_EFFECTIVE_SECURITY_HEALTH_ANALYTICS_CUSTOM_MODULES = 0; - private static final int METHODID_GET_EFFECTIVE_SECURITY_HEALTH_ANALYTICS_CUSTOM_MODULE = 1; - private static final int METHODID_LIST_SECURITY_HEALTH_ANALYTICS_CUSTOM_MODULES = 2; - private static final int METHODID_LIST_DESCENDANT_SECURITY_HEALTH_ANALYTICS_CUSTOM_MODULES = 3; - private static final int METHODID_GET_SECURITY_HEALTH_ANALYTICS_CUSTOM_MODULE = 4; - private static final int METHODID_CREATE_SECURITY_HEALTH_ANALYTICS_CUSTOM_MODULE = 5; - private static final int METHODID_UPDATE_SECURITY_HEALTH_ANALYTICS_CUSTOM_MODULE = 6; - private static final int METHODID_DELETE_SECURITY_HEALTH_ANALYTICS_CUSTOM_MODULE = 7; - private static final int METHODID_SIMULATE_SECURITY_HEALTH_ANALYTICS_CUSTOM_MODULE = 8; - private static final int METHODID_LIST_EFFECTIVE_EVENT_THREAT_DETECTION_CUSTOM_MODULES = 9; - private static final int METHODID_GET_EFFECTIVE_EVENT_THREAT_DETECTION_CUSTOM_MODULE = 10; - private static final int METHODID_LIST_EVENT_THREAT_DETECTION_CUSTOM_MODULES = 11; - private static final int METHODID_LIST_DESCENDANT_EVENT_THREAT_DETECTION_CUSTOM_MODULES = 12; - private static final int METHODID_GET_EVENT_THREAT_DETECTION_CUSTOM_MODULE = 13; - private static final int METHODID_CREATE_EVENT_THREAT_DETECTION_CUSTOM_MODULE = 14; - private static final int METHODID_UPDATE_EVENT_THREAT_DETECTION_CUSTOM_MODULE = 15; - private static final int METHODID_DELETE_EVENT_THREAT_DETECTION_CUSTOM_MODULE = 16; - private static final int METHODID_VALIDATE_EVENT_THREAT_DETECTION_CUSTOM_MODULE = 17; - - 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_EFFECTIVE_SECURITY_HEALTH_ANALYTICS_CUSTOM_MODULES: - serviceImpl.listEffectiveSecurityHealthAnalyticsCustomModules((com.google.cloud.securitycentermanagement.v1.ListEffectiveSecurityHealthAnalyticsCustomModulesRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_GET_EFFECTIVE_SECURITY_HEALTH_ANALYTICS_CUSTOM_MODULE: - serviceImpl.getEffectiveSecurityHealthAnalyticsCustomModule((com.google.cloud.securitycentermanagement.v1.GetEffectiveSecurityHealthAnalyticsCustomModuleRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_LIST_SECURITY_HEALTH_ANALYTICS_CUSTOM_MODULES: - serviceImpl.listSecurityHealthAnalyticsCustomModules((com.google.cloud.securitycentermanagement.v1.ListSecurityHealthAnalyticsCustomModulesRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_LIST_DESCENDANT_SECURITY_HEALTH_ANALYTICS_CUSTOM_MODULES: - serviceImpl.listDescendantSecurityHealthAnalyticsCustomModules((com.google.cloud.securitycentermanagement.v1.ListDescendantSecurityHealthAnalyticsCustomModulesRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_GET_SECURITY_HEALTH_ANALYTICS_CUSTOM_MODULE: - serviceImpl.getSecurityHealthAnalyticsCustomModule((com.google.cloud.securitycentermanagement.v1.GetSecurityHealthAnalyticsCustomModuleRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_CREATE_SECURITY_HEALTH_ANALYTICS_CUSTOM_MODULE: - serviceImpl.createSecurityHealthAnalyticsCustomModule((com.google.cloud.securitycentermanagement.v1.CreateSecurityHealthAnalyticsCustomModuleRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_UPDATE_SECURITY_HEALTH_ANALYTICS_CUSTOM_MODULE: - serviceImpl.updateSecurityHealthAnalyticsCustomModule((com.google.cloud.securitycentermanagement.v1.UpdateSecurityHealthAnalyticsCustomModuleRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_DELETE_SECURITY_HEALTH_ANALYTICS_CUSTOM_MODULE: - serviceImpl.deleteSecurityHealthAnalyticsCustomModule((com.google.cloud.securitycentermanagement.v1.DeleteSecurityHealthAnalyticsCustomModuleRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_SIMULATE_SECURITY_HEALTH_ANALYTICS_CUSTOM_MODULE: - serviceImpl.simulateSecurityHealthAnalyticsCustomModule((com.google.cloud.securitycentermanagement.v1.SimulateSecurityHealthAnalyticsCustomModuleRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_LIST_EFFECTIVE_EVENT_THREAT_DETECTION_CUSTOM_MODULES: - serviceImpl.listEffectiveEventThreatDetectionCustomModules((com.google.cloud.securitycentermanagement.v1.ListEffectiveEventThreatDetectionCustomModulesRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_GET_EFFECTIVE_EVENT_THREAT_DETECTION_CUSTOM_MODULE: - serviceImpl.getEffectiveEventThreatDetectionCustomModule((com.google.cloud.securitycentermanagement.v1.GetEffectiveEventThreatDetectionCustomModuleRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_LIST_EVENT_THREAT_DETECTION_CUSTOM_MODULES: - serviceImpl.listEventThreatDetectionCustomModules((com.google.cloud.securitycentermanagement.v1.ListEventThreatDetectionCustomModulesRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_LIST_DESCENDANT_EVENT_THREAT_DETECTION_CUSTOM_MODULES: - serviceImpl.listDescendantEventThreatDetectionCustomModules((com.google.cloud.securitycentermanagement.v1.ListDescendantEventThreatDetectionCustomModulesRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_GET_EVENT_THREAT_DETECTION_CUSTOM_MODULE: - serviceImpl.getEventThreatDetectionCustomModule((com.google.cloud.securitycentermanagement.v1.GetEventThreatDetectionCustomModuleRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_CREATE_EVENT_THREAT_DETECTION_CUSTOM_MODULE: - serviceImpl.createEventThreatDetectionCustomModule((com.google.cloud.securitycentermanagement.v1.CreateEventThreatDetectionCustomModuleRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_UPDATE_EVENT_THREAT_DETECTION_CUSTOM_MODULE: - serviceImpl.updateEventThreatDetectionCustomModule((com.google.cloud.securitycentermanagement.v1.UpdateEventThreatDetectionCustomModuleRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_DELETE_EVENT_THREAT_DETECTION_CUSTOM_MODULE: - serviceImpl.deleteEventThreatDetectionCustomModule((com.google.cloud.securitycentermanagement.v1.DeleteEventThreatDetectionCustomModuleRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_VALIDATE_EVENT_THREAT_DETECTION_CUSTOM_MODULE: - serviceImpl.validateEventThreatDetectionCustomModule((com.google.cloud.securitycentermanagement.v1.ValidateEventThreatDetectionCustomModuleRequest) 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( - getListEffectiveSecurityHealthAnalyticsCustomModulesMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.securitycentermanagement.v1.ListEffectiveSecurityHealthAnalyticsCustomModulesRequest, - com.google.cloud.securitycentermanagement.v1.ListEffectiveSecurityHealthAnalyticsCustomModulesResponse>( - service, METHODID_LIST_EFFECTIVE_SECURITY_HEALTH_ANALYTICS_CUSTOM_MODULES))) - .addMethod( - getGetEffectiveSecurityHealthAnalyticsCustomModuleMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.securitycentermanagement.v1.GetEffectiveSecurityHealthAnalyticsCustomModuleRequest, - com.google.cloud.securitycentermanagement.v1.EffectiveSecurityHealthAnalyticsCustomModule>( - service, METHODID_GET_EFFECTIVE_SECURITY_HEALTH_ANALYTICS_CUSTOM_MODULE))) - .addMethod( - getListSecurityHealthAnalyticsCustomModulesMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.securitycentermanagement.v1.ListSecurityHealthAnalyticsCustomModulesRequest, - com.google.cloud.securitycentermanagement.v1.ListSecurityHealthAnalyticsCustomModulesResponse>( - service, METHODID_LIST_SECURITY_HEALTH_ANALYTICS_CUSTOM_MODULES))) - .addMethod( - getListDescendantSecurityHealthAnalyticsCustomModulesMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.securitycentermanagement.v1.ListDescendantSecurityHealthAnalyticsCustomModulesRequest, - com.google.cloud.securitycentermanagement.v1.ListDescendantSecurityHealthAnalyticsCustomModulesResponse>( - service, METHODID_LIST_DESCENDANT_SECURITY_HEALTH_ANALYTICS_CUSTOM_MODULES))) - .addMethod( - getGetSecurityHealthAnalyticsCustomModuleMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.securitycentermanagement.v1.GetSecurityHealthAnalyticsCustomModuleRequest, - com.google.cloud.securitycentermanagement.v1.SecurityHealthAnalyticsCustomModule>( - service, METHODID_GET_SECURITY_HEALTH_ANALYTICS_CUSTOM_MODULE))) - .addMethod( - getCreateSecurityHealthAnalyticsCustomModuleMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.securitycentermanagement.v1.CreateSecurityHealthAnalyticsCustomModuleRequest, - com.google.cloud.securitycentermanagement.v1.SecurityHealthAnalyticsCustomModule>( - service, METHODID_CREATE_SECURITY_HEALTH_ANALYTICS_CUSTOM_MODULE))) - .addMethod( - getUpdateSecurityHealthAnalyticsCustomModuleMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.securitycentermanagement.v1.UpdateSecurityHealthAnalyticsCustomModuleRequest, - com.google.cloud.securitycentermanagement.v1.SecurityHealthAnalyticsCustomModule>( - service, METHODID_UPDATE_SECURITY_HEALTH_ANALYTICS_CUSTOM_MODULE))) - .addMethod( - getDeleteSecurityHealthAnalyticsCustomModuleMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.securitycentermanagement.v1.DeleteSecurityHealthAnalyticsCustomModuleRequest, - com.google.protobuf.Empty>( - service, METHODID_DELETE_SECURITY_HEALTH_ANALYTICS_CUSTOM_MODULE))) - .addMethod( - getSimulateSecurityHealthAnalyticsCustomModuleMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.securitycentermanagement.v1.SimulateSecurityHealthAnalyticsCustomModuleRequest, - com.google.cloud.securitycentermanagement.v1.SimulateSecurityHealthAnalyticsCustomModuleResponse>( - service, METHODID_SIMULATE_SECURITY_HEALTH_ANALYTICS_CUSTOM_MODULE))) - .addMethod( - getListEffectiveEventThreatDetectionCustomModulesMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.securitycentermanagement.v1.ListEffectiveEventThreatDetectionCustomModulesRequest, - com.google.cloud.securitycentermanagement.v1.ListEffectiveEventThreatDetectionCustomModulesResponse>( - service, METHODID_LIST_EFFECTIVE_EVENT_THREAT_DETECTION_CUSTOM_MODULES))) - .addMethod( - getGetEffectiveEventThreatDetectionCustomModuleMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.securitycentermanagement.v1.GetEffectiveEventThreatDetectionCustomModuleRequest, - com.google.cloud.securitycentermanagement.v1.EffectiveEventThreatDetectionCustomModule>( - service, METHODID_GET_EFFECTIVE_EVENT_THREAT_DETECTION_CUSTOM_MODULE))) - .addMethod( - getListEventThreatDetectionCustomModulesMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.securitycentermanagement.v1.ListEventThreatDetectionCustomModulesRequest, - com.google.cloud.securitycentermanagement.v1.ListEventThreatDetectionCustomModulesResponse>( - service, METHODID_LIST_EVENT_THREAT_DETECTION_CUSTOM_MODULES))) - .addMethod( - getListDescendantEventThreatDetectionCustomModulesMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.securitycentermanagement.v1.ListDescendantEventThreatDetectionCustomModulesRequest, - com.google.cloud.securitycentermanagement.v1.ListDescendantEventThreatDetectionCustomModulesResponse>( - service, METHODID_LIST_DESCENDANT_EVENT_THREAT_DETECTION_CUSTOM_MODULES))) - .addMethod( - getGetEventThreatDetectionCustomModuleMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.securitycentermanagement.v1.GetEventThreatDetectionCustomModuleRequest, - com.google.cloud.securitycentermanagement.v1.EventThreatDetectionCustomModule>( - service, METHODID_GET_EVENT_THREAT_DETECTION_CUSTOM_MODULE))) - .addMethod( - getCreateEventThreatDetectionCustomModuleMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.securitycentermanagement.v1.CreateEventThreatDetectionCustomModuleRequest, - com.google.cloud.securitycentermanagement.v1.EventThreatDetectionCustomModule>( - service, METHODID_CREATE_EVENT_THREAT_DETECTION_CUSTOM_MODULE))) - .addMethod( - getUpdateEventThreatDetectionCustomModuleMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.securitycentermanagement.v1.UpdateEventThreatDetectionCustomModuleRequest, - com.google.cloud.securitycentermanagement.v1.EventThreatDetectionCustomModule>( - service, METHODID_UPDATE_EVENT_THREAT_DETECTION_CUSTOM_MODULE))) - .addMethod( - getDeleteEventThreatDetectionCustomModuleMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.securitycentermanagement.v1.DeleteEventThreatDetectionCustomModuleRequest, - com.google.protobuf.Empty>( - service, METHODID_DELETE_EVENT_THREAT_DETECTION_CUSTOM_MODULE))) - .addMethod( - getValidateEventThreatDetectionCustomModuleMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.securitycentermanagement.v1.ValidateEventThreatDetectionCustomModuleRequest, - com.google.cloud.securitycentermanagement.v1.ValidateEventThreatDetectionCustomModuleResponse>( - service, METHODID_VALIDATE_EVENT_THREAT_DETECTION_CUSTOM_MODULE))) - .build(); - } - - private static abstract class SecurityCenterManagementBaseDescriptorSupplier - implements io.grpc.protobuf.ProtoFileDescriptorSupplier, io.grpc.protobuf.ProtoServiceDescriptorSupplier { - SecurityCenterManagementBaseDescriptorSupplier() {} - - @java.lang.Override - public com.google.protobuf.Descriptors.FileDescriptor getFileDescriptor() { - return com.google.cloud.securitycentermanagement.v1.SecurityCenterManagementProto.getDescriptor(); - } - - @java.lang.Override - public com.google.protobuf.Descriptors.ServiceDescriptor getServiceDescriptor() { - return getFileDescriptor().findServiceByName("SecurityCenterManagement"); - } - } - - private static final class SecurityCenterManagementFileDescriptorSupplier - extends SecurityCenterManagementBaseDescriptorSupplier { - SecurityCenterManagementFileDescriptorSupplier() {} - } - - private static final class SecurityCenterManagementMethodDescriptorSupplier - extends SecurityCenterManagementBaseDescriptorSupplier - implements io.grpc.protobuf.ProtoMethodDescriptorSupplier { - private final java.lang.String methodName; - - SecurityCenterManagementMethodDescriptorSupplier(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 (SecurityCenterManagementGrpc.class) { - result = serviceDescriptor; - if (result == null) { - serviceDescriptor = result = io.grpc.ServiceDescriptor.newBuilder(SERVICE_NAME) - .setSchemaDescriptor(new SecurityCenterManagementFileDescriptorSupplier()) - .addMethod(getListEffectiveSecurityHealthAnalyticsCustomModulesMethod()) - .addMethod(getGetEffectiveSecurityHealthAnalyticsCustomModuleMethod()) - .addMethod(getListSecurityHealthAnalyticsCustomModulesMethod()) - .addMethod(getListDescendantSecurityHealthAnalyticsCustomModulesMethod()) - .addMethod(getGetSecurityHealthAnalyticsCustomModuleMethod()) - .addMethod(getCreateSecurityHealthAnalyticsCustomModuleMethod()) - .addMethod(getUpdateSecurityHealthAnalyticsCustomModuleMethod()) - .addMethod(getDeleteSecurityHealthAnalyticsCustomModuleMethod()) - .addMethod(getSimulateSecurityHealthAnalyticsCustomModuleMethod()) - .addMethod(getListEffectiveEventThreatDetectionCustomModulesMethod()) - .addMethod(getGetEffectiveEventThreatDetectionCustomModuleMethod()) - .addMethod(getListEventThreatDetectionCustomModulesMethod()) - .addMethod(getListDescendantEventThreatDetectionCustomModulesMethod()) - .addMethod(getGetEventThreatDetectionCustomModuleMethod()) - .addMethod(getCreateEventThreatDetectionCustomModuleMethod()) - .addMethod(getUpdateEventThreatDetectionCustomModuleMethod()) - .addMethod(getDeleteEventThreatDetectionCustomModuleMethod()) - .addMethod(getValidateEventThreatDetectionCustomModuleMethod()) - .build(); - } - } - } - return result; - } -} diff --git a/owl-bot-staging/java-securitycentermanagement/v1/proto-google-cloud-securitycentermanagement-v1/src/main/java/com/google/cloud/securitycentermanagement/v1/GetEffectiveEventThreatDetectionCustomModuleRequest.java b/owl-bot-staging/java-securitycentermanagement/v1/proto-google-cloud-securitycentermanagement-v1/src/main/java/com/google/cloud/securitycentermanagement/v1/GetEffectiveEventThreatDetectionCustomModuleRequest.java deleted file mode 100644 index ad1207039d8c..000000000000 --- a/owl-bot-staging/java-securitycentermanagement/v1/proto-google-cloud-securitycentermanagement-v1/src/main/java/com/google/cloud/securitycentermanagement/v1/GetEffectiveEventThreatDetectionCustomModuleRequest.java +++ /dev/null @@ -1,619 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/securitycentermanagement/v1/security_center_management.proto - -package com.google.cloud.securitycentermanagement.v1; - -/** - *
- * Message for getting a EffectiveEventThreatDetectionCustomModule
- * 
- * - * Protobuf type {@code google.cloud.securitycentermanagement.v1.GetEffectiveEventThreatDetectionCustomModuleRequest} - */ -public final class GetEffectiveEventThreatDetectionCustomModuleRequest extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:google.cloud.securitycentermanagement.v1.GetEffectiveEventThreatDetectionCustomModuleRequest) - GetEffectiveEventThreatDetectionCustomModuleRequestOrBuilder { -private static final long serialVersionUID = 0L; - // Use GetEffectiveEventThreatDetectionCustomModuleRequest.newBuilder() to construct. - private GetEffectiveEventThreatDetectionCustomModuleRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private GetEffectiveEventThreatDetectionCustomModuleRequest() { - name_ = ""; - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new GetEffectiveEventThreatDetectionCustomModuleRequest(); - } - - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.securitycentermanagement.v1.SecurityCenterManagementProto.internal_static_google_cloud_securitycentermanagement_v1_GetEffectiveEventThreatDetectionCustomModuleRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.securitycentermanagement.v1.SecurityCenterManagementProto.internal_static_google_cloud_securitycentermanagement_v1_GetEffectiveEventThreatDetectionCustomModuleRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.securitycentermanagement.v1.GetEffectiveEventThreatDetectionCustomModuleRequest.class, com.google.cloud.securitycentermanagement.v1.GetEffectiveEventThreatDetectionCustomModuleRequest.Builder.class); - } - - public static final int NAME_FIELD_NUMBER = 1; - @SuppressWarnings("serial") - private volatile java.lang.Object name_ = ""; - /** - *
-   * Required. The resource name of the ETD custom module.
-   *
-   * Its format is:
-   *
-   *   * "organizations/{organization}/locations/{location}/effectiveEventThreatDetectionCustomModules/{effective_event_threat_detection_custom_module}".
-   *   * "folders/{folder}/locations/{location}/effectiveEventThreatDetectionCustomModules/{effective_event_threat_detection_custom_module}".
-   *   * "projects/{project}/locations/{location}/effectiveEventThreatDetectionCustomModules/{effective_event_threat_detection_custom_module}".
-   * 
- * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @return The name. - */ - @java.lang.Override - public java.lang.String getName() { - java.lang.Object ref = name_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - name_ = s; - return s; - } - } - /** - *
-   * Required. The resource name of the ETD custom module.
-   *
-   * Its format is:
-   *
-   *   * "organizations/{organization}/locations/{location}/effectiveEventThreatDetectionCustomModules/{effective_event_threat_detection_custom_module}".
-   *   * "folders/{folder}/locations/{location}/effectiveEventThreatDetectionCustomModules/{effective_event_threat_detection_custom_module}".
-   *   * "projects/{project}/locations/{location}/effectiveEventThreatDetectionCustomModules/{effective_event_threat_detection_custom_module}".
-   * 
- * - * 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() { - java.lang.Object ref = name_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - name_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); - } - getUnknownFields().writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); - } - size += getUnknownFields().getSerializedSize(); - memoizedSize = size; - return size; - } - - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof com.google.cloud.securitycentermanagement.v1.GetEffectiveEventThreatDetectionCustomModuleRequest)) { - return super.equals(obj); - } - com.google.cloud.securitycentermanagement.v1.GetEffectiveEventThreatDetectionCustomModuleRequest other = (com.google.cloud.securitycentermanagement.v1.GetEffectiveEventThreatDetectionCustomModuleRequest) obj; - - if (!getName() - .equals(other.getName())) return false; - if (!getUnknownFields().equals(other.getUnknownFields())) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + NAME_FIELD_NUMBER; - hash = (53 * hash) + getName().hashCode(); - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static com.google.cloud.securitycentermanagement.v1.GetEffectiveEventThreatDetectionCustomModuleRequest parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static com.google.cloud.securitycentermanagement.v1.GetEffectiveEventThreatDetectionCustomModuleRequest 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.securitycentermanagement.v1.GetEffectiveEventThreatDetectionCustomModuleRequest parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static com.google.cloud.securitycentermanagement.v1.GetEffectiveEventThreatDetectionCustomModuleRequest parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static com.google.cloud.securitycentermanagement.v1.GetEffectiveEventThreatDetectionCustomModuleRequest parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static com.google.cloud.securitycentermanagement.v1.GetEffectiveEventThreatDetectionCustomModuleRequest parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static com.google.cloud.securitycentermanagement.v1.GetEffectiveEventThreatDetectionCustomModuleRequest parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static com.google.cloud.securitycentermanagement.v1.GetEffectiveEventThreatDetectionCustomModuleRequest 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.securitycentermanagement.v1.GetEffectiveEventThreatDetectionCustomModuleRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - - public static com.google.cloud.securitycentermanagement.v1.GetEffectiveEventThreatDetectionCustomModuleRequest parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); - } - public static com.google.cloud.securitycentermanagement.v1.GetEffectiveEventThreatDetectionCustomModuleRequest parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static com.google.cloud.securitycentermanagement.v1.GetEffectiveEventThreatDetectionCustomModuleRequest 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.securitycentermanagement.v1.GetEffectiveEventThreatDetectionCustomModuleRequest prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - *
-   * Message for getting a EffectiveEventThreatDetectionCustomModule
-   * 
- * - * Protobuf type {@code google.cloud.securitycentermanagement.v1.GetEffectiveEventThreatDetectionCustomModuleRequest} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:google.cloud.securitycentermanagement.v1.GetEffectiveEventThreatDetectionCustomModuleRequest) - com.google.cloud.securitycentermanagement.v1.GetEffectiveEventThreatDetectionCustomModuleRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.securitycentermanagement.v1.SecurityCenterManagementProto.internal_static_google_cloud_securitycentermanagement_v1_GetEffectiveEventThreatDetectionCustomModuleRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.securitycentermanagement.v1.SecurityCenterManagementProto.internal_static_google_cloud_securitycentermanagement_v1_GetEffectiveEventThreatDetectionCustomModuleRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.securitycentermanagement.v1.GetEffectiveEventThreatDetectionCustomModuleRequest.class, com.google.cloud.securitycentermanagement.v1.GetEffectiveEventThreatDetectionCustomModuleRequest.Builder.class); - } - - // Construct using com.google.cloud.securitycentermanagement.v1.GetEffectiveEventThreatDetectionCustomModuleRequest.newBuilder() - private Builder() { - - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - - } - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - name_ = ""; - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.securitycentermanagement.v1.SecurityCenterManagementProto.internal_static_google_cloud_securitycentermanagement_v1_GetEffectiveEventThreatDetectionCustomModuleRequest_descriptor; - } - - @java.lang.Override - public com.google.cloud.securitycentermanagement.v1.GetEffectiveEventThreatDetectionCustomModuleRequest getDefaultInstanceForType() { - return com.google.cloud.securitycentermanagement.v1.GetEffectiveEventThreatDetectionCustomModuleRequest.getDefaultInstance(); - } - - @java.lang.Override - public com.google.cloud.securitycentermanagement.v1.GetEffectiveEventThreatDetectionCustomModuleRequest build() { - com.google.cloud.securitycentermanagement.v1.GetEffectiveEventThreatDetectionCustomModuleRequest result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.cloud.securitycentermanagement.v1.GetEffectiveEventThreatDetectionCustomModuleRequest buildPartial() { - com.google.cloud.securitycentermanagement.v1.GetEffectiveEventThreatDetectionCustomModuleRequest result = new com.google.cloud.securitycentermanagement.v1.GetEffectiveEventThreatDetectionCustomModuleRequest(this); - if (bitField0_ != 0) { buildPartial0(result); } - onBuilt(); - return result; - } - - private void buildPartial0(com.google.cloud.securitycentermanagement.v1.GetEffectiveEventThreatDetectionCustomModuleRequest result) { - int from_bitField0_ = bitField0_; - if (((from_bitField0_ & 0x00000001) != 0)) { - result.name_ = name_; - } - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.cloud.securitycentermanagement.v1.GetEffectiveEventThreatDetectionCustomModuleRequest) { - return mergeFrom((com.google.cloud.securitycentermanagement.v1.GetEffectiveEventThreatDetectionCustomModuleRequest)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.google.cloud.securitycentermanagement.v1.GetEffectiveEventThreatDetectionCustomModuleRequest other) { - if (other == com.google.cloud.securitycentermanagement.v1.GetEffectiveEventThreatDetectionCustomModuleRequest.getDefaultInstance()) return this; - if (!other.getName().isEmpty()) { - name_ = other.name_; - bitField0_ |= 0x00000001; - onChanged(); - } - this.mergeUnknownFields(other.getUnknownFields()); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - 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: - } // switch (tag) - } // while (!done) - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.unwrapIOException(); - } finally { - onChanged(); - } // finally - return this; - } - private int bitField0_; - - private java.lang.Object name_ = ""; - /** - *
-     * Required. The resource name of the ETD custom module.
-     *
-     * Its format is:
-     *
-     *   * "organizations/{organization}/locations/{location}/effectiveEventThreatDetectionCustomModules/{effective_event_threat_detection_custom_module}".
-     *   * "folders/{folder}/locations/{location}/effectiveEventThreatDetectionCustomModules/{effective_event_threat_detection_custom_module}".
-     *   * "projects/{project}/locations/{location}/effectiveEventThreatDetectionCustomModules/{effective_event_threat_detection_custom_module}".
-     * 
- * - * 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; - java.lang.String s = bs.toStringUtf8(); - name_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - *
-     * Required. The resource name of the ETD custom module.
-     *
-     * Its format is:
-     *
-     *   * "organizations/{organization}/locations/{location}/effectiveEventThreatDetectionCustomModules/{effective_event_threat_detection_custom_module}".
-     *   * "folders/{folder}/locations/{location}/effectiveEventThreatDetectionCustomModules/{effective_event_threat_detection_custom_module}".
-     *   * "projects/{project}/locations/{location}/effectiveEventThreatDetectionCustomModules/{effective_event_threat_detection_custom_module}".
-     * 
- * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @return The bytes for name. - */ - public com.google.protobuf.ByteString - getNameBytes() { - java.lang.Object ref = name_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - name_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - *
-     * Required. The resource name of the ETD custom module.
-     *
-     * Its format is:
-     *
-     *   * "organizations/{organization}/locations/{location}/effectiveEventThreatDetectionCustomModules/{effective_event_threat_detection_custom_module}".
-     *   * "folders/{folder}/locations/{location}/effectiveEventThreatDetectionCustomModules/{effective_event_threat_detection_custom_module}".
-     *   * "projects/{project}/locations/{location}/effectiveEventThreatDetectionCustomModules/{effective_event_threat_detection_custom_module}".
-     * 
- * - * 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(); } - name_ = value; - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - *
-     * Required. The resource name of the ETD custom module.
-     *
-     * Its format is:
-     *
-     *   * "organizations/{organization}/locations/{location}/effectiveEventThreatDetectionCustomModules/{effective_event_threat_detection_custom_module}".
-     *   * "folders/{folder}/locations/{location}/effectiveEventThreatDetectionCustomModules/{effective_event_threat_detection_custom_module}".
-     *   * "projects/{project}/locations/{location}/effectiveEventThreatDetectionCustomModules/{effective_event_threat_detection_custom_module}".
-     * 
- * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @return This builder for chaining. - */ - public Builder clearName() { - name_ = getDefaultInstance().getName(); - bitField0_ = (bitField0_ & ~0x00000001); - onChanged(); - return this; - } - /** - *
-     * Required. The resource name of the ETD custom module.
-     *
-     * Its format is:
-     *
-     *   * "organizations/{organization}/locations/{location}/effectiveEventThreatDetectionCustomModules/{effective_event_threat_detection_custom_module}".
-     *   * "folders/{folder}/locations/{location}/effectiveEventThreatDetectionCustomModules/{effective_event_threat_detection_custom_module}".
-     *   * "projects/{project}/locations/{location}/effectiveEventThreatDetectionCustomModules/{effective_event_threat_detection_custom_module}".
-     * 
- * - * 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(); } - checkByteStringIsUtf8(value); - name_ = value; - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:google.cloud.securitycentermanagement.v1.GetEffectiveEventThreatDetectionCustomModuleRequest) - } - - // @@protoc_insertion_point(class_scope:google.cloud.securitycentermanagement.v1.GetEffectiveEventThreatDetectionCustomModuleRequest) - private static final com.google.cloud.securitycentermanagement.v1.GetEffectiveEventThreatDetectionCustomModuleRequest DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new com.google.cloud.securitycentermanagement.v1.GetEffectiveEventThreatDetectionCustomModuleRequest(); - } - - public static com.google.cloud.securitycentermanagement.v1.GetEffectiveEventThreatDetectionCustomModuleRequest getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public GetEffectiveEventThreatDetectionCustomModuleRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public com.google.cloud.securitycentermanagement.v1.GetEffectiveEventThreatDetectionCustomModuleRequest getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/owl-bot-staging/java-securitycentermanagement/v1/proto-google-cloud-securitycentermanagement-v1/src/main/java/com/google/cloud/securitycentermanagement/v1/GetEffectiveSecurityHealthAnalyticsCustomModuleRequest.java b/owl-bot-staging/java-securitycentermanagement/v1/proto-google-cloud-securitycentermanagement-v1/src/main/java/com/google/cloud/securitycentermanagement/v1/GetEffectiveSecurityHealthAnalyticsCustomModuleRequest.java deleted file mode 100644 index 59a40084ebc3..000000000000 --- a/owl-bot-staging/java-securitycentermanagement/v1/proto-google-cloud-securitycentermanagement-v1/src/main/java/com/google/cloud/securitycentermanagement/v1/GetEffectiveSecurityHealthAnalyticsCustomModuleRequest.java +++ /dev/null @@ -1,619 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/securitycentermanagement/v1/security_center_management.proto - -package com.google.cloud.securitycentermanagement.v1; - -/** - *
- * Message for getting a EffectiveSecurityHealthAnalyticsCustomModule
- * 
- * - * Protobuf type {@code google.cloud.securitycentermanagement.v1.GetEffectiveSecurityHealthAnalyticsCustomModuleRequest} - */ -public final class GetEffectiveSecurityHealthAnalyticsCustomModuleRequest extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:google.cloud.securitycentermanagement.v1.GetEffectiveSecurityHealthAnalyticsCustomModuleRequest) - GetEffectiveSecurityHealthAnalyticsCustomModuleRequestOrBuilder { -private static final long serialVersionUID = 0L; - // Use GetEffectiveSecurityHealthAnalyticsCustomModuleRequest.newBuilder() to construct. - private GetEffectiveSecurityHealthAnalyticsCustomModuleRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private GetEffectiveSecurityHealthAnalyticsCustomModuleRequest() { - name_ = ""; - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new GetEffectiveSecurityHealthAnalyticsCustomModuleRequest(); - } - - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.securitycentermanagement.v1.SecurityCenterManagementProto.internal_static_google_cloud_securitycentermanagement_v1_GetEffectiveSecurityHealthAnalyticsCustomModuleRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.securitycentermanagement.v1.SecurityCenterManagementProto.internal_static_google_cloud_securitycentermanagement_v1_GetEffectiveSecurityHealthAnalyticsCustomModuleRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.securitycentermanagement.v1.GetEffectiveSecurityHealthAnalyticsCustomModuleRequest.class, com.google.cloud.securitycentermanagement.v1.GetEffectiveSecurityHealthAnalyticsCustomModuleRequest.Builder.class); - } - - public static final int NAME_FIELD_NUMBER = 1; - @SuppressWarnings("serial") - private volatile java.lang.Object name_ = ""; - /** - *
-   * Required. The resource name of the SHA custom module.
-   *
-   * Its format is:
-   *
-   *   * "organizations/{organization}/locations/{location}/effectiveSecurityHealthAnalyticsCustomModules/{module_id}".
-   *   * "folders/{folder}/locations/{location}/effectiveSecurityHealthAnalyticsCustomModules/{module_id}".
-   *   * "projects/{project}/locations/{location}/effectiveSecurityHealthAnalyticsCustomModules/{module_id}".
-   * 
- * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @return The name. - */ - @java.lang.Override - public java.lang.String getName() { - java.lang.Object ref = name_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - name_ = s; - return s; - } - } - /** - *
-   * Required. The resource name of the SHA custom module.
-   *
-   * Its format is:
-   *
-   *   * "organizations/{organization}/locations/{location}/effectiveSecurityHealthAnalyticsCustomModules/{module_id}".
-   *   * "folders/{folder}/locations/{location}/effectiveSecurityHealthAnalyticsCustomModules/{module_id}".
-   *   * "projects/{project}/locations/{location}/effectiveSecurityHealthAnalyticsCustomModules/{module_id}".
-   * 
- * - * 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() { - java.lang.Object ref = name_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - name_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); - } - getUnknownFields().writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); - } - size += getUnknownFields().getSerializedSize(); - memoizedSize = size; - return size; - } - - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof com.google.cloud.securitycentermanagement.v1.GetEffectiveSecurityHealthAnalyticsCustomModuleRequest)) { - return super.equals(obj); - } - com.google.cloud.securitycentermanagement.v1.GetEffectiveSecurityHealthAnalyticsCustomModuleRequest other = (com.google.cloud.securitycentermanagement.v1.GetEffectiveSecurityHealthAnalyticsCustomModuleRequest) obj; - - if (!getName() - .equals(other.getName())) return false; - if (!getUnknownFields().equals(other.getUnknownFields())) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + NAME_FIELD_NUMBER; - hash = (53 * hash) + getName().hashCode(); - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static com.google.cloud.securitycentermanagement.v1.GetEffectiveSecurityHealthAnalyticsCustomModuleRequest parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static com.google.cloud.securitycentermanagement.v1.GetEffectiveSecurityHealthAnalyticsCustomModuleRequest 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.securitycentermanagement.v1.GetEffectiveSecurityHealthAnalyticsCustomModuleRequest parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static com.google.cloud.securitycentermanagement.v1.GetEffectiveSecurityHealthAnalyticsCustomModuleRequest parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static com.google.cloud.securitycentermanagement.v1.GetEffectiveSecurityHealthAnalyticsCustomModuleRequest parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static com.google.cloud.securitycentermanagement.v1.GetEffectiveSecurityHealthAnalyticsCustomModuleRequest parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static com.google.cloud.securitycentermanagement.v1.GetEffectiveSecurityHealthAnalyticsCustomModuleRequest parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static com.google.cloud.securitycentermanagement.v1.GetEffectiveSecurityHealthAnalyticsCustomModuleRequest 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.securitycentermanagement.v1.GetEffectiveSecurityHealthAnalyticsCustomModuleRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - - public static com.google.cloud.securitycentermanagement.v1.GetEffectiveSecurityHealthAnalyticsCustomModuleRequest parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); - } - public static com.google.cloud.securitycentermanagement.v1.GetEffectiveSecurityHealthAnalyticsCustomModuleRequest parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static com.google.cloud.securitycentermanagement.v1.GetEffectiveSecurityHealthAnalyticsCustomModuleRequest 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.securitycentermanagement.v1.GetEffectiveSecurityHealthAnalyticsCustomModuleRequest prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - *
-   * Message for getting a EffectiveSecurityHealthAnalyticsCustomModule
-   * 
- * - * Protobuf type {@code google.cloud.securitycentermanagement.v1.GetEffectiveSecurityHealthAnalyticsCustomModuleRequest} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:google.cloud.securitycentermanagement.v1.GetEffectiveSecurityHealthAnalyticsCustomModuleRequest) - com.google.cloud.securitycentermanagement.v1.GetEffectiveSecurityHealthAnalyticsCustomModuleRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.securitycentermanagement.v1.SecurityCenterManagementProto.internal_static_google_cloud_securitycentermanagement_v1_GetEffectiveSecurityHealthAnalyticsCustomModuleRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.securitycentermanagement.v1.SecurityCenterManagementProto.internal_static_google_cloud_securitycentermanagement_v1_GetEffectiveSecurityHealthAnalyticsCustomModuleRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.securitycentermanagement.v1.GetEffectiveSecurityHealthAnalyticsCustomModuleRequest.class, com.google.cloud.securitycentermanagement.v1.GetEffectiveSecurityHealthAnalyticsCustomModuleRequest.Builder.class); - } - - // Construct using com.google.cloud.securitycentermanagement.v1.GetEffectiveSecurityHealthAnalyticsCustomModuleRequest.newBuilder() - private Builder() { - - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - - } - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - name_ = ""; - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.securitycentermanagement.v1.SecurityCenterManagementProto.internal_static_google_cloud_securitycentermanagement_v1_GetEffectiveSecurityHealthAnalyticsCustomModuleRequest_descriptor; - } - - @java.lang.Override - public com.google.cloud.securitycentermanagement.v1.GetEffectiveSecurityHealthAnalyticsCustomModuleRequest getDefaultInstanceForType() { - return com.google.cloud.securitycentermanagement.v1.GetEffectiveSecurityHealthAnalyticsCustomModuleRequest.getDefaultInstance(); - } - - @java.lang.Override - public com.google.cloud.securitycentermanagement.v1.GetEffectiveSecurityHealthAnalyticsCustomModuleRequest build() { - com.google.cloud.securitycentermanagement.v1.GetEffectiveSecurityHealthAnalyticsCustomModuleRequest result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.cloud.securitycentermanagement.v1.GetEffectiveSecurityHealthAnalyticsCustomModuleRequest buildPartial() { - com.google.cloud.securitycentermanagement.v1.GetEffectiveSecurityHealthAnalyticsCustomModuleRequest result = new com.google.cloud.securitycentermanagement.v1.GetEffectiveSecurityHealthAnalyticsCustomModuleRequest(this); - if (bitField0_ != 0) { buildPartial0(result); } - onBuilt(); - return result; - } - - private void buildPartial0(com.google.cloud.securitycentermanagement.v1.GetEffectiveSecurityHealthAnalyticsCustomModuleRequest result) { - int from_bitField0_ = bitField0_; - if (((from_bitField0_ & 0x00000001) != 0)) { - result.name_ = name_; - } - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.cloud.securitycentermanagement.v1.GetEffectiveSecurityHealthAnalyticsCustomModuleRequest) { - return mergeFrom((com.google.cloud.securitycentermanagement.v1.GetEffectiveSecurityHealthAnalyticsCustomModuleRequest)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.google.cloud.securitycentermanagement.v1.GetEffectiveSecurityHealthAnalyticsCustomModuleRequest other) { - if (other == com.google.cloud.securitycentermanagement.v1.GetEffectiveSecurityHealthAnalyticsCustomModuleRequest.getDefaultInstance()) return this; - if (!other.getName().isEmpty()) { - name_ = other.name_; - bitField0_ |= 0x00000001; - onChanged(); - } - this.mergeUnknownFields(other.getUnknownFields()); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - 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: - } // switch (tag) - } // while (!done) - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.unwrapIOException(); - } finally { - onChanged(); - } // finally - return this; - } - private int bitField0_; - - private java.lang.Object name_ = ""; - /** - *
-     * Required. The resource name of the SHA custom module.
-     *
-     * Its format is:
-     *
-     *   * "organizations/{organization}/locations/{location}/effectiveSecurityHealthAnalyticsCustomModules/{module_id}".
-     *   * "folders/{folder}/locations/{location}/effectiveSecurityHealthAnalyticsCustomModules/{module_id}".
-     *   * "projects/{project}/locations/{location}/effectiveSecurityHealthAnalyticsCustomModules/{module_id}".
-     * 
- * - * 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; - java.lang.String s = bs.toStringUtf8(); - name_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - *
-     * Required. The resource name of the SHA custom module.
-     *
-     * Its format is:
-     *
-     *   * "organizations/{organization}/locations/{location}/effectiveSecurityHealthAnalyticsCustomModules/{module_id}".
-     *   * "folders/{folder}/locations/{location}/effectiveSecurityHealthAnalyticsCustomModules/{module_id}".
-     *   * "projects/{project}/locations/{location}/effectiveSecurityHealthAnalyticsCustomModules/{module_id}".
-     * 
- * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @return The bytes for name. - */ - public com.google.protobuf.ByteString - getNameBytes() { - java.lang.Object ref = name_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - name_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - *
-     * Required. The resource name of the SHA custom module.
-     *
-     * Its format is:
-     *
-     *   * "organizations/{organization}/locations/{location}/effectiveSecurityHealthAnalyticsCustomModules/{module_id}".
-     *   * "folders/{folder}/locations/{location}/effectiveSecurityHealthAnalyticsCustomModules/{module_id}".
-     *   * "projects/{project}/locations/{location}/effectiveSecurityHealthAnalyticsCustomModules/{module_id}".
-     * 
- * - * 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(); } - name_ = value; - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - *
-     * Required. The resource name of the SHA custom module.
-     *
-     * Its format is:
-     *
-     *   * "organizations/{organization}/locations/{location}/effectiveSecurityHealthAnalyticsCustomModules/{module_id}".
-     *   * "folders/{folder}/locations/{location}/effectiveSecurityHealthAnalyticsCustomModules/{module_id}".
-     *   * "projects/{project}/locations/{location}/effectiveSecurityHealthAnalyticsCustomModules/{module_id}".
-     * 
- * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @return This builder for chaining. - */ - public Builder clearName() { - name_ = getDefaultInstance().getName(); - bitField0_ = (bitField0_ & ~0x00000001); - onChanged(); - return this; - } - /** - *
-     * Required. The resource name of the SHA custom module.
-     *
-     * Its format is:
-     *
-     *   * "organizations/{organization}/locations/{location}/effectiveSecurityHealthAnalyticsCustomModules/{module_id}".
-     *   * "folders/{folder}/locations/{location}/effectiveSecurityHealthAnalyticsCustomModules/{module_id}".
-     *   * "projects/{project}/locations/{location}/effectiveSecurityHealthAnalyticsCustomModules/{module_id}".
-     * 
- * - * 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(); } - checkByteStringIsUtf8(value); - name_ = value; - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:google.cloud.securitycentermanagement.v1.GetEffectiveSecurityHealthAnalyticsCustomModuleRequest) - } - - // @@protoc_insertion_point(class_scope:google.cloud.securitycentermanagement.v1.GetEffectiveSecurityHealthAnalyticsCustomModuleRequest) - private static final com.google.cloud.securitycentermanagement.v1.GetEffectiveSecurityHealthAnalyticsCustomModuleRequest DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new com.google.cloud.securitycentermanagement.v1.GetEffectiveSecurityHealthAnalyticsCustomModuleRequest(); - } - - public static com.google.cloud.securitycentermanagement.v1.GetEffectiveSecurityHealthAnalyticsCustomModuleRequest getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public GetEffectiveSecurityHealthAnalyticsCustomModuleRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public com.google.cloud.securitycentermanagement.v1.GetEffectiveSecurityHealthAnalyticsCustomModuleRequest getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/owl-bot-staging/java-securitycentermanagement/v1/proto-google-cloud-securitycentermanagement-v1/src/main/java/com/google/cloud/securitycentermanagement/v1/GetSecurityHealthAnalyticsCustomModuleRequest.java b/owl-bot-staging/java-securitycentermanagement/v1/proto-google-cloud-securitycentermanagement-v1/src/main/java/com/google/cloud/securitycentermanagement/v1/GetSecurityHealthAnalyticsCustomModuleRequest.java deleted file mode 100644 index 8f2d3cdc741c..000000000000 --- a/owl-bot-staging/java-securitycentermanagement/v1/proto-google-cloud-securitycentermanagement-v1/src/main/java/com/google/cloud/securitycentermanagement/v1/GetSecurityHealthAnalyticsCustomModuleRequest.java +++ /dev/null @@ -1,577 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/securitycentermanagement/v1/security_center_management.proto - -package com.google.cloud.securitycentermanagement.v1; - -/** - *
- * Message for getting a SecurityHealthAnalyticsCustomModule
- * 
- * - * Protobuf type {@code google.cloud.securitycentermanagement.v1.GetSecurityHealthAnalyticsCustomModuleRequest} - */ -public final class GetSecurityHealthAnalyticsCustomModuleRequest extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:google.cloud.securitycentermanagement.v1.GetSecurityHealthAnalyticsCustomModuleRequest) - GetSecurityHealthAnalyticsCustomModuleRequestOrBuilder { -private static final long serialVersionUID = 0L; - // Use GetSecurityHealthAnalyticsCustomModuleRequest.newBuilder() to construct. - private GetSecurityHealthAnalyticsCustomModuleRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private GetSecurityHealthAnalyticsCustomModuleRequest() { - name_ = ""; - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new GetSecurityHealthAnalyticsCustomModuleRequest(); - } - - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.securitycentermanagement.v1.SecurityCenterManagementProto.internal_static_google_cloud_securitycentermanagement_v1_GetSecurityHealthAnalyticsCustomModuleRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.securitycentermanagement.v1.SecurityCenterManagementProto.internal_static_google_cloud_securitycentermanagement_v1_GetSecurityHealthAnalyticsCustomModuleRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.securitycentermanagement.v1.GetSecurityHealthAnalyticsCustomModuleRequest.class, com.google.cloud.securitycentermanagement.v1.GetSecurityHealthAnalyticsCustomModuleRequest.Builder.class); - } - - public static final int NAME_FIELD_NUMBER = 1; - @SuppressWarnings("serial") - private volatile java.lang.Object name_ = ""; - /** - *
-   * Required. Name of the resource
-   * 
- * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @return The name. - */ - @java.lang.Override - public java.lang.String getName() { - java.lang.Object ref = name_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - name_ = s; - return s; - } - } - /** - *
-   * Required. Name of the resource
-   * 
- * - * 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() { - java.lang.Object ref = name_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - name_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); - } - getUnknownFields().writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); - } - size += getUnknownFields().getSerializedSize(); - memoizedSize = size; - return size; - } - - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof com.google.cloud.securitycentermanagement.v1.GetSecurityHealthAnalyticsCustomModuleRequest)) { - return super.equals(obj); - } - com.google.cloud.securitycentermanagement.v1.GetSecurityHealthAnalyticsCustomModuleRequest other = (com.google.cloud.securitycentermanagement.v1.GetSecurityHealthAnalyticsCustomModuleRequest) obj; - - if (!getName() - .equals(other.getName())) return false; - if (!getUnknownFields().equals(other.getUnknownFields())) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + NAME_FIELD_NUMBER; - hash = (53 * hash) + getName().hashCode(); - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static com.google.cloud.securitycentermanagement.v1.GetSecurityHealthAnalyticsCustomModuleRequest parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static com.google.cloud.securitycentermanagement.v1.GetSecurityHealthAnalyticsCustomModuleRequest 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.securitycentermanagement.v1.GetSecurityHealthAnalyticsCustomModuleRequest parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static com.google.cloud.securitycentermanagement.v1.GetSecurityHealthAnalyticsCustomModuleRequest parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static com.google.cloud.securitycentermanagement.v1.GetSecurityHealthAnalyticsCustomModuleRequest parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static com.google.cloud.securitycentermanagement.v1.GetSecurityHealthAnalyticsCustomModuleRequest parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static com.google.cloud.securitycentermanagement.v1.GetSecurityHealthAnalyticsCustomModuleRequest parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static com.google.cloud.securitycentermanagement.v1.GetSecurityHealthAnalyticsCustomModuleRequest 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.securitycentermanagement.v1.GetSecurityHealthAnalyticsCustomModuleRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - - public static com.google.cloud.securitycentermanagement.v1.GetSecurityHealthAnalyticsCustomModuleRequest parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); - } - public static com.google.cloud.securitycentermanagement.v1.GetSecurityHealthAnalyticsCustomModuleRequest parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static com.google.cloud.securitycentermanagement.v1.GetSecurityHealthAnalyticsCustomModuleRequest 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.securitycentermanagement.v1.GetSecurityHealthAnalyticsCustomModuleRequest prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - *
-   * Message for getting a SecurityHealthAnalyticsCustomModule
-   * 
- * - * Protobuf type {@code google.cloud.securitycentermanagement.v1.GetSecurityHealthAnalyticsCustomModuleRequest} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:google.cloud.securitycentermanagement.v1.GetSecurityHealthAnalyticsCustomModuleRequest) - com.google.cloud.securitycentermanagement.v1.GetSecurityHealthAnalyticsCustomModuleRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.securitycentermanagement.v1.SecurityCenterManagementProto.internal_static_google_cloud_securitycentermanagement_v1_GetSecurityHealthAnalyticsCustomModuleRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.securitycentermanagement.v1.SecurityCenterManagementProto.internal_static_google_cloud_securitycentermanagement_v1_GetSecurityHealthAnalyticsCustomModuleRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.securitycentermanagement.v1.GetSecurityHealthAnalyticsCustomModuleRequest.class, com.google.cloud.securitycentermanagement.v1.GetSecurityHealthAnalyticsCustomModuleRequest.Builder.class); - } - - // Construct using com.google.cloud.securitycentermanagement.v1.GetSecurityHealthAnalyticsCustomModuleRequest.newBuilder() - private Builder() { - - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - - } - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - name_ = ""; - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.securitycentermanagement.v1.SecurityCenterManagementProto.internal_static_google_cloud_securitycentermanagement_v1_GetSecurityHealthAnalyticsCustomModuleRequest_descriptor; - } - - @java.lang.Override - public com.google.cloud.securitycentermanagement.v1.GetSecurityHealthAnalyticsCustomModuleRequest getDefaultInstanceForType() { - return com.google.cloud.securitycentermanagement.v1.GetSecurityHealthAnalyticsCustomModuleRequest.getDefaultInstance(); - } - - @java.lang.Override - public com.google.cloud.securitycentermanagement.v1.GetSecurityHealthAnalyticsCustomModuleRequest build() { - com.google.cloud.securitycentermanagement.v1.GetSecurityHealthAnalyticsCustomModuleRequest result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.cloud.securitycentermanagement.v1.GetSecurityHealthAnalyticsCustomModuleRequest buildPartial() { - com.google.cloud.securitycentermanagement.v1.GetSecurityHealthAnalyticsCustomModuleRequest result = new com.google.cloud.securitycentermanagement.v1.GetSecurityHealthAnalyticsCustomModuleRequest(this); - if (bitField0_ != 0) { buildPartial0(result); } - onBuilt(); - return result; - } - - private void buildPartial0(com.google.cloud.securitycentermanagement.v1.GetSecurityHealthAnalyticsCustomModuleRequest result) { - int from_bitField0_ = bitField0_; - if (((from_bitField0_ & 0x00000001) != 0)) { - result.name_ = name_; - } - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.cloud.securitycentermanagement.v1.GetSecurityHealthAnalyticsCustomModuleRequest) { - return mergeFrom((com.google.cloud.securitycentermanagement.v1.GetSecurityHealthAnalyticsCustomModuleRequest)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.google.cloud.securitycentermanagement.v1.GetSecurityHealthAnalyticsCustomModuleRequest other) { - if (other == com.google.cloud.securitycentermanagement.v1.GetSecurityHealthAnalyticsCustomModuleRequest.getDefaultInstance()) return this; - if (!other.getName().isEmpty()) { - name_ = other.name_; - bitField0_ |= 0x00000001; - onChanged(); - } - this.mergeUnknownFields(other.getUnknownFields()); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - 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: - } // switch (tag) - } // while (!done) - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.unwrapIOException(); - } finally { - onChanged(); - } // finally - return this; - } - private int bitField0_; - - private java.lang.Object name_ = ""; - /** - *
-     * Required. Name of the resource
-     * 
- * - * 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; - java.lang.String s = bs.toStringUtf8(); - name_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - *
-     * Required. Name of the resource
-     * 
- * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @return The bytes for name. - */ - public com.google.protobuf.ByteString - getNameBytes() { - java.lang.Object ref = name_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - name_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - *
-     * Required. Name of the resource
-     * 
- * - * 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(); } - name_ = value; - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - *
-     * Required. Name of the resource
-     * 
- * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @return This builder for chaining. - */ - public Builder clearName() { - name_ = getDefaultInstance().getName(); - bitField0_ = (bitField0_ & ~0x00000001); - onChanged(); - return this; - } - /** - *
-     * Required. Name of the resource
-     * 
- * - * 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(); } - checkByteStringIsUtf8(value); - name_ = value; - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:google.cloud.securitycentermanagement.v1.GetSecurityHealthAnalyticsCustomModuleRequest) - } - - // @@protoc_insertion_point(class_scope:google.cloud.securitycentermanagement.v1.GetSecurityHealthAnalyticsCustomModuleRequest) - private static final com.google.cloud.securitycentermanagement.v1.GetSecurityHealthAnalyticsCustomModuleRequest DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new com.google.cloud.securitycentermanagement.v1.GetSecurityHealthAnalyticsCustomModuleRequest(); - } - - public static com.google.cloud.securitycentermanagement.v1.GetSecurityHealthAnalyticsCustomModuleRequest getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public GetSecurityHealthAnalyticsCustomModuleRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public com.google.cloud.securitycentermanagement.v1.GetSecurityHealthAnalyticsCustomModuleRequest getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/owl-bot-staging/java-securitycentermanagement/v1/proto-google-cloud-securitycentermanagement-v1/src/main/java/com/google/cloud/securitycentermanagement/v1/GetSecurityHealthAnalyticsCustomModuleRequestOrBuilder.java b/owl-bot-staging/java-securitycentermanagement/v1/proto-google-cloud-securitycentermanagement-v1/src/main/java/com/google/cloud/securitycentermanagement/v1/GetSecurityHealthAnalyticsCustomModuleRequestOrBuilder.java deleted file mode 100644 index 722e61057ef9..000000000000 --- a/owl-bot-staging/java-securitycentermanagement/v1/proto-google-cloud-securitycentermanagement-v1/src/main/java/com/google/cloud/securitycentermanagement/v1/GetSecurityHealthAnalyticsCustomModuleRequestOrBuilder.java +++ /dev/null @@ -1,29 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/securitycentermanagement/v1/security_center_management.proto - -package com.google.cloud.securitycentermanagement.v1; - -public interface GetSecurityHealthAnalyticsCustomModuleRequestOrBuilder extends - // @@protoc_insertion_point(interface_extends:google.cloud.securitycentermanagement.v1.GetSecurityHealthAnalyticsCustomModuleRequest) - com.google.protobuf.MessageOrBuilder { - - /** - *
-   * Required. Name of the resource
-   * 
- * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @return The name. - */ - java.lang.String getName(); - /** - *
-   * Required. Name of the 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-securitycentermanagement/v1/proto-google-cloud-securitycentermanagement-v1/src/main/java/com/google/cloud/securitycentermanagement/v1/ListDescendantEventThreatDetectionCustomModulesResponse.java b/owl-bot-staging/java-securitycentermanagement/v1/proto-google-cloud-securitycentermanagement-v1/src/main/java/com/google/cloud/securitycentermanagement/v1/ListDescendantEventThreatDetectionCustomModulesResponse.java deleted file mode 100644 index dea1981c254b..000000000000 --- a/owl-bot-staging/java-securitycentermanagement/v1/proto-google-cloud-securitycentermanagement-v1/src/main/java/com/google/cloud/securitycentermanagement/v1/ListDescendantEventThreatDetectionCustomModulesResponse.java +++ /dev/null @@ -1,1025 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/securitycentermanagement/v1/security_center_management.proto - -package com.google.cloud.securitycentermanagement.v1; - -/** - *
- * Response message for listing descendant Event Threat Detection custom
- * modules.
- * 
- * - * Protobuf type {@code google.cloud.securitycentermanagement.v1.ListDescendantEventThreatDetectionCustomModulesResponse} - */ -public final class ListDescendantEventThreatDetectionCustomModulesResponse extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:google.cloud.securitycentermanagement.v1.ListDescendantEventThreatDetectionCustomModulesResponse) - ListDescendantEventThreatDetectionCustomModulesResponseOrBuilder { -private static final long serialVersionUID = 0L; - // Use ListDescendantEventThreatDetectionCustomModulesResponse.newBuilder() to construct. - private ListDescendantEventThreatDetectionCustomModulesResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private ListDescendantEventThreatDetectionCustomModulesResponse() { - eventThreatDetectionCustomModules_ = java.util.Collections.emptyList(); - nextPageToken_ = ""; - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new ListDescendantEventThreatDetectionCustomModulesResponse(); - } - - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.securitycentermanagement.v1.SecurityCenterManagementProto.internal_static_google_cloud_securitycentermanagement_v1_ListDescendantEventThreatDetectionCustomModulesResponse_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.securitycentermanagement.v1.SecurityCenterManagementProto.internal_static_google_cloud_securitycentermanagement_v1_ListDescendantEventThreatDetectionCustomModulesResponse_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.securitycentermanagement.v1.ListDescendantEventThreatDetectionCustomModulesResponse.class, com.google.cloud.securitycentermanagement.v1.ListDescendantEventThreatDetectionCustomModulesResponse.Builder.class); - } - - public static final int EVENT_THREAT_DETECTION_CUSTOM_MODULES_FIELD_NUMBER = 1; - @SuppressWarnings("serial") - private java.util.List eventThreatDetectionCustomModules_; - /** - *
-   * The list of EventThreatDetectionCustomModules
-   * 
- * - * repeated .google.cloud.securitycentermanagement.v1.EventThreatDetectionCustomModule event_threat_detection_custom_modules = 1; - */ - @java.lang.Override - public java.util.List getEventThreatDetectionCustomModulesList() { - return eventThreatDetectionCustomModules_; - } - /** - *
-   * The list of EventThreatDetectionCustomModules
-   * 
- * - * repeated .google.cloud.securitycentermanagement.v1.EventThreatDetectionCustomModule event_threat_detection_custom_modules = 1; - */ - @java.lang.Override - public java.util.List - getEventThreatDetectionCustomModulesOrBuilderList() { - return eventThreatDetectionCustomModules_; - } - /** - *
-   * The list of EventThreatDetectionCustomModules
-   * 
- * - * repeated .google.cloud.securitycentermanagement.v1.EventThreatDetectionCustomModule event_threat_detection_custom_modules = 1; - */ - @java.lang.Override - public int getEventThreatDetectionCustomModulesCount() { - return eventThreatDetectionCustomModules_.size(); - } - /** - *
-   * The list of EventThreatDetectionCustomModules
-   * 
- * - * repeated .google.cloud.securitycentermanagement.v1.EventThreatDetectionCustomModule event_threat_detection_custom_modules = 1; - */ - @java.lang.Override - public com.google.cloud.securitycentermanagement.v1.EventThreatDetectionCustomModule getEventThreatDetectionCustomModules(int index) { - return eventThreatDetectionCustomModules_.get(index); - } - /** - *
-   * The list of EventThreatDetectionCustomModules
-   * 
- * - * repeated .google.cloud.securitycentermanagement.v1.EventThreatDetectionCustomModule event_threat_detection_custom_modules = 1; - */ - @java.lang.Override - public com.google.cloud.securitycentermanagement.v1.EventThreatDetectionCustomModuleOrBuilder getEventThreatDetectionCustomModulesOrBuilder( - int index) { - return eventThreatDetectionCustomModules_.get(index); - } - - public static final int NEXT_PAGE_TOKEN_FIELD_NUMBER = 2; - @SuppressWarnings("serial") - private volatile java.lang.Object nextPageToken_ = ""; - /** - *
-   * A token identifying a page of results the server should return.
-   * 
- * - * string next_page_token = 2; - * @return The nextPageToken. - */ - @java.lang.Override - public java.lang.String getNextPageToken() { - java.lang.Object ref = nextPageToken_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - nextPageToken_ = s; - return s; - } - } - /** - *
-   * A token identifying a page of results the server should return.
-   * 
- * - * string next_page_token = 2; - * @return The bytes for nextPageToken. - */ - @java.lang.Override - 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); - nextPageToken_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - for (int i = 0; i < eventThreatDetectionCustomModules_.size(); i++) { - output.writeMessage(1, eventThreatDetectionCustomModules_.get(i)); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(nextPageToken_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 2, nextPageToken_); - } - getUnknownFields().writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - for (int i = 0; i < eventThreatDetectionCustomModules_.size(); i++) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, eventThreatDetectionCustomModules_.get(i)); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(nextPageToken_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, nextPageToken_); - } - size += getUnknownFields().getSerializedSize(); - memoizedSize = size; - return size; - } - - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof com.google.cloud.securitycentermanagement.v1.ListDescendantEventThreatDetectionCustomModulesResponse)) { - return super.equals(obj); - } - com.google.cloud.securitycentermanagement.v1.ListDescendantEventThreatDetectionCustomModulesResponse other = (com.google.cloud.securitycentermanagement.v1.ListDescendantEventThreatDetectionCustomModulesResponse) obj; - - if (!getEventThreatDetectionCustomModulesList() - .equals(other.getEventThreatDetectionCustomModulesList())) return false; - if (!getNextPageToken() - .equals(other.getNextPageToken())) return false; - if (!getUnknownFields().equals(other.getUnknownFields())) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - if (getEventThreatDetectionCustomModulesCount() > 0) { - hash = (37 * hash) + EVENT_THREAT_DETECTION_CUSTOM_MODULES_FIELD_NUMBER; - hash = (53 * hash) + getEventThreatDetectionCustomModulesList().hashCode(); - } - hash = (37 * hash) + NEXT_PAGE_TOKEN_FIELD_NUMBER; - hash = (53 * hash) + getNextPageToken().hashCode(); - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static com.google.cloud.securitycentermanagement.v1.ListDescendantEventThreatDetectionCustomModulesResponse parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static com.google.cloud.securitycentermanagement.v1.ListDescendantEventThreatDetectionCustomModulesResponse 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.securitycentermanagement.v1.ListDescendantEventThreatDetectionCustomModulesResponse parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static com.google.cloud.securitycentermanagement.v1.ListDescendantEventThreatDetectionCustomModulesResponse parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static com.google.cloud.securitycentermanagement.v1.ListDescendantEventThreatDetectionCustomModulesResponse parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static com.google.cloud.securitycentermanagement.v1.ListDescendantEventThreatDetectionCustomModulesResponse parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static com.google.cloud.securitycentermanagement.v1.ListDescendantEventThreatDetectionCustomModulesResponse parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static com.google.cloud.securitycentermanagement.v1.ListDescendantEventThreatDetectionCustomModulesResponse 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.securitycentermanagement.v1.ListDescendantEventThreatDetectionCustomModulesResponse parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - - public static com.google.cloud.securitycentermanagement.v1.ListDescendantEventThreatDetectionCustomModulesResponse parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); - } - public static com.google.cloud.securitycentermanagement.v1.ListDescendantEventThreatDetectionCustomModulesResponse parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static com.google.cloud.securitycentermanagement.v1.ListDescendantEventThreatDetectionCustomModulesResponse 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.securitycentermanagement.v1.ListDescendantEventThreatDetectionCustomModulesResponse prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - *
-   * Response message for listing descendant Event Threat Detection custom
-   * modules.
-   * 
- * - * Protobuf type {@code google.cloud.securitycentermanagement.v1.ListDescendantEventThreatDetectionCustomModulesResponse} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:google.cloud.securitycentermanagement.v1.ListDescendantEventThreatDetectionCustomModulesResponse) - com.google.cloud.securitycentermanagement.v1.ListDescendantEventThreatDetectionCustomModulesResponseOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.securitycentermanagement.v1.SecurityCenterManagementProto.internal_static_google_cloud_securitycentermanagement_v1_ListDescendantEventThreatDetectionCustomModulesResponse_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.securitycentermanagement.v1.SecurityCenterManagementProto.internal_static_google_cloud_securitycentermanagement_v1_ListDescendantEventThreatDetectionCustomModulesResponse_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.securitycentermanagement.v1.ListDescendantEventThreatDetectionCustomModulesResponse.class, com.google.cloud.securitycentermanagement.v1.ListDescendantEventThreatDetectionCustomModulesResponse.Builder.class); - } - - // Construct using com.google.cloud.securitycentermanagement.v1.ListDescendantEventThreatDetectionCustomModulesResponse.newBuilder() - private Builder() { - - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - - } - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - if (eventThreatDetectionCustomModulesBuilder_ == null) { - eventThreatDetectionCustomModules_ = java.util.Collections.emptyList(); - } else { - eventThreatDetectionCustomModules_ = null; - eventThreatDetectionCustomModulesBuilder_.clear(); - } - bitField0_ = (bitField0_ & ~0x00000001); - nextPageToken_ = ""; - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.securitycentermanagement.v1.SecurityCenterManagementProto.internal_static_google_cloud_securitycentermanagement_v1_ListDescendantEventThreatDetectionCustomModulesResponse_descriptor; - } - - @java.lang.Override - public com.google.cloud.securitycentermanagement.v1.ListDescendantEventThreatDetectionCustomModulesResponse getDefaultInstanceForType() { - return com.google.cloud.securitycentermanagement.v1.ListDescendantEventThreatDetectionCustomModulesResponse.getDefaultInstance(); - } - - @java.lang.Override - public com.google.cloud.securitycentermanagement.v1.ListDescendantEventThreatDetectionCustomModulesResponse build() { - com.google.cloud.securitycentermanagement.v1.ListDescendantEventThreatDetectionCustomModulesResponse result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.cloud.securitycentermanagement.v1.ListDescendantEventThreatDetectionCustomModulesResponse buildPartial() { - com.google.cloud.securitycentermanagement.v1.ListDescendantEventThreatDetectionCustomModulesResponse result = new com.google.cloud.securitycentermanagement.v1.ListDescendantEventThreatDetectionCustomModulesResponse(this); - buildPartialRepeatedFields(result); - if (bitField0_ != 0) { buildPartial0(result); } - onBuilt(); - return result; - } - - private void buildPartialRepeatedFields(com.google.cloud.securitycentermanagement.v1.ListDescendantEventThreatDetectionCustomModulesResponse result) { - if (eventThreatDetectionCustomModulesBuilder_ == null) { - if (((bitField0_ & 0x00000001) != 0)) { - eventThreatDetectionCustomModules_ = java.util.Collections.unmodifiableList(eventThreatDetectionCustomModules_); - bitField0_ = (bitField0_ & ~0x00000001); - } - result.eventThreatDetectionCustomModules_ = eventThreatDetectionCustomModules_; - } else { - result.eventThreatDetectionCustomModules_ = eventThreatDetectionCustomModulesBuilder_.build(); - } - } - - private void buildPartial0(com.google.cloud.securitycentermanagement.v1.ListDescendantEventThreatDetectionCustomModulesResponse result) { - int from_bitField0_ = bitField0_; - if (((from_bitField0_ & 0x00000002) != 0)) { - result.nextPageToken_ = nextPageToken_; - } - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.cloud.securitycentermanagement.v1.ListDescendantEventThreatDetectionCustomModulesResponse) { - return mergeFrom((com.google.cloud.securitycentermanagement.v1.ListDescendantEventThreatDetectionCustomModulesResponse)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.google.cloud.securitycentermanagement.v1.ListDescendantEventThreatDetectionCustomModulesResponse other) { - if (other == com.google.cloud.securitycentermanagement.v1.ListDescendantEventThreatDetectionCustomModulesResponse.getDefaultInstance()) return this; - if (eventThreatDetectionCustomModulesBuilder_ == null) { - if (!other.eventThreatDetectionCustomModules_.isEmpty()) { - if (eventThreatDetectionCustomModules_.isEmpty()) { - eventThreatDetectionCustomModules_ = other.eventThreatDetectionCustomModules_; - bitField0_ = (bitField0_ & ~0x00000001); - } else { - ensureEventThreatDetectionCustomModulesIsMutable(); - eventThreatDetectionCustomModules_.addAll(other.eventThreatDetectionCustomModules_); - } - onChanged(); - } - } else { - if (!other.eventThreatDetectionCustomModules_.isEmpty()) { - if (eventThreatDetectionCustomModulesBuilder_.isEmpty()) { - eventThreatDetectionCustomModulesBuilder_.dispose(); - eventThreatDetectionCustomModulesBuilder_ = null; - eventThreatDetectionCustomModules_ = other.eventThreatDetectionCustomModules_; - bitField0_ = (bitField0_ & ~0x00000001); - eventThreatDetectionCustomModulesBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? - getEventThreatDetectionCustomModulesFieldBuilder() : null; - } else { - eventThreatDetectionCustomModulesBuilder_.addAllMessages(other.eventThreatDetectionCustomModules_); - } - } - } - if (!other.getNextPageToken().isEmpty()) { - nextPageToken_ = other.nextPageToken_; - bitField0_ |= 0x00000002; - onChanged(); - } - this.mergeUnknownFields(other.getUnknownFields()); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: { - com.google.cloud.securitycentermanagement.v1.EventThreatDetectionCustomModule m = - input.readMessage( - com.google.cloud.securitycentermanagement.v1.EventThreatDetectionCustomModule.parser(), - extensionRegistry); - if (eventThreatDetectionCustomModulesBuilder_ == null) { - ensureEventThreatDetectionCustomModulesIsMutable(); - eventThreatDetectionCustomModules_.add(m); - } else { - eventThreatDetectionCustomModulesBuilder_.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) { - throw e.unwrapIOException(); - } finally { - onChanged(); - } // finally - return this; - } - private int bitField0_; - - private java.util.List eventThreatDetectionCustomModules_ = - java.util.Collections.emptyList(); - private void ensureEventThreatDetectionCustomModulesIsMutable() { - if (!((bitField0_ & 0x00000001) != 0)) { - eventThreatDetectionCustomModules_ = new java.util.ArrayList(eventThreatDetectionCustomModules_); - bitField0_ |= 0x00000001; - } - } - - private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.securitycentermanagement.v1.EventThreatDetectionCustomModule, com.google.cloud.securitycentermanagement.v1.EventThreatDetectionCustomModule.Builder, com.google.cloud.securitycentermanagement.v1.EventThreatDetectionCustomModuleOrBuilder> eventThreatDetectionCustomModulesBuilder_; - - /** - *
-     * The list of EventThreatDetectionCustomModules
-     * 
- * - * repeated .google.cloud.securitycentermanagement.v1.EventThreatDetectionCustomModule event_threat_detection_custom_modules = 1; - */ - public java.util.List getEventThreatDetectionCustomModulesList() { - if (eventThreatDetectionCustomModulesBuilder_ == null) { - return java.util.Collections.unmodifiableList(eventThreatDetectionCustomModules_); - } else { - return eventThreatDetectionCustomModulesBuilder_.getMessageList(); - } - } - /** - *
-     * The list of EventThreatDetectionCustomModules
-     * 
- * - * repeated .google.cloud.securitycentermanagement.v1.EventThreatDetectionCustomModule event_threat_detection_custom_modules = 1; - */ - public int getEventThreatDetectionCustomModulesCount() { - if (eventThreatDetectionCustomModulesBuilder_ == null) { - return eventThreatDetectionCustomModules_.size(); - } else { - return eventThreatDetectionCustomModulesBuilder_.getCount(); - } - } - /** - *
-     * The list of EventThreatDetectionCustomModules
-     * 
- * - * repeated .google.cloud.securitycentermanagement.v1.EventThreatDetectionCustomModule event_threat_detection_custom_modules = 1; - */ - public com.google.cloud.securitycentermanagement.v1.EventThreatDetectionCustomModule getEventThreatDetectionCustomModules(int index) { - if (eventThreatDetectionCustomModulesBuilder_ == null) { - return eventThreatDetectionCustomModules_.get(index); - } else { - return eventThreatDetectionCustomModulesBuilder_.getMessage(index); - } - } - /** - *
-     * The list of EventThreatDetectionCustomModules
-     * 
- * - * repeated .google.cloud.securitycentermanagement.v1.EventThreatDetectionCustomModule event_threat_detection_custom_modules = 1; - */ - public Builder setEventThreatDetectionCustomModules( - int index, com.google.cloud.securitycentermanagement.v1.EventThreatDetectionCustomModule value) { - if (eventThreatDetectionCustomModulesBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureEventThreatDetectionCustomModulesIsMutable(); - eventThreatDetectionCustomModules_.set(index, value); - onChanged(); - } else { - eventThreatDetectionCustomModulesBuilder_.setMessage(index, value); - } - return this; - } - /** - *
-     * The list of EventThreatDetectionCustomModules
-     * 
- * - * repeated .google.cloud.securitycentermanagement.v1.EventThreatDetectionCustomModule event_threat_detection_custom_modules = 1; - */ - public Builder setEventThreatDetectionCustomModules( - int index, com.google.cloud.securitycentermanagement.v1.EventThreatDetectionCustomModule.Builder builderForValue) { - if (eventThreatDetectionCustomModulesBuilder_ == null) { - ensureEventThreatDetectionCustomModulesIsMutable(); - eventThreatDetectionCustomModules_.set(index, builderForValue.build()); - onChanged(); - } else { - eventThreatDetectionCustomModulesBuilder_.setMessage(index, builderForValue.build()); - } - return this; - } - /** - *
-     * The list of EventThreatDetectionCustomModules
-     * 
- * - * repeated .google.cloud.securitycentermanagement.v1.EventThreatDetectionCustomModule event_threat_detection_custom_modules = 1; - */ - public Builder addEventThreatDetectionCustomModules(com.google.cloud.securitycentermanagement.v1.EventThreatDetectionCustomModule value) { - if (eventThreatDetectionCustomModulesBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureEventThreatDetectionCustomModulesIsMutable(); - eventThreatDetectionCustomModules_.add(value); - onChanged(); - } else { - eventThreatDetectionCustomModulesBuilder_.addMessage(value); - } - return this; - } - /** - *
-     * The list of EventThreatDetectionCustomModules
-     * 
- * - * repeated .google.cloud.securitycentermanagement.v1.EventThreatDetectionCustomModule event_threat_detection_custom_modules = 1; - */ - public Builder addEventThreatDetectionCustomModules( - int index, com.google.cloud.securitycentermanagement.v1.EventThreatDetectionCustomModule value) { - if (eventThreatDetectionCustomModulesBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureEventThreatDetectionCustomModulesIsMutable(); - eventThreatDetectionCustomModules_.add(index, value); - onChanged(); - } else { - eventThreatDetectionCustomModulesBuilder_.addMessage(index, value); - } - return this; - } - /** - *
-     * The list of EventThreatDetectionCustomModules
-     * 
- * - * repeated .google.cloud.securitycentermanagement.v1.EventThreatDetectionCustomModule event_threat_detection_custom_modules = 1; - */ - public Builder addEventThreatDetectionCustomModules( - com.google.cloud.securitycentermanagement.v1.EventThreatDetectionCustomModule.Builder builderForValue) { - if (eventThreatDetectionCustomModulesBuilder_ == null) { - ensureEventThreatDetectionCustomModulesIsMutable(); - eventThreatDetectionCustomModules_.add(builderForValue.build()); - onChanged(); - } else { - eventThreatDetectionCustomModulesBuilder_.addMessage(builderForValue.build()); - } - return this; - } - /** - *
-     * The list of EventThreatDetectionCustomModules
-     * 
- * - * repeated .google.cloud.securitycentermanagement.v1.EventThreatDetectionCustomModule event_threat_detection_custom_modules = 1; - */ - public Builder addEventThreatDetectionCustomModules( - int index, com.google.cloud.securitycentermanagement.v1.EventThreatDetectionCustomModule.Builder builderForValue) { - if (eventThreatDetectionCustomModulesBuilder_ == null) { - ensureEventThreatDetectionCustomModulesIsMutable(); - eventThreatDetectionCustomModules_.add(index, builderForValue.build()); - onChanged(); - } else { - eventThreatDetectionCustomModulesBuilder_.addMessage(index, builderForValue.build()); - } - return this; - } - /** - *
-     * The list of EventThreatDetectionCustomModules
-     * 
- * - * repeated .google.cloud.securitycentermanagement.v1.EventThreatDetectionCustomModule event_threat_detection_custom_modules = 1; - */ - public Builder addAllEventThreatDetectionCustomModules( - java.lang.Iterable values) { - if (eventThreatDetectionCustomModulesBuilder_ == null) { - ensureEventThreatDetectionCustomModulesIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, eventThreatDetectionCustomModules_); - onChanged(); - } else { - eventThreatDetectionCustomModulesBuilder_.addAllMessages(values); - } - return this; - } - /** - *
-     * The list of EventThreatDetectionCustomModules
-     * 
- * - * repeated .google.cloud.securitycentermanagement.v1.EventThreatDetectionCustomModule event_threat_detection_custom_modules = 1; - */ - public Builder clearEventThreatDetectionCustomModules() { - if (eventThreatDetectionCustomModulesBuilder_ == null) { - eventThreatDetectionCustomModules_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000001); - onChanged(); - } else { - eventThreatDetectionCustomModulesBuilder_.clear(); - } - return this; - } - /** - *
-     * The list of EventThreatDetectionCustomModules
-     * 
- * - * repeated .google.cloud.securitycentermanagement.v1.EventThreatDetectionCustomModule event_threat_detection_custom_modules = 1; - */ - public Builder removeEventThreatDetectionCustomModules(int index) { - if (eventThreatDetectionCustomModulesBuilder_ == null) { - ensureEventThreatDetectionCustomModulesIsMutable(); - eventThreatDetectionCustomModules_.remove(index); - onChanged(); - } else { - eventThreatDetectionCustomModulesBuilder_.remove(index); - } - return this; - } - /** - *
-     * The list of EventThreatDetectionCustomModules
-     * 
- * - * repeated .google.cloud.securitycentermanagement.v1.EventThreatDetectionCustomModule event_threat_detection_custom_modules = 1; - */ - public com.google.cloud.securitycentermanagement.v1.EventThreatDetectionCustomModule.Builder getEventThreatDetectionCustomModulesBuilder( - int index) { - return getEventThreatDetectionCustomModulesFieldBuilder().getBuilder(index); - } - /** - *
-     * The list of EventThreatDetectionCustomModules
-     * 
- * - * repeated .google.cloud.securitycentermanagement.v1.EventThreatDetectionCustomModule event_threat_detection_custom_modules = 1; - */ - public com.google.cloud.securitycentermanagement.v1.EventThreatDetectionCustomModuleOrBuilder getEventThreatDetectionCustomModulesOrBuilder( - int index) { - if (eventThreatDetectionCustomModulesBuilder_ == null) { - return eventThreatDetectionCustomModules_.get(index); } else { - return eventThreatDetectionCustomModulesBuilder_.getMessageOrBuilder(index); - } - } - /** - *
-     * The list of EventThreatDetectionCustomModules
-     * 
- * - * repeated .google.cloud.securitycentermanagement.v1.EventThreatDetectionCustomModule event_threat_detection_custom_modules = 1; - */ - public java.util.List - getEventThreatDetectionCustomModulesOrBuilderList() { - if (eventThreatDetectionCustomModulesBuilder_ != null) { - return eventThreatDetectionCustomModulesBuilder_.getMessageOrBuilderList(); - } else { - return java.util.Collections.unmodifiableList(eventThreatDetectionCustomModules_); - } - } - /** - *
-     * The list of EventThreatDetectionCustomModules
-     * 
- * - * repeated .google.cloud.securitycentermanagement.v1.EventThreatDetectionCustomModule event_threat_detection_custom_modules = 1; - */ - public com.google.cloud.securitycentermanagement.v1.EventThreatDetectionCustomModule.Builder addEventThreatDetectionCustomModulesBuilder() { - return getEventThreatDetectionCustomModulesFieldBuilder().addBuilder( - com.google.cloud.securitycentermanagement.v1.EventThreatDetectionCustomModule.getDefaultInstance()); - } - /** - *
-     * The list of EventThreatDetectionCustomModules
-     * 
- * - * repeated .google.cloud.securitycentermanagement.v1.EventThreatDetectionCustomModule event_threat_detection_custom_modules = 1; - */ - public com.google.cloud.securitycentermanagement.v1.EventThreatDetectionCustomModule.Builder addEventThreatDetectionCustomModulesBuilder( - int index) { - return getEventThreatDetectionCustomModulesFieldBuilder().addBuilder( - index, com.google.cloud.securitycentermanagement.v1.EventThreatDetectionCustomModule.getDefaultInstance()); - } - /** - *
-     * The list of EventThreatDetectionCustomModules
-     * 
- * - * repeated .google.cloud.securitycentermanagement.v1.EventThreatDetectionCustomModule event_threat_detection_custom_modules = 1; - */ - public java.util.List - getEventThreatDetectionCustomModulesBuilderList() { - return getEventThreatDetectionCustomModulesFieldBuilder().getBuilderList(); - } - private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.securitycentermanagement.v1.EventThreatDetectionCustomModule, com.google.cloud.securitycentermanagement.v1.EventThreatDetectionCustomModule.Builder, com.google.cloud.securitycentermanagement.v1.EventThreatDetectionCustomModuleOrBuilder> - getEventThreatDetectionCustomModulesFieldBuilder() { - if (eventThreatDetectionCustomModulesBuilder_ == null) { - eventThreatDetectionCustomModulesBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.securitycentermanagement.v1.EventThreatDetectionCustomModule, com.google.cloud.securitycentermanagement.v1.EventThreatDetectionCustomModule.Builder, com.google.cloud.securitycentermanagement.v1.EventThreatDetectionCustomModuleOrBuilder>( - eventThreatDetectionCustomModules_, - ((bitField0_ & 0x00000001) != 0), - getParentForChildren(), - isClean()); - eventThreatDetectionCustomModules_ = null; - } - return eventThreatDetectionCustomModulesBuilder_; - } - - private java.lang.Object nextPageToken_ = ""; - /** - *
-     * A token identifying a page of results the server should return.
-     * 
- * - * 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; - java.lang.String s = bs.toStringUtf8(); - nextPageToken_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - *
-     * A token identifying a page of results the server should return.
-     * 
- * - * string next_page_token = 2; - * @return The bytes for nextPageToken. - */ - 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); - nextPageToken_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - *
-     * A token identifying a page of results the server should return.
-     * 
- * - * 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(); } - nextPageToken_ = value; - bitField0_ |= 0x00000002; - onChanged(); - return this; - } - /** - *
-     * A token identifying a page of results the server should return.
-     * 
- * - * string next_page_token = 2; - * @return This builder for chaining. - */ - public Builder clearNextPageToken() { - nextPageToken_ = getDefaultInstance().getNextPageToken(); - bitField0_ = (bitField0_ & ~0x00000002); - onChanged(); - return this; - } - /** - *
-     * A token identifying a page of results the server should return.
-     * 
- * - * 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(); } - checkByteStringIsUtf8(value); - nextPageToken_ = value; - bitField0_ |= 0x00000002; - onChanged(); - return this; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:google.cloud.securitycentermanagement.v1.ListDescendantEventThreatDetectionCustomModulesResponse) - } - - // @@protoc_insertion_point(class_scope:google.cloud.securitycentermanagement.v1.ListDescendantEventThreatDetectionCustomModulesResponse) - private static final com.google.cloud.securitycentermanagement.v1.ListDescendantEventThreatDetectionCustomModulesResponse DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new com.google.cloud.securitycentermanagement.v1.ListDescendantEventThreatDetectionCustomModulesResponse(); - } - - public static com.google.cloud.securitycentermanagement.v1.ListDescendantEventThreatDetectionCustomModulesResponse getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ListDescendantEventThreatDetectionCustomModulesResponse parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public com.google.cloud.securitycentermanagement.v1.ListDescendantEventThreatDetectionCustomModulesResponse getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/owl-bot-staging/java-securitycentermanagement/v1/proto-google-cloud-securitycentermanagement-v1/src/main/java/com/google/cloud/securitycentermanagement/v1/ListDescendantEventThreatDetectionCustomModulesResponseOrBuilder.java b/owl-bot-staging/java-securitycentermanagement/v1/proto-google-cloud-securitycentermanagement-v1/src/main/java/com/google/cloud/securitycentermanagement/v1/ListDescendantEventThreatDetectionCustomModulesResponseOrBuilder.java deleted file mode 100644 index fca58b950887..000000000000 --- a/owl-bot-staging/java-securitycentermanagement/v1/proto-google-cloud-securitycentermanagement-v1/src/main/java/com/google/cloud/securitycentermanagement/v1/ListDescendantEventThreatDetectionCustomModulesResponseOrBuilder.java +++ /dev/null @@ -1,73 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/securitycentermanagement/v1/security_center_management.proto - -package com.google.cloud.securitycentermanagement.v1; - -public interface ListDescendantEventThreatDetectionCustomModulesResponseOrBuilder extends - // @@protoc_insertion_point(interface_extends:google.cloud.securitycentermanagement.v1.ListDescendantEventThreatDetectionCustomModulesResponse) - com.google.protobuf.MessageOrBuilder { - - /** - *
-   * The list of EventThreatDetectionCustomModules
-   * 
- * - * repeated .google.cloud.securitycentermanagement.v1.EventThreatDetectionCustomModule event_threat_detection_custom_modules = 1; - */ - java.util.List - getEventThreatDetectionCustomModulesList(); - /** - *
-   * The list of EventThreatDetectionCustomModules
-   * 
- * - * repeated .google.cloud.securitycentermanagement.v1.EventThreatDetectionCustomModule event_threat_detection_custom_modules = 1; - */ - com.google.cloud.securitycentermanagement.v1.EventThreatDetectionCustomModule getEventThreatDetectionCustomModules(int index); - /** - *
-   * The list of EventThreatDetectionCustomModules
-   * 
- * - * repeated .google.cloud.securitycentermanagement.v1.EventThreatDetectionCustomModule event_threat_detection_custom_modules = 1; - */ - int getEventThreatDetectionCustomModulesCount(); - /** - *
-   * The list of EventThreatDetectionCustomModules
-   * 
- * - * repeated .google.cloud.securitycentermanagement.v1.EventThreatDetectionCustomModule event_threat_detection_custom_modules = 1; - */ - java.util.List - getEventThreatDetectionCustomModulesOrBuilderList(); - /** - *
-   * The list of EventThreatDetectionCustomModules
-   * 
- * - * repeated .google.cloud.securitycentermanagement.v1.EventThreatDetectionCustomModule event_threat_detection_custom_modules = 1; - */ - com.google.cloud.securitycentermanagement.v1.EventThreatDetectionCustomModuleOrBuilder getEventThreatDetectionCustomModulesOrBuilder( - int index); - - /** - *
-   * A token identifying a page of results the server should return.
-   * 
- * - * string next_page_token = 2; - * @return The nextPageToken. - */ - java.lang.String getNextPageToken(); - /** - *
-   * A token identifying a page of results the server should return.
-   * 
- * - * string next_page_token = 2; - * @return The bytes for nextPageToken. - */ - com.google.protobuf.ByteString - getNextPageTokenBytes(); -} diff --git a/owl-bot-staging/java-securitycentermanagement/v1/proto-google-cloud-securitycentermanagement-v1/src/main/java/com/google/cloud/securitycentermanagement/v1/ListDescendantSecurityHealthAnalyticsCustomModulesResponse.java b/owl-bot-staging/java-securitycentermanagement/v1/proto-google-cloud-securitycentermanagement-v1/src/main/java/com/google/cloud/securitycentermanagement/v1/ListDescendantSecurityHealthAnalyticsCustomModulesResponse.java deleted file mode 100644 index 45da4159c238..000000000000 --- a/owl-bot-staging/java-securitycentermanagement/v1/proto-google-cloud-securitycentermanagement-v1/src/main/java/com/google/cloud/securitycentermanagement/v1/ListDescendantSecurityHealthAnalyticsCustomModulesResponse.java +++ /dev/null @@ -1,1025 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/securitycentermanagement/v1/security_center_management.proto - -package com.google.cloud.securitycentermanagement.v1; - -/** - *
- * Response message for listing descendant Security Health Analytics custom
- * modules.
- * 
- * - * Protobuf type {@code google.cloud.securitycentermanagement.v1.ListDescendantSecurityHealthAnalyticsCustomModulesResponse} - */ -public final class ListDescendantSecurityHealthAnalyticsCustomModulesResponse extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:google.cloud.securitycentermanagement.v1.ListDescendantSecurityHealthAnalyticsCustomModulesResponse) - ListDescendantSecurityHealthAnalyticsCustomModulesResponseOrBuilder { -private static final long serialVersionUID = 0L; - // Use ListDescendantSecurityHealthAnalyticsCustomModulesResponse.newBuilder() to construct. - private ListDescendantSecurityHealthAnalyticsCustomModulesResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private ListDescendantSecurityHealthAnalyticsCustomModulesResponse() { - securityHealthAnalyticsCustomModules_ = java.util.Collections.emptyList(); - nextPageToken_ = ""; - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new ListDescendantSecurityHealthAnalyticsCustomModulesResponse(); - } - - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.securitycentermanagement.v1.SecurityCenterManagementProto.internal_static_google_cloud_securitycentermanagement_v1_ListDescendantSecurityHealthAnalyticsCustomModulesResponse_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.securitycentermanagement.v1.SecurityCenterManagementProto.internal_static_google_cloud_securitycentermanagement_v1_ListDescendantSecurityHealthAnalyticsCustomModulesResponse_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.securitycentermanagement.v1.ListDescendantSecurityHealthAnalyticsCustomModulesResponse.class, com.google.cloud.securitycentermanagement.v1.ListDescendantSecurityHealthAnalyticsCustomModulesResponse.Builder.class); - } - - public static final int SECURITY_HEALTH_ANALYTICS_CUSTOM_MODULES_FIELD_NUMBER = 1; - @SuppressWarnings("serial") - private java.util.List securityHealthAnalyticsCustomModules_; - /** - *
-   * The list of SecurityHealthAnalyticsCustomModules
-   * 
- * - * repeated .google.cloud.securitycentermanagement.v1.SecurityHealthAnalyticsCustomModule security_health_analytics_custom_modules = 1; - */ - @java.lang.Override - public java.util.List getSecurityHealthAnalyticsCustomModulesList() { - return securityHealthAnalyticsCustomModules_; - } - /** - *
-   * The list of SecurityHealthAnalyticsCustomModules
-   * 
- * - * repeated .google.cloud.securitycentermanagement.v1.SecurityHealthAnalyticsCustomModule security_health_analytics_custom_modules = 1; - */ - @java.lang.Override - public java.util.List - getSecurityHealthAnalyticsCustomModulesOrBuilderList() { - return securityHealthAnalyticsCustomModules_; - } - /** - *
-   * The list of SecurityHealthAnalyticsCustomModules
-   * 
- * - * repeated .google.cloud.securitycentermanagement.v1.SecurityHealthAnalyticsCustomModule security_health_analytics_custom_modules = 1; - */ - @java.lang.Override - public int getSecurityHealthAnalyticsCustomModulesCount() { - return securityHealthAnalyticsCustomModules_.size(); - } - /** - *
-   * The list of SecurityHealthAnalyticsCustomModules
-   * 
- * - * repeated .google.cloud.securitycentermanagement.v1.SecurityHealthAnalyticsCustomModule security_health_analytics_custom_modules = 1; - */ - @java.lang.Override - public com.google.cloud.securitycentermanagement.v1.SecurityHealthAnalyticsCustomModule getSecurityHealthAnalyticsCustomModules(int index) { - return securityHealthAnalyticsCustomModules_.get(index); - } - /** - *
-   * The list of SecurityHealthAnalyticsCustomModules
-   * 
- * - * repeated .google.cloud.securitycentermanagement.v1.SecurityHealthAnalyticsCustomModule security_health_analytics_custom_modules = 1; - */ - @java.lang.Override - public com.google.cloud.securitycentermanagement.v1.SecurityHealthAnalyticsCustomModuleOrBuilder getSecurityHealthAnalyticsCustomModulesOrBuilder( - int index) { - return securityHealthAnalyticsCustomModules_.get(index); - } - - public static final int NEXT_PAGE_TOKEN_FIELD_NUMBER = 2; - @SuppressWarnings("serial") - private volatile java.lang.Object nextPageToken_ = ""; - /** - *
-   * A token identifying a page of results the server should return.
-   * 
- * - * string next_page_token = 2; - * @return The nextPageToken. - */ - @java.lang.Override - public java.lang.String getNextPageToken() { - java.lang.Object ref = nextPageToken_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - nextPageToken_ = s; - return s; - } - } - /** - *
-   * A token identifying a page of results the server should return.
-   * 
- * - * string next_page_token = 2; - * @return The bytes for nextPageToken. - */ - @java.lang.Override - 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); - nextPageToken_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - for (int i = 0; i < securityHealthAnalyticsCustomModules_.size(); i++) { - output.writeMessage(1, securityHealthAnalyticsCustomModules_.get(i)); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(nextPageToken_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 2, nextPageToken_); - } - getUnknownFields().writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - for (int i = 0; i < securityHealthAnalyticsCustomModules_.size(); i++) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, securityHealthAnalyticsCustomModules_.get(i)); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(nextPageToken_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, nextPageToken_); - } - size += getUnknownFields().getSerializedSize(); - memoizedSize = size; - return size; - } - - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof com.google.cloud.securitycentermanagement.v1.ListDescendantSecurityHealthAnalyticsCustomModulesResponse)) { - return super.equals(obj); - } - com.google.cloud.securitycentermanagement.v1.ListDescendantSecurityHealthAnalyticsCustomModulesResponse other = (com.google.cloud.securitycentermanagement.v1.ListDescendantSecurityHealthAnalyticsCustomModulesResponse) obj; - - if (!getSecurityHealthAnalyticsCustomModulesList() - .equals(other.getSecurityHealthAnalyticsCustomModulesList())) return false; - if (!getNextPageToken() - .equals(other.getNextPageToken())) return false; - if (!getUnknownFields().equals(other.getUnknownFields())) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - if (getSecurityHealthAnalyticsCustomModulesCount() > 0) { - hash = (37 * hash) + SECURITY_HEALTH_ANALYTICS_CUSTOM_MODULES_FIELD_NUMBER; - hash = (53 * hash) + getSecurityHealthAnalyticsCustomModulesList().hashCode(); - } - hash = (37 * hash) + NEXT_PAGE_TOKEN_FIELD_NUMBER; - hash = (53 * hash) + getNextPageToken().hashCode(); - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static com.google.cloud.securitycentermanagement.v1.ListDescendantSecurityHealthAnalyticsCustomModulesResponse parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static com.google.cloud.securitycentermanagement.v1.ListDescendantSecurityHealthAnalyticsCustomModulesResponse 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.securitycentermanagement.v1.ListDescendantSecurityHealthAnalyticsCustomModulesResponse parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static com.google.cloud.securitycentermanagement.v1.ListDescendantSecurityHealthAnalyticsCustomModulesResponse parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static com.google.cloud.securitycentermanagement.v1.ListDescendantSecurityHealthAnalyticsCustomModulesResponse parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static com.google.cloud.securitycentermanagement.v1.ListDescendantSecurityHealthAnalyticsCustomModulesResponse parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static com.google.cloud.securitycentermanagement.v1.ListDescendantSecurityHealthAnalyticsCustomModulesResponse parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static com.google.cloud.securitycentermanagement.v1.ListDescendantSecurityHealthAnalyticsCustomModulesResponse 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.securitycentermanagement.v1.ListDescendantSecurityHealthAnalyticsCustomModulesResponse parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - - public static com.google.cloud.securitycentermanagement.v1.ListDescendantSecurityHealthAnalyticsCustomModulesResponse parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); - } - public static com.google.cloud.securitycentermanagement.v1.ListDescendantSecurityHealthAnalyticsCustomModulesResponse parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static com.google.cloud.securitycentermanagement.v1.ListDescendantSecurityHealthAnalyticsCustomModulesResponse 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.securitycentermanagement.v1.ListDescendantSecurityHealthAnalyticsCustomModulesResponse prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - *
-   * Response message for listing descendant Security Health Analytics custom
-   * modules.
-   * 
- * - * Protobuf type {@code google.cloud.securitycentermanagement.v1.ListDescendantSecurityHealthAnalyticsCustomModulesResponse} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:google.cloud.securitycentermanagement.v1.ListDescendantSecurityHealthAnalyticsCustomModulesResponse) - com.google.cloud.securitycentermanagement.v1.ListDescendantSecurityHealthAnalyticsCustomModulesResponseOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.securitycentermanagement.v1.SecurityCenterManagementProto.internal_static_google_cloud_securitycentermanagement_v1_ListDescendantSecurityHealthAnalyticsCustomModulesResponse_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.securitycentermanagement.v1.SecurityCenterManagementProto.internal_static_google_cloud_securitycentermanagement_v1_ListDescendantSecurityHealthAnalyticsCustomModulesResponse_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.securitycentermanagement.v1.ListDescendantSecurityHealthAnalyticsCustomModulesResponse.class, com.google.cloud.securitycentermanagement.v1.ListDescendantSecurityHealthAnalyticsCustomModulesResponse.Builder.class); - } - - // Construct using com.google.cloud.securitycentermanagement.v1.ListDescendantSecurityHealthAnalyticsCustomModulesResponse.newBuilder() - private Builder() { - - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - - } - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - if (securityHealthAnalyticsCustomModulesBuilder_ == null) { - securityHealthAnalyticsCustomModules_ = java.util.Collections.emptyList(); - } else { - securityHealthAnalyticsCustomModules_ = null; - securityHealthAnalyticsCustomModulesBuilder_.clear(); - } - bitField0_ = (bitField0_ & ~0x00000001); - nextPageToken_ = ""; - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.securitycentermanagement.v1.SecurityCenterManagementProto.internal_static_google_cloud_securitycentermanagement_v1_ListDescendantSecurityHealthAnalyticsCustomModulesResponse_descriptor; - } - - @java.lang.Override - public com.google.cloud.securitycentermanagement.v1.ListDescendantSecurityHealthAnalyticsCustomModulesResponse getDefaultInstanceForType() { - return com.google.cloud.securitycentermanagement.v1.ListDescendantSecurityHealthAnalyticsCustomModulesResponse.getDefaultInstance(); - } - - @java.lang.Override - public com.google.cloud.securitycentermanagement.v1.ListDescendantSecurityHealthAnalyticsCustomModulesResponse build() { - com.google.cloud.securitycentermanagement.v1.ListDescendantSecurityHealthAnalyticsCustomModulesResponse result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.cloud.securitycentermanagement.v1.ListDescendantSecurityHealthAnalyticsCustomModulesResponse buildPartial() { - com.google.cloud.securitycentermanagement.v1.ListDescendantSecurityHealthAnalyticsCustomModulesResponse result = new com.google.cloud.securitycentermanagement.v1.ListDescendantSecurityHealthAnalyticsCustomModulesResponse(this); - buildPartialRepeatedFields(result); - if (bitField0_ != 0) { buildPartial0(result); } - onBuilt(); - return result; - } - - private void buildPartialRepeatedFields(com.google.cloud.securitycentermanagement.v1.ListDescendantSecurityHealthAnalyticsCustomModulesResponse result) { - if (securityHealthAnalyticsCustomModulesBuilder_ == null) { - if (((bitField0_ & 0x00000001) != 0)) { - securityHealthAnalyticsCustomModules_ = java.util.Collections.unmodifiableList(securityHealthAnalyticsCustomModules_); - bitField0_ = (bitField0_ & ~0x00000001); - } - result.securityHealthAnalyticsCustomModules_ = securityHealthAnalyticsCustomModules_; - } else { - result.securityHealthAnalyticsCustomModules_ = securityHealthAnalyticsCustomModulesBuilder_.build(); - } - } - - private void buildPartial0(com.google.cloud.securitycentermanagement.v1.ListDescendantSecurityHealthAnalyticsCustomModulesResponse result) { - int from_bitField0_ = bitField0_; - if (((from_bitField0_ & 0x00000002) != 0)) { - result.nextPageToken_ = nextPageToken_; - } - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.cloud.securitycentermanagement.v1.ListDescendantSecurityHealthAnalyticsCustomModulesResponse) { - return mergeFrom((com.google.cloud.securitycentermanagement.v1.ListDescendantSecurityHealthAnalyticsCustomModulesResponse)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.google.cloud.securitycentermanagement.v1.ListDescendantSecurityHealthAnalyticsCustomModulesResponse other) { - if (other == com.google.cloud.securitycentermanagement.v1.ListDescendantSecurityHealthAnalyticsCustomModulesResponse.getDefaultInstance()) return this; - if (securityHealthAnalyticsCustomModulesBuilder_ == null) { - if (!other.securityHealthAnalyticsCustomModules_.isEmpty()) { - if (securityHealthAnalyticsCustomModules_.isEmpty()) { - securityHealthAnalyticsCustomModules_ = other.securityHealthAnalyticsCustomModules_; - bitField0_ = (bitField0_ & ~0x00000001); - } else { - ensureSecurityHealthAnalyticsCustomModulesIsMutable(); - securityHealthAnalyticsCustomModules_.addAll(other.securityHealthAnalyticsCustomModules_); - } - onChanged(); - } - } else { - if (!other.securityHealthAnalyticsCustomModules_.isEmpty()) { - if (securityHealthAnalyticsCustomModulesBuilder_.isEmpty()) { - securityHealthAnalyticsCustomModulesBuilder_.dispose(); - securityHealthAnalyticsCustomModulesBuilder_ = null; - securityHealthAnalyticsCustomModules_ = other.securityHealthAnalyticsCustomModules_; - bitField0_ = (bitField0_ & ~0x00000001); - securityHealthAnalyticsCustomModulesBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? - getSecurityHealthAnalyticsCustomModulesFieldBuilder() : null; - } else { - securityHealthAnalyticsCustomModulesBuilder_.addAllMessages(other.securityHealthAnalyticsCustomModules_); - } - } - } - if (!other.getNextPageToken().isEmpty()) { - nextPageToken_ = other.nextPageToken_; - bitField0_ |= 0x00000002; - onChanged(); - } - this.mergeUnknownFields(other.getUnknownFields()); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: { - com.google.cloud.securitycentermanagement.v1.SecurityHealthAnalyticsCustomModule m = - input.readMessage( - com.google.cloud.securitycentermanagement.v1.SecurityHealthAnalyticsCustomModule.parser(), - extensionRegistry); - if (securityHealthAnalyticsCustomModulesBuilder_ == null) { - ensureSecurityHealthAnalyticsCustomModulesIsMutable(); - securityHealthAnalyticsCustomModules_.add(m); - } else { - securityHealthAnalyticsCustomModulesBuilder_.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) { - throw e.unwrapIOException(); - } finally { - onChanged(); - } // finally - return this; - } - private int bitField0_; - - private java.util.List securityHealthAnalyticsCustomModules_ = - java.util.Collections.emptyList(); - private void ensureSecurityHealthAnalyticsCustomModulesIsMutable() { - if (!((bitField0_ & 0x00000001) != 0)) { - securityHealthAnalyticsCustomModules_ = new java.util.ArrayList(securityHealthAnalyticsCustomModules_); - bitField0_ |= 0x00000001; - } - } - - private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.securitycentermanagement.v1.SecurityHealthAnalyticsCustomModule, com.google.cloud.securitycentermanagement.v1.SecurityHealthAnalyticsCustomModule.Builder, com.google.cloud.securitycentermanagement.v1.SecurityHealthAnalyticsCustomModuleOrBuilder> securityHealthAnalyticsCustomModulesBuilder_; - - /** - *
-     * The list of SecurityHealthAnalyticsCustomModules
-     * 
- * - * repeated .google.cloud.securitycentermanagement.v1.SecurityHealthAnalyticsCustomModule security_health_analytics_custom_modules = 1; - */ - public java.util.List getSecurityHealthAnalyticsCustomModulesList() { - if (securityHealthAnalyticsCustomModulesBuilder_ == null) { - return java.util.Collections.unmodifiableList(securityHealthAnalyticsCustomModules_); - } else { - return securityHealthAnalyticsCustomModulesBuilder_.getMessageList(); - } - } - /** - *
-     * The list of SecurityHealthAnalyticsCustomModules
-     * 
- * - * repeated .google.cloud.securitycentermanagement.v1.SecurityHealthAnalyticsCustomModule security_health_analytics_custom_modules = 1; - */ - public int getSecurityHealthAnalyticsCustomModulesCount() { - if (securityHealthAnalyticsCustomModulesBuilder_ == null) { - return securityHealthAnalyticsCustomModules_.size(); - } else { - return securityHealthAnalyticsCustomModulesBuilder_.getCount(); - } - } - /** - *
-     * The list of SecurityHealthAnalyticsCustomModules
-     * 
- * - * repeated .google.cloud.securitycentermanagement.v1.SecurityHealthAnalyticsCustomModule security_health_analytics_custom_modules = 1; - */ - public com.google.cloud.securitycentermanagement.v1.SecurityHealthAnalyticsCustomModule getSecurityHealthAnalyticsCustomModules(int index) { - if (securityHealthAnalyticsCustomModulesBuilder_ == null) { - return securityHealthAnalyticsCustomModules_.get(index); - } else { - return securityHealthAnalyticsCustomModulesBuilder_.getMessage(index); - } - } - /** - *
-     * The list of SecurityHealthAnalyticsCustomModules
-     * 
- * - * repeated .google.cloud.securitycentermanagement.v1.SecurityHealthAnalyticsCustomModule security_health_analytics_custom_modules = 1; - */ - public Builder setSecurityHealthAnalyticsCustomModules( - int index, com.google.cloud.securitycentermanagement.v1.SecurityHealthAnalyticsCustomModule value) { - if (securityHealthAnalyticsCustomModulesBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureSecurityHealthAnalyticsCustomModulesIsMutable(); - securityHealthAnalyticsCustomModules_.set(index, value); - onChanged(); - } else { - securityHealthAnalyticsCustomModulesBuilder_.setMessage(index, value); - } - return this; - } - /** - *
-     * The list of SecurityHealthAnalyticsCustomModules
-     * 
- * - * repeated .google.cloud.securitycentermanagement.v1.SecurityHealthAnalyticsCustomModule security_health_analytics_custom_modules = 1; - */ - public Builder setSecurityHealthAnalyticsCustomModules( - int index, com.google.cloud.securitycentermanagement.v1.SecurityHealthAnalyticsCustomModule.Builder builderForValue) { - if (securityHealthAnalyticsCustomModulesBuilder_ == null) { - ensureSecurityHealthAnalyticsCustomModulesIsMutable(); - securityHealthAnalyticsCustomModules_.set(index, builderForValue.build()); - onChanged(); - } else { - securityHealthAnalyticsCustomModulesBuilder_.setMessage(index, builderForValue.build()); - } - return this; - } - /** - *
-     * The list of SecurityHealthAnalyticsCustomModules
-     * 
- * - * repeated .google.cloud.securitycentermanagement.v1.SecurityHealthAnalyticsCustomModule security_health_analytics_custom_modules = 1; - */ - public Builder addSecurityHealthAnalyticsCustomModules(com.google.cloud.securitycentermanagement.v1.SecurityHealthAnalyticsCustomModule value) { - if (securityHealthAnalyticsCustomModulesBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureSecurityHealthAnalyticsCustomModulesIsMutable(); - securityHealthAnalyticsCustomModules_.add(value); - onChanged(); - } else { - securityHealthAnalyticsCustomModulesBuilder_.addMessage(value); - } - return this; - } - /** - *
-     * The list of SecurityHealthAnalyticsCustomModules
-     * 
- * - * repeated .google.cloud.securitycentermanagement.v1.SecurityHealthAnalyticsCustomModule security_health_analytics_custom_modules = 1; - */ - public Builder addSecurityHealthAnalyticsCustomModules( - int index, com.google.cloud.securitycentermanagement.v1.SecurityHealthAnalyticsCustomModule value) { - if (securityHealthAnalyticsCustomModulesBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureSecurityHealthAnalyticsCustomModulesIsMutable(); - securityHealthAnalyticsCustomModules_.add(index, value); - onChanged(); - } else { - securityHealthAnalyticsCustomModulesBuilder_.addMessage(index, value); - } - return this; - } - /** - *
-     * The list of SecurityHealthAnalyticsCustomModules
-     * 
- * - * repeated .google.cloud.securitycentermanagement.v1.SecurityHealthAnalyticsCustomModule security_health_analytics_custom_modules = 1; - */ - public Builder addSecurityHealthAnalyticsCustomModules( - com.google.cloud.securitycentermanagement.v1.SecurityHealthAnalyticsCustomModule.Builder builderForValue) { - if (securityHealthAnalyticsCustomModulesBuilder_ == null) { - ensureSecurityHealthAnalyticsCustomModulesIsMutable(); - securityHealthAnalyticsCustomModules_.add(builderForValue.build()); - onChanged(); - } else { - securityHealthAnalyticsCustomModulesBuilder_.addMessage(builderForValue.build()); - } - return this; - } - /** - *
-     * The list of SecurityHealthAnalyticsCustomModules
-     * 
- * - * repeated .google.cloud.securitycentermanagement.v1.SecurityHealthAnalyticsCustomModule security_health_analytics_custom_modules = 1; - */ - public Builder addSecurityHealthAnalyticsCustomModules( - int index, com.google.cloud.securitycentermanagement.v1.SecurityHealthAnalyticsCustomModule.Builder builderForValue) { - if (securityHealthAnalyticsCustomModulesBuilder_ == null) { - ensureSecurityHealthAnalyticsCustomModulesIsMutable(); - securityHealthAnalyticsCustomModules_.add(index, builderForValue.build()); - onChanged(); - } else { - securityHealthAnalyticsCustomModulesBuilder_.addMessage(index, builderForValue.build()); - } - return this; - } - /** - *
-     * The list of SecurityHealthAnalyticsCustomModules
-     * 
- * - * repeated .google.cloud.securitycentermanagement.v1.SecurityHealthAnalyticsCustomModule security_health_analytics_custom_modules = 1; - */ - public Builder addAllSecurityHealthAnalyticsCustomModules( - java.lang.Iterable values) { - if (securityHealthAnalyticsCustomModulesBuilder_ == null) { - ensureSecurityHealthAnalyticsCustomModulesIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, securityHealthAnalyticsCustomModules_); - onChanged(); - } else { - securityHealthAnalyticsCustomModulesBuilder_.addAllMessages(values); - } - return this; - } - /** - *
-     * The list of SecurityHealthAnalyticsCustomModules
-     * 
- * - * repeated .google.cloud.securitycentermanagement.v1.SecurityHealthAnalyticsCustomModule security_health_analytics_custom_modules = 1; - */ - public Builder clearSecurityHealthAnalyticsCustomModules() { - if (securityHealthAnalyticsCustomModulesBuilder_ == null) { - securityHealthAnalyticsCustomModules_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000001); - onChanged(); - } else { - securityHealthAnalyticsCustomModulesBuilder_.clear(); - } - return this; - } - /** - *
-     * The list of SecurityHealthAnalyticsCustomModules
-     * 
- * - * repeated .google.cloud.securitycentermanagement.v1.SecurityHealthAnalyticsCustomModule security_health_analytics_custom_modules = 1; - */ - public Builder removeSecurityHealthAnalyticsCustomModules(int index) { - if (securityHealthAnalyticsCustomModulesBuilder_ == null) { - ensureSecurityHealthAnalyticsCustomModulesIsMutable(); - securityHealthAnalyticsCustomModules_.remove(index); - onChanged(); - } else { - securityHealthAnalyticsCustomModulesBuilder_.remove(index); - } - return this; - } - /** - *
-     * The list of SecurityHealthAnalyticsCustomModules
-     * 
- * - * repeated .google.cloud.securitycentermanagement.v1.SecurityHealthAnalyticsCustomModule security_health_analytics_custom_modules = 1; - */ - public com.google.cloud.securitycentermanagement.v1.SecurityHealthAnalyticsCustomModule.Builder getSecurityHealthAnalyticsCustomModulesBuilder( - int index) { - return getSecurityHealthAnalyticsCustomModulesFieldBuilder().getBuilder(index); - } - /** - *
-     * The list of SecurityHealthAnalyticsCustomModules
-     * 
- * - * repeated .google.cloud.securitycentermanagement.v1.SecurityHealthAnalyticsCustomModule security_health_analytics_custom_modules = 1; - */ - public com.google.cloud.securitycentermanagement.v1.SecurityHealthAnalyticsCustomModuleOrBuilder getSecurityHealthAnalyticsCustomModulesOrBuilder( - int index) { - if (securityHealthAnalyticsCustomModulesBuilder_ == null) { - return securityHealthAnalyticsCustomModules_.get(index); } else { - return securityHealthAnalyticsCustomModulesBuilder_.getMessageOrBuilder(index); - } - } - /** - *
-     * The list of SecurityHealthAnalyticsCustomModules
-     * 
- * - * repeated .google.cloud.securitycentermanagement.v1.SecurityHealthAnalyticsCustomModule security_health_analytics_custom_modules = 1; - */ - public java.util.List - getSecurityHealthAnalyticsCustomModulesOrBuilderList() { - if (securityHealthAnalyticsCustomModulesBuilder_ != null) { - return securityHealthAnalyticsCustomModulesBuilder_.getMessageOrBuilderList(); - } else { - return java.util.Collections.unmodifiableList(securityHealthAnalyticsCustomModules_); - } - } - /** - *
-     * The list of SecurityHealthAnalyticsCustomModules
-     * 
- * - * repeated .google.cloud.securitycentermanagement.v1.SecurityHealthAnalyticsCustomModule security_health_analytics_custom_modules = 1; - */ - public com.google.cloud.securitycentermanagement.v1.SecurityHealthAnalyticsCustomModule.Builder addSecurityHealthAnalyticsCustomModulesBuilder() { - return getSecurityHealthAnalyticsCustomModulesFieldBuilder().addBuilder( - com.google.cloud.securitycentermanagement.v1.SecurityHealthAnalyticsCustomModule.getDefaultInstance()); - } - /** - *
-     * The list of SecurityHealthAnalyticsCustomModules
-     * 
- * - * repeated .google.cloud.securitycentermanagement.v1.SecurityHealthAnalyticsCustomModule security_health_analytics_custom_modules = 1; - */ - public com.google.cloud.securitycentermanagement.v1.SecurityHealthAnalyticsCustomModule.Builder addSecurityHealthAnalyticsCustomModulesBuilder( - int index) { - return getSecurityHealthAnalyticsCustomModulesFieldBuilder().addBuilder( - index, com.google.cloud.securitycentermanagement.v1.SecurityHealthAnalyticsCustomModule.getDefaultInstance()); - } - /** - *
-     * The list of SecurityHealthAnalyticsCustomModules
-     * 
- * - * repeated .google.cloud.securitycentermanagement.v1.SecurityHealthAnalyticsCustomModule security_health_analytics_custom_modules = 1; - */ - public java.util.List - getSecurityHealthAnalyticsCustomModulesBuilderList() { - return getSecurityHealthAnalyticsCustomModulesFieldBuilder().getBuilderList(); - } - private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.securitycentermanagement.v1.SecurityHealthAnalyticsCustomModule, com.google.cloud.securitycentermanagement.v1.SecurityHealthAnalyticsCustomModule.Builder, com.google.cloud.securitycentermanagement.v1.SecurityHealthAnalyticsCustomModuleOrBuilder> - getSecurityHealthAnalyticsCustomModulesFieldBuilder() { - if (securityHealthAnalyticsCustomModulesBuilder_ == null) { - securityHealthAnalyticsCustomModulesBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.securitycentermanagement.v1.SecurityHealthAnalyticsCustomModule, com.google.cloud.securitycentermanagement.v1.SecurityHealthAnalyticsCustomModule.Builder, com.google.cloud.securitycentermanagement.v1.SecurityHealthAnalyticsCustomModuleOrBuilder>( - securityHealthAnalyticsCustomModules_, - ((bitField0_ & 0x00000001) != 0), - getParentForChildren(), - isClean()); - securityHealthAnalyticsCustomModules_ = null; - } - return securityHealthAnalyticsCustomModulesBuilder_; - } - - private java.lang.Object nextPageToken_ = ""; - /** - *
-     * A token identifying a page of results the server should return.
-     * 
- * - * 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; - java.lang.String s = bs.toStringUtf8(); - nextPageToken_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - *
-     * A token identifying a page of results the server should return.
-     * 
- * - * string next_page_token = 2; - * @return The bytes for nextPageToken. - */ - 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); - nextPageToken_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - *
-     * A token identifying a page of results the server should return.
-     * 
- * - * 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(); } - nextPageToken_ = value; - bitField0_ |= 0x00000002; - onChanged(); - return this; - } - /** - *
-     * A token identifying a page of results the server should return.
-     * 
- * - * string next_page_token = 2; - * @return This builder for chaining. - */ - public Builder clearNextPageToken() { - nextPageToken_ = getDefaultInstance().getNextPageToken(); - bitField0_ = (bitField0_ & ~0x00000002); - onChanged(); - return this; - } - /** - *
-     * A token identifying a page of results the server should return.
-     * 
- * - * 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(); } - checkByteStringIsUtf8(value); - nextPageToken_ = value; - bitField0_ |= 0x00000002; - onChanged(); - return this; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:google.cloud.securitycentermanagement.v1.ListDescendantSecurityHealthAnalyticsCustomModulesResponse) - } - - // @@protoc_insertion_point(class_scope:google.cloud.securitycentermanagement.v1.ListDescendantSecurityHealthAnalyticsCustomModulesResponse) - private static final com.google.cloud.securitycentermanagement.v1.ListDescendantSecurityHealthAnalyticsCustomModulesResponse DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new com.google.cloud.securitycentermanagement.v1.ListDescendantSecurityHealthAnalyticsCustomModulesResponse(); - } - - public static com.google.cloud.securitycentermanagement.v1.ListDescendantSecurityHealthAnalyticsCustomModulesResponse getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ListDescendantSecurityHealthAnalyticsCustomModulesResponse parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public com.google.cloud.securitycentermanagement.v1.ListDescendantSecurityHealthAnalyticsCustomModulesResponse getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/owl-bot-staging/java-securitycentermanagement/v1/proto-google-cloud-securitycentermanagement-v1/src/main/java/com/google/cloud/securitycentermanagement/v1/ListDescendantSecurityHealthAnalyticsCustomModulesResponseOrBuilder.java b/owl-bot-staging/java-securitycentermanagement/v1/proto-google-cloud-securitycentermanagement-v1/src/main/java/com/google/cloud/securitycentermanagement/v1/ListDescendantSecurityHealthAnalyticsCustomModulesResponseOrBuilder.java deleted file mode 100644 index 39739b59f33c..000000000000 --- a/owl-bot-staging/java-securitycentermanagement/v1/proto-google-cloud-securitycentermanagement-v1/src/main/java/com/google/cloud/securitycentermanagement/v1/ListDescendantSecurityHealthAnalyticsCustomModulesResponseOrBuilder.java +++ /dev/null @@ -1,73 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/securitycentermanagement/v1/security_center_management.proto - -package com.google.cloud.securitycentermanagement.v1; - -public interface ListDescendantSecurityHealthAnalyticsCustomModulesResponseOrBuilder extends - // @@protoc_insertion_point(interface_extends:google.cloud.securitycentermanagement.v1.ListDescendantSecurityHealthAnalyticsCustomModulesResponse) - com.google.protobuf.MessageOrBuilder { - - /** - *
-   * The list of SecurityHealthAnalyticsCustomModules
-   * 
- * - * repeated .google.cloud.securitycentermanagement.v1.SecurityHealthAnalyticsCustomModule security_health_analytics_custom_modules = 1; - */ - java.util.List - getSecurityHealthAnalyticsCustomModulesList(); - /** - *
-   * The list of SecurityHealthAnalyticsCustomModules
-   * 
- * - * repeated .google.cloud.securitycentermanagement.v1.SecurityHealthAnalyticsCustomModule security_health_analytics_custom_modules = 1; - */ - com.google.cloud.securitycentermanagement.v1.SecurityHealthAnalyticsCustomModule getSecurityHealthAnalyticsCustomModules(int index); - /** - *
-   * The list of SecurityHealthAnalyticsCustomModules
-   * 
- * - * repeated .google.cloud.securitycentermanagement.v1.SecurityHealthAnalyticsCustomModule security_health_analytics_custom_modules = 1; - */ - int getSecurityHealthAnalyticsCustomModulesCount(); - /** - *
-   * The list of SecurityHealthAnalyticsCustomModules
-   * 
- * - * repeated .google.cloud.securitycentermanagement.v1.SecurityHealthAnalyticsCustomModule security_health_analytics_custom_modules = 1; - */ - java.util.List - getSecurityHealthAnalyticsCustomModulesOrBuilderList(); - /** - *
-   * The list of SecurityHealthAnalyticsCustomModules
-   * 
- * - * repeated .google.cloud.securitycentermanagement.v1.SecurityHealthAnalyticsCustomModule security_health_analytics_custom_modules = 1; - */ - com.google.cloud.securitycentermanagement.v1.SecurityHealthAnalyticsCustomModuleOrBuilder getSecurityHealthAnalyticsCustomModulesOrBuilder( - int index); - - /** - *
-   * A token identifying a page of results the server should return.
-   * 
- * - * string next_page_token = 2; - * @return The nextPageToken. - */ - java.lang.String getNextPageToken(); - /** - *
-   * A token identifying a page of results the server should return.
-   * 
- * - * string next_page_token = 2; - * @return The bytes for nextPageToken. - */ - com.google.protobuf.ByteString - getNextPageTokenBytes(); -} diff --git a/owl-bot-staging/java-securitycentermanagement/v1/proto-google-cloud-securitycentermanagement-v1/src/main/java/com/google/cloud/securitycentermanagement/v1/ListEffectiveEventThreatDetectionCustomModulesResponse.java b/owl-bot-staging/java-securitycentermanagement/v1/proto-google-cloud-securitycentermanagement-v1/src/main/java/com/google/cloud/securitycentermanagement/v1/ListEffectiveEventThreatDetectionCustomModulesResponse.java deleted file mode 100644 index c0645c1dca7b..000000000000 --- a/owl-bot-staging/java-securitycentermanagement/v1/proto-google-cloud-securitycentermanagement-v1/src/main/java/com/google/cloud/securitycentermanagement/v1/ListEffectiveEventThreatDetectionCustomModulesResponse.java +++ /dev/null @@ -1,1025 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/securitycentermanagement/v1/security_center_management.proto - -package com.google.cloud.securitycentermanagement.v1; - -/** - *
- * Response message for listing effective Event Threat Detection custom
- * modules.
- * 
- * - * Protobuf type {@code google.cloud.securitycentermanagement.v1.ListEffectiveEventThreatDetectionCustomModulesResponse} - */ -public final class ListEffectiveEventThreatDetectionCustomModulesResponse extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:google.cloud.securitycentermanagement.v1.ListEffectiveEventThreatDetectionCustomModulesResponse) - ListEffectiveEventThreatDetectionCustomModulesResponseOrBuilder { -private static final long serialVersionUID = 0L; - // Use ListEffectiveEventThreatDetectionCustomModulesResponse.newBuilder() to construct. - private ListEffectiveEventThreatDetectionCustomModulesResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private ListEffectiveEventThreatDetectionCustomModulesResponse() { - effectiveEventThreatDetectionCustomModules_ = java.util.Collections.emptyList(); - nextPageToken_ = ""; - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new ListEffectiveEventThreatDetectionCustomModulesResponse(); - } - - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.securitycentermanagement.v1.SecurityCenterManagementProto.internal_static_google_cloud_securitycentermanagement_v1_ListEffectiveEventThreatDetectionCustomModulesResponse_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.securitycentermanagement.v1.SecurityCenterManagementProto.internal_static_google_cloud_securitycentermanagement_v1_ListEffectiveEventThreatDetectionCustomModulesResponse_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.securitycentermanagement.v1.ListEffectiveEventThreatDetectionCustomModulesResponse.class, com.google.cloud.securitycentermanagement.v1.ListEffectiveEventThreatDetectionCustomModulesResponse.Builder.class); - } - - public static final int EFFECTIVE_EVENT_THREAT_DETECTION_CUSTOM_MODULES_FIELD_NUMBER = 1; - @SuppressWarnings("serial") - private java.util.List effectiveEventThreatDetectionCustomModules_; - /** - *
-   * The list of EffectiveEventThreatDetectionCustomModules
-   * 
- * - * repeated .google.cloud.securitycentermanagement.v1.EffectiveEventThreatDetectionCustomModule effective_event_threat_detection_custom_modules = 1; - */ - @java.lang.Override - public java.util.List getEffectiveEventThreatDetectionCustomModulesList() { - return effectiveEventThreatDetectionCustomModules_; - } - /** - *
-   * The list of EffectiveEventThreatDetectionCustomModules
-   * 
- * - * repeated .google.cloud.securitycentermanagement.v1.EffectiveEventThreatDetectionCustomModule effective_event_threat_detection_custom_modules = 1; - */ - @java.lang.Override - public java.util.List - getEffectiveEventThreatDetectionCustomModulesOrBuilderList() { - return effectiveEventThreatDetectionCustomModules_; - } - /** - *
-   * The list of EffectiveEventThreatDetectionCustomModules
-   * 
- * - * repeated .google.cloud.securitycentermanagement.v1.EffectiveEventThreatDetectionCustomModule effective_event_threat_detection_custom_modules = 1; - */ - @java.lang.Override - public int getEffectiveEventThreatDetectionCustomModulesCount() { - return effectiveEventThreatDetectionCustomModules_.size(); - } - /** - *
-   * The list of EffectiveEventThreatDetectionCustomModules
-   * 
- * - * repeated .google.cloud.securitycentermanagement.v1.EffectiveEventThreatDetectionCustomModule effective_event_threat_detection_custom_modules = 1; - */ - @java.lang.Override - public com.google.cloud.securitycentermanagement.v1.EffectiveEventThreatDetectionCustomModule getEffectiveEventThreatDetectionCustomModules(int index) { - return effectiveEventThreatDetectionCustomModules_.get(index); - } - /** - *
-   * The list of EffectiveEventThreatDetectionCustomModules
-   * 
- * - * repeated .google.cloud.securitycentermanagement.v1.EffectiveEventThreatDetectionCustomModule effective_event_threat_detection_custom_modules = 1; - */ - @java.lang.Override - public com.google.cloud.securitycentermanagement.v1.EffectiveEventThreatDetectionCustomModuleOrBuilder getEffectiveEventThreatDetectionCustomModulesOrBuilder( - int index) { - return effectiveEventThreatDetectionCustomModules_.get(index); - } - - public static final int NEXT_PAGE_TOKEN_FIELD_NUMBER = 2; - @SuppressWarnings("serial") - private volatile java.lang.Object nextPageToken_ = ""; - /** - *
-   * A token identifying a page of results the server should return.
-   * 
- * - * string next_page_token = 2; - * @return The nextPageToken. - */ - @java.lang.Override - public java.lang.String getNextPageToken() { - java.lang.Object ref = nextPageToken_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - nextPageToken_ = s; - return s; - } - } - /** - *
-   * A token identifying a page of results the server should return.
-   * 
- * - * string next_page_token = 2; - * @return The bytes for nextPageToken. - */ - @java.lang.Override - 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); - nextPageToken_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - for (int i = 0; i < effectiveEventThreatDetectionCustomModules_.size(); i++) { - output.writeMessage(1, effectiveEventThreatDetectionCustomModules_.get(i)); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(nextPageToken_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 2, nextPageToken_); - } - getUnknownFields().writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - for (int i = 0; i < effectiveEventThreatDetectionCustomModules_.size(); i++) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, effectiveEventThreatDetectionCustomModules_.get(i)); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(nextPageToken_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, nextPageToken_); - } - size += getUnknownFields().getSerializedSize(); - memoizedSize = size; - return size; - } - - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof com.google.cloud.securitycentermanagement.v1.ListEffectiveEventThreatDetectionCustomModulesResponse)) { - return super.equals(obj); - } - com.google.cloud.securitycentermanagement.v1.ListEffectiveEventThreatDetectionCustomModulesResponse other = (com.google.cloud.securitycentermanagement.v1.ListEffectiveEventThreatDetectionCustomModulesResponse) obj; - - if (!getEffectiveEventThreatDetectionCustomModulesList() - .equals(other.getEffectiveEventThreatDetectionCustomModulesList())) return false; - if (!getNextPageToken() - .equals(other.getNextPageToken())) return false; - if (!getUnknownFields().equals(other.getUnknownFields())) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - if (getEffectiveEventThreatDetectionCustomModulesCount() > 0) { - hash = (37 * hash) + EFFECTIVE_EVENT_THREAT_DETECTION_CUSTOM_MODULES_FIELD_NUMBER; - hash = (53 * hash) + getEffectiveEventThreatDetectionCustomModulesList().hashCode(); - } - hash = (37 * hash) + NEXT_PAGE_TOKEN_FIELD_NUMBER; - hash = (53 * hash) + getNextPageToken().hashCode(); - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static com.google.cloud.securitycentermanagement.v1.ListEffectiveEventThreatDetectionCustomModulesResponse parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static com.google.cloud.securitycentermanagement.v1.ListEffectiveEventThreatDetectionCustomModulesResponse 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.securitycentermanagement.v1.ListEffectiveEventThreatDetectionCustomModulesResponse parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static com.google.cloud.securitycentermanagement.v1.ListEffectiveEventThreatDetectionCustomModulesResponse parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static com.google.cloud.securitycentermanagement.v1.ListEffectiveEventThreatDetectionCustomModulesResponse parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static com.google.cloud.securitycentermanagement.v1.ListEffectiveEventThreatDetectionCustomModulesResponse parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static com.google.cloud.securitycentermanagement.v1.ListEffectiveEventThreatDetectionCustomModulesResponse parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static com.google.cloud.securitycentermanagement.v1.ListEffectiveEventThreatDetectionCustomModulesResponse 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.securitycentermanagement.v1.ListEffectiveEventThreatDetectionCustomModulesResponse parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - - public static com.google.cloud.securitycentermanagement.v1.ListEffectiveEventThreatDetectionCustomModulesResponse parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); - } - public static com.google.cloud.securitycentermanagement.v1.ListEffectiveEventThreatDetectionCustomModulesResponse parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static com.google.cloud.securitycentermanagement.v1.ListEffectiveEventThreatDetectionCustomModulesResponse 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.securitycentermanagement.v1.ListEffectiveEventThreatDetectionCustomModulesResponse prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - *
-   * Response message for listing effective Event Threat Detection custom
-   * modules.
-   * 
- * - * Protobuf type {@code google.cloud.securitycentermanagement.v1.ListEffectiveEventThreatDetectionCustomModulesResponse} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:google.cloud.securitycentermanagement.v1.ListEffectiveEventThreatDetectionCustomModulesResponse) - com.google.cloud.securitycentermanagement.v1.ListEffectiveEventThreatDetectionCustomModulesResponseOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.securitycentermanagement.v1.SecurityCenterManagementProto.internal_static_google_cloud_securitycentermanagement_v1_ListEffectiveEventThreatDetectionCustomModulesResponse_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.securitycentermanagement.v1.SecurityCenterManagementProto.internal_static_google_cloud_securitycentermanagement_v1_ListEffectiveEventThreatDetectionCustomModulesResponse_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.securitycentermanagement.v1.ListEffectiveEventThreatDetectionCustomModulesResponse.class, com.google.cloud.securitycentermanagement.v1.ListEffectiveEventThreatDetectionCustomModulesResponse.Builder.class); - } - - // Construct using com.google.cloud.securitycentermanagement.v1.ListEffectiveEventThreatDetectionCustomModulesResponse.newBuilder() - private Builder() { - - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - - } - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - if (effectiveEventThreatDetectionCustomModulesBuilder_ == null) { - effectiveEventThreatDetectionCustomModules_ = java.util.Collections.emptyList(); - } else { - effectiveEventThreatDetectionCustomModules_ = null; - effectiveEventThreatDetectionCustomModulesBuilder_.clear(); - } - bitField0_ = (bitField0_ & ~0x00000001); - nextPageToken_ = ""; - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.securitycentermanagement.v1.SecurityCenterManagementProto.internal_static_google_cloud_securitycentermanagement_v1_ListEffectiveEventThreatDetectionCustomModulesResponse_descriptor; - } - - @java.lang.Override - public com.google.cloud.securitycentermanagement.v1.ListEffectiveEventThreatDetectionCustomModulesResponse getDefaultInstanceForType() { - return com.google.cloud.securitycentermanagement.v1.ListEffectiveEventThreatDetectionCustomModulesResponse.getDefaultInstance(); - } - - @java.lang.Override - public com.google.cloud.securitycentermanagement.v1.ListEffectiveEventThreatDetectionCustomModulesResponse build() { - com.google.cloud.securitycentermanagement.v1.ListEffectiveEventThreatDetectionCustomModulesResponse result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.cloud.securitycentermanagement.v1.ListEffectiveEventThreatDetectionCustomModulesResponse buildPartial() { - com.google.cloud.securitycentermanagement.v1.ListEffectiveEventThreatDetectionCustomModulesResponse result = new com.google.cloud.securitycentermanagement.v1.ListEffectiveEventThreatDetectionCustomModulesResponse(this); - buildPartialRepeatedFields(result); - if (bitField0_ != 0) { buildPartial0(result); } - onBuilt(); - return result; - } - - private void buildPartialRepeatedFields(com.google.cloud.securitycentermanagement.v1.ListEffectiveEventThreatDetectionCustomModulesResponse result) { - if (effectiveEventThreatDetectionCustomModulesBuilder_ == null) { - if (((bitField0_ & 0x00000001) != 0)) { - effectiveEventThreatDetectionCustomModules_ = java.util.Collections.unmodifiableList(effectiveEventThreatDetectionCustomModules_); - bitField0_ = (bitField0_ & ~0x00000001); - } - result.effectiveEventThreatDetectionCustomModules_ = effectiveEventThreatDetectionCustomModules_; - } else { - result.effectiveEventThreatDetectionCustomModules_ = effectiveEventThreatDetectionCustomModulesBuilder_.build(); - } - } - - private void buildPartial0(com.google.cloud.securitycentermanagement.v1.ListEffectiveEventThreatDetectionCustomModulesResponse result) { - int from_bitField0_ = bitField0_; - if (((from_bitField0_ & 0x00000002) != 0)) { - result.nextPageToken_ = nextPageToken_; - } - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.cloud.securitycentermanagement.v1.ListEffectiveEventThreatDetectionCustomModulesResponse) { - return mergeFrom((com.google.cloud.securitycentermanagement.v1.ListEffectiveEventThreatDetectionCustomModulesResponse)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.google.cloud.securitycentermanagement.v1.ListEffectiveEventThreatDetectionCustomModulesResponse other) { - if (other == com.google.cloud.securitycentermanagement.v1.ListEffectiveEventThreatDetectionCustomModulesResponse.getDefaultInstance()) return this; - if (effectiveEventThreatDetectionCustomModulesBuilder_ == null) { - if (!other.effectiveEventThreatDetectionCustomModules_.isEmpty()) { - if (effectiveEventThreatDetectionCustomModules_.isEmpty()) { - effectiveEventThreatDetectionCustomModules_ = other.effectiveEventThreatDetectionCustomModules_; - bitField0_ = (bitField0_ & ~0x00000001); - } else { - ensureEffectiveEventThreatDetectionCustomModulesIsMutable(); - effectiveEventThreatDetectionCustomModules_.addAll(other.effectiveEventThreatDetectionCustomModules_); - } - onChanged(); - } - } else { - if (!other.effectiveEventThreatDetectionCustomModules_.isEmpty()) { - if (effectiveEventThreatDetectionCustomModulesBuilder_.isEmpty()) { - effectiveEventThreatDetectionCustomModulesBuilder_.dispose(); - effectiveEventThreatDetectionCustomModulesBuilder_ = null; - effectiveEventThreatDetectionCustomModules_ = other.effectiveEventThreatDetectionCustomModules_; - bitField0_ = (bitField0_ & ~0x00000001); - effectiveEventThreatDetectionCustomModulesBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? - getEffectiveEventThreatDetectionCustomModulesFieldBuilder() : null; - } else { - effectiveEventThreatDetectionCustomModulesBuilder_.addAllMessages(other.effectiveEventThreatDetectionCustomModules_); - } - } - } - if (!other.getNextPageToken().isEmpty()) { - nextPageToken_ = other.nextPageToken_; - bitField0_ |= 0x00000002; - onChanged(); - } - this.mergeUnknownFields(other.getUnknownFields()); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: { - com.google.cloud.securitycentermanagement.v1.EffectiveEventThreatDetectionCustomModule m = - input.readMessage( - com.google.cloud.securitycentermanagement.v1.EffectiveEventThreatDetectionCustomModule.parser(), - extensionRegistry); - if (effectiveEventThreatDetectionCustomModulesBuilder_ == null) { - ensureEffectiveEventThreatDetectionCustomModulesIsMutable(); - effectiveEventThreatDetectionCustomModules_.add(m); - } else { - effectiveEventThreatDetectionCustomModulesBuilder_.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) { - throw e.unwrapIOException(); - } finally { - onChanged(); - } // finally - return this; - } - private int bitField0_; - - private java.util.List effectiveEventThreatDetectionCustomModules_ = - java.util.Collections.emptyList(); - private void ensureEffectiveEventThreatDetectionCustomModulesIsMutable() { - if (!((bitField0_ & 0x00000001) != 0)) { - effectiveEventThreatDetectionCustomModules_ = new java.util.ArrayList(effectiveEventThreatDetectionCustomModules_); - bitField0_ |= 0x00000001; - } - } - - private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.securitycentermanagement.v1.EffectiveEventThreatDetectionCustomModule, com.google.cloud.securitycentermanagement.v1.EffectiveEventThreatDetectionCustomModule.Builder, com.google.cloud.securitycentermanagement.v1.EffectiveEventThreatDetectionCustomModuleOrBuilder> effectiveEventThreatDetectionCustomModulesBuilder_; - - /** - *
-     * The list of EffectiveEventThreatDetectionCustomModules
-     * 
- * - * repeated .google.cloud.securitycentermanagement.v1.EffectiveEventThreatDetectionCustomModule effective_event_threat_detection_custom_modules = 1; - */ - public java.util.List getEffectiveEventThreatDetectionCustomModulesList() { - if (effectiveEventThreatDetectionCustomModulesBuilder_ == null) { - return java.util.Collections.unmodifiableList(effectiveEventThreatDetectionCustomModules_); - } else { - return effectiveEventThreatDetectionCustomModulesBuilder_.getMessageList(); - } - } - /** - *
-     * The list of EffectiveEventThreatDetectionCustomModules
-     * 
- * - * repeated .google.cloud.securitycentermanagement.v1.EffectiveEventThreatDetectionCustomModule effective_event_threat_detection_custom_modules = 1; - */ - public int getEffectiveEventThreatDetectionCustomModulesCount() { - if (effectiveEventThreatDetectionCustomModulesBuilder_ == null) { - return effectiveEventThreatDetectionCustomModules_.size(); - } else { - return effectiveEventThreatDetectionCustomModulesBuilder_.getCount(); - } - } - /** - *
-     * The list of EffectiveEventThreatDetectionCustomModules
-     * 
- * - * repeated .google.cloud.securitycentermanagement.v1.EffectiveEventThreatDetectionCustomModule effective_event_threat_detection_custom_modules = 1; - */ - public com.google.cloud.securitycentermanagement.v1.EffectiveEventThreatDetectionCustomModule getEffectiveEventThreatDetectionCustomModules(int index) { - if (effectiveEventThreatDetectionCustomModulesBuilder_ == null) { - return effectiveEventThreatDetectionCustomModules_.get(index); - } else { - return effectiveEventThreatDetectionCustomModulesBuilder_.getMessage(index); - } - } - /** - *
-     * The list of EffectiveEventThreatDetectionCustomModules
-     * 
- * - * repeated .google.cloud.securitycentermanagement.v1.EffectiveEventThreatDetectionCustomModule effective_event_threat_detection_custom_modules = 1; - */ - public Builder setEffectiveEventThreatDetectionCustomModules( - int index, com.google.cloud.securitycentermanagement.v1.EffectiveEventThreatDetectionCustomModule value) { - if (effectiveEventThreatDetectionCustomModulesBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureEffectiveEventThreatDetectionCustomModulesIsMutable(); - effectiveEventThreatDetectionCustomModules_.set(index, value); - onChanged(); - } else { - effectiveEventThreatDetectionCustomModulesBuilder_.setMessage(index, value); - } - return this; - } - /** - *
-     * The list of EffectiveEventThreatDetectionCustomModules
-     * 
- * - * repeated .google.cloud.securitycentermanagement.v1.EffectiveEventThreatDetectionCustomModule effective_event_threat_detection_custom_modules = 1; - */ - public Builder setEffectiveEventThreatDetectionCustomModules( - int index, com.google.cloud.securitycentermanagement.v1.EffectiveEventThreatDetectionCustomModule.Builder builderForValue) { - if (effectiveEventThreatDetectionCustomModulesBuilder_ == null) { - ensureEffectiveEventThreatDetectionCustomModulesIsMutable(); - effectiveEventThreatDetectionCustomModules_.set(index, builderForValue.build()); - onChanged(); - } else { - effectiveEventThreatDetectionCustomModulesBuilder_.setMessage(index, builderForValue.build()); - } - return this; - } - /** - *
-     * The list of EffectiveEventThreatDetectionCustomModules
-     * 
- * - * repeated .google.cloud.securitycentermanagement.v1.EffectiveEventThreatDetectionCustomModule effective_event_threat_detection_custom_modules = 1; - */ - public Builder addEffectiveEventThreatDetectionCustomModules(com.google.cloud.securitycentermanagement.v1.EffectiveEventThreatDetectionCustomModule value) { - if (effectiveEventThreatDetectionCustomModulesBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureEffectiveEventThreatDetectionCustomModulesIsMutable(); - effectiveEventThreatDetectionCustomModules_.add(value); - onChanged(); - } else { - effectiveEventThreatDetectionCustomModulesBuilder_.addMessage(value); - } - return this; - } - /** - *
-     * The list of EffectiveEventThreatDetectionCustomModules
-     * 
- * - * repeated .google.cloud.securitycentermanagement.v1.EffectiveEventThreatDetectionCustomModule effective_event_threat_detection_custom_modules = 1; - */ - public Builder addEffectiveEventThreatDetectionCustomModules( - int index, com.google.cloud.securitycentermanagement.v1.EffectiveEventThreatDetectionCustomModule value) { - if (effectiveEventThreatDetectionCustomModulesBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureEffectiveEventThreatDetectionCustomModulesIsMutable(); - effectiveEventThreatDetectionCustomModules_.add(index, value); - onChanged(); - } else { - effectiveEventThreatDetectionCustomModulesBuilder_.addMessage(index, value); - } - return this; - } - /** - *
-     * The list of EffectiveEventThreatDetectionCustomModules
-     * 
- * - * repeated .google.cloud.securitycentermanagement.v1.EffectiveEventThreatDetectionCustomModule effective_event_threat_detection_custom_modules = 1; - */ - public Builder addEffectiveEventThreatDetectionCustomModules( - com.google.cloud.securitycentermanagement.v1.EffectiveEventThreatDetectionCustomModule.Builder builderForValue) { - if (effectiveEventThreatDetectionCustomModulesBuilder_ == null) { - ensureEffectiveEventThreatDetectionCustomModulesIsMutable(); - effectiveEventThreatDetectionCustomModules_.add(builderForValue.build()); - onChanged(); - } else { - effectiveEventThreatDetectionCustomModulesBuilder_.addMessage(builderForValue.build()); - } - return this; - } - /** - *
-     * The list of EffectiveEventThreatDetectionCustomModules
-     * 
- * - * repeated .google.cloud.securitycentermanagement.v1.EffectiveEventThreatDetectionCustomModule effective_event_threat_detection_custom_modules = 1; - */ - public Builder addEffectiveEventThreatDetectionCustomModules( - int index, com.google.cloud.securitycentermanagement.v1.EffectiveEventThreatDetectionCustomModule.Builder builderForValue) { - if (effectiveEventThreatDetectionCustomModulesBuilder_ == null) { - ensureEffectiveEventThreatDetectionCustomModulesIsMutable(); - effectiveEventThreatDetectionCustomModules_.add(index, builderForValue.build()); - onChanged(); - } else { - effectiveEventThreatDetectionCustomModulesBuilder_.addMessage(index, builderForValue.build()); - } - return this; - } - /** - *
-     * The list of EffectiveEventThreatDetectionCustomModules
-     * 
- * - * repeated .google.cloud.securitycentermanagement.v1.EffectiveEventThreatDetectionCustomModule effective_event_threat_detection_custom_modules = 1; - */ - public Builder addAllEffectiveEventThreatDetectionCustomModules( - java.lang.Iterable values) { - if (effectiveEventThreatDetectionCustomModulesBuilder_ == null) { - ensureEffectiveEventThreatDetectionCustomModulesIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, effectiveEventThreatDetectionCustomModules_); - onChanged(); - } else { - effectiveEventThreatDetectionCustomModulesBuilder_.addAllMessages(values); - } - return this; - } - /** - *
-     * The list of EffectiveEventThreatDetectionCustomModules
-     * 
- * - * repeated .google.cloud.securitycentermanagement.v1.EffectiveEventThreatDetectionCustomModule effective_event_threat_detection_custom_modules = 1; - */ - public Builder clearEffectiveEventThreatDetectionCustomModules() { - if (effectiveEventThreatDetectionCustomModulesBuilder_ == null) { - effectiveEventThreatDetectionCustomModules_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000001); - onChanged(); - } else { - effectiveEventThreatDetectionCustomModulesBuilder_.clear(); - } - return this; - } - /** - *
-     * The list of EffectiveEventThreatDetectionCustomModules
-     * 
- * - * repeated .google.cloud.securitycentermanagement.v1.EffectiveEventThreatDetectionCustomModule effective_event_threat_detection_custom_modules = 1; - */ - public Builder removeEffectiveEventThreatDetectionCustomModules(int index) { - if (effectiveEventThreatDetectionCustomModulesBuilder_ == null) { - ensureEffectiveEventThreatDetectionCustomModulesIsMutable(); - effectiveEventThreatDetectionCustomModules_.remove(index); - onChanged(); - } else { - effectiveEventThreatDetectionCustomModulesBuilder_.remove(index); - } - return this; - } - /** - *
-     * The list of EffectiveEventThreatDetectionCustomModules
-     * 
- * - * repeated .google.cloud.securitycentermanagement.v1.EffectiveEventThreatDetectionCustomModule effective_event_threat_detection_custom_modules = 1; - */ - public com.google.cloud.securitycentermanagement.v1.EffectiveEventThreatDetectionCustomModule.Builder getEffectiveEventThreatDetectionCustomModulesBuilder( - int index) { - return getEffectiveEventThreatDetectionCustomModulesFieldBuilder().getBuilder(index); - } - /** - *
-     * The list of EffectiveEventThreatDetectionCustomModules
-     * 
- * - * repeated .google.cloud.securitycentermanagement.v1.EffectiveEventThreatDetectionCustomModule effective_event_threat_detection_custom_modules = 1; - */ - public com.google.cloud.securitycentermanagement.v1.EffectiveEventThreatDetectionCustomModuleOrBuilder getEffectiveEventThreatDetectionCustomModulesOrBuilder( - int index) { - if (effectiveEventThreatDetectionCustomModulesBuilder_ == null) { - return effectiveEventThreatDetectionCustomModules_.get(index); } else { - return effectiveEventThreatDetectionCustomModulesBuilder_.getMessageOrBuilder(index); - } - } - /** - *
-     * The list of EffectiveEventThreatDetectionCustomModules
-     * 
- * - * repeated .google.cloud.securitycentermanagement.v1.EffectiveEventThreatDetectionCustomModule effective_event_threat_detection_custom_modules = 1; - */ - public java.util.List - getEffectiveEventThreatDetectionCustomModulesOrBuilderList() { - if (effectiveEventThreatDetectionCustomModulesBuilder_ != null) { - return effectiveEventThreatDetectionCustomModulesBuilder_.getMessageOrBuilderList(); - } else { - return java.util.Collections.unmodifiableList(effectiveEventThreatDetectionCustomModules_); - } - } - /** - *
-     * The list of EffectiveEventThreatDetectionCustomModules
-     * 
- * - * repeated .google.cloud.securitycentermanagement.v1.EffectiveEventThreatDetectionCustomModule effective_event_threat_detection_custom_modules = 1; - */ - public com.google.cloud.securitycentermanagement.v1.EffectiveEventThreatDetectionCustomModule.Builder addEffectiveEventThreatDetectionCustomModulesBuilder() { - return getEffectiveEventThreatDetectionCustomModulesFieldBuilder().addBuilder( - com.google.cloud.securitycentermanagement.v1.EffectiveEventThreatDetectionCustomModule.getDefaultInstance()); - } - /** - *
-     * The list of EffectiveEventThreatDetectionCustomModules
-     * 
- * - * repeated .google.cloud.securitycentermanagement.v1.EffectiveEventThreatDetectionCustomModule effective_event_threat_detection_custom_modules = 1; - */ - public com.google.cloud.securitycentermanagement.v1.EffectiveEventThreatDetectionCustomModule.Builder addEffectiveEventThreatDetectionCustomModulesBuilder( - int index) { - return getEffectiveEventThreatDetectionCustomModulesFieldBuilder().addBuilder( - index, com.google.cloud.securitycentermanagement.v1.EffectiveEventThreatDetectionCustomModule.getDefaultInstance()); - } - /** - *
-     * The list of EffectiveEventThreatDetectionCustomModules
-     * 
- * - * repeated .google.cloud.securitycentermanagement.v1.EffectiveEventThreatDetectionCustomModule effective_event_threat_detection_custom_modules = 1; - */ - public java.util.List - getEffectiveEventThreatDetectionCustomModulesBuilderList() { - return getEffectiveEventThreatDetectionCustomModulesFieldBuilder().getBuilderList(); - } - private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.securitycentermanagement.v1.EffectiveEventThreatDetectionCustomModule, com.google.cloud.securitycentermanagement.v1.EffectiveEventThreatDetectionCustomModule.Builder, com.google.cloud.securitycentermanagement.v1.EffectiveEventThreatDetectionCustomModuleOrBuilder> - getEffectiveEventThreatDetectionCustomModulesFieldBuilder() { - if (effectiveEventThreatDetectionCustomModulesBuilder_ == null) { - effectiveEventThreatDetectionCustomModulesBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.securitycentermanagement.v1.EffectiveEventThreatDetectionCustomModule, com.google.cloud.securitycentermanagement.v1.EffectiveEventThreatDetectionCustomModule.Builder, com.google.cloud.securitycentermanagement.v1.EffectiveEventThreatDetectionCustomModuleOrBuilder>( - effectiveEventThreatDetectionCustomModules_, - ((bitField0_ & 0x00000001) != 0), - getParentForChildren(), - isClean()); - effectiveEventThreatDetectionCustomModules_ = null; - } - return effectiveEventThreatDetectionCustomModulesBuilder_; - } - - private java.lang.Object nextPageToken_ = ""; - /** - *
-     * A token identifying a page of results the server should return.
-     * 
- * - * 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; - java.lang.String s = bs.toStringUtf8(); - nextPageToken_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - *
-     * A token identifying a page of results the server should return.
-     * 
- * - * string next_page_token = 2; - * @return The bytes for nextPageToken. - */ - 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); - nextPageToken_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - *
-     * A token identifying a page of results the server should return.
-     * 
- * - * 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(); } - nextPageToken_ = value; - bitField0_ |= 0x00000002; - onChanged(); - return this; - } - /** - *
-     * A token identifying a page of results the server should return.
-     * 
- * - * string next_page_token = 2; - * @return This builder for chaining. - */ - public Builder clearNextPageToken() { - nextPageToken_ = getDefaultInstance().getNextPageToken(); - bitField0_ = (bitField0_ & ~0x00000002); - onChanged(); - return this; - } - /** - *
-     * A token identifying a page of results the server should return.
-     * 
- * - * 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(); } - checkByteStringIsUtf8(value); - nextPageToken_ = value; - bitField0_ |= 0x00000002; - onChanged(); - return this; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:google.cloud.securitycentermanagement.v1.ListEffectiveEventThreatDetectionCustomModulesResponse) - } - - // @@protoc_insertion_point(class_scope:google.cloud.securitycentermanagement.v1.ListEffectiveEventThreatDetectionCustomModulesResponse) - private static final com.google.cloud.securitycentermanagement.v1.ListEffectiveEventThreatDetectionCustomModulesResponse DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new com.google.cloud.securitycentermanagement.v1.ListEffectiveEventThreatDetectionCustomModulesResponse(); - } - - public static com.google.cloud.securitycentermanagement.v1.ListEffectiveEventThreatDetectionCustomModulesResponse getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ListEffectiveEventThreatDetectionCustomModulesResponse parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public com.google.cloud.securitycentermanagement.v1.ListEffectiveEventThreatDetectionCustomModulesResponse getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/owl-bot-staging/java-securitycentermanagement/v1/proto-google-cloud-securitycentermanagement-v1/src/main/java/com/google/cloud/securitycentermanagement/v1/ListEffectiveEventThreatDetectionCustomModulesResponseOrBuilder.java b/owl-bot-staging/java-securitycentermanagement/v1/proto-google-cloud-securitycentermanagement-v1/src/main/java/com/google/cloud/securitycentermanagement/v1/ListEffectiveEventThreatDetectionCustomModulesResponseOrBuilder.java deleted file mode 100644 index cca7c8874d71..000000000000 --- a/owl-bot-staging/java-securitycentermanagement/v1/proto-google-cloud-securitycentermanagement-v1/src/main/java/com/google/cloud/securitycentermanagement/v1/ListEffectiveEventThreatDetectionCustomModulesResponseOrBuilder.java +++ /dev/null @@ -1,73 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/securitycentermanagement/v1/security_center_management.proto - -package com.google.cloud.securitycentermanagement.v1; - -public interface ListEffectiveEventThreatDetectionCustomModulesResponseOrBuilder extends - // @@protoc_insertion_point(interface_extends:google.cloud.securitycentermanagement.v1.ListEffectiveEventThreatDetectionCustomModulesResponse) - com.google.protobuf.MessageOrBuilder { - - /** - *
-   * The list of EffectiveEventThreatDetectionCustomModules
-   * 
- * - * repeated .google.cloud.securitycentermanagement.v1.EffectiveEventThreatDetectionCustomModule effective_event_threat_detection_custom_modules = 1; - */ - java.util.List - getEffectiveEventThreatDetectionCustomModulesList(); - /** - *
-   * The list of EffectiveEventThreatDetectionCustomModules
-   * 
- * - * repeated .google.cloud.securitycentermanagement.v1.EffectiveEventThreatDetectionCustomModule effective_event_threat_detection_custom_modules = 1; - */ - com.google.cloud.securitycentermanagement.v1.EffectiveEventThreatDetectionCustomModule getEffectiveEventThreatDetectionCustomModules(int index); - /** - *
-   * The list of EffectiveEventThreatDetectionCustomModules
-   * 
- * - * repeated .google.cloud.securitycentermanagement.v1.EffectiveEventThreatDetectionCustomModule effective_event_threat_detection_custom_modules = 1; - */ - int getEffectiveEventThreatDetectionCustomModulesCount(); - /** - *
-   * The list of EffectiveEventThreatDetectionCustomModules
-   * 
- * - * repeated .google.cloud.securitycentermanagement.v1.EffectiveEventThreatDetectionCustomModule effective_event_threat_detection_custom_modules = 1; - */ - java.util.List - getEffectiveEventThreatDetectionCustomModulesOrBuilderList(); - /** - *
-   * The list of EffectiveEventThreatDetectionCustomModules
-   * 
- * - * repeated .google.cloud.securitycentermanagement.v1.EffectiveEventThreatDetectionCustomModule effective_event_threat_detection_custom_modules = 1; - */ - com.google.cloud.securitycentermanagement.v1.EffectiveEventThreatDetectionCustomModuleOrBuilder getEffectiveEventThreatDetectionCustomModulesOrBuilder( - int index); - - /** - *
-   * A token identifying a page of results the server should return.
-   * 
- * - * string next_page_token = 2; - * @return The nextPageToken. - */ - java.lang.String getNextPageToken(); - /** - *
-   * A token identifying a page of results the server should return.
-   * 
- * - * string next_page_token = 2; - * @return The bytes for nextPageToken. - */ - com.google.protobuf.ByteString - getNextPageTokenBytes(); -} diff --git a/owl-bot-staging/java-securitycentermanagement/v1/proto-google-cloud-securitycentermanagement-v1/src/main/java/com/google/cloud/securitycentermanagement/v1/ListEffectiveSecurityHealthAnalyticsCustomModulesResponse.java b/owl-bot-staging/java-securitycentermanagement/v1/proto-google-cloud-securitycentermanagement-v1/src/main/java/com/google/cloud/securitycentermanagement/v1/ListEffectiveSecurityHealthAnalyticsCustomModulesResponse.java deleted file mode 100644 index f95903f6107e..000000000000 --- a/owl-bot-staging/java-securitycentermanagement/v1/proto-google-cloud-securitycentermanagement-v1/src/main/java/com/google/cloud/securitycentermanagement/v1/ListEffectiveSecurityHealthAnalyticsCustomModulesResponse.java +++ /dev/null @@ -1,1025 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/securitycentermanagement/v1/security_center_management.proto - -package com.google.cloud.securitycentermanagement.v1; - -/** - *
- * Response message for listing effective Security Health Analytics custom
- * modules.
- * 
- * - * Protobuf type {@code google.cloud.securitycentermanagement.v1.ListEffectiveSecurityHealthAnalyticsCustomModulesResponse} - */ -public final class ListEffectiveSecurityHealthAnalyticsCustomModulesResponse extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:google.cloud.securitycentermanagement.v1.ListEffectiveSecurityHealthAnalyticsCustomModulesResponse) - ListEffectiveSecurityHealthAnalyticsCustomModulesResponseOrBuilder { -private static final long serialVersionUID = 0L; - // Use ListEffectiveSecurityHealthAnalyticsCustomModulesResponse.newBuilder() to construct. - private ListEffectiveSecurityHealthAnalyticsCustomModulesResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private ListEffectiveSecurityHealthAnalyticsCustomModulesResponse() { - effectiveSecurityHealthAnalyticsCustomModules_ = java.util.Collections.emptyList(); - nextPageToken_ = ""; - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new ListEffectiveSecurityHealthAnalyticsCustomModulesResponse(); - } - - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.securitycentermanagement.v1.SecurityCenterManagementProto.internal_static_google_cloud_securitycentermanagement_v1_ListEffectiveSecurityHealthAnalyticsCustomModulesResponse_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.securitycentermanagement.v1.SecurityCenterManagementProto.internal_static_google_cloud_securitycentermanagement_v1_ListEffectiveSecurityHealthAnalyticsCustomModulesResponse_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.securitycentermanagement.v1.ListEffectiveSecurityHealthAnalyticsCustomModulesResponse.class, com.google.cloud.securitycentermanagement.v1.ListEffectiveSecurityHealthAnalyticsCustomModulesResponse.Builder.class); - } - - public static final int EFFECTIVE_SECURITY_HEALTH_ANALYTICS_CUSTOM_MODULES_FIELD_NUMBER = 1; - @SuppressWarnings("serial") - private java.util.List effectiveSecurityHealthAnalyticsCustomModules_; - /** - *
-   * The list of EffectiveSecurityHealthAnalyticsCustomModule
-   * 
- * - * repeated .google.cloud.securitycentermanagement.v1.EffectiveSecurityHealthAnalyticsCustomModule effective_security_health_analytics_custom_modules = 1; - */ - @java.lang.Override - public java.util.List getEffectiveSecurityHealthAnalyticsCustomModulesList() { - return effectiveSecurityHealthAnalyticsCustomModules_; - } - /** - *
-   * The list of EffectiveSecurityHealthAnalyticsCustomModule
-   * 
- * - * repeated .google.cloud.securitycentermanagement.v1.EffectiveSecurityHealthAnalyticsCustomModule effective_security_health_analytics_custom_modules = 1; - */ - @java.lang.Override - public java.util.List - getEffectiveSecurityHealthAnalyticsCustomModulesOrBuilderList() { - return effectiveSecurityHealthAnalyticsCustomModules_; - } - /** - *
-   * The list of EffectiveSecurityHealthAnalyticsCustomModule
-   * 
- * - * repeated .google.cloud.securitycentermanagement.v1.EffectiveSecurityHealthAnalyticsCustomModule effective_security_health_analytics_custom_modules = 1; - */ - @java.lang.Override - public int getEffectiveSecurityHealthAnalyticsCustomModulesCount() { - return effectiveSecurityHealthAnalyticsCustomModules_.size(); - } - /** - *
-   * The list of EffectiveSecurityHealthAnalyticsCustomModule
-   * 
- * - * repeated .google.cloud.securitycentermanagement.v1.EffectiveSecurityHealthAnalyticsCustomModule effective_security_health_analytics_custom_modules = 1; - */ - @java.lang.Override - public com.google.cloud.securitycentermanagement.v1.EffectiveSecurityHealthAnalyticsCustomModule getEffectiveSecurityHealthAnalyticsCustomModules(int index) { - return effectiveSecurityHealthAnalyticsCustomModules_.get(index); - } - /** - *
-   * The list of EffectiveSecurityHealthAnalyticsCustomModule
-   * 
- * - * repeated .google.cloud.securitycentermanagement.v1.EffectiveSecurityHealthAnalyticsCustomModule effective_security_health_analytics_custom_modules = 1; - */ - @java.lang.Override - public com.google.cloud.securitycentermanagement.v1.EffectiveSecurityHealthAnalyticsCustomModuleOrBuilder getEffectiveSecurityHealthAnalyticsCustomModulesOrBuilder( - int index) { - return effectiveSecurityHealthAnalyticsCustomModules_.get(index); - } - - public static final int NEXT_PAGE_TOKEN_FIELD_NUMBER = 2; - @SuppressWarnings("serial") - private volatile java.lang.Object nextPageToken_ = ""; - /** - *
-   * A token identifying a page of results the server should return.
-   * 
- * - * string next_page_token = 2; - * @return The nextPageToken. - */ - @java.lang.Override - public java.lang.String getNextPageToken() { - java.lang.Object ref = nextPageToken_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - nextPageToken_ = s; - return s; - } - } - /** - *
-   * A token identifying a page of results the server should return.
-   * 
- * - * string next_page_token = 2; - * @return The bytes for nextPageToken. - */ - @java.lang.Override - 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); - nextPageToken_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - for (int i = 0; i < effectiveSecurityHealthAnalyticsCustomModules_.size(); i++) { - output.writeMessage(1, effectiveSecurityHealthAnalyticsCustomModules_.get(i)); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(nextPageToken_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 2, nextPageToken_); - } - getUnknownFields().writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - for (int i = 0; i < effectiveSecurityHealthAnalyticsCustomModules_.size(); i++) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, effectiveSecurityHealthAnalyticsCustomModules_.get(i)); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(nextPageToken_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, nextPageToken_); - } - size += getUnknownFields().getSerializedSize(); - memoizedSize = size; - return size; - } - - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof com.google.cloud.securitycentermanagement.v1.ListEffectiveSecurityHealthAnalyticsCustomModulesResponse)) { - return super.equals(obj); - } - com.google.cloud.securitycentermanagement.v1.ListEffectiveSecurityHealthAnalyticsCustomModulesResponse other = (com.google.cloud.securitycentermanagement.v1.ListEffectiveSecurityHealthAnalyticsCustomModulesResponse) obj; - - if (!getEffectiveSecurityHealthAnalyticsCustomModulesList() - .equals(other.getEffectiveSecurityHealthAnalyticsCustomModulesList())) return false; - if (!getNextPageToken() - .equals(other.getNextPageToken())) return false; - if (!getUnknownFields().equals(other.getUnknownFields())) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - if (getEffectiveSecurityHealthAnalyticsCustomModulesCount() > 0) { - hash = (37 * hash) + EFFECTIVE_SECURITY_HEALTH_ANALYTICS_CUSTOM_MODULES_FIELD_NUMBER; - hash = (53 * hash) + getEffectiveSecurityHealthAnalyticsCustomModulesList().hashCode(); - } - hash = (37 * hash) + NEXT_PAGE_TOKEN_FIELD_NUMBER; - hash = (53 * hash) + getNextPageToken().hashCode(); - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static com.google.cloud.securitycentermanagement.v1.ListEffectiveSecurityHealthAnalyticsCustomModulesResponse parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static com.google.cloud.securitycentermanagement.v1.ListEffectiveSecurityHealthAnalyticsCustomModulesResponse 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.securitycentermanagement.v1.ListEffectiveSecurityHealthAnalyticsCustomModulesResponse parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static com.google.cloud.securitycentermanagement.v1.ListEffectiveSecurityHealthAnalyticsCustomModulesResponse parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static com.google.cloud.securitycentermanagement.v1.ListEffectiveSecurityHealthAnalyticsCustomModulesResponse parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static com.google.cloud.securitycentermanagement.v1.ListEffectiveSecurityHealthAnalyticsCustomModulesResponse parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static com.google.cloud.securitycentermanagement.v1.ListEffectiveSecurityHealthAnalyticsCustomModulesResponse parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static com.google.cloud.securitycentermanagement.v1.ListEffectiveSecurityHealthAnalyticsCustomModulesResponse 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.securitycentermanagement.v1.ListEffectiveSecurityHealthAnalyticsCustomModulesResponse parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - - public static com.google.cloud.securitycentermanagement.v1.ListEffectiveSecurityHealthAnalyticsCustomModulesResponse parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); - } - public static com.google.cloud.securitycentermanagement.v1.ListEffectiveSecurityHealthAnalyticsCustomModulesResponse parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static com.google.cloud.securitycentermanagement.v1.ListEffectiveSecurityHealthAnalyticsCustomModulesResponse 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.securitycentermanagement.v1.ListEffectiveSecurityHealthAnalyticsCustomModulesResponse prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - *
-   * Response message for listing effective Security Health Analytics custom
-   * modules.
-   * 
- * - * Protobuf type {@code google.cloud.securitycentermanagement.v1.ListEffectiveSecurityHealthAnalyticsCustomModulesResponse} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:google.cloud.securitycentermanagement.v1.ListEffectiveSecurityHealthAnalyticsCustomModulesResponse) - com.google.cloud.securitycentermanagement.v1.ListEffectiveSecurityHealthAnalyticsCustomModulesResponseOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.securitycentermanagement.v1.SecurityCenterManagementProto.internal_static_google_cloud_securitycentermanagement_v1_ListEffectiveSecurityHealthAnalyticsCustomModulesResponse_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.securitycentermanagement.v1.SecurityCenterManagementProto.internal_static_google_cloud_securitycentermanagement_v1_ListEffectiveSecurityHealthAnalyticsCustomModulesResponse_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.securitycentermanagement.v1.ListEffectiveSecurityHealthAnalyticsCustomModulesResponse.class, com.google.cloud.securitycentermanagement.v1.ListEffectiveSecurityHealthAnalyticsCustomModulesResponse.Builder.class); - } - - // Construct using com.google.cloud.securitycentermanagement.v1.ListEffectiveSecurityHealthAnalyticsCustomModulesResponse.newBuilder() - private Builder() { - - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - - } - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - if (effectiveSecurityHealthAnalyticsCustomModulesBuilder_ == null) { - effectiveSecurityHealthAnalyticsCustomModules_ = java.util.Collections.emptyList(); - } else { - effectiveSecurityHealthAnalyticsCustomModules_ = null; - effectiveSecurityHealthAnalyticsCustomModulesBuilder_.clear(); - } - bitField0_ = (bitField0_ & ~0x00000001); - nextPageToken_ = ""; - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.securitycentermanagement.v1.SecurityCenterManagementProto.internal_static_google_cloud_securitycentermanagement_v1_ListEffectiveSecurityHealthAnalyticsCustomModulesResponse_descriptor; - } - - @java.lang.Override - public com.google.cloud.securitycentermanagement.v1.ListEffectiveSecurityHealthAnalyticsCustomModulesResponse getDefaultInstanceForType() { - return com.google.cloud.securitycentermanagement.v1.ListEffectiveSecurityHealthAnalyticsCustomModulesResponse.getDefaultInstance(); - } - - @java.lang.Override - public com.google.cloud.securitycentermanagement.v1.ListEffectiveSecurityHealthAnalyticsCustomModulesResponse build() { - com.google.cloud.securitycentermanagement.v1.ListEffectiveSecurityHealthAnalyticsCustomModulesResponse result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.cloud.securitycentermanagement.v1.ListEffectiveSecurityHealthAnalyticsCustomModulesResponse buildPartial() { - com.google.cloud.securitycentermanagement.v1.ListEffectiveSecurityHealthAnalyticsCustomModulesResponse result = new com.google.cloud.securitycentermanagement.v1.ListEffectiveSecurityHealthAnalyticsCustomModulesResponse(this); - buildPartialRepeatedFields(result); - if (bitField0_ != 0) { buildPartial0(result); } - onBuilt(); - return result; - } - - private void buildPartialRepeatedFields(com.google.cloud.securitycentermanagement.v1.ListEffectiveSecurityHealthAnalyticsCustomModulesResponse result) { - if (effectiveSecurityHealthAnalyticsCustomModulesBuilder_ == null) { - if (((bitField0_ & 0x00000001) != 0)) { - effectiveSecurityHealthAnalyticsCustomModules_ = java.util.Collections.unmodifiableList(effectiveSecurityHealthAnalyticsCustomModules_); - bitField0_ = (bitField0_ & ~0x00000001); - } - result.effectiveSecurityHealthAnalyticsCustomModules_ = effectiveSecurityHealthAnalyticsCustomModules_; - } else { - result.effectiveSecurityHealthAnalyticsCustomModules_ = effectiveSecurityHealthAnalyticsCustomModulesBuilder_.build(); - } - } - - private void buildPartial0(com.google.cloud.securitycentermanagement.v1.ListEffectiveSecurityHealthAnalyticsCustomModulesResponse result) { - int from_bitField0_ = bitField0_; - if (((from_bitField0_ & 0x00000002) != 0)) { - result.nextPageToken_ = nextPageToken_; - } - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.cloud.securitycentermanagement.v1.ListEffectiveSecurityHealthAnalyticsCustomModulesResponse) { - return mergeFrom((com.google.cloud.securitycentermanagement.v1.ListEffectiveSecurityHealthAnalyticsCustomModulesResponse)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.google.cloud.securitycentermanagement.v1.ListEffectiveSecurityHealthAnalyticsCustomModulesResponse other) { - if (other == com.google.cloud.securitycentermanagement.v1.ListEffectiveSecurityHealthAnalyticsCustomModulesResponse.getDefaultInstance()) return this; - if (effectiveSecurityHealthAnalyticsCustomModulesBuilder_ == null) { - if (!other.effectiveSecurityHealthAnalyticsCustomModules_.isEmpty()) { - if (effectiveSecurityHealthAnalyticsCustomModules_.isEmpty()) { - effectiveSecurityHealthAnalyticsCustomModules_ = other.effectiveSecurityHealthAnalyticsCustomModules_; - bitField0_ = (bitField0_ & ~0x00000001); - } else { - ensureEffectiveSecurityHealthAnalyticsCustomModulesIsMutable(); - effectiveSecurityHealthAnalyticsCustomModules_.addAll(other.effectiveSecurityHealthAnalyticsCustomModules_); - } - onChanged(); - } - } else { - if (!other.effectiveSecurityHealthAnalyticsCustomModules_.isEmpty()) { - if (effectiveSecurityHealthAnalyticsCustomModulesBuilder_.isEmpty()) { - effectiveSecurityHealthAnalyticsCustomModulesBuilder_.dispose(); - effectiveSecurityHealthAnalyticsCustomModulesBuilder_ = null; - effectiveSecurityHealthAnalyticsCustomModules_ = other.effectiveSecurityHealthAnalyticsCustomModules_; - bitField0_ = (bitField0_ & ~0x00000001); - effectiveSecurityHealthAnalyticsCustomModulesBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? - getEffectiveSecurityHealthAnalyticsCustomModulesFieldBuilder() : null; - } else { - effectiveSecurityHealthAnalyticsCustomModulesBuilder_.addAllMessages(other.effectiveSecurityHealthAnalyticsCustomModules_); - } - } - } - if (!other.getNextPageToken().isEmpty()) { - nextPageToken_ = other.nextPageToken_; - bitField0_ |= 0x00000002; - onChanged(); - } - this.mergeUnknownFields(other.getUnknownFields()); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: { - com.google.cloud.securitycentermanagement.v1.EffectiveSecurityHealthAnalyticsCustomModule m = - input.readMessage( - com.google.cloud.securitycentermanagement.v1.EffectiveSecurityHealthAnalyticsCustomModule.parser(), - extensionRegistry); - if (effectiveSecurityHealthAnalyticsCustomModulesBuilder_ == null) { - ensureEffectiveSecurityHealthAnalyticsCustomModulesIsMutable(); - effectiveSecurityHealthAnalyticsCustomModules_.add(m); - } else { - effectiveSecurityHealthAnalyticsCustomModulesBuilder_.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) { - throw e.unwrapIOException(); - } finally { - onChanged(); - } // finally - return this; - } - private int bitField0_; - - private java.util.List effectiveSecurityHealthAnalyticsCustomModules_ = - java.util.Collections.emptyList(); - private void ensureEffectiveSecurityHealthAnalyticsCustomModulesIsMutable() { - if (!((bitField0_ & 0x00000001) != 0)) { - effectiveSecurityHealthAnalyticsCustomModules_ = new java.util.ArrayList(effectiveSecurityHealthAnalyticsCustomModules_); - bitField0_ |= 0x00000001; - } - } - - private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.securitycentermanagement.v1.EffectiveSecurityHealthAnalyticsCustomModule, com.google.cloud.securitycentermanagement.v1.EffectiveSecurityHealthAnalyticsCustomModule.Builder, com.google.cloud.securitycentermanagement.v1.EffectiveSecurityHealthAnalyticsCustomModuleOrBuilder> effectiveSecurityHealthAnalyticsCustomModulesBuilder_; - - /** - *
-     * The list of EffectiveSecurityHealthAnalyticsCustomModule
-     * 
- * - * repeated .google.cloud.securitycentermanagement.v1.EffectiveSecurityHealthAnalyticsCustomModule effective_security_health_analytics_custom_modules = 1; - */ - public java.util.List getEffectiveSecurityHealthAnalyticsCustomModulesList() { - if (effectiveSecurityHealthAnalyticsCustomModulesBuilder_ == null) { - return java.util.Collections.unmodifiableList(effectiveSecurityHealthAnalyticsCustomModules_); - } else { - return effectiveSecurityHealthAnalyticsCustomModulesBuilder_.getMessageList(); - } - } - /** - *
-     * The list of EffectiveSecurityHealthAnalyticsCustomModule
-     * 
- * - * repeated .google.cloud.securitycentermanagement.v1.EffectiveSecurityHealthAnalyticsCustomModule effective_security_health_analytics_custom_modules = 1; - */ - public int getEffectiveSecurityHealthAnalyticsCustomModulesCount() { - if (effectiveSecurityHealthAnalyticsCustomModulesBuilder_ == null) { - return effectiveSecurityHealthAnalyticsCustomModules_.size(); - } else { - return effectiveSecurityHealthAnalyticsCustomModulesBuilder_.getCount(); - } - } - /** - *
-     * The list of EffectiveSecurityHealthAnalyticsCustomModule
-     * 
- * - * repeated .google.cloud.securitycentermanagement.v1.EffectiveSecurityHealthAnalyticsCustomModule effective_security_health_analytics_custom_modules = 1; - */ - public com.google.cloud.securitycentermanagement.v1.EffectiveSecurityHealthAnalyticsCustomModule getEffectiveSecurityHealthAnalyticsCustomModules(int index) { - if (effectiveSecurityHealthAnalyticsCustomModulesBuilder_ == null) { - return effectiveSecurityHealthAnalyticsCustomModules_.get(index); - } else { - return effectiveSecurityHealthAnalyticsCustomModulesBuilder_.getMessage(index); - } - } - /** - *
-     * The list of EffectiveSecurityHealthAnalyticsCustomModule
-     * 
- * - * repeated .google.cloud.securitycentermanagement.v1.EffectiveSecurityHealthAnalyticsCustomModule effective_security_health_analytics_custom_modules = 1; - */ - public Builder setEffectiveSecurityHealthAnalyticsCustomModules( - int index, com.google.cloud.securitycentermanagement.v1.EffectiveSecurityHealthAnalyticsCustomModule value) { - if (effectiveSecurityHealthAnalyticsCustomModulesBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureEffectiveSecurityHealthAnalyticsCustomModulesIsMutable(); - effectiveSecurityHealthAnalyticsCustomModules_.set(index, value); - onChanged(); - } else { - effectiveSecurityHealthAnalyticsCustomModulesBuilder_.setMessage(index, value); - } - return this; - } - /** - *
-     * The list of EffectiveSecurityHealthAnalyticsCustomModule
-     * 
- * - * repeated .google.cloud.securitycentermanagement.v1.EffectiveSecurityHealthAnalyticsCustomModule effective_security_health_analytics_custom_modules = 1; - */ - public Builder setEffectiveSecurityHealthAnalyticsCustomModules( - int index, com.google.cloud.securitycentermanagement.v1.EffectiveSecurityHealthAnalyticsCustomModule.Builder builderForValue) { - if (effectiveSecurityHealthAnalyticsCustomModulesBuilder_ == null) { - ensureEffectiveSecurityHealthAnalyticsCustomModulesIsMutable(); - effectiveSecurityHealthAnalyticsCustomModules_.set(index, builderForValue.build()); - onChanged(); - } else { - effectiveSecurityHealthAnalyticsCustomModulesBuilder_.setMessage(index, builderForValue.build()); - } - return this; - } - /** - *
-     * The list of EffectiveSecurityHealthAnalyticsCustomModule
-     * 
- * - * repeated .google.cloud.securitycentermanagement.v1.EffectiveSecurityHealthAnalyticsCustomModule effective_security_health_analytics_custom_modules = 1; - */ - public Builder addEffectiveSecurityHealthAnalyticsCustomModules(com.google.cloud.securitycentermanagement.v1.EffectiveSecurityHealthAnalyticsCustomModule value) { - if (effectiveSecurityHealthAnalyticsCustomModulesBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureEffectiveSecurityHealthAnalyticsCustomModulesIsMutable(); - effectiveSecurityHealthAnalyticsCustomModules_.add(value); - onChanged(); - } else { - effectiveSecurityHealthAnalyticsCustomModulesBuilder_.addMessage(value); - } - return this; - } - /** - *
-     * The list of EffectiveSecurityHealthAnalyticsCustomModule
-     * 
- * - * repeated .google.cloud.securitycentermanagement.v1.EffectiveSecurityHealthAnalyticsCustomModule effective_security_health_analytics_custom_modules = 1; - */ - public Builder addEffectiveSecurityHealthAnalyticsCustomModules( - int index, com.google.cloud.securitycentermanagement.v1.EffectiveSecurityHealthAnalyticsCustomModule value) { - if (effectiveSecurityHealthAnalyticsCustomModulesBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureEffectiveSecurityHealthAnalyticsCustomModulesIsMutable(); - effectiveSecurityHealthAnalyticsCustomModules_.add(index, value); - onChanged(); - } else { - effectiveSecurityHealthAnalyticsCustomModulesBuilder_.addMessage(index, value); - } - return this; - } - /** - *
-     * The list of EffectiveSecurityHealthAnalyticsCustomModule
-     * 
- * - * repeated .google.cloud.securitycentermanagement.v1.EffectiveSecurityHealthAnalyticsCustomModule effective_security_health_analytics_custom_modules = 1; - */ - public Builder addEffectiveSecurityHealthAnalyticsCustomModules( - com.google.cloud.securitycentermanagement.v1.EffectiveSecurityHealthAnalyticsCustomModule.Builder builderForValue) { - if (effectiveSecurityHealthAnalyticsCustomModulesBuilder_ == null) { - ensureEffectiveSecurityHealthAnalyticsCustomModulesIsMutable(); - effectiveSecurityHealthAnalyticsCustomModules_.add(builderForValue.build()); - onChanged(); - } else { - effectiveSecurityHealthAnalyticsCustomModulesBuilder_.addMessage(builderForValue.build()); - } - return this; - } - /** - *
-     * The list of EffectiveSecurityHealthAnalyticsCustomModule
-     * 
- * - * repeated .google.cloud.securitycentermanagement.v1.EffectiveSecurityHealthAnalyticsCustomModule effective_security_health_analytics_custom_modules = 1; - */ - public Builder addEffectiveSecurityHealthAnalyticsCustomModules( - int index, com.google.cloud.securitycentermanagement.v1.EffectiveSecurityHealthAnalyticsCustomModule.Builder builderForValue) { - if (effectiveSecurityHealthAnalyticsCustomModulesBuilder_ == null) { - ensureEffectiveSecurityHealthAnalyticsCustomModulesIsMutable(); - effectiveSecurityHealthAnalyticsCustomModules_.add(index, builderForValue.build()); - onChanged(); - } else { - effectiveSecurityHealthAnalyticsCustomModulesBuilder_.addMessage(index, builderForValue.build()); - } - return this; - } - /** - *
-     * The list of EffectiveSecurityHealthAnalyticsCustomModule
-     * 
- * - * repeated .google.cloud.securitycentermanagement.v1.EffectiveSecurityHealthAnalyticsCustomModule effective_security_health_analytics_custom_modules = 1; - */ - public Builder addAllEffectiveSecurityHealthAnalyticsCustomModules( - java.lang.Iterable values) { - if (effectiveSecurityHealthAnalyticsCustomModulesBuilder_ == null) { - ensureEffectiveSecurityHealthAnalyticsCustomModulesIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, effectiveSecurityHealthAnalyticsCustomModules_); - onChanged(); - } else { - effectiveSecurityHealthAnalyticsCustomModulesBuilder_.addAllMessages(values); - } - return this; - } - /** - *
-     * The list of EffectiveSecurityHealthAnalyticsCustomModule
-     * 
- * - * repeated .google.cloud.securitycentermanagement.v1.EffectiveSecurityHealthAnalyticsCustomModule effective_security_health_analytics_custom_modules = 1; - */ - public Builder clearEffectiveSecurityHealthAnalyticsCustomModules() { - if (effectiveSecurityHealthAnalyticsCustomModulesBuilder_ == null) { - effectiveSecurityHealthAnalyticsCustomModules_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000001); - onChanged(); - } else { - effectiveSecurityHealthAnalyticsCustomModulesBuilder_.clear(); - } - return this; - } - /** - *
-     * The list of EffectiveSecurityHealthAnalyticsCustomModule
-     * 
- * - * repeated .google.cloud.securitycentermanagement.v1.EffectiveSecurityHealthAnalyticsCustomModule effective_security_health_analytics_custom_modules = 1; - */ - public Builder removeEffectiveSecurityHealthAnalyticsCustomModules(int index) { - if (effectiveSecurityHealthAnalyticsCustomModulesBuilder_ == null) { - ensureEffectiveSecurityHealthAnalyticsCustomModulesIsMutable(); - effectiveSecurityHealthAnalyticsCustomModules_.remove(index); - onChanged(); - } else { - effectiveSecurityHealthAnalyticsCustomModulesBuilder_.remove(index); - } - return this; - } - /** - *
-     * The list of EffectiveSecurityHealthAnalyticsCustomModule
-     * 
- * - * repeated .google.cloud.securitycentermanagement.v1.EffectiveSecurityHealthAnalyticsCustomModule effective_security_health_analytics_custom_modules = 1; - */ - public com.google.cloud.securitycentermanagement.v1.EffectiveSecurityHealthAnalyticsCustomModule.Builder getEffectiveSecurityHealthAnalyticsCustomModulesBuilder( - int index) { - return getEffectiveSecurityHealthAnalyticsCustomModulesFieldBuilder().getBuilder(index); - } - /** - *
-     * The list of EffectiveSecurityHealthAnalyticsCustomModule
-     * 
- * - * repeated .google.cloud.securitycentermanagement.v1.EffectiveSecurityHealthAnalyticsCustomModule effective_security_health_analytics_custom_modules = 1; - */ - public com.google.cloud.securitycentermanagement.v1.EffectiveSecurityHealthAnalyticsCustomModuleOrBuilder getEffectiveSecurityHealthAnalyticsCustomModulesOrBuilder( - int index) { - if (effectiveSecurityHealthAnalyticsCustomModulesBuilder_ == null) { - return effectiveSecurityHealthAnalyticsCustomModules_.get(index); } else { - return effectiveSecurityHealthAnalyticsCustomModulesBuilder_.getMessageOrBuilder(index); - } - } - /** - *
-     * The list of EffectiveSecurityHealthAnalyticsCustomModule
-     * 
- * - * repeated .google.cloud.securitycentermanagement.v1.EffectiveSecurityHealthAnalyticsCustomModule effective_security_health_analytics_custom_modules = 1; - */ - public java.util.List - getEffectiveSecurityHealthAnalyticsCustomModulesOrBuilderList() { - if (effectiveSecurityHealthAnalyticsCustomModulesBuilder_ != null) { - return effectiveSecurityHealthAnalyticsCustomModulesBuilder_.getMessageOrBuilderList(); - } else { - return java.util.Collections.unmodifiableList(effectiveSecurityHealthAnalyticsCustomModules_); - } - } - /** - *
-     * The list of EffectiveSecurityHealthAnalyticsCustomModule
-     * 
- * - * repeated .google.cloud.securitycentermanagement.v1.EffectiveSecurityHealthAnalyticsCustomModule effective_security_health_analytics_custom_modules = 1; - */ - public com.google.cloud.securitycentermanagement.v1.EffectiveSecurityHealthAnalyticsCustomModule.Builder addEffectiveSecurityHealthAnalyticsCustomModulesBuilder() { - return getEffectiveSecurityHealthAnalyticsCustomModulesFieldBuilder().addBuilder( - com.google.cloud.securitycentermanagement.v1.EffectiveSecurityHealthAnalyticsCustomModule.getDefaultInstance()); - } - /** - *
-     * The list of EffectiveSecurityHealthAnalyticsCustomModule
-     * 
- * - * repeated .google.cloud.securitycentermanagement.v1.EffectiveSecurityHealthAnalyticsCustomModule effective_security_health_analytics_custom_modules = 1; - */ - public com.google.cloud.securitycentermanagement.v1.EffectiveSecurityHealthAnalyticsCustomModule.Builder addEffectiveSecurityHealthAnalyticsCustomModulesBuilder( - int index) { - return getEffectiveSecurityHealthAnalyticsCustomModulesFieldBuilder().addBuilder( - index, com.google.cloud.securitycentermanagement.v1.EffectiveSecurityHealthAnalyticsCustomModule.getDefaultInstance()); - } - /** - *
-     * The list of EffectiveSecurityHealthAnalyticsCustomModule
-     * 
- * - * repeated .google.cloud.securitycentermanagement.v1.EffectiveSecurityHealthAnalyticsCustomModule effective_security_health_analytics_custom_modules = 1; - */ - public java.util.List - getEffectiveSecurityHealthAnalyticsCustomModulesBuilderList() { - return getEffectiveSecurityHealthAnalyticsCustomModulesFieldBuilder().getBuilderList(); - } - private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.securitycentermanagement.v1.EffectiveSecurityHealthAnalyticsCustomModule, com.google.cloud.securitycentermanagement.v1.EffectiveSecurityHealthAnalyticsCustomModule.Builder, com.google.cloud.securitycentermanagement.v1.EffectiveSecurityHealthAnalyticsCustomModuleOrBuilder> - getEffectiveSecurityHealthAnalyticsCustomModulesFieldBuilder() { - if (effectiveSecurityHealthAnalyticsCustomModulesBuilder_ == null) { - effectiveSecurityHealthAnalyticsCustomModulesBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.securitycentermanagement.v1.EffectiveSecurityHealthAnalyticsCustomModule, com.google.cloud.securitycentermanagement.v1.EffectiveSecurityHealthAnalyticsCustomModule.Builder, com.google.cloud.securitycentermanagement.v1.EffectiveSecurityHealthAnalyticsCustomModuleOrBuilder>( - effectiveSecurityHealthAnalyticsCustomModules_, - ((bitField0_ & 0x00000001) != 0), - getParentForChildren(), - isClean()); - effectiveSecurityHealthAnalyticsCustomModules_ = null; - } - return effectiveSecurityHealthAnalyticsCustomModulesBuilder_; - } - - private java.lang.Object nextPageToken_ = ""; - /** - *
-     * A token identifying a page of results the server should return.
-     * 
- * - * 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; - java.lang.String s = bs.toStringUtf8(); - nextPageToken_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - *
-     * A token identifying a page of results the server should return.
-     * 
- * - * string next_page_token = 2; - * @return The bytes for nextPageToken. - */ - 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); - nextPageToken_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - *
-     * A token identifying a page of results the server should return.
-     * 
- * - * 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(); } - nextPageToken_ = value; - bitField0_ |= 0x00000002; - onChanged(); - return this; - } - /** - *
-     * A token identifying a page of results the server should return.
-     * 
- * - * string next_page_token = 2; - * @return This builder for chaining. - */ - public Builder clearNextPageToken() { - nextPageToken_ = getDefaultInstance().getNextPageToken(); - bitField0_ = (bitField0_ & ~0x00000002); - onChanged(); - return this; - } - /** - *
-     * A token identifying a page of results the server should return.
-     * 
- * - * 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(); } - checkByteStringIsUtf8(value); - nextPageToken_ = value; - bitField0_ |= 0x00000002; - onChanged(); - return this; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:google.cloud.securitycentermanagement.v1.ListEffectiveSecurityHealthAnalyticsCustomModulesResponse) - } - - // @@protoc_insertion_point(class_scope:google.cloud.securitycentermanagement.v1.ListEffectiveSecurityHealthAnalyticsCustomModulesResponse) - private static final com.google.cloud.securitycentermanagement.v1.ListEffectiveSecurityHealthAnalyticsCustomModulesResponse DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new com.google.cloud.securitycentermanagement.v1.ListEffectiveSecurityHealthAnalyticsCustomModulesResponse(); - } - - public static com.google.cloud.securitycentermanagement.v1.ListEffectiveSecurityHealthAnalyticsCustomModulesResponse getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ListEffectiveSecurityHealthAnalyticsCustomModulesResponse parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public com.google.cloud.securitycentermanagement.v1.ListEffectiveSecurityHealthAnalyticsCustomModulesResponse getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/owl-bot-staging/java-securitycentermanagement/v1/proto-google-cloud-securitycentermanagement-v1/src/main/java/com/google/cloud/securitycentermanagement/v1/ListEffectiveSecurityHealthAnalyticsCustomModulesResponseOrBuilder.java b/owl-bot-staging/java-securitycentermanagement/v1/proto-google-cloud-securitycentermanagement-v1/src/main/java/com/google/cloud/securitycentermanagement/v1/ListEffectiveSecurityHealthAnalyticsCustomModulesResponseOrBuilder.java deleted file mode 100644 index 64bac02345b8..000000000000 --- a/owl-bot-staging/java-securitycentermanagement/v1/proto-google-cloud-securitycentermanagement-v1/src/main/java/com/google/cloud/securitycentermanagement/v1/ListEffectiveSecurityHealthAnalyticsCustomModulesResponseOrBuilder.java +++ /dev/null @@ -1,73 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/securitycentermanagement/v1/security_center_management.proto - -package com.google.cloud.securitycentermanagement.v1; - -public interface ListEffectiveSecurityHealthAnalyticsCustomModulesResponseOrBuilder extends - // @@protoc_insertion_point(interface_extends:google.cloud.securitycentermanagement.v1.ListEffectiveSecurityHealthAnalyticsCustomModulesResponse) - com.google.protobuf.MessageOrBuilder { - - /** - *
-   * The list of EffectiveSecurityHealthAnalyticsCustomModule
-   * 
- * - * repeated .google.cloud.securitycentermanagement.v1.EffectiveSecurityHealthAnalyticsCustomModule effective_security_health_analytics_custom_modules = 1; - */ - java.util.List - getEffectiveSecurityHealthAnalyticsCustomModulesList(); - /** - *
-   * The list of EffectiveSecurityHealthAnalyticsCustomModule
-   * 
- * - * repeated .google.cloud.securitycentermanagement.v1.EffectiveSecurityHealthAnalyticsCustomModule effective_security_health_analytics_custom_modules = 1; - */ - com.google.cloud.securitycentermanagement.v1.EffectiveSecurityHealthAnalyticsCustomModule getEffectiveSecurityHealthAnalyticsCustomModules(int index); - /** - *
-   * The list of EffectiveSecurityHealthAnalyticsCustomModule
-   * 
- * - * repeated .google.cloud.securitycentermanagement.v1.EffectiveSecurityHealthAnalyticsCustomModule effective_security_health_analytics_custom_modules = 1; - */ - int getEffectiveSecurityHealthAnalyticsCustomModulesCount(); - /** - *
-   * The list of EffectiveSecurityHealthAnalyticsCustomModule
-   * 
- * - * repeated .google.cloud.securitycentermanagement.v1.EffectiveSecurityHealthAnalyticsCustomModule effective_security_health_analytics_custom_modules = 1; - */ - java.util.List - getEffectiveSecurityHealthAnalyticsCustomModulesOrBuilderList(); - /** - *
-   * The list of EffectiveSecurityHealthAnalyticsCustomModule
-   * 
- * - * repeated .google.cloud.securitycentermanagement.v1.EffectiveSecurityHealthAnalyticsCustomModule effective_security_health_analytics_custom_modules = 1; - */ - com.google.cloud.securitycentermanagement.v1.EffectiveSecurityHealthAnalyticsCustomModuleOrBuilder getEffectiveSecurityHealthAnalyticsCustomModulesOrBuilder( - int index); - - /** - *
-   * A token identifying a page of results the server should return.
-   * 
- * - * string next_page_token = 2; - * @return The nextPageToken. - */ - java.lang.String getNextPageToken(); - /** - *
-   * A token identifying a page of results the server should return.
-   * 
- * - * string next_page_token = 2; - * @return The bytes for nextPageToken. - */ - com.google.protobuf.ByteString - getNextPageTokenBytes(); -} diff --git a/owl-bot-staging/java-securitycentermanagement/v1/proto-google-cloud-securitycentermanagement-v1/src/main/java/com/google/cloud/securitycentermanagement/v1/ListEventThreatDetectionCustomModulesResponseOrBuilder.java b/owl-bot-staging/java-securitycentermanagement/v1/proto-google-cloud-securitycentermanagement-v1/src/main/java/com/google/cloud/securitycentermanagement/v1/ListEventThreatDetectionCustomModulesResponseOrBuilder.java deleted file mode 100644 index c4d8c9b0466d..000000000000 --- a/owl-bot-staging/java-securitycentermanagement/v1/proto-google-cloud-securitycentermanagement-v1/src/main/java/com/google/cloud/securitycentermanagement/v1/ListEventThreatDetectionCustomModulesResponseOrBuilder.java +++ /dev/null @@ -1,73 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/securitycentermanagement/v1/security_center_management.proto - -package com.google.cloud.securitycentermanagement.v1; - -public interface ListEventThreatDetectionCustomModulesResponseOrBuilder extends - // @@protoc_insertion_point(interface_extends:google.cloud.securitycentermanagement.v1.ListEventThreatDetectionCustomModulesResponse) - com.google.protobuf.MessageOrBuilder { - - /** - *
-   * The list of EventThreatDetectionCustomModules
-   * 
- * - * repeated .google.cloud.securitycentermanagement.v1.EventThreatDetectionCustomModule event_threat_detection_custom_modules = 1; - */ - java.util.List - getEventThreatDetectionCustomModulesList(); - /** - *
-   * The list of EventThreatDetectionCustomModules
-   * 
- * - * repeated .google.cloud.securitycentermanagement.v1.EventThreatDetectionCustomModule event_threat_detection_custom_modules = 1; - */ - com.google.cloud.securitycentermanagement.v1.EventThreatDetectionCustomModule getEventThreatDetectionCustomModules(int index); - /** - *
-   * The list of EventThreatDetectionCustomModules
-   * 
- * - * repeated .google.cloud.securitycentermanagement.v1.EventThreatDetectionCustomModule event_threat_detection_custom_modules = 1; - */ - int getEventThreatDetectionCustomModulesCount(); - /** - *
-   * The list of EventThreatDetectionCustomModules
-   * 
- * - * repeated .google.cloud.securitycentermanagement.v1.EventThreatDetectionCustomModule event_threat_detection_custom_modules = 1; - */ - java.util.List - getEventThreatDetectionCustomModulesOrBuilderList(); - /** - *
-   * The list of EventThreatDetectionCustomModules
-   * 
- * - * repeated .google.cloud.securitycentermanagement.v1.EventThreatDetectionCustomModule event_threat_detection_custom_modules = 1; - */ - com.google.cloud.securitycentermanagement.v1.EventThreatDetectionCustomModuleOrBuilder getEventThreatDetectionCustomModulesOrBuilder( - int index); - - /** - *
-   * A token identifying a page of results the server should return.
-   * 
- * - * string next_page_token = 2; - * @return The nextPageToken. - */ - java.lang.String getNextPageToken(); - /** - *
-   * A token identifying a page of results the server should return.
-   * 
- * - * string next_page_token = 2; - * @return The bytes for nextPageToken. - */ - com.google.protobuf.ByteString - getNextPageTokenBytes(); -} diff --git a/owl-bot-staging/java-securitycentermanagement/v1/proto-google-cloud-securitycentermanagement-v1/src/main/java/com/google/cloud/securitycentermanagement/v1/ListSecurityHealthAnalyticsCustomModulesResponseOrBuilder.java b/owl-bot-staging/java-securitycentermanagement/v1/proto-google-cloud-securitycentermanagement-v1/src/main/java/com/google/cloud/securitycentermanagement/v1/ListSecurityHealthAnalyticsCustomModulesResponseOrBuilder.java deleted file mode 100644 index 475c5ce4f0a6..000000000000 --- a/owl-bot-staging/java-securitycentermanagement/v1/proto-google-cloud-securitycentermanagement-v1/src/main/java/com/google/cloud/securitycentermanagement/v1/ListSecurityHealthAnalyticsCustomModulesResponseOrBuilder.java +++ /dev/null @@ -1,73 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/securitycentermanagement/v1/security_center_management.proto - -package com.google.cloud.securitycentermanagement.v1; - -public interface ListSecurityHealthAnalyticsCustomModulesResponseOrBuilder extends - // @@protoc_insertion_point(interface_extends:google.cloud.securitycentermanagement.v1.ListSecurityHealthAnalyticsCustomModulesResponse) - com.google.protobuf.MessageOrBuilder { - - /** - *
-   * The list of SecurityHealthAnalyticsCustomModules
-   * 
- * - * repeated .google.cloud.securitycentermanagement.v1.SecurityHealthAnalyticsCustomModule security_health_analytics_custom_modules = 1; - */ - java.util.List - getSecurityHealthAnalyticsCustomModulesList(); - /** - *
-   * The list of SecurityHealthAnalyticsCustomModules
-   * 
- * - * repeated .google.cloud.securitycentermanagement.v1.SecurityHealthAnalyticsCustomModule security_health_analytics_custom_modules = 1; - */ - com.google.cloud.securitycentermanagement.v1.SecurityHealthAnalyticsCustomModule getSecurityHealthAnalyticsCustomModules(int index); - /** - *
-   * The list of SecurityHealthAnalyticsCustomModules
-   * 
- * - * repeated .google.cloud.securitycentermanagement.v1.SecurityHealthAnalyticsCustomModule security_health_analytics_custom_modules = 1; - */ - int getSecurityHealthAnalyticsCustomModulesCount(); - /** - *
-   * The list of SecurityHealthAnalyticsCustomModules
-   * 
- * - * repeated .google.cloud.securitycentermanagement.v1.SecurityHealthAnalyticsCustomModule security_health_analytics_custom_modules = 1; - */ - java.util.List - getSecurityHealthAnalyticsCustomModulesOrBuilderList(); - /** - *
-   * The list of SecurityHealthAnalyticsCustomModules
-   * 
- * - * repeated .google.cloud.securitycentermanagement.v1.SecurityHealthAnalyticsCustomModule security_health_analytics_custom_modules = 1; - */ - com.google.cloud.securitycentermanagement.v1.SecurityHealthAnalyticsCustomModuleOrBuilder getSecurityHealthAnalyticsCustomModulesOrBuilder( - int index); - - /** - *
-   * A token identifying a page of results the server should return.
-   * 
- * - * string next_page_token = 2; - * @return The nextPageToken. - */ - java.lang.String getNextPageToken(); - /** - *
-   * A token identifying a page of results the server should return.
-   * 
- * - * string next_page_token = 2; - * @return The bytes for nextPageToken. - */ - com.google.protobuf.ByteString - getNextPageTokenBytes(); -} diff --git a/owl-bot-staging/java-securitycentermanagement/v1/proto-google-cloud-securitycentermanagement-v1/src/main/java/com/google/cloud/securitycentermanagement/v1/SecurityCenterManagementProto.java b/owl-bot-staging/java-securitycentermanagement/v1/proto-google-cloud-securitycentermanagement-v1/src/main/java/com/google/cloud/securitycentermanagement/v1/SecurityCenterManagementProto.java deleted file mode 100644 index 133f689fa872..000000000000 --- a/owl-bot-staging/java-securitycentermanagement/v1/proto-google-cloud-securitycentermanagement-v1/src/main/java/com/google/cloud/securitycentermanagement/v1/SecurityCenterManagementProto.java +++ /dev/null @@ -1,1084 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/securitycentermanagement/v1/security_center_management.proto - -package com.google.cloud.securitycentermanagement.v1; - -public final class SecurityCenterManagementProto { - private SecurityCenterManagementProto() {} - 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_securitycentermanagement_v1_EffectiveSecurityHealthAnalyticsCustomModule_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_securitycentermanagement_v1_EffectiveSecurityHealthAnalyticsCustomModule_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_securitycentermanagement_v1_ListEffectiveSecurityHealthAnalyticsCustomModulesRequest_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_securitycentermanagement_v1_ListEffectiveSecurityHealthAnalyticsCustomModulesRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_securitycentermanagement_v1_ListEffectiveSecurityHealthAnalyticsCustomModulesResponse_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_securitycentermanagement_v1_ListEffectiveSecurityHealthAnalyticsCustomModulesResponse_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_securitycentermanagement_v1_GetEffectiveSecurityHealthAnalyticsCustomModuleRequest_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_securitycentermanagement_v1_GetEffectiveSecurityHealthAnalyticsCustomModuleRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_securitycentermanagement_v1_SecurityHealthAnalyticsCustomModule_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_securitycentermanagement_v1_SecurityHealthAnalyticsCustomModule_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_securitycentermanagement_v1_CustomConfig_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_securitycentermanagement_v1_CustomConfig_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_securitycentermanagement_v1_CustomConfig_CustomOutputSpec_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_securitycentermanagement_v1_CustomConfig_CustomOutputSpec_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_securitycentermanagement_v1_CustomConfig_CustomOutputSpec_Property_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_securitycentermanagement_v1_CustomConfig_CustomOutputSpec_Property_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_securitycentermanagement_v1_CustomConfig_ResourceSelector_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_securitycentermanagement_v1_CustomConfig_ResourceSelector_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_securitycentermanagement_v1_ListSecurityHealthAnalyticsCustomModulesRequest_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_securitycentermanagement_v1_ListSecurityHealthAnalyticsCustomModulesRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_securitycentermanagement_v1_ListSecurityHealthAnalyticsCustomModulesResponse_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_securitycentermanagement_v1_ListSecurityHealthAnalyticsCustomModulesResponse_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_securitycentermanagement_v1_ListDescendantSecurityHealthAnalyticsCustomModulesRequest_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_securitycentermanagement_v1_ListDescendantSecurityHealthAnalyticsCustomModulesRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_securitycentermanagement_v1_ListDescendantSecurityHealthAnalyticsCustomModulesResponse_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_securitycentermanagement_v1_ListDescendantSecurityHealthAnalyticsCustomModulesResponse_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_securitycentermanagement_v1_GetSecurityHealthAnalyticsCustomModuleRequest_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_securitycentermanagement_v1_GetSecurityHealthAnalyticsCustomModuleRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_securitycentermanagement_v1_CreateSecurityHealthAnalyticsCustomModuleRequest_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_securitycentermanagement_v1_CreateSecurityHealthAnalyticsCustomModuleRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_securitycentermanagement_v1_UpdateSecurityHealthAnalyticsCustomModuleRequest_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_securitycentermanagement_v1_UpdateSecurityHealthAnalyticsCustomModuleRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_securitycentermanagement_v1_DeleteSecurityHealthAnalyticsCustomModuleRequest_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_securitycentermanagement_v1_DeleteSecurityHealthAnalyticsCustomModuleRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_securitycentermanagement_v1_SimulateSecurityHealthAnalyticsCustomModuleRequest_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_securitycentermanagement_v1_SimulateSecurityHealthAnalyticsCustomModuleRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_securitycentermanagement_v1_SimulateSecurityHealthAnalyticsCustomModuleRequest_SimulatedResource_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_securitycentermanagement_v1_SimulateSecurityHealthAnalyticsCustomModuleRequest_SimulatedResource_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_securitycentermanagement_v1_SimulatedFinding_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_securitycentermanagement_v1_SimulatedFinding_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_securitycentermanagement_v1_SimulatedFinding_SourcePropertiesEntry_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_securitycentermanagement_v1_SimulatedFinding_SourcePropertiesEntry_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_securitycentermanagement_v1_SimulateSecurityHealthAnalyticsCustomModuleResponse_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_securitycentermanagement_v1_SimulateSecurityHealthAnalyticsCustomModuleResponse_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_securitycentermanagement_v1_SimulateSecurityHealthAnalyticsCustomModuleResponse_SimulatedResult_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_securitycentermanagement_v1_SimulateSecurityHealthAnalyticsCustomModuleResponse_SimulatedResult_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_securitycentermanagement_v1_EffectiveEventThreatDetectionCustomModule_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_securitycentermanagement_v1_EffectiveEventThreatDetectionCustomModule_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_securitycentermanagement_v1_ListEffectiveEventThreatDetectionCustomModulesRequest_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_securitycentermanagement_v1_ListEffectiveEventThreatDetectionCustomModulesRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_securitycentermanagement_v1_ListEffectiveEventThreatDetectionCustomModulesResponse_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_securitycentermanagement_v1_ListEffectiveEventThreatDetectionCustomModulesResponse_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_securitycentermanagement_v1_GetEffectiveEventThreatDetectionCustomModuleRequest_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_securitycentermanagement_v1_GetEffectiveEventThreatDetectionCustomModuleRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_securitycentermanagement_v1_EventThreatDetectionCustomModule_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_securitycentermanagement_v1_EventThreatDetectionCustomModule_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_securitycentermanagement_v1_ListEventThreatDetectionCustomModulesRequest_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_securitycentermanagement_v1_ListEventThreatDetectionCustomModulesRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_securitycentermanagement_v1_ListEventThreatDetectionCustomModulesResponse_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_securitycentermanagement_v1_ListEventThreatDetectionCustomModulesResponse_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_securitycentermanagement_v1_ListDescendantEventThreatDetectionCustomModulesRequest_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_securitycentermanagement_v1_ListDescendantEventThreatDetectionCustomModulesRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_securitycentermanagement_v1_ListDescendantEventThreatDetectionCustomModulesResponse_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_securitycentermanagement_v1_ListDescendantEventThreatDetectionCustomModulesResponse_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_securitycentermanagement_v1_GetEventThreatDetectionCustomModuleRequest_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_securitycentermanagement_v1_GetEventThreatDetectionCustomModuleRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_securitycentermanagement_v1_CreateEventThreatDetectionCustomModuleRequest_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_securitycentermanagement_v1_CreateEventThreatDetectionCustomModuleRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_securitycentermanagement_v1_UpdateEventThreatDetectionCustomModuleRequest_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_securitycentermanagement_v1_UpdateEventThreatDetectionCustomModuleRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_securitycentermanagement_v1_DeleteEventThreatDetectionCustomModuleRequest_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_securitycentermanagement_v1_DeleteEventThreatDetectionCustomModuleRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_securitycentermanagement_v1_ValidateEventThreatDetectionCustomModuleRequest_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_securitycentermanagement_v1_ValidateEventThreatDetectionCustomModuleRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_securitycentermanagement_v1_ValidateEventThreatDetectionCustomModuleResponse_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_securitycentermanagement_v1_ValidateEventThreatDetectionCustomModuleResponse_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_securitycentermanagement_v1_ValidateEventThreatDetectionCustomModuleResponse_CustomModuleValidationError_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_securitycentermanagement_v1_ValidateEventThreatDetectionCustomModuleResponse_CustomModuleValidationError_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_securitycentermanagement_v1_ValidateEventThreatDetectionCustomModuleResponse_Position_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_securitycentermanagement_v1_ValidateEventThreatDetectionCustomModuleResponse_Position_fieldAccessorTable; - - public static com.google.protobuf.Descriptors.FileDescriptor - getDescriptor() { - return descriptor; - } - private static com.google.protobuf.Descriptors.FileDescriptor - descriptor; - static { - java.lang.String[] descriptorData = { - "\nIgoogle/cloud/securitycentermanagement/" + - "v1/security_center_management.proto\022(goo" + - "gle.cloud.securitycentermanagement.v1\032\034g" + - "oogle/api/annotations.proto\032\027google/api/" + - "client.proto\032\037google/api/field_behavior." + - "proto\032\031google/api/resource.proto\032\032google" + - "/iam/v1/policy.proto\032\033google/protobuf/em" + - "pty.proto\032 google/protobuf/field_mask.pr" + - "oto\032\034google/protobuf/struct.proto\032\037googl" + - "e/protobuf/timestamp.proto\032\027google/rpc/s" + - "tatus.proto\032\026google/type/expr.proto\"\362\007\n," + - "EffectiveSecurityHealthAnalyticsCustomMo" + - "dule\022\022\n\004name\030\001 \001(\tB\004\342A\001\003\022S\n\rcustom_confi" + - "g\030\002 \001(\01326.google.cloud.securitycenterman" + - "agement.v1.CustomConfigB\004\342A\001\003\022\206\001\n\020enable" + - "ment_state\030\003 \001(\0162f.google.cloud.security" + - "centermanagement.v1.EffectiveSecurityHea" + - "lthAnalyticsCustomModule.EnablementState" + - "B\004\342A\001\003\022\032\n\014display_name\030\004 \001(\tB\004\342A\001\003\"N\n\017En" + - "ablementState\022 \n\034ENABLEMENT_STATE_UNSPEC" + - "IFIED\020\000\022\013\n\007ENABLED\020\001\022\014\n\010DISABLED\020\002:\343\004\352A\337" + - "\004\nTsecuritycentermanagement.googleapis.c" + - "om/EffectiveSecurityHealthAnalyticsCusto" + - "mModule\022\223\001organizations/{organization}/l" + - "ocations/{location}/effectiveSecurityHea" + - "lthAnalyticsCustomModules/{effective_sec" + - "urity_health_analytics_custom_module}\022\211\001" + - "projects/{project}/locations/{location}/" + - "effectiveSecurityHealthAnalyticsCustomMo" + - "dules/{effective_security_health_analyti" + - "cs_custom_module}\022\207\001folders/{folder}/loc" + - "ations/{location}/effectiveSecurityHealt" + - "hAnalyticsCustomModules/{effective_secur" + - "ity_health_analytics_custom_module}*-eff" + - "ectiveSecurityHealthAnalyticsCustomModul" + - "es2,effectiveSecurityHealthAnalyticsCust" + - "omModule\"\334\001\n8ListEffectiveSecurityHealth" + - "AnalyticsCustomModulesRequest\022m\n\006parent\030" + - "\001 \001(\tB]\342A\001\002\372AV\022Tsecuritycentermanagement" + - ".googleapis.com/EffectiveSecurityHealthA" + - "nalyticsCustomModule\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\"\351\001\n9List" + - "EffectiveSecurityHealthAnalyticsCustomMo" + - "dulesResponse\022\222\001\n2effective_security_hea" + - "lth_analytics_custom_modules\030\001 \003(\0132V.goo" + - "gle.cloud.securitycentermanagement.v1.Ef" + - "fectiveSecurityHealthAnalyticsCustomModu" + - "le\022\027\n\017next_page_token\030\002 \001(\t\"\245\001\n6GetEffec" + - "tiveSecurityHealthAnalyticsCustomModuleR" + - "equest\022k\n\004name\030\001 \001(\tB]\342A\001\002\372AV\nTsecurityc" + - "entermanagement.googleapis.com/Effective" + - "SecurityHealthAnalyticsCustomModule\"\331\010\n#" + - "SecurityHealthAnalyticsCustomModule\022\022\n\004n" + - "ame\030\001 \001(\tB\004\342A\001\005\022\032\n\014display_name\030\002 \001(\tB\004\342" + - "A\001\001\022}\n\020enablement_state\030\003 \001(\0162].google.c" + - "loud.securitycentermanagement.v1.Securit" + - "yHealthAnalyticsCustomModule.EnablementS" + - "tateB\004\342A\001\001\0225\n\013update_time\030\004 \001(\0132\032.google" + - ".protobuf.TimestampB\004\342A\001\003\022\031\n\013last_editor" + - "\030\005 \001(\tB\004\342A\001\003\022m\n\017ancestor_module\030\006 \001(\tBT\342" + - "A\001\003\372AM\nKsecuritycentermanagement.googlea" + - "pis.com/SecurityHealthAnalyticsCustomMod" + - "ule\022S\n\rcustom_config\030\007 \001(\01326.google.clou" + - "d.securitycentermanagement.v1.CustomConf" + - "igB\004\342A\001\001\"]\n\017EnablementState\022 \n\034ENABLEMEN" + - "T_STATE_UNSPECIFIED\020\000\022\013\n\007ENABLED\020\001\022\014\n\010DI" + - "SABLED\020\002\022\r\n\tINHERITED\020\003:\215\004\352A\211\004\nKsecurity" + - "centermanagement.googleapis.com/Security" + - "HealthAnalyticsCustomModule\022\200\001organizati" + - "ons/{organization}/locations/{location}/" + - "securityHealthAnalyticsCustomModules/{se" + - "curity_health_analytics_custom_module}\022v" + - "projects/{project}/locations/{location}/" + - "securityHealthAnalyticsCustomModules/{se" + - "curity_health_analytics_custom_module}\022t" + - "folders/{folder}/locations/{location}/se" + - "curityHealthAnalyticsCustomModules/{secu" + - "rity_health_analytics_custom_module}*$se" + - "curityHealthAnalyticsCustomModules2#secu" + - "rityHealthAnalyticsCustomModule\"\365\005\n\014Cust" + - "omConfig\022*\n\tpredicate\030\001 \001(\0132\021.google.typ" + - "e.ExprB\004\342A\001\001\022d\n\rcustom_output\030\002 \001(\0132G.go" + - "ogle.cloud.securitycentermanagement.v1.C" + - "ustomConfig.CustomOutputSpecB\004\342A\001\001\022h\n\021re" + - "source_selector\030\003 \001(\0132G.google.cloud.sec" + - "uritycentermanagement.v1.CustomConfig.Re" + - "sourceSelectorB\004\342A\001\001\022W\n\010severity\030\004 \001(\0162?" + - ".google.cloud.securitycentermanagement.v" + - "1.CustomConfig.SeverityB\004\342A\001\001\022\031\n\013descrip" + - "tion\030\005 \001(\tB\004\342A\001\001\022\034\n\016recommendation\030\006 \001(\t" + - "B\004\342A\001\001\032\321\001\n\020CustomOutputSpec\022j\n\npropertie" + - "s\030\001 \003(\0132P.google.cloud.securitycenterman" + - "agement.v1.CustomConfig.CustomOutputSpec" + - ".PropertyB\004\342A\001\001\032Q\n\010Property\022\022\n\004name\030\001 \001(" + - "\tB\004\342A\001\001\0221\n\020value_expression\030\002 \001(\0132\021.goog" + - "le.type.ExprB\004\342A\001\001\0320\n\020ResourceSelector\022\034" + - "\n\016resource_types\030\001 \003(\tB\004\342A\001\001\"Q\n\010Severity" + - "\022\030\n\024SEVERITY_UNSPECIFIED\020\000\022\014\n\010CRITICAL\020\001" + - "\022\010\n\004HIGH\020\002\022\n\n\006MEDIUM\020\003\022\007\n\003LOW\020\004\"\312\001\n/List" + - "SecurityHealthAnalyticsCustomModulesRequ" + - "est\022d\n\006parent\030\001 \001(\tBT\342A\001\002\372AM\022Ksecurityce" + - "ntermanagement.googleapis.com/SecurityHe" + - "althAnalyticsCustomModule\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\"\314\001\n" + - "0ListSecurityHealthAnalyticsCustomModule" + - "sResponse\022\177\n(security_health_analytics_c" + - "ustom_modules\030\001 \003(\0132M.google.cloud.secur" + - "itycentermanagement.v1.SecurityHealthAna" + - "lyticsCustomModule\022\027\n\017next_page_token\030\002 " + - "\001(\t\"\324\001\n9ListDescendantSecurityHealthAnal" + - "yticsCustomModulesRequest\022d\n\006parent\030\001 \001(" + - "\tBT\342A\001\002\372AM\022Ksecuritycentermanagement.goo" + - "gleapis.com/SecurityHealthAnalyticsCusto" + - "mModule\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\"\326\001\n:ListDescendantSec" + - "urityHealthAnalyticsCustomModulesRespons" + - "e\022\177\n(security_health_analytics_custom_mo" + - "dules\030\001 \003(\0132M.google.cloud.securitycente" + - "rmanagement.v1.SecurityHealthAnalyticsCu" + - "stomModule\022\027\n\017next_page_token\030\002 \001(\t\"\223\001\n-" + - "GetSecurityHealthAnalyticsCustomModuleRe" + - "quest\022b\n\004name\030\001 \001(\tBT\342A\001\002\372AM\nKsecurityce" + - "ntermanagement.googleapis.com/SecurityHe" + - "althAnalyticsCustomModule\"\274\002\n0CreateSecu" + - "rityHealthAnalyticsCustomModuleRequest\022d" + - "\n\006parent\030\001 \001(\tBT\342A\001\002\372AM\022Ksecuritycenterm" + - "anagement.googleapis.com/SecurityHealthA" + - "nalyticsCustomModule\022\204\001\n\'security_health" + - "_analytics_custom_module\030\002 \001(\0132M.google." + - "cloud.securitycentermanagement.v1.Securi" + - "tyHealthAnalyticsCustomModuleB\004\342A\001\002\022\033\n\rv" + - "alidate_only\030\003 \001(\010B\004\342A\001\001\"\215\002\n0UpdateSecur" + - "ityHealthAnalyticsCustomModuleRequest\0225\n" + - "\013update_mask\030\001 \001(\0132\032.google.protobuf.Fie" + - "ldMaskB\004\342A\001\002\022\204\001\n\'security_health_analyti" + - "cs_custom_module\030\002 \001(\0132M.google.cloud.se" + - "curitycentermanagement.v1.SecurityHealth" + - "AnalyticsCustomModuleB\004\342A\001\002\022\033\n\rvalidate_" + - "only\030\003 \001(\010B\004\342A\001\001\"\263\001\n0DeleteSecurityHealt" + - "hAnalyticsCustomModuleRequest\022b\n\004name\030\001 " + - "\001(\tBT\342A\001\002\372AM\nKsecuritycentermanagement.g" + - "oogleapis.com/SecurityHealthAnalyticsCus" + - "tomModule\022\033\n\rvalidate_only\030\002 \001(\010B\004\342A\001\001\"\307" + - "\003\n2SimulateSecurityHealthAnalyticsCustom" + - "ModuleRequest\022\024\n\006parent\030\001 \001(\tB\004\342A\001\002\022S\n\rc" + - "ustom_config\030\002 \001(\01326.google.cloud.securi" + - "tycentermanagement.v1.CustomConfigB\004\342A\001\002" + - "\022\206\001\n\010resource\030\003 \001(\0132n.google.cloud.secur" + - "itycentermanagement.v1.SimulateSecurityH" + - "ealthAnalyticsCustomModuleRequest.Simula" + - "tedResourceB\004\342A\001\002\032\234\001\n\021SimulatedResource\022" + - "\033\n\rresource_type\030\001 \001(\tB\004\342A\001\002\0224\n\rresource" + - "_data\030\002 \001(\0132\027.google.protobuf.StructB\004\342A" + - "\001\001\0224\n\017iam_policy_data\030\003 \001(\0132\025.google.iam" + - ".v1.PolicyB\004\342A\001\001\"\365\010\n\020SimulatedFinding\022\022\n" + - "\004name\030\001 \001(\tB\004\342A\001\010\022\016\n\006parent\030\002 \001(\t\022\025\n\rres" + - "ource_name\030\003 \001(\t\022\020\n\010category\030\004 \001(\t\022U\n\005st" + - "ate\030\005 \001(\0162@.google.cloud.securitycenterm" + - "anagement.v1.SimulatedFinding.StateB\004\342A\001" + - "\003\022k\n\021source_properties\030\006 \003(\0132P.google.cl" + - "oud.securitycentermanagement.v1.Simulate" + - "dFinding.SourcePropertiesEntry\022.\n\nevent_" + - "time\030\007 \001(\0132\032.google.protobuf.Timestamp\022U" + - "\n\010severity\030\010 \001(\0162C.google.cloud.security" + - "centermanagement.v1.SimulatedFinding.Sev" + - "erity\022^\n\rfinding_class\030\t \001(\0162G.google.cl" + - "oud.securitycentermanagement.v1.Simulate" + - "dFinding.FindingClass\032O\n\025SourcePropertie" + - "sEntry\022\013\n\003key\030\001 \001(\t\022%\n\005value\030\002 \001(\0132\026.goo" + - "gle.protobuf.Value:\0028\001\"8\n\005State\022\025\n\021STATE" + - "_UNSPECIFIED\020\000\022\n\n\006ACTIVE\020\001\022\014\n\010INACTIVE\020\002" + - "\"Q\n\010Severity\022\030\n\024SEVERITY_UNSPECIFIED\020\000\022\014" + - "\n\010CRITICAL\020\001\022\010\n\004HIGH\020\002\022\n\n\006MEDIUM\020\003\022\007\n\003LO" + - "W\020\004\"\231\001\n\014FindingClass\022\035\n\031FINDING_CLASS_UN" + - "SPECIFIED\020\000\022\n\n\006THREAT\020\001\022\021\n\rVULNERABILITY" + - "\020\002\022\024\n\020MISCONFIGURATION\020\003\022\017\n\013OBSERVATION\020" + - "\004\022\r\n\tSCC_ERROR\020\005\022\025\n\021POSTURE_VIOLATION\020\006:" + - "\356\001\352A\352\001\n%securitycenter.googleapis.com/Fi" + - "nding\022@organizations/{organization}/sour" + - "ces/{source}/findings/{finding}\0224folders" + - "/{folder}/sources/{source}/findings/{fin" + - "ding}\0226projects/{project}/sources/{sourc" + - "e}/findings/{finding}*\010findings2\007finding" + - "\"\366\002\n3SimulateSecurityHealthAnalyticsCust" + - "omModuleResponse\022}\n\006result\030\001 \001(\0132m.googl" + - "e.cloud.securitycentermanagement.v1.Simu" + - "lateSecurityHealthAnalyticsCustomModuleR" + - "esponse.SimulatedResult\032\277\001\n\017SimulatedRes" + - "ult\022M\n\007finding\030\001 \001(\0132:.google.cloud.secu" + - "ritycentermanagement.v1.SimulatedFinding" + - "H\000\022.\n\014no_violation\030\002 \001(\0132\026.google.protob" + - "uf.EmptyH\000\022#\n\005error\030\003 \001(\0132\022.google.rpc.S" + - "tatusH\000B\010\n\006result\"\332\007\n)EffectiveEventThre" + - "atDetectionCustomModule\022\022\n\004name\030\001 \001(\tB\004\342" + - "A\001\005\022-\n\006config\030\002 \001(\0132\027.google.protobuf.St" + - "ructB\004\342A\001\003\022\203\001\n\020enablement_state\030\003 \001(\0162c." + - "google.cloud.securitycentermanagement.v1" + - ".EffectiveEventThreatDetectionCustomModu" + - "le.EnablementStateB\004\342A\001\003\022\022\n\004type\030\004 \001(\tB\004" + - "\342A\001\003\022\032\n\014display_name\030\005 \001(\tB\004\342A\001\003\022\031\n\013desc" + - "ription\030\006 \001(\tB\004\342A\001\003\"N\n\017EnablementState\022 " + - "\n\034ENABLEMENT_STATE_UNSPECIFIED\020\000\022\013\n\007ENAB" + - "LED\020\001\022\014\n\010DISABLED\020\002:\310\004\352A\304\004\nQsecuritycent" + - "ermanagement.googleapis.com/EffectiveEve" + - "ntThreatDetectionCustomModule\022\215\001organiza" + - "tions/{organization}/locations/{location" + - "}/effectiveEventThreatDetectionCustomMod" + - "ules/{effective_event_threat_detection_c" + - "ustom_module}\022\203\001projects/{project}/locat" + - "ions/{location}/effectiveEventThreatDete" + - "ctionCustomModules/{effective_event_thre" + - "at_detection_custom_module}\022\201\001folders/{f" + - "older}/locations/{location}/effectiveEve" + - "ntThreatDetectionCustomModules/{effectiv" + - "e_event_threat_detection_custom_module}*" + - "*effectiveEventThreatDetectionCustomModu" + - "les2)effectiveEventThreatDetectionCustom" + - "Module\"\326\001\n5ListEffectiveEventThreatDetec" + - "tionCustomModulesRequest\022j\n\006parent\030\001 \001(\t" + - "BZ\342A\001\002\372AS\022Qsecuritycentermanagement.goog" + - "leapis.com/EffectiveEventThreatDetection" + - "CustomModule\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\"\340\001\n6ListEffectiv" + - "eEventThreatDetectionCustomModulesRespon" + - "se\022\214\001\n/effective_event_threat_detection_" + - "custom_modules\030\001 \003(\0132S.google.cloud.secu" + - "ritycentermanagement.v1.EffectiveEventTh" + - "reatDetectionCustomModule\022\027\n\017next_page_t" + - "oken\030\002 \001(\t\"\237\001\n3GetEffectiveEventThreatDe" + - "tectionCustomModuleRequest\022h\n\004name\030\001 \001(\t" + - "BZ\342A\001\002\372AS\nQsecuritycentermanagement.goog" + - "leapis.com/EffectiveEventThreatDetection" + - "CustomModule\"\275\010\n EventThreatDetectionCus" + - "tomModule\022\022\n\004name\030\001 \001(\tB\004\342A\001\005\022-\n\006config\030" + - "\002 \001(\0132\027.google.protobuf.StructB\004\342A\001\001\022j\n\017" + - "ancestor_module\030\003 \001(\tBQ\342A\001\003\372AJ\nHsecurity" + - "centermanagement.googleapis.com/EventThr" + - "eatDetectionCustomModule\022z\n\020enablement_s" + - "tate\030\004 \001(\0162Z.google.cloud.securitycenter" + - "management.v1.EventThreatDetectionCustom" + - "Module.EnablementStateB\004\342A\001\001\022\022\n\004type\030\005 \001" + - "(\tB\004\342A\001\001\022\032\n\014display_name\030\006 \001(\tB\004\342A\001\001\022\031\n\013" + - "description\030\007 \001(\tB\004\342A\001\001\0225\n\013update_time\030\010" + - " \001(\0132\032.google.protobuf.TimestampB\004\342A\001\003\022\031" + - "\n\013last_editor\030\t \001(\tB\004\342A\001\003\"]\n\017EnablementS" + - "tate\022 \n\034ENABLEMENT_STATE_UNSPECIFIED\020\000\022\013" + - "\n\007ENABLED\020\001\022\014\n\010DISABLED\020\002\022\r\n\tINHERITED\020\003" + - ":\361\003\352A\355\003\nHsecuritycentermanagement.google" + - "apis.com/EventThreatDetectionCustomModul" + - "e\022zorganizations/{organization}/location" + - "s/{location}/eventThreatDetectionCustomM" + - "odules/{event_threat_detection_custom_mo" + - "dule}\022pprojects/{project}/locations/{loc" + - "ation}/eventThreatDetectionCustomModules" + - "/{event_threat_detection_custom_module}\022" + - "nfolders/{folder}/locations/{location}/e" + - "ventThreatDetectionCustomModules/{event_" + - "threat_detection_custom_module}*!eventTh" + - "reatDetectionCustomModules2 eventThreatD" + - "etectionCustomModule\"\304\001\n,ListEventThreat" + - "DetectionCustomModulesRequest\022a\n\006parent\030" + - "\001 \001(\tBQ\342A\001\002\372AJ\022Hsecuritycentermanagement" + - ".googleapis.com/EventThreatDetectionCust" + - "omModule\022\027\n\tpage_size\030\002 \001(\005B\004\342A\001\001\022\030\n\npag" + - "e_token\030\003 \001(\tB\004\342A\001\001\"\303\001\n-ListEventThreatD" + - "etectionCustomModulesResponse\022y\n%event_t" + - "hreat_detection_custom_modules\030\001 \003(\0132J.g" + - "oogle.cloud.securitycentermanagement.v1." + - "EventThreatDetectionCustomModule\022\027\n\017next" + - "_page_token\030\002 \001(\t\"\316\001\n6ListDescendantEven" + - "tThreatDetectionCustomModulesRequest\022a\n\006" + - "parent\030\001 \001(\tBQ\342A\001\002\372AJ\022Hsecuritycenterman" + - "agement.googleapis.com/EventThreatDetect" + - "ionCustomModule\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\"\315\001\n7ListDesce" + - "ndantEventThreatDetectionCustomModulesRe" + - "sponse\022y\n%event_threat_detection_custom_" + - "modules\030\001 \003(\0132J.google.cloud.securitycen" + - "termanagement.v1.EventThreatDetectionCus" + - "tomModule\022\027\n\017next_page_token\030\002 \001(\t\"\215\001\n*G" + - "etEventThreatDetectionCustomModuleReques" + - "t\022_\n\004name\030\001 \001(\tBQ\342A\001\002\372AJ\nHsecuritycenter" + - "management.googleapis.com/EventThreatDet" + - "ectionCustomModule\"\257\002\n-CreateEventThreat" + - "DetectionCustomModuleRequest\022a\n\006parent\030\001" + - " \001(\tBQ\342A\001\002\372AJ\022Hsecuritycentermanagement." + - "googleapis.com/EventThreatDetectionCusto" + - "mModule\022~\n$event_threat_detection_custom" + - "_module\030\003 \001(\0132J.google.cloud.securitycen" + - "termanagement.v1.EventThreatDetectionCus" + - "tomModuleB\004\342A\001\002\022\033\n\rvalidate_only\030\004 \001(\010B\004" + - "\342A\001\001\"\203\002\n-UpdateEventThreatDetectionCusto" + - "mModuleRequest\0225\n\013update_mask\030\001 \001(\0132\032.go" + - "ogle.protobuf.FieldMaskB\004\342A\001\002\022~\n$event_t" + - "hreat_detection_custom_module\030\002 \001(\0132J.go" + - "ogle.cloud.securitycentermanagement.v1.E" + - "ventThreatDetectionCustomModuleB\004\342A\001\002\022\033\n" + - "\rvalidate_only\030\003 \001(\010B\004\342A\001\001\"\255\001\n-DeleteEve" + - "ntThreatDetectionCustomModuleRequest\022_\n\004" + - "name\030\001 \001(\tBQ\342A\001\002\372AJ\nHsecuritycentermanag" + - "ement.googleapis.com/EventThreatDetectio" + - "nCustomModule\022\033\n\rvalidate_only\030\002 \001(\010B\004\342A" + - "\001\001\"\300\001\n/ValidateEventThreatDetectionCusto" + - "mModuleRequest\022a\n\006parent\030\001 \001(\tBQ\342A\001\002\372AJ\022" + - "Hsecuritycentermanagement.googleapis.com" + - "/EventThreatDetectionCustomModule\022\026\n\010raw" + - "_text\030\002 \001(\tB\004\342A\001\002\022\022\n\004type\030\003 \001(\tB\004\342A\001\002\"\276\004" + - "\n0ValidateEventThreatDetectionCustomModu" + - "leResponse\022\206\001\n\006errors\030\002 \003(\0132v.google.clo" + - "ud.securitycentermanagement.v1.ValidateE" + - "ventThreatDetectionCustomModuleResponse." + - "CustomModuleValidationError\032\310\002\n\033CustomMo" + - "duleValidationError\022\023\n\013description\030\001 \001(\t" + - "\022\022\n\nfield_path\030\002 \001(\t\022w\n\005start\030\003 \001(\0132c.go" + - "ogle.cloud.securitycentermanagement.v1.V" + - "alidateEventThreatDetectionCustomModuleR" + - "esponse.PositionH\000\210\001\001\022u\n\003end\030\004 \001(\0132c.goo" + - "gle.cloud.securitycentermanagement.v1.Va" + - "lidateEventThreatDetectionCustomModuleRe" + - "sponse.PositionH\001\210\001\001B\010\n\006_startB\006\n\004_end\0326" + - "\n\010Position\022\023\n\013line_number\030\001 \001(\005\022\025\n\rcolum" + - "n_number\030\002 \001(\0052\241K\n\030SecurityCenterManagem" + - "ent\022\220\004\n1ListEffectiveSecurityHealthAnaly" + - "ticsCustomModules\022b.google.cloud.securit" + - "ycentermanagement.v1.ListEffectiveSecuri" + - "tyHealthAnalyticsCustomModulesRequest\032c." + - "google.cloud.securitycentermanagement.v1" + - ".ListEffectiveSecurityHealthAnalyticsCus" + - "tomModulesResponse\"\221\002\332A\006parent\202\323\344\223\002\201\002\022Q/" + - "v1/{parent=projects/*/locations/*}/effec" + - "tiveSecurityHealthAnalyticsCustomModules" + - "ZR\022P/v1/{parent=folders/*/locations/*}/e" + - "ffectiveSecurityHealthAnalyticsCustomMod" + - "ulesZX\022V/v1/{parent=organizations/*/loca" + - "tions/*}/effectiveSecurityHealthAnalytic" + - "sCustomModules\022\375\003\n/GetEffectiveSecurityH" + - "ealthAnalyticsCustomModule\022`.google.clou" + - "d.securitycentermanagement.v1.GetEffecti" + - "veSecurityHealthAnalyticsCustomModuleReq" + - "uest\032V.google.cloud.securitycentermanage" + - "ment.v1.EffectiveSecurityHealthAnalytics" + - "CustomModule\"\217\002\332A\004name\202\323\344\223\002\201\002\022Q/v1/{name" + - "=projects/*/locations/*/effectiveSecurit" + - "yHealthAnalyticsCustomModules/*}ZR\022P/v1/" + - "{name=folders/*/locations/*/effectiveSec" + - "urityHealthAnalyticsCustomModules/*}ZX\022V" + - "/v1/{name=organizations/*/locations/*/ef" + - "fectiveSecurityHealthAnalyticsCustomModu" + - "les/*}\022\332\003\n(ListSecurityHealthAnalyticsCu" + - "stomModules\022Y.google.cloud.securitycente" + - "rmanagement.v1.ListSecurityHealthAnalyti" + - "csCustomModulesRequest\032Z.google.cloud.se" + - "curitycentermanagement.v1.ListSecurityHe" + - "althAnalyticsCustomModulesResponse\"\366\001\332A\006" + - "parent\202\323\344\223\002\346\001\022H/v1/{parent=projects/*/lo" + - "cations/*}/securityHealthAnalyticsCustom" + - "ModulesZI\022G/v1/{parent=folders/*/locatio" + - "ns/*}/securityHealthAnalyticsCustomModul" + - "esZO\022M/v1/{parent=organizations/*/locati" + - "ons/*}/securityHealthAnalyticsCustomModu" + - "les\022\245\004\n2ListDescendantSecurityHealthAnal" + - "yticsCustomModules\022c.google.cloud.securi" + - "tycentermanagement.v1.ListDescendantSecu" + - "rityHealthAnalyticsCustomModulesRequest\032" + - "d.google.cloud.securitycentermanagement." + - "v1.ListDescendantSecurityHealthAnalytics" + - "CustomModulesResponse\"\243\002\332A\006parent\202\323\344\223\002\223\002" + - "\022W/v1/{parent=projects/*/locations/*}/se" + - "curityHealthAnalyticsCustomModules:listD" + - "escendantZX\022V/v1/{parent=folders/*/locat" + - "ions/*}/securityHealthAnalyticsCustomMod" + - "ules:listDescendantZ^\022\\/v1/{parent=organ" + - "izations/*/locations/*}/securityHealthAn" + - "alyticsCustomModules:listDescendant\022\307\003\n&" + - "GetSecurityHealthAnalyticsCustomModule\022W" + - ".google.cloud.securitycentermanagement.v" + - "1.GetSecurityHealthAnalyticsCustomModule" + - "Request\032M.google.cloud.securitycenterman" + - "agement.v1.SecurityHealthAnalyticsCustom" + - "Module\"\364\001\332A\004name\202\323\344\223\002\346\001\022H/v1/{name=proje" + - "cts/*/locations/*/securityHealthAnalytic" + - "sCustomModules/*}ZI\022G/v1/{name=folders/*" + - "/locations/*/securityHealthAnalyticsCust" + - "omModules/*}ZO\022M/v1/{name=organizations/" + - "*/locations/*/securityHealthAnalyticsCus" + - "tomModules/*}\022\362\004\n)CreateSecurityHealthAn" + - "alyticsCustomModule\022Z.google.cloud.secur" + - "itycentermanagement.v1.CreateSecurityHea" + - "lthAnalyticsCustomModuleRequest\032M.google" + - ".cloud.securitycentermanagement.v1.Secur" + - "ityHealthAnalyticsCustomModule\"\231\003\332A.pare" + - "nt,security_health_analytics_custom_modu" + - "le\202\323\344\223\002\341\002\"H/v1/{parent=projects/*/locati" + - "ons/*}/securityHealthAnalyticsCustomModu" + - "les:\'security_health_analytics_custom_mo" + - "duleZr\"G/v1/{parent=folders/*/locations/" + - "*}/securityHealthAnalyticsCustomModules:" + - "\'security_health_analytics_custom_module" + - "Zx\"M/v1/{parent=organizations/*/location" + - "s/*}/securityHealthAnalyticsCustomModule", - "s:\'security_health_analytics_custom_modu" + - "le\022\361\005\n)UpdateSecurityHealthAnalyticsCust" + - "omModule\022Z.google.cloud.securitycenterma" + - "nagement.v1.UpdateSecurityHealthAnalytic" + - "sCustomModuleRequest\032M.google.cloud.secu" + - "ritycentermanagement.v1.SecurityHealthAn" + - "alyticsCustomModule\"\230\004\332A3security_health" + - "_analytics_custom_module,update_mask\202\323\344\223" + - "\002\333\0032p/v1/{security_health_analytics_cust" + - "om_module.name=projects/*/locations/*/se" + - "curityHealthAnalyticsCustomModules/*}:\'s" + - "ecurity_health_analytics_custom_moduleZ\232" + - "\0012o/v1/{security_health_analytics_custom" + - "_module.name=folders/*/locations/*/secur" + - "ityHealthAnalyticsCustomModules/*}:\'secu" + - "rity_health_analytics_custom_moduleZ\240\0012u" + - "/v1/{security_health_analytics_custom_mo" + - "dule.name=organizations/*/locations/*/se" + - "curityHealthAnalyticsCustomModules/*}:\'s" + - "ecurity_health_analytics_custom_module\022\226" + - "\003\n)DeleteSecurityHealthAnalyticsCustomMo" + - "dule\022Z.google.cloud.securitycentermanage" + - "ment.v1.DeleteSecurityHealthAnalyticsCus" + - "tomModuleRequest\032\026.google.protobuf.Empty" + - "\"\364\001\332A\004name\202\323\344\223\002\346\001*H/v1/{name=projects/*/" + - "locations/*/securityHealthAnalyticsCusto" + - "mModules/*}ZI*G/v1/{name=folders/*/locat" + - "ions/*/securityHealthAnalyticsCustomModu" + - "les/*}ZO*M/v1/{name=organizations/*/loca" + - "tions/*/securityHealthAnalyticsCustomMod" + - "ules/*}\022\236\004\n+SimulateSecurityHealthAnalyt" + - "icsCustomModule\022\\.google.cloud.securityc" + - "entermanagement.v1.SimulateSecurityHealt" + - "hAnalyticsCustomModuleRequest\032].google.c" + - "loud.securitycentermanagement.v1.Simulat" + - "eSecurityHealthAnalyticsCustomModuleResp" + - "onse\"\261\002\332A\035parent,custom_config,resource\202" + - "\323\344\223\002\212\002\"Q/v1/{parent=projects/*/locations" + - "/*}/securityHealthAnalyticsCustomModules" + - ":simulate:\001*ZU\"P/v1/{parent=folders/*/lo" + - "cations/*}/securityHealthAnalyticsCustom" + - "Modules:simulate:\001*Z[\"V/v1/{parent=organ" + - "izations/*/locations/*}/securityHealthAn" + - "alyticsCustomModules:simulate:\001*\022\376\003\n.Lis" + - "tEffectiveEventThreatDetectionCustomModu" + - "les\022_.google.cloud.securitycentermanagem" + - "ent.v1.ListEffectiveEventThreatDetection" + - "CustomModulesRequest\032`.google.cloud.secu" + - "ritycentermanagement.v1.ListEffectiveEve" + - "ntThreatDetectionCustomModulesResponse\"\210" + - "\002\332A\006parent\202\323\344\223\002\370\001\022N/v1/{parent=projects/" + - "*/locations/*}/effectiveEventThreatDetec" + - "tionCustomModulesZO\022M/v1/{parent=folders" + - "/*/locations/*}/effectiveEventThreatDete" + - "ctionCustomModulesZU\022S/v1/{parent=organi" + - "zations/*/locations/*}/effectiveEventThr" + - "eatDetectionCustomModules\022\353\003\n,GetEffecti" + - "veEventThreatDetectionCustomModule\022].goo" + - "gle.cloud.securitycentermanagement.v1.Ge" + - "tEffectiveEventThreatDetectionCustomModu" + - "leRequest\032S.google.cloud.securitycenterm" + - "anagement.v1.EffectiveEventThreatDetecti" + - "onCustomModule\"\206\002\332A\004name\202\323\344\223\002\370\001\022N/v1/{na" + - "me=projects/*/locations/*/effectiveEvent" + - "ThreatDetectionCustomModules/*}ZO\022M/v1/{" + - "name=folders/*/locations/*/effectiveEven" + - "tThreatDetectionCustomModules/*}ZU\022S/v1/" + - "{name=organizations/*/locations/*/effect" + - "iveEventThreatDetectionCustomModules/*}\022" + - "\310\003\n%ListEventThreatDetectionCustomModule" + - "s\022V.google.cloud.securitycentermanagemen" + - "t.v1.ListEventThreatDetectionCustomModul" + - "esRequest\032W.google.cloud.securitycenterm" + - "anagement.v1.ListEventThreatDetectionCus" + - "tomModulesResponse\"\355\001\332A\006parent\202\323\344\223\002\335\001\022E/" + - "v1/{parent=projects/*/locations/*}/event" + - "ThreatDetectionCustomModulesZF\022D/v1/{par" + - "ent=folders/*/locations/*}/eventThreatDe" + - "tectionCustomModulesZL\022J/v1/{parent=orga" + - "nizations/*/locations/*}/eventThreatDete" + - "ctionCustomModules\022\223\004\n/ListDescendantEve" + - "ntThreatDetectionCustomModules\022`.google." + - "cloud.securitycentermanagement.v1.ListDe" + - "scendantEventThreatDetectionCustomModule" + - "sRequest\032a.google.cloud.securitycenterma" + - "nagement.v1.ListDescendantEventThreatDet" + - "ectionCustomModulesResponse\"\232\002\332A\006parent\202" + - "\323\344\223\002\212\002\022T/v1/{parent=projects/*/locations" + - "/*}/eventThreatDetectionCustomModules:li" + - "stDescendantZU\022S/v1/{parent=folders/*/lo" + - "cations/*}/eventThreatDetectionCustomMod" + - "ules:listDescendantZ[\022Y/v1/{parent=organ" + - "izations/*/locations/*}/eventThreatDetec" + - "tionCustomModules:listDescendant\022\265\003\n#Get" + - "EventThreatDetectionCustomModule\022T.googl" + - "e.cloud.securitycentermanagement.v1.GetE" + - "ventThreatDetectionCustomModuleRequest\032J" + - ".google.cloud.securitycentermanagement.v" + - "1.EventThreatDetectionCustomModule\"\353\001\332A\004" + - "name\202\323\344\223\002\335\001\022E/v1/{name=projects/*/locati" + - "ons/*/eventThreatDetectionCustomModules/" + - "*}ZF\022D/v1/{name=folders/*/locations/*/ev" + - "entThreatDetectionCustomModules/*}ZL\022J/v" + - "1/{name=organizations/*/locations/*/even" + - "tThreatDetectionCustomModules/*}\022\324\004\n&Cre" + - "ateEventThreatDetectionCustomModule\022W.go" + - "ogle.cloud.securitycentermanagement.v1.C" + - "reateEventThreatDetectionCustomModuleReq" + - "uest\032J.google.cloud.securitycentermanage" + - "ment.v1.EventThreatDetectionCustomModule" + - "\"\204\003\332A+parent,event_threat_detection_cust" + - "om_module\202\323\344\223\002\317\002\"E/v1/{parent=projects/*" + - "/locations/*}/eventThreatDetectionCustom" + - "Modules:$event_threat_detection_custom_m" + - "oduleZl\"D/v1/{parent=folders/*/locations" + - "/*}/eventThreatDetectionCustomModules:$e" + - "vent_threat_detection_custom_moduleZr\"J/" + - "v1/{parent=organizations/*/locations/*}/" + - "eventThreatDetectionCustomModules:$event" + - "_threat_detection_custom_module\022\312\005\n&Upda" + - "teEventThreatDetectionCustomModule\022W.goo" + - "gle.cloud.securitycentermanagement.v1.Up" + - "dateEventThreatDetectionCustomModuleRequ" + - "est\032J.google.cloud.securitycentermanagem" + - "ent.v1.EventThreatDetectionCustomModule\"" + - "\372\003\332A0event_threat_detection_custom_modul" + - "e,update_mask\202\323\344\223\002\300\0032j/v1/{event_threat_" + - "detection_custom_module.name=projects/*/" + - "locations/*/eventThreatDetectionCustomMo" + - "dules/*}:$event_threat_detection_custom_" + - "moduleZ\221\0012i/v1/{event_threat_detection_c" + - "ustom_module.name=folders/*/locations/*/" + - "eventThreatDetectionCustomModules/*}:$ev" + - "ent_threat_detection_custom_moduleZ\227\0012o/" + - "v1/{event_threat_detection_custom_module" + - ".name=organizations/*/locations/*/eventT" + - "hreatDetectionCustomModules/*}:$event_th" + - "reat_detection_custom_module\022\207\003\n&DeleteE" + - "ventThreatDetectionCustomModule\022W.google" + - ".cloud.securitycentermanagement.v1.Delet" + - "eEventThreatDetectionCustomModuleRequest" + - "\032\026.google.protobuf.Empty\"\353\001\332A\004name\202\323\344\223\002\335" + - "\001*E/v1/{name=projects/*/locations/*/even" + - "tThreatDetectionCustomModules/*}ZF*D/v1/" + - "{name=folders/*/locations/*/eventThreatD" + - "etectionCustomModules/*}ZL*J/v1/{name=or" + - "ganizations/*/locations/*/eventThreatDet" + - "ectionCustomModules/*}\022\354\003\n(ValidateEvent" + - "ThreatDetectionCustomModule\022Y.google.clo" + - "ud.securitycentermanagement.v1.ValidateE" + - "ventThreatDetectionCustomModuleRequest\032Z" + - ".google.cloud.securitycentermanagement.v" + - "1.ValidateEventThreatDetectionCustomModu" + - "leResponse\"\210\002\202\323\344\223\002\201\002\"N/v1/{parent=projec" + - "ts/*/locations/*}/eventThreatDetectionCu" + - "stomModules:validate:\001*ZR\"M/v1/{parent=f" + - "olders/*/locations/*}/eventThreatDetecti" + - "onCustomModules:validate:\001*ZX\"S/v1/{pare" + - "nt=organizations/*/locations/*}/eventThr" + - "eatDetectionCustomModules:validate:\001*\032[\312" + - "A\'securitycentermanagement.googleapis.co" + - "m\322A.https://www.googleapis.com/auth/clou" + - "d-platformB\223\004\n,com.google.cloud.security" + - "centermanagement.v1B\035SecurityCenterManag" + - "ementProtoP\001Zhcloud.google.com/go/securi" + - "tycentermanagement/apiv1/securitycenterm" + - "anagementpb;securitycentermanagementpb\252\002" + - "(Google.Cloud.SecurityCenterManagement.V" + - "1\312\002(Google\\Cloud\\SecurityCenterManagemen" + - "t\\V1\352\002+Google::Cloud::SecurityCenterMana" + - "gement::V1\352Aq\n - * Result for test case in the corresponding request. - *
- * - * .google.cloud.securitycentermanagement.v1.SimulateSecurityHealthAnalyticsCustomModuleResponse.SimulatedResult result = 1; - * @return Whether the result field is set. - */ - boolean hasResult(); - /** - *
-   * Result for test case in the corresponding request.
-   * 
- * - * .google.cloud.securitycentermanagement.v1.SimulateSecurityHealthAnalyticsCustomModuleResponse.SimulatedResult result = 1; - * @return The result. - */ - com.google.cloud.securitycentermanagement.v1.SimulateSecurityHealthAnalyticsCustomModuleResponse.SimulatedResult getResult(); - /** - *
-   * Result for test case in the corresponding request.
-   * 
- * - * .google.cloud.securitycentermanagement.v1.SimulateSecurityHealthAnalyticsCustomModuleResponse.SimulatedResult result = 1; - */ - com.google.cloud.securitycentermanagement.v1.SimulateSecurityHealthAnalyticsCustomModuleResponse.SimulatedResultOrBuilder getResultOrBuilder(); -} diff --git a/owl-bot-staging/java-securitycentermanagement/v1/proto-google-cloud-securitycentermanagement-v1/src/main/java/com/google/cloud/securitycentermanagement/v1/ValidateEventThreatDetectionCustomModuleResponse.java b/owl-bot-staging/java-securitycentermanagement/v1/proto-google-cloud-securitycentermanagement-v1/src/main/java/com/google/cloud/securitycentermanagement/v1/ValidateEventThreatDetectionCustomModuleResponse.java deleted file mode 100644 index 8cc46d23e3e1..000000000000 --- a/owl-bot-staging/java-securitycentermanagement/v1/proto-google-cloud-securitycentermanagement-v1/src/main/java/com/google/cloud/securitycentermanagement/v1/ValidateEventThreatDetectionCustomModuleResponse.java +++ /dev/null @@ -1,2853 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/securitycentermanagement/v1/security_center_management.proto - -package com.google.cloud.securitycentermanagement.v1; - -/** - *
- * Response to validating an Event Threat Detection custom module.
- * 
- * - * Protobuf type {@code google.cloud.securitycentermanagement.v1.ValidateEventThreatDetectionCustomModuleResponse} - */ -public final class ValidateEventThreatDetectionCustomModuleResponse extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:google.cloud.securitycentermanagement.v1.ValidateEventThreatDetectionCustomModuleResponse) - ValidateEventThreatDetectionCustomModuleResponseOrBuilder { -private static final long serialVersionUID = 0L; - // Use ValidateEventThreatDetectionCustomModuleResponse.newBuilder() to construct. - private ValidateEventThreatDetectionCustomModuleResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private ValidateEventThreatDetectionCustomModuleResponse() { - errors_ = java.util.Collections.emptyList(); - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new ValidateEventThreatDetectionCustomModuleResponse(); - } - - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.securitycentermanagement.v1.SecurityCenterManagementProto.internal_static_google_cloud_securitycentermanagement_v1_ValidateEventThreatDetectionCustomModuleResponse_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.securitycentermanagement.v1.SecurityCenterManagementProto.internal_static_google_cloud_securitycentermanagement_v1_ValidateEventThreatDetectionCustomModuleResponse_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.securitycentermanagement.v1.ValidateEventThreatDetectionCustomModuleResponse.class, com.google.cloud.securitycentermanagement.v1.ValidateEventThreatDetectionCustomModuleResponse.Builder.class); - } - - public interface CustomModuleValidationErrorOrBuilder extends - // @@protoc_insertion_point(interface_extends:google.cloud.securitycentermanagement.v1.ValidateEventThreatDetectionCustomModuleResponse.CustomModuleValidationError) - com.google.protobuf.MessageOrBuilder { - - /** - *
-     * A description of the error, suitable for human consumption. Required.
-     * 
- * - * string description = 1; - * @return The description. - */ - java.lang.String getDescription(); - /** - *
-     * A description of the error, suitable for human consumption. Required.
-     * 
- * - * string description = 1; - * @return The bytes for description. - */ - com.google.protobuf.ByteString - getDescriptionBytes(); - - /** - *
-     * The path, in RFC 8901 JSON Pointer format, to the field that failed
-     * validation. This may be left empty if no specific field is affected.
-     * 
- * - * string field_path = 2; - * @return The fieldPath. - */ - java.lang.String getFieldPath(); - /** - *
-     * The path, in RFC 8901 JSON Pointer format, to the field that failed
-     * validation. This may be left empty if no specific field is affected.
-     * 
- * - * string field_path = 2; - * @return The bytes for fieldPath. - */ - com.google.protobuf.ByteString - getFieldPathBytes(); - - /** - *
-     * The initial position of the error in the uploaded text version of the
-     * module. This field may be omitted if no specific position applies, or if
-     * one could not be computed.
-     * 
- * - * optional .google.cloud.securitycentermanagement.v1.ValidateEventThreatDetectionCustomModuleResponse.Position start = 3; - * @return Whether the start field is set. - */ - boolean hasStart(); - /** - *
-     * The initial position of the error in the uploaded text version of the
-     * module. This field may be omitted if no specific position applies, or if
-     * one could not be computed.
-     * 
- * - * optional .google.cloud.securitycentermanagement.v1.ValidateEventThreatDetectionCustomModuleResponse.Position start = 3; - * @return The start. - */ - com.google.cloud.securitycentermanagement.v1.ValidateEventThreatDetectionCustomModuleResponse.Position getStart(); - /** - *
-     * The initial position of the error in the uploaded text version of the
-     * module. This field may be omitted if no specific position applies, or if
-     * one could not be computed.
-     * 
- * - * optional .google.cloud.securitycentermanagement.v1.ValidateEventThreatDetectionCustomModuleResponse.Position start = 3; - */ - com.google.cloud.securitycentermanagement.v1.ValidateEventThreatDetectionCustomModuleResponse.PositionOrBuilder getStartOrBuilder(); - - /** - *
-     * The end position of the error in the uploaded text version of the
-     * module. This field may be omitted if no specific position applies, or if
-     * one could not be computed..
-     * 
- * - * optional .google.cloud.securitycentermanagement.v1.ValidateEventThreatDetectionCustomModuleResponse.Position end = 4; - * @return Whether the end field is set. - */ - boolean hasEnd(); - /** - *
-     * The end position of the error in the uploaded text version of the
-     * module. This field may be omitted if no specific position applies, or if
-     * one could not be computed..
-     * 
- * - * optional .google.cloud.securitycentermanagement.v1.ValidateEventThreatDetectionCustomModuleResponse.Position end = 4; - * @return The end. - */ - com.google.cloud.securitycentermanagement.v1.ValidateEventThreatDetectionCustomModuleResponse.Position getEnd(); - /** - *
-     * The end position of the error in the uploaded text version of the
-     * module. This field may be omitted if no specific position applies, or if
-     * one could not be computed..
-     * 
- * - * optional .google.cloud.securitycentermanagement.v1.ValidateEventThreatDetectionCustomModuleResponse.Position end = 4; - */ - com.google.cloud.securitycentermanagement.v1.ValidateEventThreatDetectionCustomModuleResponse.PositionOrBuilder getEndOrBuilder(); - } - /** - *
-   * An error encountered while validating the uploaded configuration of an
-   * Event Threat Detection Custom Module.
-   * 
- * - * Protobuf type {@code google.cloud.securitycentermanagement.v1.ValidateEventThreatDetectionCustomModuleResponse.CustomModuleValidationError} - */ - public static final class CustomModuleValidationError extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:google.cloud.securitycentermanagement.v1.ValidateEventThreatDetectionCustomModuleResponse.CustomModuleValidationError) - CustomModuleValidationErrorOrBuilder { - private static final long serialVersionUID = 0L; - // Use CustomModuleValidationError.newBuilder() to construct. - private CustomModuleValidationError(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private CustomModuleValidationError() { - description_ = ""; - fieldPath_ = ""; - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new CustomModuleValidationError(); - } - - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.securitycentermanagement.v1.SecurityCenterManagementProto.internal_static_google_cloud_securitycentermanagement_v1_ValidateEventThreatDetectionCustomModuleResponse_CustomModuleValidationError_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.securitycentermanagement.v1.SecurityCenterManagementProto.internal_static_google_cloud_securitycentermanagement_v1_ValidateEventThreatDetectionCustomModuleResponse_CustomModuleValidationError_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.securitycentermanagement.v1.ValidateEventThreatDetectionCustomModuleResponse.CustomModuleValidationError.class, com.google.cloud.securitycentermanagement.v1.ValidateEventThreatDetectionCustomModuleResponse.CustomModuleValidationError.Builder.class); - } - - private int bitField0_; - public static final int DESCRIPTION_FIELD_NUMBER = 1; - @SuppressWarnings("serial") - private volatile java.lang.Object description_ = ""; - /** - *
-     * A description of the error, suitable for human consumption. Required.
-     * 
- * - * string description = 1; - * @return The description. - */ - @java.lang.Override - public java.lang.String getDescription() { - java.lang.Object ref = description_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - description_ = s; - return s; - } - } - /** - *
-     * A description of the error, suitable for human consumption. Required.
-     * 
- * - * string description = 1; - * @return The bytes for description. - */ - @java.lang.Override - 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); - description_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int FIELD_PATH_FIELD_NUMBER = 2; - @SuppressWarnings("serial") - private volatile java.lang.Object fieldPath_ = ""; - /** - *
-     * The path, in RFC 8901 JSON Pointer format, to the field that failed
-     * validation. This may be left empty if no specific field is affected.
-     * 
- * - * string field_path = 2; - * @return The fieldPath. - */ - @java.lang.Override - public java.lang.String getFieldPath() { - java.lang.Object ref = fieldPath_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - fieldPath_ = s; - return s; - } - } - /** - *
-     * The path, in RFC 8901 JSON Pointer format, to the field that failed
-     * validation. This may be left empty if no specific field is affected.
-     * 
- * - * string field_path = 2; - * @return The bytes for fieldPath. - */ - @java.lang.Override - public com.google.protobuf.ByteString - getFieldPathBytes() { - java.lang.Object ref = fieldPath_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - fieldPath_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int START_FIELD_NUMBER = 3; - private com.google.cloud.securitycentermanagement.v1.ValidateEventThreatDetectionCustomModuleResponse.Position start_; - /** - *
-     * The initial position of the error in the uploaded text version of the
-     * module. This field may be omitted if no specific position applies, or if
-     * one could not be computed.
-     * 
- * - * optional .google.cloud.securitycentermanagement.v1.ValidateEventThreatDetectionCustomModuleResponse.Position start = 3; - * @return Whether the start field is set. - */ - @java.lang.Override - public boolean hasStart() { - return ((bitField0_ & 0x00000001) != 0); - } - /** - *
-     * The initial position of the error in the uploaded text version of the
-     * module. This field may be omitted if no specific position applies, or if
-     * one could not be computed.
-     * 
- * - * optional .google.cloud.securitycentermanagement.v1.ValidateEventThreatDetectionCustomModuleResponse.Position start = 3; - * @return The start. - */ - @java.lang.Override - public com.google.cloud.securitycentermanagement.v1.ValidateEventThreatDetectionCustomModuleResponse.Position getStart() { - return start_ == null ? com.google.cloud.securitycentermanagement.v1.ValidateEventThreatDetectionCustomModuleResponse.Position.getDefaultInstance() : start_; - } - /** - *
-     * The initial position of the error in the uploaded text version of the
-     * module. This field may be omitted if no specific position applies, or if
-     * one could not be computed.
-     * 
- * - * optional .google.cloud.securitycentermanagement.v1.ValidateEventThreatDetectionCustomModuleResponse.Position start = 3; - */ - @java.lang.Override - public com.google.cloud.securitycentermanagement.v1.ValidateEventThreatDetectionCustomModuleResponse.PositionOrBuilder getStartOrBuilder() { - return start_ == null ? com.google.cloud.securitycentermanagement.v1.ValidateEventThreatDetectionCustomModuleResponse.Position.getDefaultInstance() : start_; - } - - public static final int END_FIELD_NUMBER = 4; - private com.google.cloud.securitycentermanagement.v1.ValidateEventThreatDetectionCustomModuleResponse.Position end_; - /** - *
-     * The end position of the error in the uploaded text version of the
-     * module. This field may be omitted if no specific position applies, or if
-     * one could not be computed..
-     * 
- * - * optional .google.cloud.securitycentermanagement.v1.ValidateEventThreatDetectionCustomModuleResponse.Position end = 4; - * @return Whether the end field is set. - */ - @java.lang.Override - public boolean hasEnd() { - return ((bitField0_ & 0x00000002) != 0); - } - /** - *
-     * The end position of the error in the uploaded text version of the
-     * module. This field may be omitted if no specific position applies, or if
-     * one could not be computed..
-     * 
- * - * optional .google.cloud.securitycentermanagement.v1.ValidateEventThreatDetectionCustomModuleResponse.Position end = 4; - * @return The end. - */ - @java.lang.Override - public com.google.cloud.securitycentermanagement.v1.ValidateEventThreatDetectionCustomModuleResponse.Position getEnd() { - return end_ == null ? com.google.cloud.securitycentermanagement.v1.ValidateEventThreatDetectionCustomModuleResponse.Position.getDefaultInstance() : end_; - } - /** - *
-     * The end position of the error in the uploaded text version of the
-     * module. This field may be omitted if no specific position applies, or if
-     * one could not be computed..
-     * 
- * - * optional .google.cloud.securitycentermanagement.v1.ValidateEventThreatDetectionCustomModuleResponse.Position end = 4; - */ - @java.lang.Override - public com.google.cloud.securitycentermanagement.v1.ValidateEventThreatDetectionCustomModuleResponse.PositionOrBuilder getEndOrBuilder() { - return end_ == null ? com.google.cloud.securitycentermanagement.v1.ValidateEventThreatDetectionCustomModuleResponse.Position.getDefaultInstance() : end_; - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(description_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, description_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(fieldPath_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 2, fieldPath_); - } - if (((bitField0_ & 0x00000001) != 0)) { - output.writeMessage(3, getStart()); - } - if (((bitField0_ & 0x00000002) != 0)) { - output.writeMessage(4, getEnd()); - } - getUnknownFields().writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(description_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, description_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(fieldPath_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, fieldPath_); - } - if (((bitField0_ & 0x00000001) != 0)) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(3, getStart()); - } - if (((bitField0_ & 0x00000002) != 0)) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(4, getEnd()); - } - size += getUnknownFields().getSerializedSize(); - memoizedSize = size; - return size; - } - - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof com.google.cloud.securitycentermanagement.v1.ValidateEventThreatDetectionCustomModuleResponse.CustomModuleValidationError)) { - return super.equals(obj); - } - com.google.cloud.securitycentermanagement.v1.ValidateEventThreatDetectionCustomModuleResponse.CustomModuleValidationError other = (com.google.cloud.securitycentermanagement.v1.ValidateEventThreatDetectionCustomModuleResponse.CustomModuleValidationError) obj; - - if (!getDescription() - .equals(other.getDescription())) return false; - if (!getFieldPath() - .equals(other.getFieldPath())) return false; - if (hasStart() != other.hasStart()) return false; - if (hasStart()) { - if (!getStart() - .equals(other.getStart())) return false; - } - if (hasEnd() != other.hasEnd()) return false; - if (hasEnd()) { - if (!getEnd() - .equals(other.getEnd())) return false; - } - if (!getUnknownFields().equals(other.getUnknownFields())) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + DESCRIPTION_FIELD_NUMBER; - hash = (53 * hash) + getDescription().hashCode(); - hash = (37 * hash) + FIELD_PATH_FIELD_NUMBER; - hash = (53 * hash) + getFieldPath().hashCode(); - if (hasStart()) { - hash = (37 * hash) + START_FIELD_NUMBER; - hash = (53 * hash) + getStart().hashCode(); - } - if (hasEnd()) { - hash = (37 * hash) + END_FIELD_NUMBER; - hash = (53 * hash) + getEnd().hashCode(); - } - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static com.google.cloud.securitycentermanagement.v1.ValidateEventThreatDetectionCustomModuleResponse.CustomModuleValidationError parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static com.google.cloud.securitycentermanagement.v1.ValidateEventThreatDetectionCustomModuleResponse.CustomModuleValidationError 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.securitycentermanagement.v1.ValidateEventThreatDetectionCustomModuleResponse.CustomModuleValidationError parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static com.google.cloud.securitycentermanagement.v1.ValidateEventThreatDetectionCustomModuleResponse.CustomModuleValidationError parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static com.google.cloud.securitycentermanagement.v1.ValidateEventThreatDetectionCustomModuleResponse.CustomModuleValidationError parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static com.google.cloud.securitycentermanagement.v1.ValidateEventThreatDetectionCustomModuleResponse.CustomModuleValidationError parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static com.google.cloud.securitycentermanagement.v1.ValidateEventThreatDetectionCustomModuleResponse.CustomModuleValidationError parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static com.google.cloud.securitycentermanagement.v1.ValidateEventThreatDetectionCustomModuleResponse.CustomModuleValidationError 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.securitycentermanagement.v1.ValidateEventThreatDetectionCustomModuleResponse.CustomModuleValidationError parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - - public static com.google.cloud.securitycentermanagement.v1.ValidateEventThreatDetectionCustomModuleResponse.CustomModuleValidationError parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); - } - public static com.google.cloud.securitycentermanagement.v1.ValidateEventThreatDetectionCustomModuleResponse.CustomModuleValidationError parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static com.google.cloud.securitycentermanagement.v1.ValidateEventThreatDetectionCustomModuleResponse.CustomModuleValidationError 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.securitycentermanagement.v1.ValidateEventThreatDetectionCustomModuleResponse.CustomModuleValidationError prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - *
-     * An error encountered while validating the uploaded configuration of an
-     * Event Threat Detection Custom Module.
-     * 
- * - * Protobuf type {@code google.cloud.securitycentermanagement.v1.ValidateEventThreatDetectionCustomModuleResponse.CustomModuleValidationError} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:google.cloud.securitycentermanagement.v1.ValidateEventThreatDetectionCustomModuleResponse.CustomModuleValidationError) - com.google.cloud.securitycentermanagement.v1.ValidateEventThreatDetectionCustomModuleResponse.CustomModuleValidationErrorOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.securitycentermanagement.v1.SecurityCenterManagementProto.internal_static_google_cloud_securitycentermanagement_v1_ValidateEventThreatDetectionCustomModuleResponse_CustomModuleValidationError_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.securitycentermanagement.v1.SecurityCenterManagementProto.internal_static_google_cloud_securitycentermanagement_v1_ValidateEventThreatDetectionCustomModuleResponse_CustomModuleValidationError_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.securitycentermanagement.v1.ValidateEventThreatDetectionCustomModuleResponse.CustomModuleValidationError.class, com.google.cloud.securitycentermanagement.v1.ValidateEventThreatDetectionCustomModuleResponse.CustomModuleValidationError.Builder.class); - } - - // Construct using com.google.cloud.securitycentermanagement.v1.ValidateEventThreatDetectionCustomModuleResponse.CustomModuleValidationError.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - getStartFieldBuilder(); - getEndFieldBuilder(); - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - description_ = ""; - fieldPath_ = ""; - start_ = null; - if (startBuilder_ != null) { - startBuilder_.dispose(); - startBuilder_ = null; - } - end_ = null; - if (endBuilder_ != null) { - endBuilder_.dispose(); - endBuilder_ = null; - } - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.securitycentermanagement.v1.SecurityCenterManagementProto.internal_static_google_cloud_securitycentermanagement_v1_ValidateEventThreatDetectionCustomModuleResponse_CustomModuleValidationError_descriptor; - } - - @java.lang.Override - public com.google.cloud.securitycentermanagement.v1.ValidateEventThreatDetectionCustomModuleResponse.CustomModuleValidationError getDefaultInstanceForType() { - return com.google.cloud.securitycentermanagement.v1.ValidateEventThreatDetectionCustomModuleResponse.CustomModuleValidationError.getDefaultInstance(); - } - - @java.lang.Override - public com.google.cloud.securitycentermanagement.v1.ValidateEventThreatDetectionCustomModuleResponse.CustomModuleValidationError build() { - com.google.cloud.securitycentermanagement.v1.ValidateEventThreatDetectionCustomModuleResponse.CustomModuleValidationError result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.cloud.securitycentermanagement.v1.ValidateEventThreatDetectionCustomModuleResponse.CustomModuleValidationError buildPartial() { - com.google.cloud.securitycentermanagement.v1.ValidateEventThreatDetectionCustomModuleResponse.CustomModuleValidationError result = new com.google.cloud.securitycentermanagement.v1.ValidateEventThreatDetectionCustomModuleResponse.CustomModuleValidationError(this); - if (bitField0_ != 0) { buildPartial0(result); } - onBuilt(); - return result; - } - - private void buildPartial0(com.google.cloud.securitycentermanagement.v1.ValidateEventThreatDetectionCustomModuleResponse.CustomModuleValidationError result) { - int from_bitField0_ = bitField0_; - if (((from_bitField0_ & 0x00000001) != 0)) { - result.description_ = description_; - } - if (((from_bitField0_ & 0x00000002) != 0)) { - result.fieldPath_ = fieldPath_; - } - int to_bitField0_ = 0; - if (((from_bitField0_ & 0x00000004) != 0)) { - result.start_ = startBuilder_ == null - ? start_ - : startBuilder_.build(); - to_bitField0_ |= 0x00000001; - } - if (((from_bitField0_ & 0x00000008) != 0)) { - result.end_ = endBuilder_ == null - ? end_ - : endBuilder_.build(); - to_bitField0_ |= 0x00000002; - } - result.bitField0_ |= to_bitField0_; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.cloud.securitycentermanagement.v1.ValidateEventThreatDetectionCustomModuleResponse.CustomModuleValidationError) { - return mergeFrom((com.google.cloud.securitycentermanagement.v1.ValidateEventThreatDetectionCustomModuleResponse.CustomModuleValidationError)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.google.cloud.securitycentermanagement.v1.ValidateEventThreatDetectionCustomModuleResponse.CustomModuleValidationError other) { - if (other == com.google.cloud.securitycentermanagement.v1.ValidateEventThreatDetectionCustomModuleResponse.CustomModuleValidationError.getDefaultInstance()) return this; - if (!other.getDescription().isEmpty()) { - description_ = other.description_; - bitField0_ |= 0x00000001; - onChanged(); - } - if (!other.getFieldPath().isEmpty()) { - fieldPath_ = other.fieldPath_; - bitField0_ |= 0x00000002; - onChanged(); - } - if (other.hasStart()) { - mergeStart(other.getStart()); - } - if (other.hasEnd()) { - mergeEnd(other.getEnd()); - } - this.mergeUnknownFields(other.getUnknownFields()); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: { - description_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 18: { - fieldPath_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000002; - break; - } // case 18 - case 26: { - input.readMessage( - getStartFieldBuilder().getBuilder(), - extensionRegistry); - bitField0_ |= 0x00000004; - break; - } // case 26 - case 34: { - input.readMessage( - getEndFieldBuilder().getBuilder(), - extensionRegistry); - 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) { - throw e.unwrapIOException(); - } finally { - onChanged(); - } // finally - return this; - } - private int bitField0_; - - private java.lang.Object description_ = ""; - /** - *
-       * A description of the error, suitable for human consumption. Required.
-       * 
- * - * string description = 1; - * @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; - java.lang.String s = bs.toStringUtf8(); - description_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - *
-       * A description of the error, suitable for human consumption. Required.
-       * 
- * - * string description = 1; - * @return The bytes for description. - */ - 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); - description_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - *
-       * A description of the error, suitable for human consumption. Required.
-       * 
- * - * string description = 1; - * @param value The description to set. - * @return This builder for chaining. - */ - public Builder setDescription( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } - description_ = value; - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - *
-       * A description of the error, suitable for human consumption. Required.
-       * 
- * - * string description = 1; - * @return This builder for chaining. - */ - public Builder clearDescription() { - description_ = getDefaultInstance().getDescription(); - bitField0_ = (bitField0_ & ~0x00000001); - onChanged(); - return this; - } - /** - *
-       * A description of the error, suitable for human consumption. Required.
-       * 
- * - * string description = 1; - * @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(); } - checkByteStringIsUtf8(value); - description_ = value; - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - - private java.lang.Object fieldPath_ = ""; - /** - *
-       * The path, in RFC 8901 JSON Pointer format, to the field that failed
-       * validation. This may be left empty if no specific field is affected.
-       * 
- * - * string field_path = 2; - * @return The fieldPath. - */ - public java.lang.String getFieldPath() { - java.lang.Object ref = fieldPath_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - fieldPath_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - *
-       * The path, in RFC 8901 JSON Pointer format, to the field that failed
-       * validation. This may be left empty if no specific field is affected.
-       * 
- * - * string field_path = 2; - * @return The bytes for fieldPath. - */ - public com.google.protobuf.ByteString - getFieldPathBytes() { - java.lang.Object ref = fieldPath_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - fieldPath_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - *
-       * The path, in RFC 8901 JSON Pointer format, to the field that failed
-       * validation. This may be left empty if no specific field is affected.
-       * 
- * - * string field_path = 2; - * @param value The fieldPath to set. - * @return This builder for chaining. - */ - public Builder setFieldPath( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } - fieldPath_ = value; - bitField0_ |= 0x00000002; - onChanged(); - return this; - } - /** - *
-       * The path, in RFC 8901 JSON Pointer format, to the field that failed
-       * validation. This may be left empty if no specific field is affected.
-       * 
- * - * string field_path = 2; - * @return This builder for chaining. - */ - public Builder clearFieldPath() { - fieldPath_ = getDefaultInstance().getFieldPath(); - bitField0_ = (bitField0_ & ~0x00000002); - onChanged(); - return this; - } - /** - *
-       * The path, in RFC 8901 JSON Pointer format, to the field that failed
-       * validation. This may be left empty if no specific field is affected.
-       * 
- * - * string field_path = 2; - * @param value The bytes for fieldPath to set. - * @return This builder for chaining. - */ - public Builder setFieldPathBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } - checkByteStringIsUtf8(value); - fieldPath_ = value; - bitField0_ |= 0x00000002; - onChanged(); - return this; - } - - private com.google.cloud.securitycentermanagement.v1.ValidateEventThreatDetectionCustomModuleResponse.Position start_; - private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.securitycentermanagement.v1.ValidateEventThreatDetectionCustomModuleResponse.Position, com.google.cloud.securitycentermanagement.v1.ValidateEventThreatDetectionCustomModuleResponse.Position.Builder, com.google.cloud.securitycentermanagement.v1.ValidateEventThreatDetectionCustomModuleResponse.PositionOrBuilder> startBuilder_; - /** - *
-       * The initial position of the error in the uploaded text version of the
-       * module. This field may be omitted if no specific position applies, or if
-       * one could not be computed.
-       * 
- * - * optional .google.cloud.securitycentermanagement.v1.ValidateEventThreatDetectionCustomModuleResponse.Position start = 3; - * @return Whether the start field is set. - */ - public boolean hasStart() { - return ((bitField0_ & 0x00000004) != 0); - } - /** - *
-       * The initial position of the error in the uploaded text version of the
-       * module. This field may be omitted if no specific position applies, or if
-       * one could not be computed.
-       * 
- * - * optional .google.cloud.securitycentermanagement.v1.ValidateEventThreatDetectionCustomModuleResponse.Position start = 3; - * @return The start. - */ - public com.google.cloud.securitycentermanagement.v1.ValidateEventThreatDetectionCustomModuleResponse.Position getStart() { - if (startBuilder_ == null) { - return start_ == null ? com.google.cloud.securitycentermanagement.v1.ValidateEventThreatDetectionCustomModuleResponse.Position.getDefaultInstance() : start_; - } else { - return startBuilder_.getMessage(); - } - } - /** - *
-       * The initial position of the error in the uploaded text version of the
-       * module. This field may be omitted if no specific position applies, or if
-       * one could not be computed.
-       * 
- * - * optional .google.cloud.securitycentermanagement.v1.ValidateEventThreatDetectionCustomModuleResponse.Position start = 3; - */ - public Builder setStart(com.google.cloud.securitycentermanagement.v1.ValidateEventThreatDetectionCustomModuleResponse.Position value) { - if (startBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - start_ = value; - } else { - startBuilder_.setMessage(value); - } - bitField0_ |= 0x00000004; - onChanged(); - return this; - } - /** - *
-       * The initial position of the error in the uploaded text version of the
-       * module. This field may be omitted if no specific position applies, or if
-       * one could not be computed.
-       * 
- * - * optional .google.cloud.securitycentermanagement.v1.ValidateEventThreatDetectionCustomModuleResponse.Position start = 3; - */ - public Builder setStart( - com.google.cloud.securitycentermanagement.v1.ValidateEventThreatDetectionCustomModuleResponse.Position.Builder builderForValue) { - if (startBuilder_ == null) { - start_ = builderForValue.build(); - } else { - startBuilder_.setMessage(builderForValue.build()); - } - bitField0_ |= 0x00000004; - onChanged(); - return this; - } - /** - *
-       * The initial position of the error in the uploaded text version of the
-       * module. This field may be omitted if no specific position applies, or if
-       * one could not be computed.
-       * 
- * - * optional .google.cloud.securitycentermanagement.v1.ValidateEventThreatDetectionCustomModuleResponse.Position start = 3; - */ - public Builder mergeStart(com.google.cloud.securitycentermanagement.v1.ValidateEventThreatDetectionCustomModuleResponse.Position value) { - if (startBuilder_ == null) { - if (((bitField0_ & 0x00000004) != 0) && - start_ != null && - start_ != com.google.cloud.securitycentermanagement.v1.ValidateEventThreatDetectionCustomModuleResponse.Position.getDefaultInstance()) { - getStartBuilder().mergeFrom(value); - } else { - start_ = value; - } - } else { - startBuilder_.mergeFrom(value); - } - bitField0_ |= 0x00000004; - onChanged(); - return this; - } - /** - *
-       * The initial position of the error in the uploaded text version of the
-       * module. This field may be omitted if no specific position applies, or if
-       * one could not be computed.
-       * 
- * - * optional .google.cloud.securitycentermanagement.v1.ValidateEventThreatDetectionCustomModuleResponse.Position start = 3; - */ - public Builder clearStart() { - bitField0_ = (bitField0_ & ~0x00000004); - start_ = null; - if (startBuilder_ != null) { - startBuilder_.dispose(); - startBuilder_ = null; - } - onChanged(); - return this; - } - /** - *
-       * The initial position of the error in the uploaded text version of the
-       * module. This field may be omitted if no specific position applies, or if
-       * one could not be computed.
-       * 
- * - * optional .google.cloud.securitycentermanagement.v1.ValidateEventThreatDetectionCustomModuleResponse.Position start = 3; - */ - public com.google.cloud.securitycentermanagement.v1.ValidateEventThreatDetectionCustomModuleResponse.Position.Builder getStartBuilder() { - bitField0_ |= 0x00000004; - onChanged(); - return getStartFieldBuilder().getBuilder(); - } - /** - *
-       * The initial position of the error in the uploaded text version of the
-       * module. This field may be omitted if no specific position applies, or if
-       * one could not be computed.
-       * 
- * - * optional .google.cloud.securitycentermanagement.v1.ValidateEventThreatDetectionCustomModuleResponse.Position start = 3; - */ - public com.google.cloud.securitycentermanagement.v1.ValidateEventThreatDetectionCustomModuleResponse.PositionOrBuilder getStartOrBuilder() { - if (startBuilder_ != null) { - return startBuilder_.getMessageOrBuilder(); - } else { - return start_ == null ? - com.google.cloud.securitycentermanagement.v1.ValidateEventThreatDetectionCustomModuleResponse.Position.getDefaultInstance() : start_; - } - } - /** - *
-       * The initial position of the error in the uploaded text version of the
-       * module. This field may be omitted if no specific position applies, or if
-       * one could not be computed.
-       * 
- * - * optional .google.cloud.securitycentermanagement.v1.ValidateEventThreatDetectionCustomModuleResponse.Position start = 3; - */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.securitycentermanagement.v1.ValidateEventThreatDetectionCustomModuleResponse.Position, com.google.cloud.securitycentermanagement.v1.ValidateEventThreatDetectionCustomModuleResponse.Position.Builder, com.google.cloud.securitycentermanagement.v1.ValidateEventThreatDetectionCustomModuleResponse.PositionOrBuilder> - getStartFieldBuilder() { - if (startBuilder_ == null) { - startBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.securitycentermanagement.v1.ValidateEventThreatDetectionCustomModuleResponse.Position, com.google.cloud.securitycentermanagement.v1.ValidateEventThreatDetectionCustomModuleResponse.Position.Builder, com.google.cloud.securitycentermanagement.v1.ValidateEventThreatDetectionCustomModuleResponse.PositionOrBuilder>( - getStart(), - getParentForChildren(), - isClean()); - start_ = null; - } - return startBuilder_; - } - - private com.google.cloud.securitycentermanagement.v1.ValidateEventThreatDetectionCustomModuleResponse.Position end_; - private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.securitycentermanagement.v1.ValidateEventThreatDetectionCustomModuleResponse.Position, com.google.cloud.securitycentermanagement.v1.ValidateEventThreatDetectionCustomModuleResponse.Position.Builder, com.google.cloud.securitycentermanagement.v1.ValidateEventThreatDetectionCustomModuleResponse.PositionOrBuilder> endBuilder_; - /** - *
-       * The end position of the error in the uploaded text version of the
-       * module. This field may be omitted if no specific position applies, or if
-       * one could not be computed..
-       * 
- * - * optional .google.cloud.securitycentermanagement.v1.ValidateEventThreatDetectionCustomModuleResponse.Position end = 4; - * @return Whether the end field is set. - */ - public boolean hasEnd() { - return ((bitField0_ & 0x00000008) != 0); - } - /** - *
-       * The end position of the error in the uploaded text version of the
-       * module. This field may be omitted if no specific position applies, or if
-       * one could not be computed..
-       * 
- * - * optional .google.cloud.securitycentermanagement.v1.ValidateEventThreatDetectionCustomModuleResponse.Position end = 4; - * @return The end. - */ - public com.google.cloud.securitycentermanagement.v1.ValidateEventThreatDetectionCustomModuleResponse.Position getEnd() { - if (endBuilder_ == null) { - return end_ == null ? com.google.cloud.securitycentermanagement.v1.ValidateEventThreatDetectionCustomModuleResponse.Position.getDefaultInstance() : end_; - } else { - return endBuilder_.getMessage(); - } - } - /** - *
-       * The end position of the error in the uploaded text version of the
-       * module. This field may be omitted if no specific position applies, or if
-       * one could not be computed..
-       * 
- * - * optional .google.cloud.securitycentermanagement.v1.ValidateEventThreatDetectionCustomModuleResponse.Position end = 4; - */ - public Builder setEnd(com.google.cloud.securitycentermanagement.v1.ValidateEventThreatDetectionCustomModuleResponse.Position value) { - if (endBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - end_ = value; - } else { - endBuilder_.setMessage(value); - } - bitField0_ |= 0x00000008; - onChanged(); - return this; - } - /** - *
-       * The end position of the error in the uploaded text version of the
-       * module. This field may be omitted if no specific position applies, or if
-       * one could not be computed..
-       * 
- * - * optional .google.cloud.securitycentermanagement.v1.ValidateEventThreatDetectionCustomModuleResponse.Position end = 4; - */ - public Builder setEnd( - com.google.cloud.securitycentermanagement.v1.ValidateEventThreatDetectionCustomModuleResponse.Position.Builder builderForValue) { - if (endBuilder_ == null) { - end_ = builderForValue.build(); - } else { - endBuilder_.setMessage(builderForValue.build()); - } - bitField0_ |= 0x00000008; - onChanged(); - return this; - } - /** - *
-       * The end position of the error in the uploaded text version of the
-       * module. This field may be omitted if no specific position applies, or if
-       * one could not be computed..
-       * 
- * - * optional .google.cloud.securitycentermanagement.v1.ValidateEventThreatDetectionCustomModuleResponse.Position end = 4; - */ - public Builder mergeEnd(com.google.cloud.securitycentermanagement.v1.ValidateEventThreatDetectionCustomModuleResponse.Position value) { - if (endBuilder_ == null) { - if (((bitField0_ & 0x00000008) != 0) && - end_ != null && - end_ != com.google.cloud.securitycentermanagement.v1.ValidateEventThreatDetectionCustomModuleResponse.Position.getDefaultInstance()) { - getEndBuilder().mergeFrom(value); - } else { - end_ = value; - } - } else { - endBuilder_.mergeFrom(value); - } - bitField0_ |= 0x00000008; - onChanged(); - return this; - } - /** - *
-       * The end position of the error in the uploaded text version of the
-       * module. This field may be omitted if no specific position applies, or if
-       * one could not be computed..
-       * 
- * - * optional .google.cloud.securitycentermanagement.v1.ValidateEventThreatDetectionCustomModuleResponse.Position end = 4; - */ - public Builder clearEnd() { - bitField0_ = (bitField0_ & ~0x00000008); - end_ = null; - if (endBuilder_ != null) { - endBuilder_.dispose(); - endBuilder_ = null; - } - onChanged(); - return this; - } - /** - *
-       * The end position of the error in the uploaded text version of the
-       * module. This field may be omitted if no specific position applies, or if
-       * one could not be computed..
-       * 
- * - * optional .google.cloud.securitycentermanagement.v1.ValidateEventThreatDetectionCustomModuleResponse.Position end = 4; - */ - public com.google.cloud.securitycentermanagement.v1.ValidateEventThreatDetectionCustomModuleResponse.Position.Builder getEndBuilder() { - bitField0_ |= 0x00000008; - onChanged(); - return getEndFieldBuilder().getBuilder(); - } - /** - *
-       * The end position of the error in the uploaded text version of the
-       * module. This field may be omitted if no specific position applies, or if
-       * one could not be computed..
-       * 
- * - * optional .google.cloud.securitycentermanagement.v1.ValidateEventThreatDetectionCustomModuleResponse.Position end = 4; - */ - public com.google.cloud.securitycentermanagement.v1.ValidateEventThreatDetectionCustomModuleResponse.PositionOrBuilder getEndOrBuilder() { - if (endBuilder_ != null) { - return endBuilder_.getMessageOrBuilder(); - } else { - return end_ == null ? - com.google.cloud.securitycentermanagement.v1.ValidateEventThreatDetectionCustomModuleResponse.Position.getDefaultInstance() : end_; - } - } - /** - *
-       * The end position of the error in the uploaded text version of the
-       * module. This field may be omitted if no specific position applies, or if
-       * one could not be computed..
-       * 
- * - * optional .google.cloud.securitycentermanagement.v1.ValidateEventThreatDetectionCustomModuleResponse.Position end = 4; - */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.securitycentermanagement.v1.ValidateEventThreatDetectionCustomModuleResponse.Position, com.google.cloud.securitycentermanagement.v1.ValidateEventThreatDetectionCustomModuleResponse.Position.Builder, com.google.cloud.securitycentermanagement.v1.ValidateEventThreatDetectionCustomModuleResponse.PositionOrBuilder> - getEndFieldBuilder() { - if (endBuilder_ == null) { - endBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.securitycentermanagement.v1.ValidateEventThreatDetectionCustomModuleResponse.Position, com.google.cloud.securitycentermanagement.v1.ValidateEventThreatDetectionCustomModuleResponse.Position.Builder, com.google.cloud.securitycentermanagement.v1.ValidateEventThreatDetectionCustomModuleResponse.PositionOrBuilder>( - getEnd(), - getParentForChildren(), - isClean()); - end_ = null; - } - return endBuilder_; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:google.cloud.securitycentermanagement.v1.ValidateEventThreatDetectionCustomModuleResponse.CustomModuleValidationError) - } - - // @@protoc_insertion_point(class_scope:google.cloud.securitycentermanagement.v1.ValidateEventThreatDetectionCustomModuleResponse.CustomModuleValidationError) - private static final com.google.cloud.securitycentermanagement.v1.ValidateEventThreatDetectionCustomModuleResponse.CustomModuleValidationError DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new com.google.cloud.securitycentermanagement.v1.ValidateEventThreatDetectionCustomModuleResponse.CustomModuleValidationError(); - } - - public static com.google.cloud.securitycentermanagement.v1.ValidateEventThreatDetectionCustomModuleResponse.CustomModuleValidationError getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public CustomModuleValidationError parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public com.google.cloud.securitycentermanagement.v1.ValidateEventThreatDetectionCustomModuleResponse.CustomModuleValidationError getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - public interface PositionOrBuilder extends - // @@protoc_insertion_point(interface_extends:google.cloud.securitycentermanagement.v1.ValidateEventThreatDetectionCustomModuleResponse.Position) - com.google.protobuf.MessageOrBuilder { - - /** - *
-     * The line position in the text
-     * 
- * - * int32 line_number = 1; - * @return The lineNumber. - */ - int getLineNumber(); - - /** - *
-     * The column position in the line
-     * 
- * - * int32 column_number = 2; - * @return The columnNumber. - */ - int getColumnNumber(); - } - /** - *
-   * A position in the uploaded text version of a module.
-   * 
- * - * Protobuf type {@code google.cloud.securitycentermanagement.v1.ValidateEventThreatDetectionCustomModuleResponse.Position} - */ - public static final class Position extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:google.cloud.securitycentermanagement.v1.ValidateEventThreatDetectionCustomModuleResponse.Position) - PositionOrBuilder { - private static final long serialVersionUID = 0L; - // Use Position.newBuilder() to construct. - private Position(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private Position() { - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new Position(); - } - - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.securitycentermanagement.v1.SecurityCenterManagementProto.internal_static_google_cloud_securitycentermanagement_v1_ValidateEventThreatDetectionCustomModuleResponse_Position_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.securitycentermanagement.v1.SecurityCenterManagementProto.internal_static_google_cloud_securitycentermanagement_v1_ValidateEventThreatDetectionCustomModuleResponse_Position_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.securitycentermanagement.v1.ValidateEventThreatDetectionCustomModuleResponse.Position.class, com.google.cloud.securitycentermanagement.v1.ValidateEventThreatDetectionCustomModuleResponse.Position.Builder.class); - } - - public static final int LINE_NUMBER_FIELD_NUMBER = 1; - private int lineNumber_ = 0; - /** - *
-     * The line position in the text
-     * 
- * - * int32 line_number = 1; - * @return The lineNumber. - */ - @java.lang.Override - public int getLineNumber() { - return lineNumber_; - } - - public static final int COLUMN_NUMBER_FIELD_NUMBER = 2; - private int columnNumber_ = 0; - /** - *
-     * The column position in the line
-     * 
- * - * int32 column_number = 2; - * @return The columnNumber. - */ - @java.lang.Override - public int getColumnNumber() { - return columnNumber_; - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (lineNumber_ != 0) { - output.writeInt32(1, lineNumber_); - } - if (columnNumber_ != 0) { - output.writeInt32(2, columnNumber_); - } - getUnknownFields().writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (lineNumber_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeInt32Size(1, lineNumber_); - } - if (columnNumber_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeInt32Size(2, columnNumber_); - } - size += getUnknownFields().getSerializedSize(); - memoizedSize = size; - return size; - } - - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof com.google.cloud.securitycentermanagement.v1.ValidateEventThreatDetectionCustomModuleResponse.Position)) { - return super.equals(obj); - } - com.google.cloud.securitycentermanagement.v1.ValidateEventThreatDetectionCustomModuleResponse.Position other = (com.google.cloud.securitycentermanagement.v1.ValidateEventThreatDetectionCustomModuleResponse.Position) obj; - - if (getLineNumber() - != other.getLineNumber()) return false; - if (getColumnNumber() - != other.getColumnNumber()) return false; - if (!getUnknownFields().equals(other.getUnknownFields())) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + LINE_NUMBER_FIELD_NUMBER; - hash = (53 * hash) + getLineNumber(); - hash = (37 * hash) + COLUMN_NUMBER_FIELD_NUMBER; - hash = (53 * hash) + getColumnNumber(); - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static com.google.cloud.securitycentermanagement.v1.ValidateEventThreatDetectionCustomModuleResponse.Position parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static com.google.cloud.securitycentermanagement.v1.ValidateEventThreatDetectionCustomModuleResponse.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.securitycentermanagement.v1.ValidateEventThreatDetectionCustomModuleResponse.Position parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static com.google.cloud.securitycentermanagement.v1.ValidateEventThreatDetectionCustomModuleResponse.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.securitycentermanagement.v1.ValidateEventThreatDetectionCustomModuleResponse.Position parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static com.google.cloud.securitycentermanagement.v1.ValidateEventThreatDetectionCustomModuleResponse.Position parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static com.google.cloud.securitycentermanagement.v1.ValidateEventThreatDetectionCustomModuleResponse.Position parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static com.google.cloud.securitycentermanagement.v1.ValidateEventThreatDetectionCustomModuleResponse.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.securitycentermanagement.v1.ValidateEventThreatDetectionCustomModuleResponse.Position parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - - public static com.google.cloud.securitycentermanagement.v1.ValidateEventThreatDetectionCustomModuleResponse.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.securitycentermanagement.v1.ValidateEventThreatDetectionCustomModuleResponse.Position parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static com.google.cloud.securitycentermanagement.v1.ValidateEventThreatDetectionCustomModuleResponse.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 static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(com.google.cloud.securitycentermanagement.v1.ValidateEventThreatDetectionCustomModuleResponse.Position prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - *
-     * A position in the uploaded text version of a module.
-     * 
- * - * Protobuf type {@code google.cloud.securitycentermanagement.v1.ValidateEventThreatDetectionCustomModuleResponse.Position} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:google.cloud.securitycentermanagement.v1.ValidateEventThreatDetectionCustomModuleResponse.Position) - com.google.cloud.securitycentermanagement.v1.ValidateEventThreatDetectionCustomModuleResponse.PositionOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.securitycentermanagement.v1.SecurityCenterManagementProto.internal_static_google_cloud_securitycentermanagement_v1_ValidateEventThreatDetectionCustomModuleResponse_Position_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.securitycentermanagement.v1.SecurityCenterManagementProto.internal_static_google_cloud_securitycentermanagement_v1_ValidateEventThreatDetectionCustomModuleResponse_Position_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.securitycentermanagement.v1.ValidateEventThreatDetectionCustomModuleResponse.Position.class, com.google.cloud.securitycentermanagement.v1.ValidateEventThreatDetectionCustomModuleResponse.Position.Builder.class); - } - - // Construct using com.google.cloud.securitycentermanagement.v1.ValidateEventThreatDetectionCustomModuleResponse.Position.newBuilder() - private Builder() { - - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - - } - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - lineNumber_ = 0; - columnNumber_ = 0; - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.securitycentermanagement.v1.SecurityCenterManagementProto.internal_static_google_cloud_securitycentermanagement_v1_ValidateEventThreatDetectionCustomModuleResponse_Position_descriptor; - } - - @java.lang.Override - public com.google.cloud.securitycentermanagement.v1.ValidateEventThreatDetectionCustomModuleResponse.Position getDefaultInstanceForType() { - return com.google.cloud.securitycentermanagement.v1.ValidateEventThreatDetectionCustomModuleResponse.Position.getDefaultInstance(); - } - - @java.lang.Override - public com.google.cloud.securitycentermanagement.v1.ValidateEventThreatDetectionCustomModuleResponse.Position build() { - com.google.cloud.securitycentermanagement.v1.ValidateEventThreatDetectionCustomModuleResponse.Position result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.cloud.securitycentermanagement.v1.ValidateEventThreatDetectionCustomModuleResponse.Position buildPartial() { - com.google.cloud.securitycentermanagement.v1.ValidateEventThreatDetectionCustomModuleResponse.Position result = new com.google.cloud.securitycentermanagement.v1.ValidateEventThreatDetectionCustomModuleResponse.Position(this); - if (bitField0_ != 0) { buildPartial0(result); } - onBuilt(); - return result; - } - - private void buildPartial0(com.google.cloud.securitycentermanagement.v1.ValidateEventThreatDetectionCustomModuleResponse.Position result) { - int from_bitField0_ = bitField0_; - if (((from_bitField0_ & 0x00000001) != 0)) { - result.lineNumber_ = lineNumber_; - } - if (((from_bitField0_ & 0x00000002) != 0)) { - result.columnNumber_ = columnNumber_; - } - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.cloud.securitycentermanagement.v1.ValidateEventThreatDetectionCustomModuleResponse.Position) { - return mergeFrom((com.google.cloud.securitycentermanagement.v1.ValidateEventThreatDetectionCustomModuleResponse.Position)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.google.cloud.securitycentermanagement.v1.ValidateEventThreatDetectionCustomModuleResponse.Position other) { - if (other == com.google.cloud.securitycentermanagement.v1.ValidateEventThreatDetectionCustomModuleResponse.Position.getDefaultInstance()) return this; - if (other.getLineNumber() != 0) { - setLineNumber(other.getLineNumber()); - } - if (other.getColumnNumber() != 0) { - setColumnNumber(other.getColumnNumber()); - } - this.mergeUnknownFields(other.getUnknownFields()); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 8: { - lineNumber_ = input.readInt32(); - bitField0_ |= 0x00000001; - break; - } // case 8 - case 16: { - columnNumber_ = 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) { - throw e.unwrapIOException(); - } finally { - onChanged(); - } // finally - return this; - } - private int bitField0_; - - private int lineNumber_ ; - /** - *
-       * The line position in the text
-       * 
- * - * int32 line_number = 1; - * @return The lineNumber. - */ - @java.lang.Override - public int getLineNumber() { - return lineNumber_; - } - /** - *
-       * The line position in the text
-       * 
- * - * int32 line_number = 1; - * @param value The lineNumber to set. - * @return This builder for chaining. - */ - public Builder setLineNumber(int value) { - - lineNumber_ = value; - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - *
-       * The line position in the text
-       * 
- * - * int32 line_number = 1; - * @return This builder for chaining. - */ - public Builder clearLineNumber() { - bitField0_ = (bitField0_ & ~0x00000001); - lineNumber_ = 0; - onChanged(); - return this; - } - - private int columnNumber_ ; - /** - *
-       * The column position in the line
-       * 
- * - * int32 column_number = 2; - * @return The columnNumber. - */ - @java.lang.Override - public int getColumnNumber() { - return columnNumber_; - } - /** - *
-       * The column position in the line
-       * 
- * - * int32 column_number = 2; - * @param value The columnNumber to set. - * @return This builder for chaining. - */ - public Builder setColumnNumber(int value) { - - columnNumber_ = value; - bitField0_ |= 0x00000002; - onChanged(); - return this; - } - /** - *
-       * The column position in the line
-       * 
- * - * int32 column_number = 2; - * @return This builder for chaining. - */ - public Builder clearColumnNumber() { - bitField0_ = (bitField0_ & ~0x00000002); - columnNumber_ = 0; - onChanged(); - return this; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:google.cloud.securitycentermanagement.v1.ValidateEventThreatDetectionCustomModuleResponse.Position) - } - - // @@protoc_insertion_point(class_scope:google.cloud.securitycentermanagement.v1.ValidateEventThreatDetectionCustomModuleResponse.Position) - private static final com.google.cloud.securitycentermanagement.v1.ValidateEventThreatDetectionCustomModuleResponse.Position DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new com.google.cloud.securitycentermanagement.v1.ValidateEventThreatDetectionCustomModuleResponse.Position(); - } - - public static com.google.cloud.securitycentermanagement.v1.ValidateEventThreatDetectionCustomModuleResponse.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(); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public com.google.cloud.securitycentermanagement.v1.ValidateEventThreatDetectionCustomModuleResponse.Position getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - public static final int ERRORS_FIELD_NUMBER = 2; - @SuppressWarnings("serial") - private java.util.List errors_; - /** - *
-   * A list of errors returned by the validator. If the list is empty, there
-   * were no errors.
-   * 
- * - * repeated .google.cloud.securitycentermanagement.v1.ValidateEventThreatDetectionCustomModuleResponse.CustomModuleValidationError errors = 2; - */ - @java.lang.Override - public java.util.List getErrorsList() { - return errors_; - } - /** - *
-   * A list of errors returned by the validator. If the list is empty, there
-   * were no errors.
-   * 
- * - * repeated .google.cloud.securitycentermanagement.v1.ValidateEventThreatDetectionCustomModuleResponse.CustomModuleValidationError errors = 2; - */ - @java.lang.Override - public java.util.List - getErrorsOrBuilderList() { - return errors_; - } - /** - *
-   * A list of errors returned by the validator. If the list is empty, there
-   * were no errors.
-   * 
- * - * repeated .google.cloud.securitycentermanagement.v1.ValidateEventThreatDetectionCustomModuleResponse.CustomModuleValidationError errors = 2; - */ - @java.lang.Override - public int getErrorsCount() { - return errors_.size(); - } - /** - *
-   * A list of errors returned by the validator. If the list is empty, there
-   * were no errors.
-   * 
- * - * repeated .google.cloud.securitycentermanagement.v1.ValidateEventThreatDetectionCustomModuleResponse.CustomModuleValidationError errors = 2; - */ - @java.lang.Override - public com.google.cloud.securitycentermanagement.v1.ValidateEventThreatDetectionCustomModuleResponse.CustomModuleValidationError getErrors(int index) { - return errors_.get(index); - } - /** - *
-   * A list of errors returned by the validator. If the list is empty, there
-   * were no errors.
-   * 
- * - * repeated .google.cloud.securitycentermanagement.v1.ValidateEventThreatDetectionCustomModuleResponse.CustomModuleValidationError errors = 2; - */ - @java.lang.Override - public com.google.cloud.securitycentermanagement.v1.ValidateEventThreatDetectionCustomModuleResponse.CustomModuleValidationErrorOrBuilder getErrorsOrBuilder( - int index) { - return errors_.get(index); - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - for (int i = 0; i < errors_.size(); i++) { - output.writeMessage(2, errors_.get(i)); - } - getUnknownFields().writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - for (int i = 0; i < errors_.size(); i++) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(2, errors_.get(i)); - } - size += getUnknownFields().getSerializedSize(); - memoizedSize = size; - return size; - } - - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof com.google.cloud.securitycentermanagement.v1.ValidateEventThreatDetectionCustomModuleResponse)) { - return super.equals(obj); - } - com.google.cloud.securitycentermanagement.v1.ValidateEventThreatDetectionCustomModuleResponse other = (com.google.cloud.securitycentermanagement.v1.ValidateEventThreatDetectionCustomModuleResponse) obj; - - if (!getErrorsList() - .equals(other.getErrorsList())) return false; - if (!getUnknownFields().equals(other.getUnknownFields())) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - if (getErrorsCount() > 0) { - hash = (37 * hash) + ERRORS_FIELD_NUMBER; - hash = (53 * hash) + getErrorsList().hashCode(); - } - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static com.google.cloud.securitycentermanagement.v1.ValidateEventThreatDetectionCustomModuleResponse parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static com.google.cloud.securitycentermanagement.v1.ValidateEventThreatDetectionCustomModuleResponse 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.securitycentermanagement.v1.ValidateEventThreatDetectionCustomModuleResponse parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static com.google.cloud.securitycentermanagement.v1.ValidateEventThreatDetectionCustomModuleResponse parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static com.google.cloud.securitycentermanagement.v1.ValidateEventThreatDetectionCustomModuleResponse parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static com.google.cloud.securitycentermanagement.v1.ValidateEventThreatDetectionCustomModuleResponse parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static com.google.cloud.securitycentermanagement.v1.ValidateEventThreatDetectionCustomModuleResponse parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static com.google.cloud.securitycentermanagement.v1.ValidateEventThreatDetectionCustomModuleResponse 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.securitycentermanagement.v1.ValidateEventThreatDetectionCustomModuleResponse parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - - public static com.google.cloud.securitycentermanagement.v1.ValidateEventThreatDetectionCustomModuleResponse parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); - } - public static com.google.cloud.securitycentermanagement.v1.ValidateEventThreatDetectionCustomModuleResponse parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static com.google.cloud.securitycentermanagement.v1.ValidateEventThreatDetectionCustomModuleResponse 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.securitycentermanagement.v1.ValidateEventThreatDetectionCustomModuleResponse prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - *
-   * Response to validating an Event Threat Detection custom module.
-   * 
- * - * Protobuf type {@code google.cloud.securitycentermanagement.v1.ValidateEventThreatDetectionCustomModuleResponse} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:google.cloud.securitycentermanagement.v1.ValidateEventThreatDetectionCustomModuleResponse) - com.google.cloud.securitycentermanagement.v1.ValidateEventThreatDetectionCustomModuleResponseOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.securitycentermanagement.v1.SecurityCenterManagementProto.internal_static_google_cloud_securitycentermanagement_v1_ValidateEventThreatDetectionCustomModuleResponse_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.securitycentermanagement.v1.SecurityCenterManagementProto.internal_static_google_cloud_securitycentermanagement_v1_ValidateEventThreatDetectionCustomModuleResponse_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.securitycentermanagement.v1.ValidateEventThreatDetectionCustomModuleResponse.class, com.google.cloud.securitycentermanagement.v1.ValidateEventThreatDetectionCustomModuleResponse.Builder.class); - } - - // Construct using com.google.cloud.securitycentermanagement.v1.ValidateEventThreatDetectionCustomModuleResponse.newBuilder() - private Builder() { - - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - - } - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - if (errorsBuilder_ == null) { - errors_ = java.util.Collections.emptyList(); - } else { - errors_ = null; - errorsBuilder_.clear(); - } - bitField0_ = (bitField0_ & ~0x00000001); - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.securitycentermanagement.v1.SecurityCenterManagementProto.internal_static_google_cloud_securitycentermanagement_v1_ValidateEventThreatDetectionCustomModuleResponse_descriptor; - } - - @java.lang.Override - public com.google.cloud.securitycentermanagement.v1.ValidateEventThreatDetectionCustomModuleResponse getDefaultInstanceForType() { - return com.google.cloud.securitycentermanagement.v1.ValidateEventThreatDetectionCustomModuleResponse.getDefaultInstance(); - } - - @java.lang.Override - public com.google.cloud.securitycentermanagement.v1.ValidateEventThreatDetectionCustomModuleResponse build() { - com.google.cloud.securitycentermanagement.v1.ValidateEventThreatDetectionCustomModuleResponse result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.cloud.securitycentermanagement.v1.ValidateEventThreatDetectionCustomModuleResponse buildPartial() { - com.google.cloud.securitycentermanagement.v1.ValidateEventThreatDetectionCustomModuleResponse result = new com.google.cloud.securitycentermanagement.v1.ValidateEventThreatDetectionCustomModuleResponse(this); - buildPartialRepeatedFields(result); - if (bitField0_ != 0) { buildPartial0(result); } - onBuilt(); - return result; - } - - private void buildPartialRepeatedFields(com.google.cloud.securitycentermanagement.v1.ValidateEventThreatDetectionCustomModuleResponse result) { - if (errorsBuilder_ == null) { - if (((bitField0_ & 0x00000001) != 0)) { - errors_ = java.util.Collections.unmodifiableList(errors_); - bitField0_ = (bitField0_ & ~0x00000001); - } - result.errors_ = errors_; - } else { - result.errors_ = errorsBuilder_.build(); - } - } - - private void buildPartial0(com.google.cloud.securitycentermanagement.v1.ValidateEventThreatDetectionCustomModuleResponse result) { - int from_bitField0_ = bitField0_; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.cloud.securitycentermanagement.v1.ValidateEventThreatDetectionCustomModuleResponse) { - return mergeFrom((com.google.cloud.securitycentermanagement.v1.ValidateEventThreatDetectionCustomModuleResponse)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.google.cloud.securitycentermanagement.v1.ValidateEventThreatDetectionCustomModuleResponse other) { - if (other == com.google.cloud.securitycentermanagement.v1.ValidateEventThreatDetectionCustomModuleResponse.getDefaultInstance()) return this; - if (errorsBuilder_ == null) { - if (!other.errors_.isEmpty()) { - if (errors_.isEmpty()) { - errors_ = other.errors_; - bitField0_ = (bitField0_ & ~0x00000001); - } else { - ensureErrorsIsMutable(); - errors_.addAll(other.errors_); - } - onChanged(); - } - } else { - if (!other.errors_.isEmpty()) { - if (errorsBuilder_.isEmpty()) { - errorsBuilder_.dispose(); - errorsBuilder_ = null; - errors_ = other.errors_; - bitField0_ = (bitField0_ & ~0x00000001); - errorsBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? - getErrorsFieldBuilder() : null; - } else { - errorsBuilder_.addAllMessages(other.errors_); - } - } - } - this.mergeUnknownFields(other.getUnknownFields()); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 18: { - com.google.cloud.securitycentermanagement.v1.ValidateEventThreatDetectionCustomModuleResponse.CustomModuleValidationError m = - input.readMessage( - com.google.cloud.securitycentermanagement.v1.ValidateEventThreatDetectionCustomModuleResponse.CustomModuleValidationError.parser(), - extensionRegistry); - if (errorsBuilder_ == null) { - ensureErrorsIsMutable(); - errors_.add(m); - } else { - errorsBuilder_.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) { - throw e.unwrapIOException(); - } finally { - onChanged(); - } // finally - return this; - } - private int bitField0_; - - private java.util.List errors_ = - java.util.Collections.emptyList(); - private void ensureErrorsIsMutable() { - if (!((bitField0_ & 0x00000001) != 0)) { - errors_ = new java.util.ArrayList(errors_); - bitField0_ |= 0x00000001; - } - } - - private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.securitycentermanagement.v1.ValidateEventThreatDetectionCustomModuleResponse.CustomModuleValidationError, com.google.cloud.securitycentermanagement.v1.ValidateEventThreatDetectionCustomModuleResponse.CustomModuleValidationError.Builder, com.google.cloud.securitycentermanagement.v1.ValidateEventThreatDetectionCustomModuleResponse.CustomModuleValidationErrorOrBuilder> errorsBuilder_; - - /** - *
-     * A list of errors returned by the validator. If the list is empty, there
-     * were no errors.
-     * 
- * - * repeated .google.cloud.securitycentermanagement.v1.ValidateEventThreatDetectionCustomModuleResponse.CustomModuleValidationError errors = 2; - */ - public java.util.List getErrorsList() { - if (errorsBuilder_ == null) { - return java.util.Collections.unmodifiableList(errors_); - } else { - return errorsBuilder_.getMessageList(); - } - } - /** - *
-     * A list of errors returned by the validator. If the list is empty, there
-     * were no errors.
-     * 
- * - * repeated .google.cloud.securitycentermanagement.v1.ValidateEventThreatDetectionCustomModuleResponse.CustomModuleValidationError errors = 2; - */ - public int getErrorsCount() { - if (errorsBuilder_ == null) { - return errors_.size(); - } else { - return errorsBuilder_.getCount(); - } - } - /** - *
-     * A list of errors returned by the validator. If the list is empty, there
-     * were no errors.
-     * 
- * - * repeated .google.cloud.securitycentermanagement.v1.ValidateEventThreatDetectionCustomModuleResponse.CustomModuleValidationError errors = 2; - */ - public com.google.cloud.securitycentermanagement.v1.ValidateEventThreatDetectionCustomModuleResponse.CustomModuleValidationError getErrors(int index) { - if (errorsBuilder_ == null) { - return errors_.get(index); - } else { - return errorsBuilder_.getMessage(index); - } - } - /** - *
-     * A list of errors returned by the validator. If the list is empty, there
-     * were no errors.
-     * 
- * - * repeated .google.cloud.securitycentermanagement.v1.ValidateEventThreatDetectionCustomModuleResponse.CustomModuleValidationError errors = 2; - */ - public Builder setErrors( - int index, com.google.cloud.securitycentermanagement.v1.ValidateEventThreatDetectionCustomModuleResponse.CustomModuleValidationError value) { - if (errorsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureErrorsIsMutable(); - errors_.set(index, value); - onChanged(); - } else { - errorsBuilder_.setMessage(index, value); - } - return this; - } - /** - *
-     * A list of errors returned by the validator. If the list is empty, there
-     * were no errors.
-     * 
- * - * repeated .google.cloud.securitycentermanagement.v1.ValidateEventThreatDetectionCustomModuleResponse.CustomModuleValidationError errors = 2; - */ - public Builder setErrors( - int index, com.google.cloud.securitycentermanagement.v1.ValidateEventThreatDetectionCustomModuleResponse.CustomModuleValidationError.Builder builderForValue) { - if (errorsBuilder_ == null) { - ensureErrorsIsMutable(); - errors_.set(index, builderForValue.build()); - onChanged(); - } else { - errorsBuilder_.setMessage(index, builderForValue.build()); - } - return this; - } - /** - *
-     * A list of errors returned by the validator. If the list is empty, there
-     * were no errors.
-     * 
- * - * repeated .google.cloud.securitycentermanagement.v1.ValidateEventThreatDetectionCustomModuleResponse.CustomModuleValidationError errors = 2; - */ - public Builder addErrors(com.google.cloud.securitycentermanagement.v1.ValidateEventThreatDetectionCustomModuleResponse.CustomModuleValidationError value) { - if (errorsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureErrorsIsMutable(); - errors_.add(value); - onChanged(); - } else { - errorsBuilder_.addMessage(value); - } - return this; - } - /** - *
-     * A list of errors returned by the validator. If the list is empty, there
-     * were no errors.
-     * 
- * - * repeated .google.cloud.securitycentermanagement.v1.ValidateEventThreatDetectionCustomModuleResponse.CustomModuleValidationError errors = 2; - */ - public Builder addErrors( - int index, com.google.cloud.securitycentermanagement.v1.ValidateEventThreatDetectionCustomModuleResponse.CustomModuleValidationError value) { - if (errorsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureErrorsIsMutable(); - errors_.add(index, value); - onChanged(); - } else { - errorsBuilder_.addMessage(index, value); - } - return this; - } - /** - *
-     * A list of errors returned by the validator. If the list is empty, there
-     * were no errors.
-     * 
- * - * repeated .google.cloud.securitycentermanagement.v1.ValidateEventThreatDetectionCustomModuleResponse.CustomModuleValidationError errors = 2; - */ - public Builder addErrors( - com.google.cloud.securitycentermanagement.v1.ValidateEventThreatDetectionCustomModuleResponse.CustomModuleValidationError.Builder builderForValue) { - if (errorsBuilder_ == null) { - ensureErrorsIsMutable(); - errors_.add(builderForValue.build()); - onChanged(); - } else { - errorsBuilder_.addMessage(builderForValue.build()); - } - return this; - } - /** - *
-     * A list of errors returned by the validator. If the list is empty, there
-     * were no errors.
-     * 
- * - * repeated .google.cloud.securitycentermanagement.v1.ValidateEventThreatDetectionCustomModuleResponse.CustomModuleValidationError errors = 2; - */ - public Builder addErrors( - int index, com.google.cloud.securitycentermanagement.v1.ValidateEventThreatDetectionCustomModuleResponse.CustomModuleValidationError.Builder builderForValue) { - if (errorsBuilder_ == null) { - ensureErrorsIsMutable(); - errors_.add(index, builderForValue.build()); - onChanged(); - } else { - errorsBuilder_.addMessage(index, builderForValue.build()); - } - return this; - } - /** - *
-     * A list of errors returned by the validator. If the list is empty, there
-     * were no errors.
-     * 
- * - * repeated .google.cloud.securitycentermanagement.v1.ValidateEventThreatDetectionCustomModuleResponse.CustomModuleValidationError errors = 2; - */ - public Builder addAllErrors( - java.lang.Iterable values) { - if (errorsBuilder_ == null) { - ensureErrorsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, errors_); - onChanged(); - } else { - errorsBuilder_.addAllMessages(values); - } - return this; - } - /** - *
-     * A list of errors returned by the validator. If the list is empty, there
-     * were no errors.
-     * 
- * - * repeated .google.cloud.securitycentermanagement.v1.ValidateEventThreatDetectionCustomModuleResponse.CustomModuleValidationError errors = 2; - */ - public Builder clearErrors() { - if (errorsBuilder_ == null) { - errors_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000001); - onChanged(); - } else { - errorsBuilder_.clear(); - } - return this; - } - /** - *
-     * A list of errors returned by the validator. If the list is empty, there
-     * were no errors.
-     * 
- * - * repeated .google.cloud.securitycentermanagement.v1.ValidateEventThreatDetectionCustomModuleResponse.CustomModuleValidationError errors = 2; - */ - public Builder removeErrors(int index) { - if (errorsBuilder_ == null) { - ensureErrorsIsMutable(); - errors_.remove(index); - onChanged(); - } else { - errorsBuilder_.remove(index); - } - return this; - } - /** - *
-     * A list of errors returned by the validator. If the list is empty, there
-     * were no errors.
-     * 
- * - * repeated .google.cloud.securitycentermanagement.v1.ValidateEventThreatDetectionCustomModuleResponse.CustomModuleValidationError errors = 2; - */ - public com.google.cloud.securitycentermanagement.v1.ValidateEventThreatDetectionCustomModuleResponse.CustomModuleValidationError.Builder getErrorsBuilder( - int index) { - return getErrorsFieldBuilder().getBuilder(index); - } - /** - *
-     * A list of errors returned by the validator. If the list is empty, there
-     * were no errors.
-     * 
- * - * repeated .google.cloud.securitycentermanagement.v1.ValidateEventThreatDetectionCustomModuleResponse.CustomModuleValidationError errors = 2; - */ - public com.google.cloud.securitycentermanagement.v1.ValidateEventThreatDetectionCustomModuleResponse.CustomModuleValidationErrorOrBuilder getErrorsOrBuilder( - int index) { - if (errorsBuilder_ == null) { - return errors_.get(index); } else { - return errorsBuilder_.getMessageOrBuilder(index); - } - } - /** - *
-     * A list of errors returned by the validator. If the list is empty, there
-     * were no errors.
-     * 
- * - * repeated .google.cloud.securitycentermanagement.v1.ValidateEventThreatDetectionCustomModuleResponse.CustomModuleValidationError errors = 2; - */ - public java.util.List - getErrorsOrBuilderList() { - if (errorsBuilder_ != null) { - return errorsBuilder_.getMessageOrBuilderList(); - } else { - return java.util.Collections.unmodifiableList(errors_); - } - } - /** - *
-     * A list of errors returned by the validator. If the list is empty, there
-     * were no errors.
-     * 
- * - * repeated .google.cloud.securitycentermanagement.v1.ValidateEventThreatDetectionCustomModuleResponse.CustomModuleValidationError errors = 2; - */ - public com.google.cloud.securitycentermanagement.v1.ValidateEventThreatDetectionCustomModuleResponse.CustomModuleValidationError.Builder addErrorsBuilder() { - return getErrorsFieldBuilder().addBuilder( - com.google.cloud.securitycentermanagement.v1.ValidateEventThreatDetectionCustomModuleResponse.CustomModuleValidationError.getDefaultInstance()); - } - /** - *
-     * A list of errors returned by the validator. If the list is empty, there
-     * were no errors.
-     * 
- * - * repeated .google.cloud.securitycentermanagement.v1.ValidateEventThreatDetectionCustomModuleResponse.CustomModuleValidationError errors = 2; - */ - public com.google.cloud.securitycentermanagement.v1.ValidateEventThreatDetectionCustomModuleResponse.CustomModuleValidationError.Builder addErrorsBuilder( - int index) { - return getErrorsFieldBuilder().addBuilder( - index, com.google.cloud.securitycentermanagement.v1.ValidateEventThreatDetectionCustomModuleResponse.CustomModuleValidationError.getDefaultInstance()); - } - /** - *
-     * A list of errors returned by the validator. If the list is empty, there
-     * were no errors.
-     * 
- * - * repeated .google.cloud.securitycentermanagement.v1.ValidateEventThreatDetectionCustomModuleResponse.CustomModuleValidationError errors = 2; - */ - public java.util.List - getErrorsBuilderList() { - return getErrorsFieldBuilder().getBuilderList(); - } - private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.securitycentermanagement.v1.ValidateEventThreatDetectionCustomModuleResponse.CustomModuleValidationError, com.google.cloud.securitycentermanagement.v1.ValidateEventThreatDetectionCustomModuleResponse.CustomModuleValidationError.Builder, com.google.cloud.securitycentermanagement.v1.ValidateEventThreatDetectionCustomModuleResponse.CustomModuleValidationErrorOrBuilder> - getErrorsFieldBuilder() { - if (errorsBuilder_ == null) { - errorsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.securitycentermanagement.v1.ValidateEventThreatDetectionCustomModuleResponse.CustomModuleValidationError, com.google.cloud.securitycentermanagement.v1.ValidateEventThreatDetectionCustomModuleResponse.CustomModuleValidationError.Builder, com.google.cloud.securitycentermanagement.v1.ValidateEventThreatDetectionCustomModuleResponse.CustomModuleValidationErrorOrBuilder>( - errors_, - ((bitField0_ & 0x00000001) != 0), - getParentForChildren(), - isClean()); - errors_ = null; - } - return errorsBuilder_; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:google.cloud.securitycentermanagement.v1.ValidateEventThreatDetectionCustomModuleResponse) - } - - // @@protoc_insertion_point(class_scope:google.cloud.securitycentermanagement.v1.ValidateEventThreatDetectionCustomModuleResponse) - private static final com.google.cloud.securitycentermanagement.v1.ValidateEventThreatDetectionCustomModuleResponse DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new com.google.cloud.securitycentermanagement.v1.ValidateEventThreatDetectionCustomModuleResponse(); - } - - public static com.google.cloud.securitycentermanagement.v1.ValidateEventThreatDetectionCustomModuleResponse getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ValidateEventThreatDetectionCustomModuleResponse parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public com.google.cloud.securitycentermanagement.v1.ValidateEventThreatDetectionCustomModuleResponse getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/owl-bot-staging/java-securitycentermanagement/v1/proto-google-cloud-securitycentermanagement-v1/src/main/java/com/google/cloud/securitycentermanagement/v1/ValidateEventThreatDetectionCustomModuleResponseOrBuilder.java b/owl-bot-staging/java-securitycentermanagement/v1/proto-google-cloud-securitycentermanagement-v1/src/main/java/com/google/cloud/securitycentermanagement/v1/ValidateEventThreatDetectionCustomModuleResponseOrBuilder.java deleted file mode 100644 index 81b9370f0524..000000000000 --- a/owl-bot-staging/java-securitycentermanagement/v1/proto-google-cloud-securitycentermanagement-v1/src/main/java/com/google/cloud/securitycentermanagement/v1/ValidateEventThreatDetectionCustomModuleResponseOrBuilder.java +++ /dev/null @@ -1,58 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/securitycentermanagement/v1/security_center_management.proto - -package com.google.cloud.securitycentermanagement.v1; - -public interface ValidateEventThreatDetectionCustomModuleResponseOrBuilder extends - // @@protoc_insertion_point(interface_extends:google.cloud.securitycentermanagement.v1.ValidateEventThreatDetectionCustomModuleResponse) - com.google.protobuf.MessageOrBuilder { - - /** - *
-   * A list of errors returned by the validator. If the list is empty, there
-   * were no errors.
-   * 
- * - * repeated .google.cloud.securitycentermanagement.v1.ValidateEventThreatDetectionCustomModuleResponse.CustomModuleValidationError errors = 2; - */ - java.util.List - getErrorsList(); - /** - *
-   * A list of errors returned by the validator. If the list is empty, there
-   * were no errors.
-   * 
- * - * repeated .google.cloud.securitycentermanagement.v1.ValidateEventThreatDetectionCustomModuleResponse.CustomModuleValidationError errors = 2; - */ - com.google.cloud.securitycentermanagement.v1.ValidateEventThreatDetectionCustomModuleResponse.CustomModuleValidationError getErrors(int index); - /** - *
-   * A list of errors returned by the validator. If the list is empty, there
-   * were no errors.
-   * 
- * - * repeated .google.cloud.securitycentermanagement.v1.ValidateEventThreatDetectionCustomModuleResponse.CustomModuleValidationError errors = 2; - */ - int getErrorsCount(); - /** - *
-   * A list of errors returned by the validator. If the list is empty, there
-   * were no errors.
-   * 
- * - * repeated .google.cloud.securitycentermanagement.v1.ValidateEventThreatDetectionCustomModuleResponse.CustomModuleValidationError errors = 2; - */ - java.util.List - getErrorsOrBuilderList(); - /** - *
-   * A list of errors returned by the validator. If the list is empty, there
-   * were no errors.
-   * 
- * - * repeated .google.cloud.securitycentermanagement.v1.ValidateEventThreatDetectionCustomModuleResponse.CustomModuleValidationError errors = 2; - */ - com.google.cloud.securitycentermanagement.v1.ValidateEventThreatDetectionCustomModuleResponse.CustomModuleValidationErrorOrBuilder getErrorsOrBuilder( - int index); -} diff --git a/versions.txt b/versions.txt index 02021a55dd8d..e7867e485698 100644 --- a/versions.txt +++ b/versions.txt @@ -718,4 +718,4 @@ proto-google-cloud-securitycentermanagement-v1:0.1.0:0.2.0-SNAPSHOT grpc-google-cloud-securitycentermanagement-v1:0.1.0:0.2.0-SNAPSHOT google-shopping-css:0.1.0:0.2.0-SNAPSHOT proto-google-shopping-css-v1:0.1.0:0.2.0-SNAPSHOT -grpc-google-shopping-css-v1:0.1.0:0.2.0-SNAPSHOT \ No newline at end of file +grpc-google-shopping-css-v1:0.1.0:0.2.0-SNAPSHOT